freebsd-ports/devel/cvsbook/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

65 lines
1.8 KiB
Makefile

PORTNAME= cvsbook
PORTVERSION= 1.21
PORTREVISION= 3
CATEGORIES= devel
MASTER_SITES= http://cvsbook.red-bean.com/
DISTNAME= ${PORTNAME}-${PORTVERSION}-all
MAINTAINER= ports@FreeBSD.org
COMMENT= Tutorial and reference for CVS
WWW= http://cvsbook.red-bean.com/
LICENSE= GPLv2+
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
NO_ARCH= yes
OPTIONS_MULTI= CVSBOOK
OPTIONS_MULTI_CVSBOOK= INFO SINGLE_HTML SPLIT_HTML POSTSCRIPT PDF
OPTIONS_DEFAULT= INFO SINGLE_HTML POSTSCRIPT PDF
OPTIONS_SUB= yes
INFO_DESC= Install the info version
SINGLE_HTML_DESC= Install the single HTML version
SPLIT_HTML_DESC= Install the split HTML version
POSTSCRIPT_DESC= Install the Postscript version
PDF_DESC= Install the PDF version
SPLIT_HTML_ALL_TARGET= html-distributed
SPLIT_HTML_VARS_OFF= NO_BUILD=yes
INFO_INFO= cvsbook
INFO_VARS= INFODIR=${PREFIX}/${INFO_PATH}
post-patch-SPLIT_HTML-on:
@${REINPLACE_CMD} -e \
'/Non-monolithic HTML not supported/s|@.*|makeinfo --html main.texi|' \
${WRKSRC}/Makefile
do-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
do-install-SPLIT_HTML-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/cvsbook-shtml
${INSTALL_DATA} ${WRKSRC}/cvsbook/*.html ${STAGEDIR}${DOCSDIR}/cvsbook-shtml
do-install-SINGLE_HTML-on:
${INSTALL_DATA} ${WRKSRC}/cvsbook.html ${STAGEDIR}${DOCSDIR}
do-install-PDF-on:
${INSTALL_DATA} ${WRKSRC}/cvsbook.pdf ${STAGEDIR}${DOCSDIR}
do-install-POSTSCRIPT-on:
${INSTALL_DATA} ${WRKSRC}/cvsbook.ps ${STAGEDIR}${DOCSDIR}
do-install-INFO-on:
@${MKDIR} ${STAGEDIR}${INFODIR}
${INSTALL_DATA} ${WRKSRC}/cvsbook.info* ${STAGEDIR}${INFODIR}
post-install:
@${RMDIR} ${STAGEDIR}${DOCSDIR} >/dev/null 2>&1 || ${TRUE} # remove if empty
@if [ -d ${STAGEDIR}${DOCSDIR} ]; then \
${FIND} ${STAGEDIR}${DOCSDIR} -type f | \
${SED} 's|^${STAGEDIR}${PREFIX}/||' > ${TMPPLIST}; \
fi
.include <bsd.port.mk>