ports/textproc/svn2cl/Makefile
Michael Osipov e83f0a9c84 */*: Properly depend on Subversion LTS or latest with WITH_SUBVERSION_VER
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
2024-02-28 16:53:37 +01:00

39 lines
1 KiB
Makefile

PORTNAME= svn2cl
PORTVERSION= 0.14
PORTREVISION= 2
CATEGORIES= textproc
MASTER_SITES= http://arthurdejong.org/svn2cl/
MAINTAINER= ports@FreeBSD.org
COMMENT= Subversion ChangeLog generator
WWW= https://arthurdejong.org/svn2cl/
RUN_DEPENDS= xsltproc:textproc/libxslt
.if ${WITH_SUBVERSION_VER:U} == LTS
RUN_DEPENDS+= svn:devel/subversion-lts
.else
RUN_DEPENDS+= svn:devel/subversion
.endif
NO_BUILD= yes
PORTDOCS= ChangeLog NEWS README TODO
DATAFILES= authors.xml svn2cl.xsl svn2html.css svn2html.xsl
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|XSL="$$dir|XSL="${DATADIR}|' ${WRKSRC}/${PORTNAME}.sh
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_MAN} ${WRKSRC}/svn2cl.1 ${STAGEDIR}${PREFIX}/share/man/man1
@${MKDIR} ${STAGEDIR}${DATADIR}
.for i in ${DATAFILES}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DATADIR}
.endfor
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>