39 lines
970 B
Makefile
39 lines
970 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= seafdav
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= ${SEAHUB_VER}
|
|
DISTVERSIONSUFFIX= -pro
|
|
CATEGORIES= www python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= ultima@FreeBSD.org
|
|
COMMENT= Python library for accessing seafile data model
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= python:2.7 shebangfix
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= haiwen
|
|
USE_PYTHON= flavors
|
|
SHEBANG_FILES= *.sh *.template wsgidav/addons/seafile/*.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>
|