summaryrefslogtreecommitdiff
path: root/x11-fonts/google-fonts/Makefile
blob: ec03802ddd5f324e40f69fa5a3c45262645fb2bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# $FreeBSD$

PORTNAME=	google-fonts
DISTVERSION=	0.0.0.20190118
PORTREVISION=	1
CATEGORIES=	x11-fonts

MAINTAINER=	dg@syrec.org
COMMENT=	Collection of freely redistributable TrueType fonts from Google

LICENSE=	APACHE20 OFL11
LICENSE_COMB=	multi

RUN_DEPENDS=	anonymous-pro>0:x11-fonts/anonymous-pro \
		comfortaa-ttf>0:x11-fonts/comfortaa-ttf \
		croscorefonts>0:x11-fonts/croscorefonts-fonts-ttf \
		noto-basic>0:x11-fonts/noto-basic \
		roboto-fonts-ttf>0:x11-fonts/roboto-fonts-ttf \
		sourcecodepro-ttf>0:x11-fonts/sourcecodepro-ttf \
		sourcesanspro-ttf>0:x11-fonts/sourcesanspro-ttf \
		sourceserifpro-ttf>0:x11-fonts/sourceserifpro-ttf \
		ubuntu-font>0:x11-fonts/ubuntu-font \
		vollkorn-ttf>0:x11-fonts/vollkorn-ttf

USES=		fonts

NO_ARCH=	yes
NO_BUILD=	yes

USE_GITHUB=	yes
GH_ACCOUNT=	google
GH_PROJECT=	fonts
GH_TAGNAME=	1ebe5dc

SUB_FILES=	pkg-message

OPTIONS_DEFINE=	DOCS

# These font families are installed by the RUN_DEPENDS above.
EXCLUSIONS=	ofl/anonymous-pro \
		ofl/comfortaa \
		apache/arimo \
		apache/cousine \
		apache/tinos \
		ofl/notosans \
		ofl/notoserif \
		apache/roboto \
		apache/robotocondensed \
		ofl/sourcecodepro \
		ofl/sourcesanspro \
		ofl/sourceserifpro \
		ufl/* \
		ofl/vollkorn \
		ofl/vollkornsc

do-install:
	@${MKDIR} ${STAGEDIR}${FONTSDIR}
	(cd ${WRKSRC} && ${RM} -r ${EXCLUSIONS})
	${FIND} ${WRKSRC} -name \*.ttf -exec ${INSTALL_DATA} {} ${STAGEDIR}${FONTSDIR} \;

post-install-DOCS-on:
	for dir in $$(${FIND} ${WRKSRC} -name \*.ttf -exec ${DIRNAME} {} \; | ${SORT} -u); do \
		family=$$(${BASENAME} $${dir}); \
		${FIND} $${dir} \( -name \*.txt -o -name \*.html \) -exec \
			${SH} -c "${MKDIR} ${STAGEDIR}${DOCSDIR}/$${family} && \
			${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/$${family}" \; ; \
	done

.include <bsd.port.mk>