Files
haikuports/haiku-apps/orphilia_dropbox/orphilia_dropbox-1.recipe
Jerome Duval 282a03c8e8 dev-python: merge most python2 and python3 recipes.
* adjust recipes depending on these, ie python_dateutil=>dateutil_python.
* switch architectures to any for relevant python recipes.
* bump versions for retext, argh, beautifulsoup, cssselect, dateutil,
docutils, fonttools, html2text, httplib2, lxml, mechanize, mock, paramiko,
pillow, pip, pygments, requests, twisted, urllib3, zope_interface.
2017-04-17 10:08:41 +02:00

73 lines
2.0 KiB
Bash

SUMMARY="An open-source Dropbox client"
DESCRIPTION="Orphilia is an open-source Dropbox client written in Python. \
Project's main goal is to provide an open-source desktop Dropbox client for \
platforms, that aren't supported (for example, Haiku). Orphilia is \
script-based which makes it platform-independent. It's written using \
Dropbox SDK from here, which has been integrated into Orphilia's source \
code and is not required for installation."
HOMEPAGE="https://github.com/ksiazkowicz/orphilia-dropbox"
COPYRIGHT="2011-2014 Maciej Janiszewski"
LICENSE="MIT"
REVISION="2"
SOURCE_URI="git+https://github.com/ksiazkowicz/orphilia-dropbox.git#f692f26793a48e2742f12c20767f0f22a9ff39af"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
# Should be called after activating package
#POST_INSTALL_SCRIPTS="
# \"orphilia.py --configuration\"
# "
PROVIDES="
orphilia_dropbox = $portVersion
cmd:orphilia_haiku_notify = $portVersion
cmd:orphilia.py = $portVersion
"
BUILD_PREREQUIRES="
haiku_devel
cmd:gcc
cmd:python
cmd:sed
"
BUILD_REQUIRES="
haiku_devel
setuptools_python
"
REQUIRES="
pathtools_python
setuptools_python
urllib3_python
watchdog_python
cmd:python
"
BUILD()
{
python build.py
}
INSTALL()
{
# GENERIC: all python_setuptools-based installs need this
export PATH="$portPackageLinksDir/cmd~python/bin:$PATH"
pythonVersion=$(python --version 2>&1 | sed 's/Python //' | head -c3)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
cd built/dependencies
python setup.py install \
--single-version-externally-managed \
--root=/ --prefix=$prefix
cd ../..
mkdir -p $installLocation/orphilia_dropbox
cp -R built/* $installLocation/orphilia_dropbox
mkdir -p $binDir
# create symlink which could be directly accessed
ln -s $installLocation/orphilia_dropbox/notify/haiku-notify $binDir/orphilia_haiku-notify
ln -s $installLocation/orphilia_dropbox/orphilia.py $binDir/orphilia.py
}