svn commit: r521451 - in head/japanese/font-mona-ttf: . files
Hiroki Sato
hrs at FreeBSD.org
Mon Dec 30 04:51:16 UTC 2019
Author: hrs
Date: Mon Dec 30 04:51:16 2019
New Revision: 521451
URL: https://svnweb.freebsd.org/changeset/ports/521451
Log:
- Add LICENSE.
- Use FONTPATHSPEC.
- Remove pkg-install to modify fonts.dir.
- Use FONTSDIR consistently.
Deleted:
head/japanese/font-mona-ttf/files/pkg-install.in
Modified:
head/japanese/font-mona-ttf/Makefile
Modified: head/japanese/font-mona-ttf/Makefile
==============================================================================
--- head/japanese/font-mona-ttf/Makefile Mon Dec 30 04:49:27 2019 (r521450)
+++ head/japanese/font-mona-ttf/Makefile Mon Dec 30 04:51:16 2019 (r521451)
@@ -3,6 +3,7 @@
PORTNAME= mona
PORTVERSION= 2.90
+PORTREVISION= 1
CATEGORIES= japanese x11-fonts
MASTER_SITES= SF/monafont/monafont/monafont-${PORTVERSION}
PKGNAMEPREFIX= ja-font-
@@ -12,27 +13,20 @@ DISTNAME= monafont-ttf-${PORTVERSION}
MAINTAINER= nobutaka at FreeBSD.org
COMMENT= TrueType Kanji fonts
+LICENSE= PD
+
USES= fonts:fc zip
-FONTNAME= TTF
+FONTPATHSPEC= ${FONTNAME}:pri=60
+FONTNAME= ${PORTNAME}${PKGNAMESUFFIX}
NO_ARCH= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
-SUB_FILES= pkg-install
-SUB_LIST= DIRFILE="${DATADIR}/fonts.dir"
-PKGINSTALL= ${WRKDIR}/pkg-install
-PKGDEINSTALL= ${WRKDIR}/pkg-install
-MAKE_ENV= FONTSDIR=${FONTSDIR:S,${PREFIX},,}
-PLIST_FILES= %%DATADIR%%/fonts.dir \
- %%DATADIR%%/mona.ttf \
- %%FONTSDIR%%/mona.ttf
+PLIST_FILES= ${FONTSDIR:S,${PREFIX}/,,}/fonts.dir \
+ ${FONTSDIR:S,${PREFIX}/,,}/mona.ttf
do-install:
- @${MKDIR} ${STAGEDIR}${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/mona.ttf ${FILESDIR}/fonts.dir \
- ${STAGEDIR}${DATADIR}
-
@${MKDIR} ${STAGEDIR}${FONTSDIR}
- cd ${STAGEDIR}${FONTSDIR} && \
- ${LN} -s ../../../${DATADIR_REL}/*.ttf .
+ ${INSTALL_DATA} ${WRKSRC}/mona.ttf ${FILESDIR}/fonts.dir \
+ ${STAGEDIR}${FONTSDIR}
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list