Index: head/japanese/Makefile =================================================================== --- head/japanese/Makefile (revision 511392) +++ head/japanese/Makefile (revision 511393) @@ -1,301 +1,303 @@ # $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 += cp5022x-el 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-myrica + SUBDIR += font-myricam 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 += 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 += jpilot SUBDIR += jstrings SUBDIR += jvim3 SUBDIR += kakasi SUBDIR += kana-no-quiz SUBDIR += kanjipad SUBDIR += kasumi SUBDIR += kbanner SUBDIR += kcc SUBDIR += kcode SUBDIR += kdrill SUBDIR += kinput2 SUBDIR += kiten 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 += plain2 SUBDIR += plan SUBDIR += prn SUBDIR += py-mecab SUBDIR += py-tegaki SUBDIR += py-tegaki-gtk SUBDIR += py-zinnia SUBDIR += qkc 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 += sourcehansans-otf SUBDIR += sourcehanserif-otf SUBDIR += spoqahansans-ttf 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 += 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-myrica/Makefile =================================================================== --- head/japanese/font-myrica/Makefile (nonexistent) +++ head/japanese/font-myrica/Makefile (revision 511393) @@ -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 Property changes on: head/japanese/font-myrica/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-myrica/distinfo =================================================================== --- head/japanese/font-myrica/distinfo (nonexistent) +++ head/japanese/font-myrica/distinfo (revision 511393) @@ -0,0 +1,3 @@ +TIMESTAMP = 1567831810 +SHA256 (Myrica-2.012.20180119/Myrica.7z) = f73dca7a5999d02351534dbdc184e0e2f9f1a8294de5ff931bb535a5327c68c0 +SIZE (Myrica-2.012.20180119/Myrica.7z) = 4735980 Property changes on: head/japanese/font-myrica/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-myrica/files/20-unhint-myrica.conf =================================================================== --- head/japanese/font-myrica/files/20-unhint-myrica.conf (nonexistent) +++ head/japanese/font-myrica/files/20-unhint-myrica.conf (revision 511393) @@ -0,0 +1,19 @@ + + + + + + + Myrica M + + + Myrica N + + + Myrica P + + + false + + + Property changes on: head/japanese/font-myrica/files/20-unhint-myrica.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-myrica/files/62-fonts-myrica.conf =================================================================== --- head/japanese/font-myrica/files/62-fonts-myrica.conf (nonexistent) +++ head/japanese/font-myrica/files/62-fonts-myrica.conf (revision 511393) @@ -0,0 +1,17 @@ + + + + + + sans-serif + + Myrica P + + + + monospace + + Myrica M + + + Property changes on: head/japanese/font-myrica/files/62-fonts-myrica.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-myrica/files/pkg-install.in =================================================================== --- head/japanese/font-myrica/files/pkg-install.in (nonexistent) +++ head/japanese/font-myrica/files/pkg-install.in (revision 511393) @@ -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 Property changes on: head/japanese/font-myrica/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-myrica/pkg-descr =================================================================== --- head/japanese/font-myrica/pkg-descr (nonexistent) +++ head/japanese/font-myrica/pkg-descr (revision 511393) @@ -0,0 +1,3 @@ +Myrica is a free TrueType fonts for programming + +https://myrica.estable.jp/ Property changes on: head/japanese/font-myrica/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-myrica/pkg-plist =================================================================== --- head/japanese/font-myrica/pkg-plist (nonexistent) +++ head/japanese/font-myrica/pkg-plist (revision 511393) @@ -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 Property changes on: head/japanese/font-myrica/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 Index: head/japanese/font-myricam/Makefile =================================================================== --- head/japanese/font-myricam/Makefile (nonexistent) +++ head/japanese/font-myricam/Makefile (revision 511393) @@ -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 Property changes on: head/japanese/font-myricam/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-myricam/distinfo =================================================================== --- head/japanese/font-myricam/distinfo (nonexistent) +++ head/japanese/font-myricam/distinfo (revision 511393) @@ -0,0 +1,3 @@ +TIMESTAMP = 1567834800 +SHA256 (MyricaM-2.012.20180119/MyricaM.7z) = 7b309919d0f5e51cb2d96dc13b94794efe39f2b2f4eae7a43d9404088ad2ddda +SIZE (MyricaM-2.012.20180119/MyricaM.7z) = 4394538 Property changes on: head/japanese/font-myricam/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-myricam/files/20-unhint-myricam.conf =================================================================== --- head/japanese/font-myricam/files/20-unhint-myricam.conf (nonexistent) +++ head/japanese/font-myricam/files/20-unhint-myricam.conf (revision 511393) @@ -0,0 +1,19 @@ + + + + + + + MyricaM M + + + MyricaM N + + + MyricaM P + + + false + + + Property changes on: head/japanese/font-myricam/files/20-unhint-myricam.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-myricam/files/62-fonts-myricam.conf =================================================================== --- head/japanese/font-myricam/files/62-fonts-myricam.conf (nonexistent) +++ head/japanese/font-myricam/files/62-fonts-myricam.conf (revision 511393) @@ -0,0 +1,17 @@ + + + + + + sans-serif + + MyricaM P + + + + monospace + + MyricaM M + + + Property changes on: head/japanese/font-myricam/files/62-fonts-myricam.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-myricam/files/pkg-install.in =================================================================== --- head/japanese/font-myricam/files/pkg-install.in (nonexistent) +++ head/japanese/font-myricam/files/pkg-install.in (revision 511393) @@ -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 Property changes on: head/japanese/font-myricam/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-myricam/pkg-descr =================================================================== --- head/japanese/font-myricam/pkg-descr (nonexistent) +++ head/japanese/font-myricam/pkg-descr (revision 511393) @@ -0,0 +1,3 @@ +Myrica is a free TrueType fonts for programming + +https://myrica.estable.jp/ Property changes on: head/japanese/font-myricam/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-myricam/pkg-plist =================================================================== --- head/japanese/font-myricam/pkg-plist (nonexistent) +++ head/japanese/font-myricam/pkg-plist (revision 511393) @@ -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 Property changes on: head/japanese/font-myricam/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