aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2015-02-23 17:27:42 +0800
committermarino <marino@FreeBSD.org>2015-02-23 17:27:42 +0800
commit760ebb47a9192856edc5e8cbaf7b041cae7caccb (patch)
tree119db762ad9816f8f922d95c62878c9bc15dec8d
parent07e0b9e27cbff48b2bc4e819797b24e415ae1541 (diff)
downloadfreebsd-ports-gnome-760ebb47a9192856edc5e8cbaf7b041cae7caccb.tar.gz
freebsd-ports-gnome-760ebb47a9192856edc5e8cbaf7b041cae7caccb.tar.zst
freebsd-ports-gnome-760ebb47a9192856edc5e8cbaf7b041cae7caccb.zip
www/py-seafobj: Relocate python files
PR: 196919 Submitted by: maintainer (Jingfeng Yan)
-rw-r--r--www/py-seafobj/Makefile28
-rw-r--r--www/py-seafobj/pkg-plist80
2 files changed, 64 insertions, 44 deletions
diff --git a/www/py-seafobj/Makefile b/www/py-seafobj/Makefile
index 002cf5a846de..125a85b19a6e 100644
--- a/www/py-seafobj/Makefile
+++ b/www/py-seafobj/Makefile
@@ -2,6 +2,7 @@
PORTNAME= seafobj
PORTVERSION= 3.0.4
+PORTREVISION= 1
CATEGORIES= www python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -18,14 +19,31 @@ GH_COMMIT= 58a4346
NO_BUILD= yes
USES= python:2
+HAIWENDIR= www/haiwen
+SEAFILE_SERVER= ${HAIWENDIR}/seafile-server
+SEAHUBDIR= ${SEAFILE_SERVER}/seahub
+SITEPACKAGEDIR= ${SEAHUBDIR}/thirdpart
+
+SEAFILE_USERNAME?= www
+SEAFILE_GROUPNAME?= ${SEAFILE_USERNAME}
+
+PLIST_SUB= SEAFILE_USERNAME=${SEAFILE_USERNAME} \
+ SEAFILE_GROUPNAME=${SEAFILE_GROUPNAME} \
+ SEAFILE_SERVER=${SEAFILE_SERVER} \
+ SEAHUBDIR=${SEAHUBDIR} \
+ HAIWENDIR=${HAIWENDIR} \
+ SITEPACKAGEDIR=${SITEPACKAGEDIR}
+
do-install:
- @${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/seafobj
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${SITEPACKAGEDIR}/seafobj
(cd ${WRKSRC}/seafobj && \
- ${COPYTREE_SHARE} . ${STAGEDIR}${PYTHON_SITELIBDIR}/seafobj)
- (cd ${STAGEDIR}${PREFIX} && \
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
- -d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;} && \
+ -d ${WRKSRC}/seafobj \
+ -f ${WRKSRC}/seafobj && \
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
- -d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;})
+ -d ${WRKSRC}/seafobj \
+ -f ${WRKSRC}/seafobj)
+ (cd ${WRKSRC}/seafobj && \
+ ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${SITEPACKAGEDIR}/seafobj)
.include <bsd.port.mk>
diff --git a/www/py-seafobj/pkg-plist b/www/py-seafobj/pkg-plist
index ff3148f9476c..ecdf084f5f0b 100644
--- a/www/py-seafobj/pkg-plist
+++ b/www/py-seafobj/pkg-plist
@@ -1,39 +1,41 @@
-%%PYTHON_SITELIBDIR%%/seafobj/__init__.py
-%%PYTHON_SITELIBDIR%%/seafobj/__init__.pyc
-%%PYTHON_SITELIBDIR%%/seafobj/__init__.pyo
-%%PYTHON_SITELIBDIR%%/seafobj/backends/__init__.py
-%%PYTHON_SITELIBDIR%%/seafobj/backends/__init__.pyc
-%%PYTHON_SITELIBDIR%%/seafobj/backends/__init__.pyo
-%%PYTHON_SITELIBDIR%%/seafobj/backends/base.py
-%%PYTHON_SITELIBDIR%%/seafobj/backends/base.pyc
-%%PYTHON_SITELIBDIR%%/seafobj/backends/base.pyo
-%%PYTHON_SITELIBDIR%%/seafobj/backends/ceph.py
-%%PYTHON_SITELIBDIR%%/seafobj/backends/ceph.pyc
-%%PYTHON_SITELIBDIR%%/seafobj/backends/ceph.pyo
-%%PYTHON_SITELIBDIR%%/seafobj/backends/filesystem.py
-%%PYTHON_SITELIBDIR%%/seafobj/backends/filesystem.pyc
-%%PYTHON_SITELIBDIR%%/seafobj/backends/filesystem.pyo
-%%PYTHON_SITELIBDIR%%/seafobj/backends/s3.py
-%%PYTHON_SITELIBDIR%%/seafobj/backends/s3.pyc
-%%PYTHON_SITELIBDIR%%/seafobj/backends/s3.pyo
-%%PYTHON_SITELIBDIR%%/seafobj/blocks.py
-%%PYTHON_SITELIBDIR%%/seafobj/blocks.pyc
-%%PYTHON_SITELIBDIR%%/seafobj/blocks.pyo
-%%PYTHON_SITELIBDIR%%/seafobj/commits.py
-%%PYTHON_SITELIBDIR%%/seafobj/commits.pyc
-%%PYTHON_SITELIBDIR%%/seafobj/commits.pyo
-%%PYTHON_SITELIBDIR%%/seafobj/exceptions.py
-%%PYTHON_SITELIBDIR%%/seafobj/exceptions.pyc
-%%PYTHON_SITELIBDIR%%/seafobj/exceptions.pyo
-%%PYTHON_SITELIBDIR%%/seafobj/fs.py
-%%PYTHON_SITELIBDIR%%/seafobj/fs.pyc
-%%PYTHON_SITELIBDIR%%/seafobj/fs.pyo
-%%PYTHON_SITELIBDIR%%/seafobj/objstore_factory.py
-%%PYTHON_SITELIBDIR%%/seafobj/objstore_factory.pyc
-%%PYTHON_SITELIBDIR%%/seafobj/objstore_factory.pyo
-%%PYTHON_SITELIBDIR%%/seafobj/utils/__init__.py
-%%PYTHON_SITELIBDIR%%/seafobj/utils/__init__.pyc
-%%PYTHON_SITELIBDIR%%/seafobj/utils/__init__.pyo
-%%PYTHON_SITELIBDIR%%/seafobj/utils/ceph_utils.py
-%%PYTHON_SITELIBDIR%%/seafobj/utils/ceph_utils.pyc
-%%PYTHON_SITELIBDIR%%/seafobj/utils/ceph_utils.pyo
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/__init__.py
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/__init__.pyc
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/__init__.pyo
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/backends/__init__.py
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/backends/__init__.pyc
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/backends/__init__.pyo
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/backends/base.py
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/backends/base.pyc
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/backends/base.pyo
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/backends/ceph.py
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/backends/ceph.pyc
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/backends/ceph.pyo
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/backends/filesystem.py
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/backends/filesystem.pyc
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/backends/filesystem.pyo
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/backends/s3.py
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/backends/s3.pyc
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/backends/s3.pyo
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/blocks.py
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/blocks.pyc
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/blocks.pyo
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/commits.py
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/commits.pyc
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/commits.pyo
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/exceptions.py
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/exceptions.pyc
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/exceptions.pyo
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/fs.py
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/fs.pyc
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/fs.pyo
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/objstore_factory.py
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/objstore_factory.pyc
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/objstore_factory.pyo
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/utils/__init__.py
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/utils/__init__.pyc
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/utils/__init__.pyo
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/utils/ceph_utils.py
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/utils/ceph_utils.pyc
+%%SEAFILE_SERVER%%/seahub/thirdpart/seafobj/utils/ceph_utils.pyo
+@dir(%%SEAFILE_USERNAME%%,%%SEAFILE_GROUPNAME%%,755) %%SEAHUBDIR%%
+@dir(%%SEAFILE_USERNAME%%,%%SEAFILE_GROUPNAME%%,755) %%HAIWENDIR%%