aboutsummaryrefslogtreecommitdiff
path: root/japanese/font-ricty
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-03-21 23:43:49 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-03-21 23:43:49 +0000
commit12f8fabbca52e1dea56eac8fac1fe314caecec20 (patch)
tree48aa2346e3af387dea11e2f10831bb0974bdd3e0 /japanese/font-ricty
parentde1de28cb509f1faa6d5d7ebed23f7594ca94164 (diff)
downloadports-12f8fabbca52e1dea56eac8fac1fe314caecec20.tar.gz
ports-12f8fabbca52e1dea56eac8fac1fe314caecec20.zip
Notes
Diffstat (limited to 'japanese/font-ricty')
-rw-r--r--japanese/font-ricty/Makefile35
-rw-r--r--japanese/font-ricty/pkg-plist13
2 files changed, 18 insertions, 30 deletions
diff --git a/japanese/font-ricty/Makefile b/japanese/font-ricty/Makefile
index 98defe0ce467..71b2ae898d2d 100644
--- a/japanese/font-ricty/Makefile
+++ b/japanese/font-ricty/Makefile
@@ -3,7 +3,7 @@
PORTNAME= ricty
PORTVERSION= 3.2.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= japanese x11-fonts
PKGNAMEPREFIX= ja-font-
@@ -11,11 +11,12 @@ MAINTAINER?= meta+ports@vmeta.jp
COMMENT?= Ricty - fonts for programming
RUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
-BUILD_DEPENDS= ${LOCALBASE}/${X_FONTSDIR}/OTF/Inconsolata.otf:${PORTSDIR}/x11-fonts/inconsolata-ttf \
- ${LOCALBASE}/${X_FONTSDIR}/TTF/migu-1m-regular.ttf:${PORTSDIR}/japanese/font-migu \
- ${LOCALBASE}/${X_FONTSDIR}/TTF/migu-1m-bold.ttf:${PORTSDIR}/japanese/font-migu \
+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
@@ -25,12 +26,8 @@ NO_PACKAGE= redistribution is not allowed
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-install
SUB_FILES= pkg-install
-SUB_LIST= X_FONTSDIR=${PREFIX}/${X_FONTSDIR}
-PLIST_SUB= X_FONTSDIR=${X_FONTSDIR} \
- LOCAL_FONTSDIR=${LOCAL_FONTSDIR}
-LOCAL_FONTSDIR= share/fonts
-X_FONTSDIR= share/fonts
+FONTNAME= TTF
.if !defined(PKGNAMESUFFIX)
OPTIONS_DEFINE= DISCORD DOCS
@@ -56,21 +53,19 @@ RUN_DEPENDS+= ${DATADIR}/RictyDiscord-Regular.ttf:${PORTSDIR}/japanese/font-rict
do-build:
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${SH} ${WRKSRC}/ricty_generator.sh \
- ${PREFIX}/${X_FONTSDIR}/OTF/Inconsolata.otf \
- ${PREFIX}/${X_FONTSDIR}/TTF/migu-1m-regular.ttf \
- ${PREFIX}/${X_FONTSDIR}/TTF/migu-1m-bold.ttf
+ ${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}${PREFIX}/${X_FONTSDIR}/TTF
+ ${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}${PREFIX}/${LOCAL_FONTSDIR}/TTF && ${LN} -s -f \
- ../${LOCAL_FONTSDIR:C,[^/]+,..,g}/${DATADIR_REL}/Ricty-*.ttf .
- cd ${STAGEDIR}${PREFIX}/${X_FONTSDIR}/TTF && ${LN} -s -f \
- ../${X_FONTSDIR:C,[^/]+,..,g}/${DATADIR_REL}/Ricty-*.ttf .
+ 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
@@ -80,10 +75,8 @@ do-install:
${STAGEDIR}${PREFIX}/etc/fonts/conf.d/62-fonts-${PORTNAME}.conf
.else
${INSTALL_DATA} ${WRKSRC}/RictyDiscord-*.ttf ${STAGEDIR}${DATADIR}
- cd ${STAGEDIR}${PREFIX}/${LOCAL_FONTSDIR}/TTF && ${LN} -s -f \
- ../${LOCAL_FONTSDIR:C,[^/]+,..,g}/${DATADIR_REL}/RictyDiscord-*.ttf .
- cd ${STAGEDIR}${PREFIX}/${X_FONTSDIR}/TTF && ${LN} -s -f \
- ../${X_FONTSDIR:C,[^/]+,..,g}/${DATADIR_REL}/RictyDiscord-*.ttf .
+ 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
diff --git a/japanese/font-ricty/pkg-plist b/japanese/font-ricty/pkg-plist
index bd580393f3a4..69387fdafa37 100644
--- a/japanese/font-ricty/pkg-plist
+++ b/japanese/font-ricty/pkg-plist
@@ -2,10 +2,6 @@
%%RICTY%%%%DATADIR%%/Ricty-Regular.ttf
%%DISCORD%%%%DATADIR%%/RictyDiscord-Bold.ttf
%%DISCORD%%%%DATADIR%%/RictyDiscord-Regular.ttf
-%%RICTY%%%%LOCAL_FONTSDIR%%/TTF/Ricty-Bold.ttf
-%%RICTY%%%%LOCAL_FONTSDIR%%/TTF/Ricty-Regular.ttf
-%%DISCORD%%%%LOCAL_FONTSDIR%%/TTF/RictyDiscord-Bold.ttf
-%%DISCORD%%%%LOCAL_FONTSDIR%%/TTF/RictyDiscord-Regular.ttf
%%RICTY%%etc/fonts/conf.avail/20-unhint-ricty.conf
%%RICTY%%etc/fonts/conf.avail/62-fonts-ricty.conf
%%RICTY%%etc/fonts/conf.d/20-unhint-ricty.conf
@@ -14,8 +10,7 @@
%%DISCORD%%etc/fonts/conf.avail/62-fonts-rictydiscord.conf
%%DISCORD%%etc/fonts/conf.d/20-unhint-rictydiscord.conf
%%DISCORD%%etc/fonts/conf.d/62-fonts-rictydiscord.conf
-%%RICTY%%%%X_FONTSDIR%%/TTF/Ricty-Bold.ttf
-%%RICTY%%%%X_FONTSDIR%%/TTF/Ricty-Regular.ttf
-%%DISCORD%%%%X_FONTSDIR%%/TTF/RictyDiscord-Bold.ttf
-%%DISCORD%%%%X_FONTSDIR%%/TTF/RictyDiscord-Regular.ttf
-@fc %%X_FONTSDIR%%/TTF
+%%RICTY%%%%FONTSDIR%%/Ricty-Bold.ttf
+%%RICTY%%%%FONTSDIR%%/Ricty-Regular.ttf
+%%DISCORD%%%%FONTSDIR%%/RictyDiscord-Bold.ttf
+%%DISCORD%%%%FONTSDIR%%/RictyDiscord-Regular.ttf