freebsd-ports/textproc/docbook-xsl/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

111 lines
3.1 KiB
Makefile

PORTNAME= docbook-xsl
PORTVERSION= 1.79.1
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= textproc
MASTER_SITES= SF/docbook/docbook-xsl/${PORTVERSION}:src \
SF/docbook/docbook-xsl-doc/${PORTVERSION}:doc
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:src
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= XSL DocBook stylesheets
WWW= http://docbook.sourceforge.net/projects/xsl/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= xmlcatmgr:textproc/xmlcatmgr
RUN_DEPENDS= docbook>=0:textproc/docbook \
xmlcatmgr:textproc/xmlcatmgr
USES= tar:bzip2
NO_ARCH= yes
NO_BUILD= yes
INSTDIR= share/xsl/docbook
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
MODULES= common fo html images lib manpages params xhtml
OPTIONS_DEFINE= ECLIPSE EPUB EXTENSIONS HIGHLIGHTING HTMLHELP JAVAHELP \
PROFILING ROUNDTRIP SLIDES TEMPLATE TESTS TOOLS WEBSITE \
XHTML11 DOCS
OPTIONS_DEFAULT=ECLIPSE EPUB EXTENSIONS HIGHLIGHTING HTMLHELP JAVAHELP \
PROFILING ROUNDTRIP SLIDES TEMPLATE TESTS TOOLS WEBSITE \
XHTML11
OPTIONS_SUB= yes
ECLIPSE_DESC= Eclipse modules
EPUB_DESC= Epub modules
EXTENSIONS_DESC= Extensions
HIGHLIGHTING_DESC= highlighting modules
HTMLHELP_DESC= HTML Help modules
JAVAHELP_DESC= Java Help modules
PROFILING_DESC= Profiling modules
ROUNDTRIP_DESC= Roundtrip modules
SLIDES_DESC= Slides modules
TEMPLATE_DESC= Templates
TESTS_DESC= Test tools
TOOLS_DESC= Tools
WEBSITE_DESC= Website modules
XHTML11_DESC= XHTML 1.1 modules
DOCS_DISTFILES= docbook-xsl-doc-${PORTVERSION}${EXTRACT_SUFX}:doc
ECLIPSE_VARS= MODULES+=eclipse
EPUB_VARS= MODULES+=epub
EXTENSIONS_VARS= MODULES+=extensions
HIGHLIGHTING_VARS= MODULES+=highlighting
HTMLHELP_VARS= MODULES+=htmlhelp
JAVAHELP_VARS= MODULES+=javahelp
PROFILING_VARS= MODULES+=profiling
ROUNDTRIP_VARS= MODULES+=roundtrip
SLIDES_VARS= MODULES+=slides
TEMPLATE_VARS= MODULES+=template
TESTS_VARS= MODULES+=tests
TOOLS_VARS= MODULES+=tools
WEBSITE_VARS= MODULES+=website
XHTML11_VARS= MODULES+=xhtml-1_1
.include <bsd.port.options.mk>
post-extract:
${FIND} ${WRKSRC} \( -name '.*' -or -name '*.sh' -or -name '*.LOG' \) -delete
${FIND} ${WRKSRC}/extensions -type d -mindepth 1 -maxdepth 1 -print0 |\
${XARGS} -0 ${RM} -r
do-install:
.for m in ${MODULES}
${MKDIR} ${STAGEDIR}${PREFIX}/${INSTDIR}/${m}
dirs=$$(${FIND} ${WRKSRC}/${m} -type d | ${SED} 's|^${WRKSRC}/${m}||g'); \
for d in $${dirs}; do \
files=$$(${FIND} ${WRKSRC}/${m}/$${d} -type f); \
${MKDIR} ${STAGEDIR}${PREFIX}/${INSTDIR}/${m}/$${d}; \
for i in $${files}; do \
${INSTALL_DATA} $${i} ${STAGEDIR}${PREFIX}/${INSTDIR}/${m}/$${d}; \
done; \
done; \
files=$$(${FIND} ${WRKSRC}/${m} -type f -depth 1); \
for i in $${files}; do \
${INSTALL_DATA} $${i} ${STAGEDIR}${PREFIX}/${INSTDIR}/${m}; \
done
.endfor
files=$$(${FIND} ${WRKSRC} -type f -depth 1); \
for i in $${files}; do \
${INSTALL_DATA} $${i} ${STAGEDIR}${PREFIX}/${INSTDIR}; \
done
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
# maintainer section:
.if defined(MAINTAINER_MODE)
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:src \
docbook-xsl-doc-${PORTVERSION}${EXTRACT_SUFX}:doc
.endif
.include <bsd.port.mk>