From owner-svn-ports-all@freebsd.org Sat Sep 7 06:40:53 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E33B0E788E; Sat, 7 Sep 2019 06:40:53 +0000 (UTC) (envelope-from ume@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46QPvT6RYRz4BTp; Sat, 7 Sep 2019 06:40:53 +0000 (UTC) (envelope-from ume@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A8A07173F; Sat, 7 Sep 2019 06:40:53 +0000 (UTC) (envelope-from ume@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x876erPb067570; Sat, 7 Sep 2019 06:40:53 GMT (envelope-from ume@FreeBSD.org) Received: (from ume@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x876eo6d064620; Sat, 7 Sep 2019 06:40:50 GMT (envelope-from ume@FreeBSD.org) Message-Id: <201909070640.x876eo6d064620@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ume set sender to ume@FreeBSD.org using -f From: Hajimu UMEMOTO Date: Sat, 7 Sep 2019 06:40:50 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r511393 - in head/japanese: . font-myrica font-myrica/files font-myricam font-myricam/files X-SVN-Group: ports-head X-SVN-Commit-Author: ume X-SVN-Commit-Paths: in head/japanese: . font-myrica font-myrica/files font-myricam font-myricam/files X-SVN-Commit-Revision: 511393 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Sep 2019 06:40:54 -0000 Author: ume Date: Sat Sep 7 06:40:50 2019 New Revision: 511393 URL: https://svnweb.freebsd.org/changeset/ports/511393 Log: Add new ports -- Myrica free TrueType fonts for programming Added: head/japanese/font-myrica/ head/japanese/font-myrica/Makefile (contents, props changed) head/japanese/font-myrica/distinfo (contents, props changed) head/japanese/font-myrica/files/ head/japanese/font-myrica/files/20-unhint-myrica.conf (contents, props changed) head/japanese/font-myrica/files/62-fonts-myrica.conf (contents, props changed) head/japanese/font-myrica/files/pkg-install.in (contents, props changed) head/japanese/font-myrica/pkg-descr (contents, props changed) head/japanese/font-myrica/pkg-plist (contents, props changed) head/japanese/font-myricam/ head/japanese/font-myricam/Makefile (contents, props changed) head/japanese/font-myricam/distinfo (contents, props changed) head/japanese/font-myricam/files/ head/japanese/font-myricam/files/20-unhint-myricam.conf (contents, props changed) head/japanese/font-myricam/files/62-fonts-myricam.conf (contents, props changed) head/japanese/font-myricam/files/pkg-install.in (contents, props changed) head/japanese/font-myricam/pkg-descr (contents, props changed) head/japanese/font-myricam/pkg-plist (contents, props changed) Modified: head/japanese/Makefile Modified: head/japanese/Makefile ============================================================================== --- head/japanese/Makefile Sat Sep 7 06:33:16 2019 (r511392) +++ head/japanese/Makefile Sat Sep 7 06:40:50 2019 (r511393) @@ -92,6 +92,8 @@ SUBDIR += font-mplus-bitmap SUBDIR += font-mplus-ipa SUBDIR += font-mplus-outline + SUBDIR += font-myrica + SUBDIR += font-myricam SUBDIR += font-naga10 SUBDIR += font-nasu SUBDIR += font-ricty Added: head/japanese/font-myrica/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-myrica/Makefile Sat Sep 7 06:40:50 2019 (r511393) @@ -0,0 +1,45 @@ +# $FreeBSD$ + +PORTNAME= myrica +PORTVERSION= 2.012.20180119 +#PORTREVISION= 0 +CATEGORIES= japanese x11-fonts +MASTER_SITES= https://github.com/tomokuni/Myrica/raw/master/product/ +PKGNAMEPREFIX= ja-font- +DISTNAME= Myrica +DIST_SUBDIR= ${DISTNAME}-${PORTVERSION} + +MAINTAINER= ume@FreeBSD.org +COMMENT= Myrica free TrueType fonts for programming + +USES= fonts:fc 7z +FONTNAME= myrica +NO_WRKSUBDIR= yes +NO_ARCH= yes +NO_BUILD= yes +PKGINSTALL= ${WRKDIR}/pkg-install +PKGDEINSTALL= ${WRKDIR}/pkg-install +SUB_FILES= pkg-install +WRKSRC= ${WRKDIR}/${DISTNAME} +PORTDOCS= LICENSE_M+.txt LICENSE_OFL.txt README.md + +OPTIONS_DEFINE= DOCS + +do-install: + ${MKDIR} ${STAGEDIR}${FONTSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} *.TTC ${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 \ + ${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 Added: head/japanese/font-myrica/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-myrica/distinfo Sat Sep 7 06:40:50 2019 (r511393) @@ -0,0 +1,3 @@ +TIMESTAMP = 1567831810 +SHA256 (Myrica-2.012.20180119/Myrica.7z) = f73dca7a5999d02351534dbdc184e0e2f9f1a8294de5ff931bb535a5327c68c0 +SIZE (Myrica-2.012.20180119/Myrica.7z) = 4735980 Added: head/japanese/font-myrica/files/20-unhint-myrica.conf ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-myrica/files/20-unhint-myrica.conf Sat Sep 7 06:40:50 2019 (r511393) @@ -0,0 +1,19 @@ + + + + + + + Myrica M + + + Myrica N + + + Myrica P + + + false + + + Added: head/japanese/font-myrica/files/62-fonts-myrica.conf ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-myrica/files/62-fonts-myrica.conf Sat Sep 7 06:40:50 2019 (r511393) @@ -0,0 +1,17 @@ + + + + + + sans-serif + + Myrica P + + + + monospace + + Myrica M + + + Added: head/japanese/font-myrica/files/pkg-install.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-myrica/files/pkg-install.in Sat Sep 7 06:40:50 2019 (r511393) @@ -0,0 +1,107 @@ +#!/bin/sh +# $FreeBSD$ + +catfontsdir() +{ + while read _IN + do + case "${_IN}" in + *-misc-myrica-*|[0-9]*|"") ;; + *) echo ${_IN} ;; + esac + done +} + +ROMA="" +BOLD="ds=y" +RITA="ai=0.08" +ROBL="ai=0.08" + +make_xlfd() +{ + _enc=$1 + _file=$2 + _vendor=$3 + _fname=$4 + _poc=$5 + _weight=$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 -- "" ${_weight}-r \ + ${RITA} ${_weight}-ri \ + ${ROBL} ${_weight}-ro + while [ $# != 0 ]; do + _prefix="${PFIX}:$1"; shift + _variant=$1; shift + [ ${index_type} = "scale" -a ${_prefix} != ":" ] && continue + 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,^:,,' + + _prefix="${PFIX}:" + [ ${index_type} = "scale" -a ${_prefix} != ":" ] && return + _file=$(echo $_file | sed -e 's,\.ttf$,Italic&,') + for _variant in ${_weight}-i ${_weight}-o; do + printf "%s:%s -%s-%s-%s-normal--0-0-0-0-%s-0-%s\n" \ + $_prefix $_file $_vendor "$_fname" $_variant $_poc $_enc + [ ${index_type} = "scale" ] && break + done | sed -e 's,::,:,g' -e 's,^:,,' +} + +addentries() +{ + for ENC in iso8859-1 iso10646-1 jisx0201.1976-0 jisx0208.1983-0 jisx0208.1990-0 jisx0208.1997-0 jisx0213.2004-1 + do + make_xlfd $ENC Myrica.TTC misc "myrica" m medium + done +} + +nfonts() +{ + _L=0; while read _IN; do _L=$((${_L}+1)); done; echo ${_L} +} + +install_fontsdir() +{ + index_type=${1:-"dir"} + index="fonts.${index_type}" + tmpfile="${index}.tmp" + touch ${index} + (catfontsdir < ${index}; addentries ${index_type}) > ${tmpfile} + nfonts < ${tmpfile} > ${index} + cat ${tmpfile} >> ${index} + rm -f ${tmpfile} +} + +deinstall_fontsdir() +{ + index_type=${1:-"dir"} + index="fonts.${index_type}" + tmpfile="${index}.tmp" + catfontsdir < ${index} > ${tmpfile} + nfonts < ${tmpfile} > ${index} + cat ${tmpfile} >> ${index} + rm -f ${tmpfile} + if [ -r ${index} -a $(wc -l < ${index}) = 1 ]; then + rm -f ${index} + fi +} + +case "$2" in +POST-INSTALL) + cd %%FONTSDIR%% + install_fontsdir dir + install_fontsdir scale + ;; +POST-DEINSTALL) + cd %%FONTSDIR%% + deinstall_fontsdir dir + deinstall_fontsdir scale + ;; +esac Added: head/japanese/font-myrica/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-myrica/pkg-descr Sat Sep 7 06:40:50 2019 (r511393) @@ -0,0 +1,3 @@ +Myrica is a free TrueType fonts for programming + +https://myrica.estable.jp/ Added: head/japanese/font-myrica/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-myrica/pkg-plist Sat Sep 7 06:40:50 2019 (r511393) @@ -0,0 +1,5 @@ +etc/fonts/conf.avail/20-unhint-myrica.conf +etc/fonts/conf.avail/62-fonts-myrica.conf +etc/fonts/conf.d/20-unhint-myrica.conf +etc/fonts/conf.d/62-fonts-myrica.conf +%%FONTSDIR%%/Myrica.TTC Added: head/japanese/font-myricam/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-myricam/Makefile Sat Sep 7 06:40:50 2019 (r511393) @@ -0,0 +1,45 @@ +# $FreeBSD$ + +PORTNAME= myricam +PORTVERSION= 2.012.20180119 +#PORTREVISION= 0 +CATEGORIES= japanese x11-fonts +MASTER_SITES= https://github.com/tomokuni/Myrica/raw/master/product/ +PKGNAMEPREFIX= ja-font- +DISTNAME= MyricaM +DIST_SUBDIR= ${DISTNAME}-${PORTVERSION} + +MAINTAINER= ume@FreeBSD.org +COMMENT= Myrica free TrueType fonts for programming + +USES= fonts:fc 7z +FONTNAME= myricam +NO_WRKSUBDIR= yes +NO_ARCH= yes +NO_BUILD= yes +PKGINSTALL= ${WRKDIR}/pkg-install +PKGDEINSTALL= ${WRKDIR}/pkg-install +SUB_FILES= pkg-install +WRKSRC= ${WRKDIR}/${DISTNAME} +PORTDOCS= LICENSE_M+.txt LICENSE_OFL.txt README.md + +OPTIONS_DEFINE= DOCS + +do-install: + ${MKDIR} ${STAGEDIR}${FONTSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} *.TTC ${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 \ + ${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 Added: head/japanese/font-myricam/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-myricam/distinfo Sat Sep 7 06:40:50 2019 (r511393) @@ -0,0 +1,3 @@ +TIMESTAMP = 1567834800 +SHA256 (MyricaM-2.012.20180119/MyricaM.7z) = 7b309919d0f5e51cb2d96dc13b94794efe39f2b2f4eae7a43d9404088ad2ddda +SIZE (MyricaM-2.012.20180119/MyricaM.7z) = 4394538 Added: head/japanese/font-myricam/files/20-unhint-myricam.conf ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-myricam/files/20-unhint-myricam.conf Sat Sep 7 06:40:50 2019 (r511393) @@ -0,0 +1,19 @@ + + + + + + + MyricaM M + + + MyricaM N + + + MyricaM P + + + false + + + Added: head/japanese/font-myricam/files/62-fonts-myricam.conf ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-myricam/files/62-fonts-myricam.conf Sat Sep 7 06:40:50 2019 (r511393) @@ -0,0 +1,17 @@ + + + + + + sans-serif + + MyricaM P + + + + monospace + + MyricaM M + + + Added: head/japanese/font-myricam/files/pkg-install.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-myricam/files/pkg-install.in Sat Sep 7 06:40:50 2019 (r511393) @@ -0,0 +1,107 @@ +#!/bin/sh +# $FreeBSD$ + +catfontsdir() +{ + while read _IN + do + case "${_IN}" in + *-misc-myrica\ m-*|[0-9]*|"") ;; + *) echo ${_IN} ;; + esac + done +} + +ROMA="" +BOLD="ds=y" +RITA="ai=0.08" +ROBL="ai=0.08" + +make_xlfd() +{ + _enc=$1 + _file=$2 + _vendor=$3 + _fname=$4 + _poc=$5 + _weight=$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 -- "" ${_weight}-r \ + ${RITA} ${_weight}-ri \ + ${ROBL} ${_weight}-ro + while [ $# != 0 ]; do + _prefix="${PFIX}:$1"; shift + _variant=$1; shift + [ ${index_type} = "scale" -a ${_prefix} != ":" ] && continue + 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,^:,,' + + _prefix="${PFIX}:" + [ ${index_type} = "scale" -a ${_prefix} != ":" ] && return + _file=$(echo $_file | sed -e 's,\.ttf$,Italic&,') + for _variant in ${_weight}-i ${_weight}-o; do + printf "%s:%s -%s-%s-%s-normal--0-0-0-0-%s-0-%s\n" \ + $_prefix $_file $_vendor "$_fname" $_variant $_poc $_enc + [ ${index_type} = "scale" ] && break + done | sed -e 's,::,:,g' -e 's,^:,,' +} + +addentries() +{ + for ENC in iso8859-1 iso10646-1 jisx0201.1976-0 jisx0208.1983-0 jisx0208.1990-0 jisx0208.1997-0 jisx0213.2004-1 + do + make_xlfd $ENC MyricaM.TTC misc "myrica m" m medium + done +} + +nfonts() +{ + _L=0; while read _IN; do _L=$((${_L}+1)); done; echo ${_L} +} + +install_fontsdir() +{ + index_type=${1:-"dir"} + index="fonts.${index_type}" + tmpfile="${index}.tmp" + touch ${index} + (catfontsdir < ${index}; addentries ${index_type}) > ${tmpfile} + nfonts < ${tmpfile} > ${index} + cat ${tmpfile} >> ${index} + rm -f ${tmpfile} +} + +deinstall_fontsdir() +{ + index_type=${1:-"dir"} + index="fonts.${index_type}" + tmpfile="${index}.tmp" + catfontsdir < ${index} > ${tmpfile} + nfonts < ${tmpfile} > ${index} + cat ${tmpfile} >> ${index} + rm -f ${tmpfile} + if [ -r ${index} -a $(wc -l < ${index}) = 1 ]; then + rm -f ${index} + fi +} + +case "$2" in +POST-INSTALL) + cd %%FONTSDIR%% + install_fontsdir dir + install_fontsdir scale + ;; +POST-DEINSTALL) + cd %%FONTSDIR%% + deinstall_fontsdir dir + deinstall_fontsdir scale + ;; +esac Added: head/japanese/font-myricam/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-myricam/pkg-descr Sat Sep 7 06:40:50 2019 (r511393) @@ -0,0 +1,3 @@ +Myrica is a free TrueType fonts for programming + +https://myrica.estable.jp/ Added: head/japanese/font-myricam/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-myricam/pkg-plist Sat Sep 7 06:40:50 2019 (r511393) @@ -0,0 +1,5 @@ +etc/fonts/conf.avail/20-unhint-myricam.conf +etc/fonts/conf.avail/62-fonts-myricam.conf +etc/fonts/conf.d/20-unhint-myricam.conf +etc/fonts/conf.d/62-fonts-myricam.conf +%%FONTSDIR%%/MyricaM.TTC