mirror of
https://git.freebsd.org/ports.git
synced 2025-06-26 15:10:35 -04:00
When LTS version of Subversion is set in make.conf (WITH_SUBVERSION_VER) depending ports will still depend on latest version (devel/subversion) instead of LTS one (devel/subversion-lts). This will cause dependency conflicts when packages are distributed with Poudriere, namely pkg(8) will report them and fail to install. Make all affected ports properly depend on the right port based on the value set in WITH_SUBVERSION_VER. Approved by: jrm (mentor), otis (mentor), lev (maintainer timeout) Differential Revision: https://reviews.freebsd.org/D43864
77 lines
2.3 KiB
Makefile
77 lines
2.3 KiB
Makefile
PORTNAME= viewvc
|
|
DISTVERSION= 1.3.0-20231018
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
PKGNAMESUFFIX= -devel
|
|
|
|
MAINTAINER= dvl@FreeBSD.org
|
|
COMMENT= Web-based Version Control Repository Browsing
|
|
WWW= https://www.viewvc.org/
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
|
|
USES= cpe python
|
|
USE_PYTHON= flavors
|
|
USE_GITHUB= yes
|
|
GH_TAGNAME= d07f1961512005f0dd8a94a79e562656c9dc10c8
|
|
USE_RC_SUBR= viewvc
|
|
|
|
NO_BUILD= yes
|
|
NO_OPTIONS_SORT= yes
|
|
OPTIONS_DEFINE= APMOD SUBVERSION WEBSRV
|
|
OPTIONS_DEFAULT= APACHE SUBVERSION WEBSRV
|
|
|
|
OPTIONS_SINGLE= APMOD WEBSRV
|
|
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
|
|
APACHE_USES= apache:run
|
|
|
|
LIGHTTPD_RUN_DEPENDS= lighttpd:www/lighttpd
|
|
MODWSGI_RUN_DEPENDS= ${APACHE_PKGNAMEPREFIX}${PYTHON_PKGNAMEPREFIX}mod_wsgi>=4.4.13:www/mod_wsgi4@${PY_FLAVOR}
|
|
|
|
.if ${WITH_SUBVERSION_VER:U} == LTS
|
|
SUBVERSION_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}subversion-lts>=0:devel/py-subversion@${PY_FLAVOR}
|
|
.else
|
|
SUBVERSION_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}subversion>=0:devel/py-subversion@${PY_FLAVOR}
|
|
.endif
|
|
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pygments>=1.1:textproc/py-pygments@${PY_FLAVOR}
|
|
|
|
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>
|