blob: c47a110c32c76520f39419d6905657340bae8549 (
plain) (
blame)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
# Created by: masaki
# $FreeBSD$
PORTNAME= ricty
PORTVERSION= 3.2.4
PORTREVISION= 3
CATEGORIES= japanese x11-fonts
PKGNAMEPREFIX= ja-font-
MAINTAINER?= meta+ports@vmeta.jp
COMMENT?= Ricty - fonts for programming
RUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
BUILD_DEPENDS= ${LOCALBASE}/share/fonts/inconsolata/Inconsolata.otf:${PORTSDIR}/x11-fonts/inconsolata-ttf \
${LOCALBASE}/share/fonts/TTF/migu-1m-regular.ttf:${PORTSDIR}/japanese/font-migu \
${LOCALBASE}/share/fonts/TTF/migu-1m-bold.ttf:${PORTSDIR}/japanese/font-migu \
fontforge:${PORTSDIR}/print/fontforge
USES= fonts
USE_GITHUB= yes
GH_ACCOUNT= yascentur
GH_PROJECT= Ricty
GH_COMMIT= c22daa9
NO_PACKAGE= redistribution is not allowed
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-install
SUB_FILES= pkg-install
FONTNAME= TTF
.if !defined(PKGNAMESUFFIX)
OPTIONS_DEFINE= DISCORD DOCS
DISCORD_DESC= Install Ricty-Discord
OPTIONS_DEFAULT= DISCORD
PORTDOCS= README.md
.endif
.include <bsd.port.options.mk>
.if !defined(PKGNAMESUFFIX)
PLIST_SUB+= DISCORD="@comment " RICTY=""
SUB_LIST+= DISCORD=\# RICTY=""
.else
PLIST_SUB+= DISCORD="" RICTY="@comment "
SUB_LIST+= DISCORD="" RICTY=\#
.endif
.if ${PORT_OPTIONS:MDISCORD}
RUN_DEPENDS+= ${DATADIR}/RictyDiscord-Regular.ttf:${PORTSDIR}/japanese/font-ricty-discord
.endif
do-build:
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${SH} ${WRKSRC}/ricty_generator.sh \
${PREFIX}/share/fonts/inconsolata/Inconsolata.otf \
${PREFIX}/share/fonts/TTF/migu-1m-regular.ttf \
${PREFIX}/share/fonts/TTF/migu-1m-bold.ttf
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}
${MKDIR} ${STAGEDIR}${FONTSDIR}
${MKDIR} ${STAGEDIR}${PREFIX}/etc/fonts/conf.avail \
${STAGEDIR}${PREFIX}/etc/fonts/conf.d
.if !defined(PKGNAMESUFFIX)
${INSTALL_DATA} ${WRKSRC}/Ricty-*.ttf ${STAGEDIR}${DATADIR}
cd ${STAGEDIR}${FONTSDIR} && ${LN} -s -f \
../../../${DATADIR_REL}/Ricty-*.ttf .
${INSTALL_DATA} ${FILESDIR}/20-unhint-${PORTNAME}.conf \
${FILESDIR}/62-fonts-${PORTNAME}.conf \
${STAGEDIR}${PREFIX}/etc/fonts/conf.avail
${LN} -s -f ../conf.avail/20-unhint-${PORTNAME}.conf \
${STAGEDIR}${PREFIX}/etc/fonts/conf.d/20-unhint-${PORTNAME}.conf
${LN} -s -f ../conf.avail/62-fonts-${PORTNAME}.conf \
${STAGEDIR}${PREFIX}/etc/fonts/conf.d/62-fonts-${PORTNAME}.conf
.else
${INSTALL_DATA} ${WRKSRC}/RictyDiscord-*.ttf ${STAGEDIR}${DATADIR}
cd ${STAGEDIR}${FONTSDIR} && ${LN} -s -f \
../../../${DATADIR_REL}/RictyDiscord-*.ttf .
${INSTALL_DATA} ${FILESDIR}/20-unhint-${PORTNAME}discord.conf \
${FILESDIR}/62-fonts-${PORTNAME}discord.conf \
${STAGEDIR}${PREFIX}/etc/fonts/conf.avail
${LN} -s -f ../conf.avail/20-unhint-${PORTNAME}discord.conf \
${STAGEDIR}${PREFIX}/etc/fonts/conf.d/20-unhint-${PORTNAME}discord.conf
${LN} -s -f ../conf.avail/62-fonts-${PORTNAME}discord.conf \
${STAGEDIR}${PREFIX}/etc/fonts/conf.d/62-fonts-${PORTNAME}discord.conf
.endif
.if ${PORT_OPTIONS:MDOCS} && defined(PORTDOCS)
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>
|