From owner-svn-ports-all@freebsd.org Sun Nov 17 08:05:05 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 ADEAA1BA31F; Sun, 17 Nov 2019 08:05:05 +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 47G4Ps4CvBz3C46; Sun, 17 Nov 2019 08:05:05 +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 74ADBEE5A; Sun, 17 Nov 2019 08:05:05 +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 xAH855AR025422; Sun, 17 Nov 2019 08:05:05 GMT (envelope-from ume@FreeBSD.org) Received: (from ume@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xAH8538r025411; Sun, 17 Nov 2019 08:05:03 GMT (envelope-from ume@FreeBSD.org) Message-Id: <201911170805.xAH8538r025411@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ume set sender to ume@FreeBSD.org using -f From: Hajimu UMEMOTO Date: Sun, 17 Nov 2019 08:05:03 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r517807 - in head/japanese: . font-hackgen font-hackgen/files X-SVN-Group: ports-head X-SVN-Commit-Author: ume X-SVN-Commit-Paths: in head/japanese: . font-hackgen font-hackgen/files X-SVN-Commit-Revision: 517807 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: Sun, 17 Nov 2019 08:05:05 -0000 Author: ume Date: Sun Nov 17 08:05:03 2019 New Revision: 517807 URL: https://svnweb.freebsd.org/changeset/ports/517807 Log: New port japanese/font-hackgen HackGen is a composite font of Hack and GenJyuu-Gothic Added: head/japanese/font-hackgen/ head/japanese/font-hackgen/Makefile (contents, props changed) head/japanese/font-hackgen/distinfo (contents, props changed) head/japanese/font-hackgen/files/ head/japanese/font-hackgen/files/20-unhint-hackgen.conf (contents, props changed) head/japanese/font-hackgen/files/62-fonts-hackgen.conf (contents, props changed) head/japanese/font-hackgen/files/pkg-install.in (contents, props changed) head/japanese/font-hackgen/pkg-descr (contents, props changed) head/japanese/font-hackgen/pkg-plist (contents, props changed) Modified: head/japanese/Makefile Modified: head/japanese/Makefile ============================================================================== --- head/japanese/Makefile Sun Nov 17 07:05:23 2019 (r517806) +++ head/japanese/Makefile Sun Nov 17 08:05:03 2019 (r517807) @@ -65,6 +65,7 @@ SUBDIR += font-elisa8 SUBDIR += font-genjyuugothic SUBDIR += font-genshingothic + SUBDIR += font-hackgen SUBDIR += font-ipa SUBDIR += font-ipa-uigothic SUBDIR += font-ipaex Added: head/japanese/font-hackgen/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-hackgen/Makefile Sun Nov 17 08:05:03 2019 (r517807) @@ -0,0 +1,75 @@ +# $FreeBSD$ + +PORTNAME= hackgen +PORTVERSION= 1.3.1 +#PORTREVISION= 0 +CATEGORIES= japanese x11-fonts +MASTER_SITES= https://github.com/yuru7/HackGen/releases/download/v${PORTVERSION}/ +PKGNAMEPREFIX= ja-font- +DISTNAME= HackGen_v${DISTVERSION} + +MAINTAINER= ume@FreeBSD.org +COMMENT= HackGen is a composite font of Hack and GenJyuu-Gothic + +LICENSE= OFL11 + +USES= fonts:fc zip +NO_ARCH= yes +NO_BUILD= yes +PKGINSTALL= ${WRKDIR}/pkg-install +PKGDEINSTALL= ${WRKDIR}/pkg-install +SUB_FILES= pkg-install +WRKSRC= ${WRKDIR}/${DISTNAME} + +OPTIONS_MULTI= FONT_FAMILY +OPTIONS_MULTI_FONT_FAMILY= HACKGEN HACKGEN_CONS HACKGEN_CONS_PL \ + HACKGEN35 HACKGEN35_CONS HACKGEN35_CONS_PL +OPTIONS_DEFAULT= HACKGEN HACKGEN_CONS HACKGEN_CONS_PL \ + HACKGEN35 HACKGEN35_CONS HACKGEN35_CONS_PL +OPTIONS_SUB= yes +HACKGEN_DESC= HackGen +HACKGEN_CONS_DESC= HackGen Console +HACKGEN_CONS_PL_DESC= HackGen Console for Powerline +HACKGEN35_DESC= HackGen35 +HACKGEN35_CONS_DESC= HackGen35 Console +HACKGEN35_CONS_PL_DESC= HackGen35 Console for Powerline + +.include + +.if ${PORT_OPTIONS:MHACKGEN} +HACKGEN_FONTS+= HackGen-Regular HackGen-Bold +.endif +.if ${PORT_OPTIONS:MHACKGEN_CONS} +HACKGEN_FONTS+= HackGenConsole-Regular HackGenConsole-Bold +.endif +.if ${PORT_OPTIONS:MHACKGEN_CONS_PL} +HACKGEN_FONTS+= HackGenConsole-Regular-forPowerline \ + HackGenConsole-Bold-forPowerline +.endif +.if ${PORT_OPTIONS:MHACKGEN35} +HACKGEN_FONTS+= HackGen35-Regular HackGen35-Bold +.endif +.if ${PORT_OPTIONS:MHACKGEN35_CONS} +HACKGEN_FONTS+= HackGen35Console-Regular HackGen35Console-Bold +.endif +.if ${PORT_OPTIONS:MHACKGEN35_CONS_PL} +HACKGEN_FONTS+= HackGen35Console-Regular-forPowerline \ + HackGen35Console-Bold-forPowerline +.endif + +do-install: + ${MKDIR} ${STAGEDIR}${FONTSDIR} +.for FONT in ${HACKGEN_FONTS} + ${INSTALL_DATA} ${WRKSRC}/${FONT}.ttf ${STAGEDIR}${FONTSDIR} +.endfor + ${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 + +.include Added: head/japanese/font-hackgen/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-hackgen/distinfo Sun Nov 17 08:05:03 2019 (r517807) @@ -0,0 +1,3 @@ +TIMESTAMP = 1573968933 +SHA256 (HackGen_v1.3.1.zip) = bc38c06ba7717deb3b986b47d072bcff74b7c127f276fd7d4fd733f3000ae8b5 +SIZE (HackGen_v1.3.1.zip) = 60823745 Added: head/japanese/font-hackgen/files/20-unhint-hackgen.conf ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-hackgen/files/20-unhint-hackgen.conf Sun Nov 17 08:05:03 2019 (r517807) @@ -0,0 +1,48 @@ + + + + + + + + HackGen-Regular + + + HackGen-Bold + + + HackGenConsole-Regular + + + HackGenConsole-Bold + + + HackGenConsole-Regular-forPowerline + + + HackGenConsole-Bold-forPowerline + + + HackGen35-Regular + + + HackGen35-Bold + + + HackGen35Console-Regular + + + HackGen35Console-Bold + + + HackGen35Console-Regular-forPowerline + + + HackGen35Console-Bold-forPowerline + + + + false + + + Added: head/japanese/font-hackgen/files/62-fonts-hackgen.conf ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-hackgen/files/62-fonts-hackgen.conf Sun Nov 17 08:05:03 2019 (r517807) @@ -0,0 +1,22 @@ + + + + + + monospace + + HackGen-Regular + HackGen-Bold + HackGenConsole-Regular + HackGenConsole-Bold + HackGenConsole-Regular-forPowerline + HackGenConsole-Bold-forPowerline + HackGen35-Regular + HackGen35-Bold + HackGen35Console-Regular + HackGen35Console-Bold + HackGen35Console-Regular-forPowerline + HackGen35Console-Bold-forPowerline + + + Added: head/japanese/font-hackgen/files/pkg-install.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-hackgen/files/pkg-install.in Sun Nov 17 08:05:03 2019 (r517807) @@ -0,0 +1,105 @@ +#!/bin/sh +# $FreeBSD$ + +catfontsdir() +{ + while read _IN + do + case "${_IN}" in + *-misc-hackgen*-*|[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,^:,,' +} + +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 HackGen-Regular.ttf misc "hackgen" m medium + make_xlfd $ENC HackGen-Bold.ttf misc "hackgen" m bold + make_xlfd $ENC HackGenConsole-Regular.ttf misc "hackgenconsole" m medium + make_xlfd $ENC HackGenConsole-Bold.ttf misc "hackgenconsole" m bold + make_xlfd $ENC HackGen35-Regular.ttf misc "hackgen35" m medium + make_xlfd $ENC HackGen35-Bold.ttf misc "hackgen35" m bold + make_xlfd $ENC HackGen35Console-Regular.ttf misc "hackgen35console" m medium + make_xlfd $ENC HackgEn35Console-Bold.ttf misc "hackgen35console" m bold + 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-hackgen/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-hackgen/pkg-descr Sun Nov 17 08:05:03 2019 (r517807) @@ -0,0 +1,3 @@ +HackGen is a composite font of Hack and GenJyuu-Gothic. + +WWW: https://github.com/yuru7/HackGen Added: head/japanese/font-hackgen/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/japanese/font-hackgen/pkg-plist Sun Nov 17 08:05:03 2019 (r517807) @@ -0,0 +1,16 @@ +etc/fonts/conf.avail/20-unhint-hackgen.conf +etc/fonts/conf.avail/62-fonts-hackgen.conf +etc/fonts/conf.d/20-unhint-hackgen.conf +etc/fonts/conf.d/62-fonts-hackgen.conf +%%HACKGEN%%%%FONTSDIR%%/HackGen-Regular.ttf +%%HACKGEN%%%%FONTSDIR%%/HackGen-Bold.ttf +%%HACKGEN_CONS%%%%FONTSDIR%%/HackGenConsole-Regular.ttf +%%HACKGEN_CONS%%%%FONTSDIR%%/HackGenConsole-Bold.ttf +%%HACKGEN_CONS_PL%%%%FONTSDIR%%/HackGenConsole-Regular-forPowerline.ttf +%%HACKGEN_CONS_PL%%%%FONTSDIR%%/HackGenConsole-Bold-forPowerline.ttf +%%HACKGEN35%%%%FONTSDIR%%/HackGen35-Regular.ttf +%%HACKGEN35%%%%FONTSDIR%%/HackGen35-Bold.ttf +%%HACKGEN35_CONS%%%%FONTSDIR%%/HackGen35Console-Regular.ttf +%%HACKGEN35_CONS%%%%FONTSDIR%%/HackGen35Console-Bold.ttf +%%HACKGEN35_CONS_PL%%%%FONTSDIR%%/HackGen35Console-Regular-forPowerline.ttf +%%HACKGEN35_CONS_PL%%%%FONTSDIR%%/HackGen35Console-Bold-forPowerline.ttf