1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00

www/py-seafobj: Relocate python files

PR:		196919
Submitted by:	maintainer (Jingfeng Yan)
This commit is contained in:
John Marino 2015-02-23 09:27:42 +00:00
parent 6bbe17e97e
commit aa8c52bfb6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=379651
2 changed files with 64 additions and 44 deletions

View File

@ -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>

View File

@ -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%%