From owner-svn-ports-head@FreeBSD.ORG Wed Feb 12 19:05:45 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9ADBDDF5; Wed, 12 Feb 2014 19:05:45 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 81E1C12F0; Wed, 12 Feb 2014 19:05:45 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s1CJ5jkH036769; Wed, 12 Feb 2014 19:05:45 GMT (envelope-from swills@svn.freebsd.org) Received: (from swills@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s1CJ5haE036760; Wed, 12 Feb 2014 19:05:43 GMT (envelope-from swills@svn.freebsd.org) Message-Id: <201402121905.s1CJ5haE036760@svn.freebsd.org> From: Steve Wills Date: Wed, 12 Feb 2014 19:05:43 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r343955 - in head/japanese: . font-koruri font-koruri/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Feb 2014 19:05:45 -0000 Author: swills Date: Wed Feb 12 19:05:43 2014 New Revision: 343955 URL: http://svnweb.freebsd.org/changeset/ports/343955 QAT: https://qat.redports.org/buildarchive/r343955/ Log: Koruri Japanese TrueType fonts. WWW: http://koruri.lindwurm.biz/ PR: ports/186673 Submitted by: Koichiro IWAO Added: head/japanese/font-koruri/ head/japanese/font-koruri/Makefile (contents, props changed) head/japanese/font-koruri/distinfo (contents, props changed) head/japanese/font-koruri/files/ head/japanese/font-koruri/files/20-unhint-koruri.conf (contents, props changed) head/japanese/font-koruri/files/62-fonts-koruri.conf (contents, props changed) head/japanese/font-koruri/files/pkg-install.in (contents, props changed) head/japanese/font-koruri/pkg-descr (contents, props changed) head/japanese/font-koruri/pkg-plist (contents, props changed) Modified: head/japanese/Makefile Modified: head/japanese/Makefile ============================================================================== --- head/japanese/Makefile Wed Feb 12 18:56:40 2014 (r343954) +++ head/japanese/Makefile Wed Feb 12 19:05:43 2014 (r343955) @@ -78,6 +78,7 @@ SUBDIR += font-ipaex SUBDIR += font-jisx0213 SUBDIR += font-kochi + SUBDIR += font-koruri SUBDIR += font-migmix SUBDIR += font-migu SUBDIR += font-mona-ipa Added: head/japanese/font-koruri/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-koruri/Makefile Wed Feb 12 19:05:43 2014 (r343955) @@ -0,0 +1,64 @@ +# Created by: Koichiro IWAO +# $FreeBSD$ + +PORTNAME= koruri +PORTVERSION= 20131228 +CATEGORIES= japanese x11-fonts +MASTER_SITES= SFJP/koruri/60169 +PKGNAMEPREFIX= ja-font- +DISTNAME= Koruri-${PORTVERSION} + +MAINTAINER= meta+ports@vmeta.jp +COMMENT= Koruri Japanese TrueType fonts + +LICENSE= APACHE20 + +RUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig + +USE_XZ= yes +NO_BUILD= yes +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} +DATADIR= ${PREFIX}/share/font-${PORTNAME} +PORTDOCS= README + +LOCAL_FONTSDIR= share/fonts +X_FONTSDIR= lib/X11/fonts + +OPTIONS_DEFINE= DOCS + +.include + +do-install: + ${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/*.ttf ${STAGEDIR}${DATADIR} + ${MKDIR} ${STAGEDIR}${PREFIX}/${LOCAL_FONTSDIR}/TTF + cd ${STAGEDIR}${PREFIX}/${LOCAL_FONTSDIR}/TTF && ${LN} -s -f \ + ../${LOCAL_FONTSDIR:C,[^/]+,..,g}/${DATADIR_REL}/*.ttf . + ${MKDIR} ${STAGEDIR}${PREFIX}/${X_FONTSDIR}/TTF + cd ${STAGEDIR}${PREFIX}/${X_FONTSDIR}/TTF && ${LN} -s -f \ + ../${X_FONTSDIR:C,[^/]+,..,g}/${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-su-install: + ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + +.if ${PORT_OPTIONS:MDOCS} +post-install: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} +.endif + +.include Added: head/japanese/font-koruri/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-koruri/distinfo Wed Feb 12 19:05:43 2014 (r343955) @@ -0,0 +1,2 @@ +SHA256 (Koruri-20131228.tar.xz) = 815c4f53ee63fda58c03b73fe6ed7101fe563477a8ff2e8a48ff8c11a20c8ecb +SIZE (Koruri-20131228.tar.xz) = 23724396 Added: head/japanese/font-koruri/files/20-unhint-koruri.conf ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-koruri/files/20-unhint-koruri.conf Wed Feb 12 19:05:43 2014 (r343955) @@ -0,0 +1,15 @@ + + + + + + + + Koruri + + + + false + + + Added: head/japanese/font-koruri/files/62-fonts-koruri.conf ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-koruri/files/62-fonts-koruri.conf Wed Feb 12 19:05:43 2014 (r343955) @@ -0,0 +1,17 @@ + + + + + + sans-serif + + Koruri + + + + monospace + + Koruri + + + Added: head/japanese/font-koruri/files/pkg-install.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-koruri/files/pkg-install.in Wed Feb 12 19:05:43 2014 (r343955) @@ -0,0 +1,98 @@ +#!/bin/sh +# $FreeBSD$ + +X_FONTSDIR=%%X_FONTSDIR%%/TTF + +catfontsdir () +{ + while read _IN + do + case "${_IN}" in + *-koruri-*|[0-9]*|"") ;; + *) echo ${_IN} ;; + esac + done +} + +ROMA="" +BOLD="ds=y" +ITAL="ai=0.15" +OBLI="ai=0.15" +RITA="ai=0.08" +ROBL="ai=0.08" + +make_xlfd() +{ + _enc=$1 + _file=$2 + _vendor=$3 + _fname=$4 + _poc=$5 + + 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}" medium-r \ + ${BOLD} bold-r \ + ${ITAL} medium-i \ + ${ITAL}:${BOLD} bold-i \ + ${OBLI} medium-o \ + ${OBLI}:${BOLD} bold-o \ + ${RITA} medium-ri \ + ${RITA}:${BOLD} bold-ri \ + ${ROBL} medium-ro \ + ${ROBL}:${BOLD} bold-ro + while [ $# != 0 ]; do + _prefix="${PFIX}:$1"; shift + _variant=$1; shift + printf "%s:%s -%s-%s-%s-normal--0-0-0-0-%s-0-%s\n" \ + $_prefix $_file $_vendor $_fname $_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 + make_xlfd $ENC Koruri-Bold.ttf koruri gothic p + make_xlfd $ENC Koruri-Bold.ttf koruri gothic c + make_xlfd $ENC Koruri-Extrabold.ttf koruri gothic p + make_xlfd $ENC Koruri-Extrabold.ttf koruri gothic c + make_xlfd $ENC Koruri-Light.ttf koruri gothic p + make_xlfd $ENC Koruri-Light.ttf koruri gothic c + make_xlfd $ENC Koruri-Semibold.ttf koruri gothic p + make_xlfd $ENC Koruri-Semibold.ttf koruri gothic c + make_xlfd $ENC Koruri.ttf koruri gothic p + make_xlfd $ENC Koruri.ttf koruri gothic c + done +} + +nfonts () +{ + _L=0; while read _IN; do _L=$((${_L}+1)); done; echo ${_L} +} + +case "$2" in +POST-INSTALL) + cd ${X_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 ${X_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 Added: head/japanese/font-koruri/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-koruri/pkg-descr Wed Feb 12 19:05:43 2014 (r343955) @@ -0,0 +1,3 @@ +Koruri Japanese TrueType fonts. + +WWW: http://koruri.lindwurm.biz/ Added: head/japanese/font-koruri/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-koruri/pkg-plist Wed Feb 12 19:05:43 2014 (r343955) @@ -0,0 +1,27 @@ +%%DATADIR%%/Koruri-Bold.ttf +%%DATADIR%%/Koruri-Extrabold.ttf +%%DATADIR%%/Koruri-Light.ttf +%%DATADIR%%/Koruri-Semibold.ttf +%%DATADIR%%/Koruri.ttf +@dirrmtry %%DATADIR%% +%%LOCAL_FONTSDIR%%/TTF/Koruri-Bold.ttf +%%LOCAL_FONTSDIR%%/TTF/Koruri-Extrabold.ttf +%%LOCAL_FONTSDIR%%/TTF/Koruri-Light.ttf +%%LOCAL_FONTSDIR%%/TTF/Koruri-Semibold.ttf +%%LOCAL_FONTSDIR%%/TTF/Koruri.ttf +@dirrmtry %%LOCAL_FONTSDIR%%/TTF +@dirrmtry %%LOCAL_FONTSDIR%% +etc/fonts/conf.avail/20-unhint-koruri.conf +etc/fonts/conf.avail/62-fonts-koruri.conf +etc/fonts/conf.d/20-unhint-koruri.conf +etc/fonts/conf.d/62-fonts-koruri.conf +%%X_FONTSDIR%%/TTF/Koruri-Bold.ttf +%%X_FONTSDIR%%/TTF/Koruri-Extrabold.ttf +%%X_FONTSDIR%%/TTF/Koruri-Light.ttf +%%X_FONTSDIR%%/TTF/Koruri-Semibold.ttf +%%X_FONTSDIR%%/TTF/Koruri.ttf +@exec %%LOCALBASE%%/bin/fc-cache -s -f -v %D/%%X_FONTSDIR%%/TTF || true +@unexec %%LOCALBASE%%/bin/fc-cache -s -f -v %D/%%X_FONTSDIR%%/TTF || true +@unexec rm -f %D/%%X_FONTSDIR%%/TTF/fonts.cache-1 +@dirrmtry %%X_FONTSDIR%%/TTF +@unexec if [ -d %D/%%X_FONTSDIR%%/TTF ]; then %%LOCALBASE%%/bin/fc-cache -s -f -v %D/%%X_FONTSDIR%%/TTF || true; fi