freebsd-ports/x11-fonts/powerline-fonts/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

66 lines
2.1 KiB
Makefile

PORTNAME= powerline-fonts
PORTVERSION= 0.0.0.2020.08.28
CATEGORIES= x11-fonts
MAINTAINER= swills@FreeBSD.org
COMMENT= Fixed width sans fonts for use with powerline
WWW= https://github.com/powerline/fonts
USES= fonts
USE_GITHUB= yes
GH_ACCOUNT= powerline
GH_PROJECT= fonts
GH_TAGNAME= e80e3eb
NO_ARCH= yes
NO_BUILD= yes
TTF_FONTS= 3270 AnonymousPro Arimo Cousine DejaVuSansMono \
DroidSansMonoDotted DroidSansMonoSlashed GoMono Hack \
Inconsolata LiberationMono Meslo\ Dotted Meslo\ Slashed Monofur \
NotoMono NovaMono ProFont RobotoMono SpaceMono SymbolNeu Tinos \
UbuntuMono
OTF_FONTS= DroidSansMono FiraMono Inconsolata Inconsolata-g InconsolataDz \
SourceCodePro
PCF_FONTS= Terminus
DOCDIRS= 3270 AnonymousPro Arimo Cousine DejaVuSansMono DroidSansMono \
DroidSansMonoDotted DroidSansMonoSlashed FiraMono GoMono Hack \
Inconsolata Inconsolata-g InconsolataDz InputMono \
LiberationMono Meslo\ Dotted Meslo\ Slashed NotoMono NovaMono \
ProFont RobotoMono SourceCodePro SpaceMono SymbolNeu Terminus \
Tinos UbuntuMono
LICDIRS= AnonymousPro Arimo Cousine DejaVuSansMono DroidSansMono \
DroidSansMonoDotted DroidSansMonoSlashed FiraMono Hack \
Inconsolata Inconsolata-g InconsolataDz LiberationMono \
Meslo\ Dotted Meslo\ Slashed Monofur NovaMono RobotoMono \
SourceCodePro SpaceMono SymbolNeu Terminus Tinos
SUB_FILES= pkg-message
OPTIONS_DEFINE= DOCS
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for dir in ${DOCDIRS}
${CP} ${WRKSRC}/${dir}/README.rst ${STAGEDIR}${DOCSDIR}/README_${dir}.rst
.endfor
.for dir in ${LICDIRS}
${CP} ${WRKSRC}/${dir}/LICENSE.txt ${STAGEDIR}${DOCSDIR}/LICENSE_${dir}.txt
.endfor
${CP} ${WRKSRC}/NotoMono/LICENSE_OFL.txt ${STAGEDIR}${DOCSDIR}/LICENSE_NotoMono_OFL.txt
${CP} ${WRKSRC}/ProFont/LICENSE ${STAGEDIR}${DOCSDIR}/LICENSE_ProFont.txt
do-install:
${MKDIR} ${STAGEDIR}${FONTSDIR}
.for font in ${OTF_FONTS}
${INSTALL_DATA} ${WRKSRC}/${font}/*.otf ${STAGEDIR}${FONTSDIR}
.endfor
.for font in ${TTF_FONTS}
${INSTALL_DATA} ${WRKSRC}/${font}/*.ttf ${STAGEDIR}${FONTSDIR}
.endfor
.for font in ${PCF_FONTS}
${INSTALL_DATA} ${WRKSRC}/${font}/PCF/*.pcf.gz ${STAGEDIR}${FONTSDIR}
.endfor
.include <bsd.port.mk>