5861c80c90
* Updated to 5.1.0 * Changed to -pro branch to match seahub stack * Added Max python version * Added SHEBANGFIX to USES PR: 203927 Submitted by: Ultima <Ultima1252@gmail.com> (maintainer)
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= seafdav
|
|
PORTVERSION= 5.1.0
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSIONSUFFIX= -pro
|
|
CATEGORIES= www python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= ultima1252@gmail.com
|
|
COMMENT= Python library for accessing seafile data model
|
|
|
|
LICENSE= APACHE20
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= haiwen
|
|
|
|
USES= python:-2.7 shebangfix
|
|
SHEBANG_FILES= *.sh *.template wsgidav/addons/seafile/*.py
|
|
NO_ARCH= yes
|
|
NO_BUILD= yes
|
|
|
|
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}${PREFIX}/${SITEPACKAGEDIR}/wsgidav
|
|
(cd ${WRKSRC}/wsgidav && \
|
|
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
|
|
-d ${WRKSRC}/wsgidav \
|
|
-f ${WRKSRC}/wsgidav && \
|
|
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
|
|
-d ${WRKSRC}/wsgidav \
|
|
-f ${WRKSRC}/wsgidav)
|
|
(cd ${WRKSRC}/wsgidav && \
|
|
${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${SITEPACKAGEDIR}/wsgidav)
|
|
|
|
.include <bsd.port.mk>
|