mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-31 10:46:16 +00:00
48 lines
1.5 KiB
Makefile
48 lines
1.5 KiB
Makefile
PORTNAME= seafdav
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= ${SEAHUB_VER}
|
|
DISTVERSIONSUFFIX= -server
|
|
CATEGORIES= www python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= ultima@FreeBSD.org
|
|
COMMENT= Python library for accessing seafile data model
|
|
WWW= https://github.com/haiwen/seafdav
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}defusedxml>=0.5:devel/py-defusedxml@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}Jinja2>=2.10:devel/py-Jinja2@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}json5>=0.8.5:devel/py-json5@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}python-pam>=1.8:security/py-python-pam@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pyyaml>=5.1:devel/py-pyyaml@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}six>=1.12:devel/py-six@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}lxml>=0:devel/py-lxml@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}sqlalchemy14>=0:databases/py-sqlalchemy14@${PY_FLAVOR}
|
|
|
|
USES= python shebangfix
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= haiwen
|
|
USE_PYTHON= flavors
|
|
SHEBANG_FILES= *.py *.template wsgidav/dc/*.py
|
|
|
|
NO_ARCH= yes
|
|
NO_BUILD= yes
|
|
|
|
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 "${.CURDIR}/../../net-mgmt/seafile-server/Makefile.include"
|
|
|
|
.include <bsd.port.mk>
|