mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
cf7d6d876c
- set update instruction notes on pkg-message ChangeLog v1.2.0: bumped minimum supported Python version to 2.4 implemented support for property diffs (Tigris #383) allow user-configurable cvsgraph display (Tigris #336) allow rNNNN syntax for Subversion revision numbers (Tigris #441) display revision numbers in CVS tag/branch selector (Tigris #546) allow roots to have optional context (#58) use a more secure temporary file generator (#159) fix problems with make-database and special characters (#141, #182) fix bogus default ci_when value in cvsdb (#200) standalone query interface removed (#206) GUI support (--gui) removed from standalone.py ChangeLog v1.2.1: security fix: escape subdir lastmod file name PR: 245728 Submitted by: Yasuhito FUTATSUKI
80 lines
2.6 KiB
Makefile
80 lines
2.6 KiB
Makefile
# Created by: will
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= viewvc
|
|
DISTVERSION= 1.2.1
|
|
PORTREVISION= 0
|
|
CATEGORIES= devel python
|
|
|
|
MAINTAINER= ohauer@FreeBSD.org
|
|
COMMENT= Web-based Version Control Repository Browsing
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
|
|
USES= cpe python:2.7
|
|
USE_GITHUB= yes
|
|
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= MODPYTHON35 MODWSGI
|
|
|
|
WEBSRV_DESC= Enable web server support
|
|
APMOD_DESC= depend on Apache module
|
|
|
|
MODWSGI_DESC= Add mod_wsgi to the list of package dependencies
|
|
MODPYTHON35_DESC= Add mod_python35 to the list of package dependencies
|
|
MYSQL_DESC= Bonsai-like repository query facilities
|
|
|
|
APACHE_USE= APACHE_RUN=24+
|
|
LIGHTTPD_RUN_DEPENDS= lighttpd:www/lighttpd
|
|
MODPYTHON35_RUN_DEPENDS=${APACHE_PKGNAMEPREFIX}mod_python35>=3.5:www/mod_python35
|
|
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}
|
|
|
|
.if defined(WITH_SUBVERSION_VER) && ${WITH_SUBVERSION_VER} == LTS
|
|
SVN_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}subversion-lts>=0:devel/py-subversion@${PY_FLAVOR}
|
|
.elif defined(WITH_SUBVERSION_VER) && ${WITH_SUBVERSION_VER} == 19
|
|
SVN_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}subversion19>=0:devel/py-subversion@${PY_FLAVOR}
|
|
.else
|
|
# default version
|
|
SVN_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}subversion>=0:devel/py-subversion@${PY_FLAVOR}
|
|
.endif
|
|
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pygments>=1.6:textproc/py-pygments@${PY_FLAVOR}
|
|
|
|
.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
|
|
# 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>
|