blob: 22c12f1fbdc7bb61b7e93e691711514440da78b5 (
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
|
# Created by: Norberto Lopes <nlopes.ml@gmail.com>
# $FreeBSD$
PORTNAME= anonymous-pro
PORTVERSION= 1.002
CATEGORIES= x11-fonts
MASTER_SITES= http://www.marksimonson.com/assets/content/fonts/
DISTNAME= AnonymousPro-${PORTVERSION}
MAINTAINER= nlopes.ml@gmail.com
COMMENT= A fixed width sans designed especially for coders
LICENSE= OFL
LICENSE_NAME= Open Font License (OFL)
LICENSE_FILE= ${WRKSRC}/OFL.txt
LICENSE_PERMS= auto-accept
RUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
USE_ZIP= yes
NO_BUILD= yes
PLIST_SUB= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}"
FONTSDIR= ${PREFIX}/lib/X11/fonts/${PORTNAME}
SUB_LIST= FONTSDIR=${FONTSDIR}
SUB_FILES= pkg-message
WRKSRC= ${WRKDIR}/${DISTNAME}.001
NO_STAGE= yes
do-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
.endif
@${MKDIR} ${FONTSDIR}
@${INSTALL_DATA} ${WRKSRC}/*.ttf ${FONTSDIR}
post-install:
@${ECHO_MSG} "===> Running fc-cache"
-${LOCALBASE}/bin/fc-cache -f -v ${FONTSDIR}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|