Index: head/japanese/Makefile =================================================================== --- head/japanese/Makefile (revision 464558) +++ head/japanese/Makefile (revision 464559) @@ -1,305 +1,306 @@ # $FreeBSD$ # COMMENT = Japanese support SUBDIR += ASCIIdates98-fpw SUBDIR += CGdic-fpw SUBDIR += FreeWnn-lib SUBDIR += FreeWnn-server SUBDIR += VTPSfont SUBDIR += Wnn6-lib SUBDIR += Wnn7-lib SUBDIR += a2ps SUBDIR += ack SUBDIR += ajaxzip2-core SUBDIR += ajaxzip2-data SUBDIR += alias-fonts SUBDIR += another-htmllint SUBDIR += anthy SUBDIR += asterisk-sounds SUBDIR += awffull SUBDIR += bible_names-fpw SUBDIR += boiled-mozc SUBDIR += bookview SUBDIR += bugzilla44 SUBDIR += bugzilla50 SUBDIR += canna-lib SUBDIR += canna-server SUBDIR += cannadic SUBDIR += cdrom2 SUBDIR += celrw SUBDIR += chasen-base SUBDIR += cmigemo SUBDIR += cmigemo-dict SUBDIR += csrd SUBDIR += ctags SUBDIR += dbskkd-cdb SUBDIR += ddskk SUBDIR += devil-fpw SUBDIR += dvi2tty SUBDIR += e2ps SUBDIR += eb SUBDIR += ebd-fpw SUBDIR += eblook SUBDIR += ebnetd SUBDIR += ebview-gtk2 SUBDIR += edict SUBDIR += edict-fpw SUBDIR += edict-utf-8 SUBDIR += edyvalue SUBDIR += eijiro-fpw SUBDIR += epwutil SUBDIR += esecanna SUBDIR += esecanna-module-vje25 SUBDIR += esecanna-module-vje30 SUBDIR += esecanna-module-wnn6 SUBDIR += eterm SUBDIR += fcitx-anthy SUBDIR += fcitx-mozc SUBDIR += fcitx-skk SUBDIR += flower-fpw SUBDIR += foldoc-fpw SUBDIR += font-aozoramincho SUBDIR += font-ayu18 SUBDIR += font-ayu20 + SUBDIR += font-cica SUBDIR += font-elisa10 SUBDIR += font-elisa8 SUBDIR += font-genjyuugothic SUBDIR += font-genshingothic SUBDIR += font-ipa SUBDIR += font-ipa-uigothic SUBDIR += font-ipaex SUBDIR += font-ipamjm SUBDIR += font-jisx0213 SUBDIR += font-kaname12 SUBDIR += font-kanji18 SUBDIR += font-kanji26 SUBDIR += font-kappa20 SUBDIR += font-kochi SUBDIR += font-koruri SUBDIR += font-marumoji SUBDIR += font-mgenplus SUBDIR += font-migmix SUBDIR += font-migu SUBDIR += font-mikachan SUBDIR += font-mona SUBDIR += font-mona-ipa SUBDIR += font-mona-ttf SUBDIR += font-motoya-al SUBDIR += font-mplus-bitmap SUBDIR += font-mplus-ipa SUBDIR += font-mplus-outline SUBDIR += font-naga10 SUBDIR += font-nasu SUBDIR += font-ricty SUBDIR += font-ricty-discord SUBDIR += font-rounded-mgenplus SUBDIR += font-sazanami SUBDIR += font-shinonome SUBDIR += font-std SUBDIR += font-takao SUBDIR += font-ume SUBDIR += font-vlgothic SUBDIR += freepwing SUBDIR += fumeikai-fpw SUBDIR += gawk SUBDIR += gd SUBDIR += gedy SUBDIR += gimp-help SUBDIR += gjiten SUBDIR += groff SUBDIR += gskk SUBDIR += gsuica SUBDIR += hns SUBDIR += ibus-anthy SUBDIR += ibus-mozc SUBDIR += ibus-skk SUBDIR += icanna SUBDIR += im-ja SUBDIR += ipadic SUBDIR += jacode.pl SUBDIR += japana SUBDIR += japaneseAFM SUBDIR += jargon-fpw SUBDIR += jcode.pl SUBDIR += jed SUBDIR += jishyo SUBDIR += jls SUBDIR += jmode SUBDIR += jmode-skk SUBDIR += jpilot SUBDIR += jstrings SUBDIR += jvim3 SUBDIR += kakasi SUBDIR += kana-no-quiz SUBDIR += kanjipad SUBDIR += kasumi SUBDIR += kbanner SUBDIR += kcc SUBDIR += kcode SUBDIR += kde4-l10n SUBDIR += kdrill SUBDIR += kinput2 SUBDIR += kiten-kde4 SUBDIR += kon2-14dot SUBDIR += kon2-16dot SUBDIR += kpcal SUBDIR += kterm SUBDIR += latex-jlisting SUBDIR += leafrogue SUBDIR += less SUBDIR += libreoffice SUBDIR += libskk SUBDIR += libslang SUBDIR += libtomoe-gtk SUBDIR += lipsf SUBDIR += lookup SUBDIR += lsd-fpw SUBDIR += lynx SUBDIR += lynx-current SUBDIR += mailman SUBDIR += man SUBDIR += man-doc SUBDIR += mecab SUBDIR += mecab-ipadic SUBDIR += mecab-ipadic-eucjp SUBDIR += mecab-ipadic-sjis SUBDIR += mecab-ipadic-utf8 SUBDIR += mg SUBDIR += mh SUBDIR += migemo SUBDIR += migemo.el SUBDIR += mime_pls SUBDIR += ming SUBDIR += mozc-el SUBDIR += mozc-server SUBDIR += mozc-tool SUBDIR += multiskkserv SUBDIR += mutt-devel SUBDIR += mypaedia-fpw-package SUBDIR += namazu SUBDIR += namazu2 SUBDIR += navi2ch SUBDIR += ne SUBDIR += nethack34 SUBDIR += newosaka SUBDIR += ng SUBDIR += ng-canna SUBDIR += ng-devel SUBDIR += ngraph-fonts SUBDIR += nkf SUBDIR += onew SUBDIR += p5-2chproxy SUBDIR += p5-Date-Japanese-Era SUBDIR += p5-Date-Japanese-Holiday SUBDIR += p5-DateTime-Calendar-Japanese-Era SUBDIR += p5-DateTime-Format-Japanese SUBDIR += p5-Encode-EUCJPASCII SUBDIR += p5-Encode-EUCJPMS SUBDIR += p5-Encode-ISO2022 SUBDIR += p5-Encode-JP-Emoji SUBDIR += p5-Encode-JP-Mobile SUBDIR += p5-HTML-MobileJp SUBDIR += p5-Jcode SUBDIR += p5-Lingua-JA-Kana SUBDIR += p5-Lingua-JA-Moji SUBDIR += p5-Lingua-JA-Numbers SUBDIR += p5-Lingua-JA-Regular-Unicode SUBDIR += p5-Lingua-JA-Summarize-Extract SUBDIR += p5-MeCab SUBDIR += p5-Number-Phone-JP SUBDIR += p5-PDFJ SUBDIR += p5-Text-ChaSen SUBDIR += p5-Text-Kakasi SUBDIR += p5-Text-MeCab SUBDIR += p5-Unicode-Japanese SUBDIR += p5-WWW-2ch SUBDIR += p5-WWW-MobileCarrierJP SUBDIR += p5-nkf SUBDIR += pejv-fpw SUBDIR += php5-mecab SUBDIR += php_doc SUBDIR += plain2 SUBDIR += plan SUBDIR += prn SUBDIR += py-mecab SUBDIR += py-tegaki SUBDIR += py-tegaki-gtk SUBDIR += py-zinnia SUBDIR += qkc SUBDIR += qt4-codecs-jp SUBDIR += quit SUBDIR += roget-fpw SUBDIR += rogue_s SUBDIR += ruby-romkan SUBDIR += ruby-uconv SUBDIR += rubygem-jpmobile-ipaddresses SUBDIR += rubygem-jpmobile-terminfo SUBDIR += rubygem-jpmobile4 SUBDIR += rubygem-mail-iso-2022-jp SUBDIR += rubygem-myrurema SUBDIR += ryaku-fpw SUBDIR += scim-anthy SUBDIR += scim-canna SUBDIR += scim-honoka SUBDIR += scim-honoka-plugin-romkan SUBDIR += scim-honoka-plugin-wnn SUBDIR += scim-skk SUBDIR += scim-tables SUBDIR += scim-tomoe SUBDIR += scim-uim SUBDIR += seaside SUBDIR += sj3-lib SUBDIR += sj3-server SUBDIR += skk SUBDIR += skk-jisyo SUBDIR += skk-jisyo-cdb SUBDIR += skk-tools SUBDIR += skkfep SUBDIR += skkinput SUBDIR += skkinput3 SUBDIR += skkserv SUBDIR += slimeforest SUBDIR += slrn SUBDIR += spamassassin SUBDIR += srd-fpw-package SUBDIR += suicavalue SUBDIR += t2ps SUBDIR += tdiary SUBDIR += tegaki-recognize SUBDIR += tegaki-zinnia-japanese SUBDIR += tex-ptex SUBDIR += tgif SUBDIR += tiarra SUBDIR += timidity++-slang SUBDIR += today SUBDIR += tomoe SUBDIR += uim-anthy SUBDIR += uim-mozc SUBDIR += uim-tomoe-gtk SUBDIR += vera-fpw SUBDIR += vftool SUBDIR += w3m SUBDIR += w3m-img SUBDIR += waeijiro-fpw SUBDIR += wdic-fpw SUBDIR += web1913-fpw SUBDIR += webalizer SUBDIR += wnn7egg SUBDIR += wordnet-fpw SUBDIR += wordpress SUBDIR += wwasw-fpw SUBDIR += xdtp SUBDIR += xgate SUBDIR += xpdf SUBDIR += xshodou SUBDIR += xtr SUBDIR += xv SUBDIR += yasou-fpw SUBDIR += yc.el SUBDIR += zinnia SUBDIR += zinnia-tomoe SUBDIR += zipcodes .include Index: head/japanese/font-cica/Makefile =================================================================== --- head/japanese/font-cica/Makefile (nonexistent) +++ head/japanese/font-cica/Makefile (revision 464559) @@ -0,0 +1,48 @@ +# $FreeBSD$ + +PORTNAME= cica +PORTVERSION= 2.1.0 +#PORTREVISION= 0 +CATEGORIES= japanese x11-fonts +MASTER_SITES= https://github.com/miiton/Cica/releases/download/v${PORTVERSION}/ +PKGNAMEPREFIX= ja-font- +DISTNAME= Cica_v${PORTVERSION} + +MAINTAINER= ume@FreeBSD.org +COMMENT= Cica Japanese monospaced fonts for programming + +USES= fonts:fc zip +FONTNAME= cica +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= * + +OPTIONS_DEFINE= DOCS + +do-install: + ${MKDIR} ${STAGEDIR}${FONTSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} *.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 \ + ${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} && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \ + "! ( -name Cica-Bold.ttf \ + -o -name Cica-BoldItalic.ttf \ + -o -name Cica-Regular.ttf \ + -o -name Cica-RegularItalic.ttf )" + +.include Property changes on: head/japanese/font-cica/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/font-cica/distinfo =================================================================== --- head/japanese/font-cica/distinfo (nonexistent) +++ head/japanese/font-cica/distinfo (revision 464559) @@ -0,0 +1,3 @@ +TIMESTAMP = 1520950521 +SHA256 (Cica_v2.1.0.zip) = 6b1e4750a3c07995bbcfaadcec0be5ed73de26ca1dc2082dc712b296af35b59b +SIZE (Cica_v2.1.0.zip) = 22571722 Property changes on: head/japanese/font-cica/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/font-cica/files/20-unhint-cica.conf =================================================================== --- head/japanese/font-cica/files/20-unhint-cica.conf (nonexistent) +++ head/japanese/font-cica/files/20-unhint-cica.conf (revision 464559) @@ -0,0 +1,13 @@ + + + + + + + Cica + + + false + + + Property changes on: head/japanese/font-cica/files/20-unhint-cica.conf ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/font-cica/files/62-fonts-cica.conf =================================================================== --- head/japanese/font-cica/files/62-fonts-cica.conf (nonexistent) +++ head/japanese/font-cica/files/62-fonts-cica.conf (revision 464559) @@ -0,0 +1,11 @@ + + + + + + monospace + + Cica + + + Property changes on: head/japanese/font-cica/files/62-fonts-cica.conf ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/font-cica/files/pkg-install.in =================================================================== --- head/japanese/font-cica/files/pkg-install.in (nonexistent) +++ head/japanese/font-cica/files/pkg-install.in (revision 464559) @@ -0,0 +1,108 @@ +#!/bin/sh +# $FreeBSD$ + +catfontsdir() +{ + while read _IN + do + case "${_IN}" in + *-adobe-cica-*|[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 Cica-Regular.ttf adobe "cica" c medium + make_xlfd $ENC Cica-Bold.ttf adobe "cica" c 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 Property changes on: head/japanese/font-cica/files/pkg-install.in ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/font-cica/pkg-descr =================================================================== --- head/japanese/font-cica/pkg-descr (nonexistent) +++ head/japanese/font-cica/pkg-descr (revision 464559) @@ -0,0 +1,3 @@ +Cica Japanese monospaced fonts for programming + +WWW: https://github.com/miiton/Cica Property changes on: head/japanese/font-cica/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/japanese/font-cica/pkg-plist =================================================================== --- head/japanese/font-cica/pkg-plist (nonexistent) +++ head/japanese/font-cica/pkg-plist (revision 464559) @@ -0,0 +1,8 @@ +etc/fonts/conf.avail/20-unhint-cica.conf +etc/fonts/conf.avail/62-fonts-cica.conf +etc/fonts/conf.d/20-unhint-cica.conf +etc/fonts/conf.d/62-fonts-cica.conf +%%FONTSDIR%%/Cica-Bold.ttf +%%FONTSDIR%%/Cica-BoldItalic.ttf +%%FONTSDIR%%/Cica-Regular.ttf +%%FONTSDIR%%/Cica-RegularItalic.ttf Property changes on: head/japanese/font-cica/pkg-plist ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property