diff --git a/japanese/Makefile b/japanese/Makefile index 641652962b2f..55b40ffbbdd4 100644 --- a/japanese/Makefile +++ b/japanese/Makefile @@ -1,304 +1,305 @@ COMMENT = Japanese support SUBDIR += ASCIIdates98-fpw SUBDIR += CGdic-fpw SUBDIR += FreeWnn-lib SUBDIR += FreeWnn-server SUBDIR += R-cran-zipangu 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 += aobook 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 += cp5022x-el SUBDIR += cskk SUBDIR += csrd SUBDIR += ctags SUBDIR += dams 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 += 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 += fcitx5-anthy SUBDIR += fcitx5-cskk SUBDIR += flower-fpw SUBDIR += foldoc-fpw SUBDIR += font-aozoramincho SUBDIR += font-ayu18 SUBDIR += font-ayu20 + SUBDIR += font-bizud-gothic SUBDIR += font-bizud-mincho SUBDIR += font-cica SUBDIR += font-elisa10 SUBDIR += font-elisa8 SUBDIR += font-firge SUBDIR += font-firge-nerd SUBDIR += font-genjyuugothic SUBDIR += font-genshingothic SUBDIR += font-hackgen SUBDIR += font-hackgen-nf 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-moralerspace SUBDIR += font-moralerspace-hw SUBDIR += font-moralerspace-hwjpdoc SUBDIR += font-moralerspace-hwnf SUBDIR += font-moralerspace-jpdoc SUBDIR += font-moralerspace-nf SUBDIR += font-motoya-al 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-plemoljp SUBDIR += font-plemoljp-hs SUBDIR += font-plemoljp-nf 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-udev-gothic SUBDIR += font-udev-gothic-nf SUBDIR += font-ume SUBDIR += font-vlgothic SUBDIR += freepwing SUBDIR += fumeikai-fpw SUBDIR += gawk SUBDIR += gd SUBDIR += gedy SUBDIR += groff SUBDIR += gskk SUBDIR += gsuica SUBDIR += hns SUBDIR += ibus-anthy SUBDIR += ibus-mozc SUBDIR += ibus-skk SUBDIR += icanna SUBDIR += ipadic SUBDIR += jacode.pl SUBDIR += japana SUBDIR += japaneseAFM SUBDIR += jargon-fpw SUBDIR += jcode.pl SUBDIR += jishyo SUBDIR += jls SUBDIR += jvim3 SUBDIR += kakasi SUBDIR += kasumi SUBDIR += kbanner SUBDIR += kcc SUBDIR += kcode SUBDIR += kdrill SUBDIR += kinput2 SUBDIR += kiten SUBDIR += kon2-14dot SUBDIR += kon2-16dot 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 += man SUBDIR += man-doc SUBDIR += mecab SUBDIR += mecab-ipadic SUBDIR += mecab-ipadic-eucjp SUBDIR += mecab-ipadic-sjis SUBDIR += mecab-ipadic-utf8 SUBDIR += mh SUBDIR += migemo SUBDIR += migemo.el SUBDIR += mime_pls SUBDIR += mozc-el SUBDIR += mozc-server SUBDIR += mozc-tool 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-Romanize-Japanese 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 += plain2 SUBDIR += plan SUBDIR += prn SUBDIR += py-SudachiPy SUBDIR += py-fugashi SUBDIR += py-ipadic SUBDIR += py-jaconv SUBDIR += py-unidic SUBDIR += qkc SUBDIR += qolibri 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 += skkinput SUBDIR += skkinput3 SUBDIR += skkserv SUBDIR += slimeforest SUBDIR += slrn SUBDIR += sourcehansans-otf SUBDIR += sourcehanserif-otf SUBDIR += spoqahansans-ttf SUBDIR += srd-fpw-package SUBDIR += sudachi SUBDIR += suicavalue SUBDIR += tdiary 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 += xpdf SUBDIR += xshodou SUBDIR += xtr SUBDIR += xv SUBDIR += yc.el SUBDIR += zinnia SUBDIR += zinnia-tomoe SUBDIR += zipcodes .include diff --git a/japanese/font-bizud-gothic/Makefile b/japanese/font-bizud-gothic/Makefile new file mode 100644 index 000000000000..c1099bc50cf8 --- /dev/null +++ b/japanese/font-bizud-gothic/Makefile @@ -0,0 +1,46 @@ +PORTNAME= bizud-gothic +DISTVERSIONPREFIX= v +DISTVERSION= 1.051 +CATEGORIES= japanese x11-fonts +PKGNAMEPREFIX= ja-font- + +MAINTAINER= mew14930xvi@inbox.lv +COMMENT= Morisawa BIZ UD Gothic fonts +WWW= https://github.com/googlefonts/morisawa-biz-ud-gothic + +LICENSE= OFL11 +LICENSE_FILE= ${WRKSRC}/OFL.txt + +USES= fonts:fc +FONTPATHSPEC= ${FONTNAME}:pri=60 +NO_ARCH= yes +NO_BUILD= yes +PKGINSTALL= ${WRKDIR}/pkg-install +PKGDEINSTALL= ${WRKDIR}/pkg-install +SUB_FILES= pkg-install +PORTDOCS= AUTHORS.txt CONTRIBUTORS.txt README.md + +USE_GITHUB= yes +GH_ACCOUNT= googlefonts +GH_PROJECT= morisawa-biz-ud-gothic + +OPTIONS_DEFINE= DOCS + +do-install: + @${MKDIR} ${STAGEDIR}${FONTSDIR} + ${INSTALL_DATA} ${WRKSRC}/fonts/ttf/* ${STAGEDIR}${FONTSDIR} + @${MKDIR} ${STAGEDIR}${PREFIX}/etc/fonts/conf.avail \ + ${STAGEDIR}${PREFIX}/etc/fonts/conf.d + ${INSTALL_DATA} ${FILESDIR}/20-unhint-${FONTNAME}.conf \ + ${FILESDIR}/62-fonts-${FONTNAME}.conf \ + ${STAGEDIR}${PREFIX}/etc/fonts/conf.avail + ${LN} -s -f ../conf.avail/20-unhint-${FONTNAME}.conf \ + ${STAGEDIR}${PREFIX}/etc/fonts/conf.d/20-unhint-${FONTNAME}.conf + ${LN} -s -f ../conf.avail/62-fonts-${FONTNAME}.conf \ + ${STAGEDIR}${PREFIX}/etc/fonts/conf.d/62-fonts-${FONTNAME}.conf + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} + +.include diff --git a/japanese/font-bizud-gothic/distinfo b/japanese/font-bizud-gothic/distinfo new file mode 100644 index 000000000000..036c402053e3 --- /dev/null +++ b/japanese/font-bizud-gothic/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1715401796 +SHA256 (googlefonts-morisawa-biz-ud-gothic-v1.051_GH0.tar.gz) = 4449ee0c9b757fd307fb59b36a296a6fa86db1a54adc29c90821680c6b4252ad +SIZE (googlefonts-morisawa-biz-ud-gothic-v1.051_GH0.tar.gz) = 36721169 diff --git a/japanese/font-bizud-gothic/files/20-unhint-bizud-gothic.conf b/japanese/font-bizud-gothic/files/20-unhint-bizud-gothic.conf new file mode 100644 index 000000000000..88b159b48db3 --- /dev/null +++ b/japanese/font-bizud-gothic/files/20-unhint-bizud-gothic.conf @@ -0,0 +1,17 @@ + + + + + + + BIZ UDGothic + + + BIZ UDPGothic + + + + false + + + diff --git a/japanese/font-bizud-gothic/files/62-fonts-bizud-gothic.conf b/japanese/font-bizud-gothic/files/62-fonts-bizud-gothic.conf new file mode 100644 index 000000000000..34bc40f42b63 --- /dev/null +++ b/japanese/font-bizud-gothic/files/62-fonts-bizud-gothic.conf @@ -0,0 +1,16 @@ + + + + + sans-serif + + BIZ UDPGothic + + + + monospace + + BIZ UDGothic + + + diff --git a/japanese/font-bizud-gothic/files/pkg-install.in b/japanese/font-bizud-gothic/files/pkg-install.in new file mode 100644 index 000000000000..5d0fbf48f6c5 --- /dev/null +++ b/japanese/font-bizud-gothic/files/pkg-install.in @@ -0,0 +1,89 @@ +#!/bin/sh + +catfontsdir () +{ + while read _IN + do + case "${_IN}" in + *-morisawa-BIZUD*[Gg]othic-*|[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 BIZUDGothic-Bold.ttf morisawa BIZUDGothic c + make_xlfd $ENC BIZUDGothic-Regular.ttf morisawa BIZUDGothic c + make_xlfd $ENC BIZUDPGothic-Bold.ttf morisawa BIZUDPGothic p + make_xlfd $ENC BIZUDPGothic-Regular.ttf morisawa BIZUDPGothic p + 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 + ;; +POST-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-bizud-gothic/pkg-descr b/japanese/font-bizud-gothic/pkg-descr new file mode 100644 index 000000000000..bd2e72708127 --- /dev/null +++ b/japanese/font-bizud-gothic/pkg-descr @@ -0,0 +1,2 @@ +BIZ UD Gothic is a universal design typeface designed to be easy +to read and ideal for education and business documentation. diff --git a/japanese/font-bizud-gothic/pkg-plist b/japanese/font-bizud-gothic/pkg-plist new file mode 100644 index 000000000000..667adc58e542 --- /dev/null +++ b/japanese/font-bizud-gothic/pkg-plist @@ -0,0 +1,8 @@ +%%FONTSDIR%%/BIZUDGothic-Bold.ttf +%%FONTSDIR%%/BIZUDGothic-Regular.ttf +%%FONTSDIR%%/BIZUDPGothic-Bold.ttf +%%FONTSDIR%%/BIZUDPGothic-Regular.ttf +etc/fonts/conf.avail/20-unhint-bizud-gothic.conf +etc/fonts/conf.avail/62-fonts-bizud-gothic.conf +etc/fonts/conf.d/20-unhint-bizud-gothic.conf +etc/fonts/conf.d/62-fonts-bizud-gothic.conf