Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Dec 2019 04:57:40 +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: r521455 - in head/japanese/font-mplus-outline: . files
Message-ID:  <201912300457.xBU4veNV085653@repo.freebsd.org>

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

Log:
  - Update to 0.6.3..
  - Add LICENSE.
  - Use FONTPATHSPEC.
  - Use FONTSDIR consistently.

Added:
  head/japanese/font-mplus-outline/files/20-unhint-mplus-outline.conf
     - copied unchanged from r521454, head/japanese/font-mplus-outline/files/20-unhint-mplus.conf
  head/japanese/font-mplus-outline/files/62-fonts-mplus-outline.conf
     - copied unchanged from r521454, head/japanese/font-mplus-outline/files/62-fonts-mplus.conf
Deleted:
  head/japanese/font-mplus-outline/files/20-unhint-mplus.conf
  head/japanese/font-mplus-outline/files/62-fonts-mplus.conf
Modified:
  head/japanese/font-mplus-outline/Makefile
  head/japanese/font-mplus-outline/distinfo
  head/japanese/font-mplus-outline/pkg-plist

Modified: head/japanese/font-mplus-outline/Makefile
==============================================================================
--- head/japanese/font-mplus-outline/Makefile	Mon Dec 30 04:54:02 2019	(r521454)
+++ head/japanese/font-mplus-outline/Makefile	Mon Dec 30 04:57:40 2019	(r521455)
@@ -2,49 +2,48 @@
 # $FreeBSD$
 
 PORTNAME=	mplus
-PORTVERSION=	0.6.0
-PORTREVISION=	1
+PORTVERSION=	0.6.3
 CATEGORIES=	japanese x11-fonts
 MASTER_SITES=	OSDN/${PORTNAME}-fonts/62344/
 PKGNAMEPREFIX=	ja-font-
 PKGNAMESUFFIX=	-outline
-DISTNAME=	${PORTNAME}-TESTFLIGHT-060
+DISTNAME=	${PORTNAME}-TESTFLIGHT-063a
 
 MAINTAINER=	hrs@FreeBSD.org
 COMMENT=	M+ Outline Fonts
 
-BROKEN=		unfetchable
+LICENSE=	PD
+LICENSE_FILE=	${WRKSRC}/LICENSE_E
 
 RUN_DEPENDS=	mkfontscale>=0:x11-fonts/mkfontscale \
 		mkfontscale:x11-fonts/mkfontscale
 
 USES=		fonts:fc tar:xz
+FONTNAME=	${PORTNAME}${PKGNAMESUFFIX}
+FONTPATHSPEC=	${FONTNAME}:pri=60
 NO_BUILD=	yes
 NO_ARCH=	yes
 PKGINSTALL=	${WRKDIR}/pkg-install
 PKGDEINSTALL=	${WRKDIR}/pkg-install
 SUB_FILES=	pkg-install
-DATADIR=	${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
+PLIST_SUB=	FONTSDIR="${FONTSDIR}"
 DOCSDIR=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
-PORTDOCS=	LICENSE_E README_E LICENSE_J README_J
+PORTDOCS=	README_E LICENSE_J README_J
 
 OPTIONS_DEFINE=	DOCS
 
 do-install:
-	${MKDIR} ${STAGEDIR}${DATADIR}
-	${INSTALL_DATA} ${WRKSRC}/*.ttf ${STAGEDIR}${DATADIR}
 	${MKDIR} ${STAGEDIR}${FONTSDIR}
-	cd ${STAGEDIR}${FONTSDIR} && ${LN} -s -f \
-	    ../../../${DATADIR_REL}/*.ttf .
+	${INSTALL_DATA} ${WRKSRC}/*.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}

Modified: head/japanese/font-mplus-outline/distinfo
==============================================================================
--- head/japanese/font-mplus-outline/distinfo	Mon Dec 30 04:54:02 2019	(r521454)
+++ head/japanese/font-mplus-outline/distinfo	Mon Dec 30 04:57:40 2019	(r521455)
@@ -1,2 +1,3 @@
-SHA256 (mplus-TESTFLIGHT-060.tar.xz) = b6914650caa86b9a8cfd682ae643bfb174690513a5aa01b3d75830a6761ae753
-SIZE (mplus-TESTFLIGHT-060.tar.xz) = 9795300
+TIMESTAMP = 1577670467
+SHA256 (mplus-TESTFLIGHT-063a.tar.xz) = 44eb973b4b6aff574de454db105ddc23e6749c2294734bd9cb1e0d734e4cdd79
+SIZE (mplus-TESTFLIGHT-063a.tar.xz) = 10371708

Copied: head/japanese/font-mplus-outline/files/20-unhint-mplus-outline.conf (from r521454, head/japanese/font-mplus-outline/files/20-unhint-mplus.conf)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/japanese/font-mplus-outline/files/20-unhint-mplus-outline.conf	Mon Dec 30 04:57:40 2019	(r521455, copy of r521454, head/japanese/font-mplus-outline/files/20-unhint-mplus.conf)
@@ -0,0 +1,33 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<!-- $FreeBSD$ -->
+<fontconfig>
+	<match target="font">
+		<or>
+			<test name="family">
+				<string>M+ 1c</string>
+			</test>
+			<test name="family">
+				<string>M+ 1m</string>
+			</test>
+			<test name="family">
+				<string>M+ 1mn</string>
+			</test>
+			<test name="family">
+				<string>M+ 1p</string>
+			</test>
+			<test name="family">
+				<string>M+ 2c</string>
+			</test>
+			<test name="family">
+				<string>M+ 2m</string>
+			</test>
+			<test name="family">
+				<string>M+ 2p</string>
+			</test>
+		</or>
+		<edit name="autohint">
+			<bool>false</bool>
+		</edit>
+	</match>
+</fontconfig>

Copied: head/japanese/font-mplus-outline/files/62-fonts-mplus-outline.conf (from r521454, head/japanese/font-mplus-outline/files/62-fonts-mplus.conf)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/japanese/font-mplus-outline/files/62-fonts-mplus-outline.conf	Mon Dec 30 04:57:40 2019	(r521455, copy of r521454, head/japanese/font-mplus-outline/files/62-fonts-mplus.conf)
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<!-- $FreeBSD$ -->
+<fontconfig>
+	<alias>
+		<family>sans-serif</family>
+		<prefer>
+			<family>M+ 1c</family>
+			<family>M+ 1p</family>
+			<family>M+ 2c</family>
+			<family>M+ 2p</family>
+		</prefer>
+	</alias>
+	<alias>
+		<family>monospace</family>
+		<prefer>
+			<family>M+ 1m</family>
+			<family>M+ 2m</family>
+			<family>M+ 1mn</family>
+		</prefer>
+	</alias>
+</fontconfig>

Modified: head/japanese/font-mplus-outline/pkg-plist
==============================================================================
--- head/japanese/font-mplus-outline/pkg-plist	Mon Dec 30 04:54:02 2019	(r521454)
+++ head/japanese/font-mplus-outline/pkg-plist	Mon Dec 30 04:57:40 2019	(r521455)
@@ -1,46 +1,3 @@
-%%DATADIR%%/mplus-1c-black.ttf
-%%DATADIR%%/mplus-1c-bold.ttf
-%%DATADIR%%/mplus-1c-heavy.ttf
-%%DATADIR%%/mplus-1c-light.ttf
-%%DATADIR%%/mplus-1c-medium.ttf
-%%DATADIR%%/mplus-1c-regular.ttf
-%%DATADIR%%/mplus-1c-thin.ttf
-%%DATADIR%%/mplus-1m-bold.ttf
-%%DATADIR%%/mplus-1m-light.ttf
-%%DATADIR%%/mplus-1m-medium.ttf
-%%DATADIR%%/mplus-1m-regular.ttf
-%%DATADIR%%/mplus-1m-thin.ttf
-%%DATADIR%%/mplus-1mn-bold.ttf
-%%DATADIR%%/mplus-1mn-light.ttf
-%%DATADIR%%/mplus-1mn-medium.ttf
-%%DATADIR%%/mplus-1mn-regular.ttf
-%%DATADIR%%/mplus-1mn-thin.ttf
-%%DATADIR%%/mplus-1p-black.ttf
-%%DATADIR%%/mplus-1p-bold.ttf
-%%DATADIR%%/mplus-1p-heavy.ttf
-%%DATADIR%%/mplus-1p-light.ttf
-%%DATADIR%%/mplus-1p-medium.ttf
-%%DATADIR%%/mplus-1p-regular.ttf
-%%DATADIR%%/mplus-1p-thin.ttf
-%%DATADIR%%/mplus-2c-black.ttf
-%%DATADIR%%/mplus-2c-bold.ttf
-%%DATADIR%%/mplus-2c-heavy.ttf
-%%DATADIR%%/mplus-2c-light.ttf
-%%DATADIR%%/mplus-2c-medium.ttf
-%%DATADIR%%/mplus-2c-regular.ttf
-%%DATADIR%%/mplus-2c-thin.ttf
-%%DATADIR%%/mplus-2m-bold.ttf
-%%DATADIR%%/mplus-2m-light.ttf
-%%DATADIR%%/mplus-2m-medium.ttf
-%%DATADIR%%/mplus-2m-regular.ttf
-%%DATADIR%%/mplus-2m-thin.ttf
-%%DATADIR%%/mplus-2p-black.ttf
-%%DATADIR%%/mplus-2p-bold.ttf
-%%DATADIR%%/mplus-2p-heavy.ttf
-%%DATADIR%%/mplus-2p-light.ttf
-%%DATADIR%%/mplus-2p-medium.ttf
-%%DATADIR%%/mplus-2p-regular.ttf
-%%DATADIR%%/mplus-2p-thin.ttf
 %%FONTSDIR%%/mplus-1c-black.ttf
 %%FONTSDIR%%/mplus-1c-bold.ttf
 %%FONTSDIR%%/mplus-1c-heavy.ttf
@@ -84,7 +41,7 @@
 %%FONTSDIR%%/mplus-2p-medium.ttf
 %%FONTSDIR%%/mplus-2p-regular.ttf
 %%FONTSDIR%%/mplus-2p-thin.ttf
-etc/fonts/conf.avail/20-unhint-mplus.conf
-etc/fonts/conf.avail/62-fonts-mplus.conf
-etc/fonts/conf.d/20-unhint-mplus.conf
-etc/fonts/conf.d/62-fonts-mplus.conf
+etc/fonts/conf.avail/20-unhint-mplus-outline.conf
+etc/fonts/conf.avail/62-fonts-mplus-outline.conf
+etc/fonts/conf.d/20-unhint-mplus-outline.conf
+etc/fonts/conf.d/62-fonts-mplus-outline.conf



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