aboutsummaryrefslogtreecommitdiff
path: root/devel/viewvc-devel/Makefile
diff options
context:
space:
mode:
authorDan Langille <dvl@FreeBSD.org>2020-11-25 19:29:36 +0000
committerDan Langille <dvl@FreeBSD.org>2020-11-25 19:29:36 +0000
commitb5ce298d441f1139e6d004ef7497369458bf4a90 (patch)
tree366f73cc517169cb9846319bc0fd62994735fa0d /devel/viewvc-devel/Makefile
parentb388100a84db63302ca9a276fd5acb2ba50fffbf (diff)
downloadports-b5ce298d441f1139e6d004ef7497369458bf4a90.tar.gz
ports-b5ce298d441f1139e6d004ef7497369458bf4a90.zip
Notes
Diffstat (limited to 'devel/viewvc-devel/Makefile')
-rw-r--r--devel/viewvc-devel/Makefile76
1 files changed, 76 insertions, 0 deletions
diff --git a/devel/viewvc-devel/Makefile b/devel/viewvc-devel/Makefile
new file mode 100644
index 000000000000..7ac2adec7376
--- /dev/null
+++ b/devel/viewvc-devel/Makefile
@@ -0,0 +1,76 @@
+# Created by: will
+# $FreeBSD$
+
+PORTNAME= viewvc
+DISTVERSION= 1.3.0-20201006
+CATEGORIES= devel python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+PKGNAMESUFFIX= -devel
+
+MAINTAINER= dvl@FreeBSD.org
+COMMENT= Web-based Version Control Repository Browsing
+
+LICENSE= BSD2CLAUSE
+
+USES= cpe python:3.6+
+USE_PYTHON= flavors
+USE_GITHUB= yes
+GH_TAGNAME= c93d9da79c31457ecb0a771ff52d28353dc6e878
+USE_RC_SUBR= viewvc
+
+NO_BUILD= yes
+NO_OPTIONS_SORT= yes
+OPTIONS_DEFINE= WEBSRV APMOD SVN MYSQL
+OPTIONS_DEFAULT= WEBSRV APACHE SVN
+
+OPTIONS_SINGLE= WEBSRV APMOD
+OPTIONS_SINGLE_WEBSRV= APACHE LIGHTTPD
+OPTIONS_SINGLE_APMOD= MODWSGI
+
+WEBSRV_DESC= Enable web server support
+APMOD_DESC= depend on Apache module
+
+MODWSGI_DESC= Add mod_wsgi to the list of package dependencies
+MYSQL_DESC= Bonsai-like repository query facilities
+
+APACHE_USE= APACHE_RUN=24+
+LIGHTTPD_RUN_DEPENDS= lighttpd:www/lighttpd
+MODWSGI_RUN_DEPENDS= ${APACHE_PKGNAMEPREFIX}${PYTHON_PKGNAMEPREFIX}mod_wsgi>=4.4.13:www/mod_wsgi4@${PY_FLAVOR}
+MYSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=0:databases/py-MySQLdb@${PY_FLAVOR}
+
+SVN_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}subversion>=0:devel/py-subversion@${PY_FLAVOR}
+
+RUN_DEPENDS+= ${PY_PYGMENTS}
+
+CONFLICTS_INSTALL= viewvc-1.[12].[0-9]*
+
+.include <bsd.port.options.mk>
+
+SUB_FILES= pkg-message
+SUB_LIST= PYTHON_CMD=${PYTHON_CMD} \
+ ECHO=${ECHO} EGREP=${EGREP} TOUCH=${TOUCH} \
+ CHOWN=${CHOWN} RM=${RM:Q}
+
+pre-everything::
+.if ${PORT_OPTIONS:MAPMOD} && !${PORT_OPTIONS:MAPACHE}
+IGNORE= apache module needs Apache server, please re-run 'make config' then choose WEBSRV and APACHE
+.endif
+
+post-patch:
+.for i in cvsgraph.conf mimetypes.conf viewvc.conf
+ ${MV} ${WRKSRC}/conf/${i}.dist ${WRKSRC}/conf/${i}.sample
+ ${REINPLACE_CMD} -e '/"${i}"/d' ${WRKSRC}/viewvc-install
+.endfor
+ ${REINPLACE_CMD} -e 's/conf.dist/conf.sample/g' \
+ ${WRKSRC}/viewvc-install \
+ ${WRKSRC}/bin/standalone.py
+# to much files, use own shebangfix
+ ${FIND} ${WRKSRC} -type f | ${GREP} -v -e 'png' -e 'images' \
+ | ${XARGS} ${SED} -i '' \
+ -e '1s|^\#![[:space:]]*/usr/bin/env python|\#!${PYTHON_CMD}|' \
+ -e '1s|^\#![[:space:]]*/usr/bin/python|\#!${PYTHON_CMD}|'
+
+do-install:
+ @(cd ${WRKSRC} && ${PYTHON_CMD} viewvc-install --prefix=${PREFIX}/${PORTNAME} --destdir="${STAGEDIR}" --clean-mode=false)
+
+.include <bsd.port.mk>