Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Dec 2019 04:33:52 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r521438 - head/japanese/font-ipa-uigothic
Message-ID:  <201912300433.xBU4XqVq071852@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hrs
Date: Mon Dec 30 04:33:51 2019
New Revision: 521438
URL: https://svnweb.freebsd.org/changeset/ports/521438

Log:
  - Use FONTPATHSPEC and nuke pkg-message for adding FontPath manually.
  - Add LICENSE.
  - Update MASTER_SITES.
  - Use FONTSDIR consistently.

Modified:
  head/japanese/font-ipa-uigothic/Makefile
  head/japanese/font-ipa-uigothic/distinfo
  head/japanese/font-ipa-uigothic/pkg-plist

Modified: head/japanese/font-ipa-uigothic/Makefile
==============================================================================
--- head/japanese/font-ipa-uigothic/Makefile	Mon Dec 30 04:32:21 2019	(r521437)
+++ head/japanese/font-ipa-uigothic/Makefile	Mon Dec 30 04:33:51 2019	(r521438)
@@ -1,51 +1,49 @@
 # $FreeBSD$
 
-PORTNAME=	ipa-uigothic
+PORTNAME=	ipa
 PORTVERSION=	00203
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	japanese x11-fonts
-MASTER_SITES=	http://info.openlab.ipa.go.jp/ipafont/fontdata/old/
+MASTER_SITES=	https://ipafont.ipa.go.jp/IPAfont/old/
 PKGNAMEPREFIX=	ja-font-
+PKGNAMESUFFIX=	-uigothic
 DISTNAME=	IPAfont${PORTVERSION}
 
 MAINTAINER=	hrs@FreeBSD.org
 COMMENT=	IPA Japanese fonts, UIGothic
 
-# ja-font-mplus-ipa-1.0.20060520.p1 has an old ipagui.ttf
-CONFLICTS=	ja-font-mplus-ipa-1.0.20060520.p1 \
-		ja-ipa-ttfonts-[0-9]*
+LICENSE=	IPAFONTLICOLD
+LICENSE_NAME=	IPA Font License Agreement (old)
+LICENSE_FILE=	${WRKSRC}/enduser_license.txt
+LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
 USES=		fonts:fc zip
-FONTNAME=	TTF
+FONTNAME=	${PORTNAME}${PKGNAMESUFFIX}
+FONTPATHSPEC=	${FONTNAME}:pri=60
 NO_ARCH=	yes
 NO_BUILD=	yes
 PKGINSTALL=	${WRKDIR}/pkg-install
 PKGDEINSTALL=	${WRKDIR}/pkg-install
 SUB_FILES=	pkg-install
-DATADIR=	${PREFIX}/share/font-${PORTNAME}
-PORTDOCS=	enduser_license.txt \
-		Readme${PORTVERSION}.txt
+PORTDOCS=	Readme${PORTVERSION}.txt
 
 OPTIONS_DEFINE=	DOCS
 
 do-install:
-	${MKDIR} ${STAGEDIR}${DATADIR}
-	${INSTALL_DATA} ${WRKSRC}/ipagui.ttf ${STAGEDIR}${DATADIR}
-	${MKDIR} ${STAGEDIR}${FONTSDIR}
-	cd ${STAGEDIR}${FONTSDIR} && ${LN} -s -f \
-	    ../../../${DATADIR_REL}/ipagui.ttf .
-	${MKDIR} ${STAGEDIR}${PREFIX}/etc/fonts/conf.avail \
+	@${MKDIR} ${STAGEDIR}${FONTSDIR}
+	${INSTALL_DATA} ${WRKSRC}/ipagui.ttf ${STAGEDIR}${FONTSDIR}
+	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/fonts/conf.avail \
 	    ${STAGEDIR}${PREFIX}/etc/fonts/conf.d
-	${INSTALL_DATA} ${FILESDIR}/20-unhint-${PORTNAME}.conf \
-	    ${FILESDIR}/62-fonts-${PORTNAME}.conf \
+	${INSTALL_DATA} ${FILESDIR}/20-unhint-${FONTNAME}.conf \
+	    ${FILESDIR}/62-fonts-${FONTNAME}.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
+	${LN} -s -f ../conf.avail/20-unhint-${FONTNAME}.conf \
+	    ${STAGEDIR}${PREFIX}/etc/fonts/conf.d/20-unhint-${FONTNAME}.conf
+	${LN} -s -f ../conf.avail/62-fonts-${FONTNAME}.conf \
+	    ${STAGEDIR}${PREFIX}/etc/fonts/conf.d/62-fonts-${FONTNAME}.conf
 
 post-install-DOCS-on:
-	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/japanese/font-ipa-uigothic/distinfo
==============================================================================
--- head/japanese/font-ipa-uigothic/distinfo	Mon Dec 30 04:32:21 2019	(r521437)
+++ head/japanese/font-ipa-uigothic/distinfo	Mon Dec 30 04:33:51 2019	(r521438)
@@ -1,2 +1,3 @@
+TIMESTAMP = 1577672476
 SHA256 (IPAfont00203.zip) = ab6799af23903c1ee180e9c784d0b32b4f0b140f28df6980bdb0294f396c6a9e
 SIZE (IPAfont00203.zip) = 16045502

Modified: head/japanese/font-ipa-uigothic/pkg-plist
==============================================================================
--- head/japanese/font-ipa-uigothic/pkg-plist	Mon Dec 30 04:32:21 2019	(r521437)
+++ head/japanese/font-ipa-uigothic/pkg-plist	Mon Dec 30 04:33:51 2019	(r521438)
@@ -1,6 +1,5 @@
-%%DATADIR%%/ipagui.ttf
+%%FONTSDIR%%/ipagui.ttf
 etc/fonts/conf.avail/20-unhint-ipa-uigothic.conf
 etc/fonts/conf.avail/62-fonts-ipa-uigothic.conf
 etc/fonts/conf.d/20-unhint-ipa-uigothic.conf
 etc/fonts/conf.d/62-fonts-ipa-uigothic.conf
-%%FONTSDIR%%/ipagui.ttf



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912300433.xBU4XqVq071852>