aboutsummaryrefslogtreecommitdiff
path: root/japanese/font-mplus-outline
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2015-09-21 14:39:18 +0000
committerHiroki Sato <hrs@FreeBSD.org>2015-09-21 14:39:18 +0000
commitad265cf0428e37c634844ebc48d1ce387e23238c (patch)
tree3a045e67b8c394b823140ccd2dd206b262d9b450 /japanese/font-mplus-outline
parent1c94ac5149393a5d41943c75e0be60c3c131d8da (diff)
downloadports-ad265cf0428e37c634844ebc48d1ce387e23238c.tar.gz
ports-ad265cf0428e37c634844ebc48d1ce387e23238c.zip
- Split japanese/font-mplus into font-mplus-outline and
font-mplus-bitmap. Currently mplus-bitmap and mplus-outline use share/fonts/misc and mplus-outline as the installation directory, respectively. - Convert them to use Uses=fonts.
Notes
Notes: svn path=/head/; revision=397494
Diffstat (limited to 'japanese/font-mplus-outline')
-rw-r--r--japanese/font-mplus-outline/Makefile50
-rw-r--r--japanese/font-mplus-outline/distinfo2
-rw-r--r--japanese/font-mplus-outline/files/20-unhint-mplus.conf33
-rw-r--r--japanese/font-mplus-outline/files/62-fonts-mplus.conf22
-rw-r--r--japanese/font-mplus-outline/files/pkg-install.in91
-rw-r--r--japanese/font-mplus-outline/pkg-descr5
-rw-r--r--japanese/font-mplus-outline/pkg-plist90
7 files changed, 293 insertions, 0 deletions
diff --git a/japanese/font-mplus-outline/Makefile b/japanese/font-mplus-outline/Makefile
new file mode 100644
index 000000000000..c8d3409c0e74
--- /dev/null
+++ b/japanese/font-mplus-outline/Makefile
@@ -0,0 +1,50 @@
+# Created by: The 244th namelessness at 2ch.net
+# $FreeBSD$
+
+PORTNAME= mplus
+PORTVERSION= 0.6.0
+CATEGORIES= japanese x11-fonts
+MASTER_SITES= SFJP/${PORTNAME}-fonts/62344/
+PKGNAMEPREFIX= ja-font-
+PKGNAMESUFFIX= -outline
+DISTNAME= ${PORTNAME}-TESTFLIGHT-060
+
+MAINTAINER= hrs@FreeBSD.org
+COMMENT= M+ Outline Fonts
+
+RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
+ mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
+
+USES= fonts:fc tar:xz
+NO_BUILD= yes
+NO_ARCH= yes
+PKGINSTALL= ${WRKDIR}/pkg-install
+PKGDEINSTALL= ${WRKDIR}/pkg-install
+SUB_FILES= pkg-install
+DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
+DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
+PORTDOCS= LICENSE_E 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 .
+ ${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 \
+ ${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
+
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/japanese/font-mplus-outline/distinfo b/japanese/font-mplus-outline/distinfo
new file mode 100644
index 000000000000..b29c5ae5006e
--- /dev/null
+++ b/japanese/font-mplus-outline/distinfo
@@ -0,0 +1,2 @@
+SHA256 (mplus-TESTFLIGHT-060.tar.xz) = b6914650caa86b9a8cfd682ae643bfb174690513a5aa01b3d75830a6761ae753
+SIZE (mplus-TESTFLIGHT-060.tar.xz) = 9795300
diff --git a/japanese/font-mplus-outline/files/20-unhint-mplus.conf b/japanese/font-mplus-outline/files/20-unhint-mplus.conf
new file mode 100644
index 000000000000..1e0bcaafdb63
--- /dev/null
+++ b/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>
diff --git a/japanese/font-mplus-outline/files/62-fonts-mplus.conf b/japanese/font-mplus-outline/files/62-fonts-mplus.conf
new file mode 100644
index 000000000000..29a6b0b14cdc
--- /dev/null
+++ b/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>
diff --git a/japanese/font-mplus-outline/files/pkg-install.in b/japanese/font-mplus-outline/files/pkg-install.in
new file mode 100644
index 000000000000..5478e83d6b76
--- /dev/null
+++ b/japanese/font-mplus-outline/files/pkg-install.in
@@ -0,0 +1,91 @@
+#!/bin/sh
+# $FreeBSD$
+
+catfontsdir ()
+{
+ while read _IN
+ do
+ case "${_IN}" in
+ *-mplus-*|[0-9]*|"") ;;
+ *) echo ${_IN} ;;
+ esac
+ done
+}
+
+ROMA=""
+ITAL="ai=0.15"
+OBLI="ai=0.15"
+RITA="ai=0.08"
+ROBL="ai=0.08"
+
+make_xlfd()
+{
+ _enc=$1
+ _file=$2
+ _vendor=$3
+ _weight=$4
+ _fname=$5
+ _poc=$6
+
+ case "${_poc}:${_enc}" in
+ p:jisx0201.1976-*) PFIX="bw=0.5" ;;
+ c:jisx0201.1976-*) PFIX="bw=0.5" ;;
+ p:*) PFIX="" ;;
+ c:*) PFIX="" ;;
+ esac
+
+ set -- "${ROMA}" r \
+ ${ITAL} i \
+ ${OBLI} o \
+ ${RITA} ri \
+ ${ROBL} ro;
+ while [ $# != 0 ]; do
+ _prefix="${PFIX}:$1"; shift
+ _variant=$1; shift
+ printf "%s:%s -%s-%s-%s-%s-normal--0-0-0-0-%s-0-%s\n" \
+ $_prefix $_file $_vendor $_fname $_weight $_variant $_poc $_enc
+ done | sed -e 's,::,:,g' -e 's,^:,,'
+}
+
+addentries ()
+{
+ for ENC in iso8859-1 iso10646-1 jisx0201.1976-0 jisx0208.1983-0 jisx0208.1990-0
+ do
+ for W in black bold heavy light medium regular thin
+ do
+ make_xlfd $ENC mplus-1c-${W}.ttf mplus $W 1c p
+ make_xlfd $ENC mplus-2c-${W}.ttf mplus $W 2c p
+ make_xlfd $ENC mplus-1p-${W}.ttf mplus $W 1p p
+ make_xlfd $ENC mplus-2p-${W}.ttf mplus $W 2p p
+ make_xlfd $ENC mplus-1m-${W}.ttf mplus $W 1m c
+ make_xlfd $ENC mplus-1mn-${W}.ttf mplus $W 1mn c
+ make_xlfd $ENC mplus-2m-${W}.ttf mplus $W 2m c
+ done
+ done
+}
+
+nfonts ()
+{
+ _L=0; while read _IN; do _L=$((${_L}+1)); done; echo ${_L}
+}
+
+case "$2" in
+POST-INSTALL)
+ cd %%FONTSDIR%%
+ touch fonts.dir
+ (catfontsdir < fonts.dir; addentries) > fonts.dir.tmp
+ nfonts < fonts.dir.tmp > fonts.dir
+ cat fonts.dir.tmp >> fonts.dir
+ rm -f fonts.dir.tmp
+;;
+DEINSTALL)
+ cd %%FONTSDIR%%
+ catfontsdir < fonts.dir > fonts.dir.tmp
+ nfonts < fonts.dir.tmp > fonts.dir
+ cat fonts.dir.tmp >> fonts.dir
+ rm -f fonts.dir.tmp
+ if [ -r fonts.dir -a `wc -l < fonts.dir` = 1 ]; then
+ rm -f fonts.dir
+ fi
+;;
+esac
diff --git a/japanese/font-mplus-outline/pkg-descr b/japanese/font-mplus-outline/pkg-descr
new file mode 100644
index 000000000000..436fd9033cc9
--- /dev/null
+++ b/japanese/font-mplus-outline/pkg-descr
@@ -0,0 +1,5 @@
+M+ Outline fonts include proportional Latin (4 variations),
+fixed-halfwidth Latin (3 variations) and fixed-fullwidth Japanese
+(2 Kana variations) character set.
+
+WWW: http://mplus-fonts.osdn.jp/mplus-outline-fonts/index-en.html
diff --git a/japanese/font-mplus-outline/pkg-plist b/japanese/font-mplus-outline/pkg-plist
new file mode 100644
index 000000000000..77dd5d26a631
--- /dev/null
+++ b/japanese/font-mplus-outline/pkg-plist
@@ -0,0 +1,90 @@
+%%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
+%%FONTSDIR%%/mplus-1c-light.ttf
+%%FONTSDIR%%/mplus-1c-medium.ttf
+%%FONTSDIR%%/mplus-1c-regular.ttf
+%%FONTSDIR%%/mplus-1c-thin.ttf
+%%FONTSDIR%%/mplus-1m-bold.ttf
+%%FONTSDIR%%/mplus-1m-light.ttf
+%%FONTSDIR%%/mplus-1m-medium.ttf
+%%FONTSDIR%%/mplus-1m-regular.ttf
+%%FONTSDIR%%/mplus-1m-thin.ttf
+%%FONTSDIR%%/mplus-1mn-bold.ttf
+%%FONTSDIR%%/mplus-1mn-light.ttf
+%%FONTSDIR%%/mplus-1mn-medium.ttf
+%%FONTSDIR%%/mplus-1mn-regular.ttf
+%%FONTSDIR%%/mplus-1mn-thin.ttf
+%%FONTSDIR%%/mplus-1p-black.ttf
+%%FONTSDIR%%/mplus-1p-bold.ttf
+%%FONTSDIR%%/mplus-1p-heavy.ttf
+%%FONTSDIR%%/mplus-1p-light.ttf
+%%FONTSDIR%%/mplus-1p-medium.ttf
+%%FONTSDIR%%/mplus-1p-regular.ttf
+%%FONTSDIR%%/mplus-1p-thin.ttf
+%%FONTSDIR%%/mplus-2c-black.ttf
+%%FONTSDIR%%/mplus-2c-bold.ttf
+%%FONTSDIR%%/mplus-2c-heavy.ttf
+%%FONTSDIR%%/mplus-2c-light.ttf
+%%FONTSDIR%%/mplus-2c-medium.ttf
+%%FONTSDIR%%/mplus-2c-regular.ttf
+%%FONTSDIR%%/mplus-2c-thin.ttf
+%%FONTSDIR%%/mplus-2m-bold.ttf
+%%FONTSDIR%%/mplus-2m-light.ttf
+%%FONTSDIR%%/mplus-2m-medium.ttf
+%%FONTSDIR%%/mplus-2m-regular.ttf
+%%FONTSDIR%%/mplus-2m-thin.ttf
+%%FONTSDIR%%/mplus-2p-black.ttf
+%%FONTSDIR%%/mplus-2p-bold.ttf
+%%FONTSDIR%%/mplus-2p-heavy.ttf
+%%FONTSDIR%%/mplus-2p-light.ttf
+%%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