mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-14 07:43:06 +00:00
fb4deed873
With minor cleanups to make things simpler. With hat: portmgr Sponsored by: Absolight
49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= seafdav
|
|
PORTVERSION= 4.0.6
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSIONSUFFIX= -server
|
|
CATEGORIES= www python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= yan_jingfeng@yahoo.com
|
|
COMMENT= Python library for accessing seafile data model
|
|
|
|
LICENSE= APACHE20
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= haiwen
|
|
|
|
USES= python:2
|
|
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>
|