diff options
author | nobutaka <nobutaka@FreeBSD.org> | 2003-01-13 22:50:12 +0800 |
---|---|---|
committer | nobutaka <nobutaka@FreeBSD.org> | 2003-01-13 22:50:12 +0800 |
commit | 92f33cd8202850ff71e4d555e6977d179be3ca36 (patch) | |
tree | 09fdc290e25014fcdfd250c317342f02aeefc819 /japanese/mplusfonts | |
parent | 671585c648cd9c52b30f7242dc646c84ff707f30 (diff) | |
download | freebsd-ports-graphics-92f33cd8202850ff71e4d555e6977d179be3ca36.tar.gz freebsd-ports-graphics-92f33cd8202850ff71e4d555e6977d179be3ca36.tar.zst freebsd-ports-graphics-92f33cd8202850ff71e4d555e6977d179be3ca36.zip |
Add mplusfonts. 12x13 dots X11 kanji fonts with simple and high readable design.
PR: ports/43358
Submitted by: Yuukis <Ys@PixyGarden.net>
Diffstat (limited to 'japanese/mplusfonts')
-rw-r--r-- | japanese/mplusfonts/Makefile | 55 | ||||
-rw-r--r-- | japanese/mplusfonts/distinfo | 1 | ||||
-rw-r--r-- | japanese/mplusfonts/pkg-comment | 1 | ||||
-rw-r--r-- | japanese/mplusfonts/pkg-descr | 13 | ||||
-rw-r--r-- | japanese/mplusfonts/pkg-plist | 13 | ||||
-rw-r--r-- | japanese/mplusfonts/pkg-req | 46 |
6 files changed, 129 insertions, 0 deletions
diff --git a/japanese/mplusfonts/Makefile b/japanese/mplusfonts/Makefile new file mode 100644 index 00000000000..e4dc9f6bf4d --- /dev/null +++ b/japanese/mplusfonts/Makefile @@ -0,0 +1,55 @@ +# New ports collection makefile for: M+ Fonts_J +# Date created: July 17 2002 +# Whom: The 244th namelessness at 2ch.net +# +# $FreeBSD$ +# + +PORTNAME= mplusfonts +PORTVERSION= 1.0.4 +CATEGORIES= japanese x11-fonts +MASTER_SITES= http://downloads.sourceforge.jp/mplus-fonts/2050/ \ + http://wids.net/archive/mplusfonts/distfiles/ +DISTNAME= mplus_fonts_J-${PORTVERSION} + +MAINTAINER= Ys@PixyGarden.net + +USE_X_PREFIX= yes + +.include <bsd.port.pre.mk> + +.if ${XFREE86_VERSION} == 4 +BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11/XFree86-4-clients +RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11/XFree86-4-clients +.endif + +FONTNAME= mplus_j12b mplus_j12b_iso8859 mplus_j12b_jisx0201 \ + mplus_j12r mplus_j12r_iso8859 mplus_j12r_jisx0201 +DOCS= LICENSE README_J + +FONTSDIR= ${PREFIX}/lib/X11/fonts/local +PLIST_SUB= FONTSDIR=${FONTSDIR:S/${PREFIX}\///} + +do-build: +.for file in ${FONTNAME} + cd ${WRKSRC} && \ + bdftopcf ${file}.bdf | ${GZIP_CMD} > ${file}.pcf.gz +.endfor + +pre-install: + @${SETENV} PKG_PREFIX=${PREFIX} \ + ${SH} ${PKGREQ} ${PKGNAME} INSTALL + +do-install: + ${INSTALL_DATA} ${WRKSRC}/*.pcf.gz ${FONTSDIR} +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for i in ${DOCS} + @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} +.endfor +.endif + +post-install: + @(cd ${FONTSDIR} ; mkfontdir) + +.include <bsd.port.post.mk> diff --git a/japanese/mplusfonts/distinfo b/japanese/mplusfonts/distinfo new file mode 100644 index 00000000000..f4c5820c74e --- /dev/null +++ b/japanese/mplusfonts/distinfo @@ -0,0 +1 @@ +MD5 (mplus_fonts_J-1.0.4.tar.gz) = 2ae9c907ff8843f98b7d5346b7179959 diff --git a/japanese/mplusfonts/pkg-comment b/japanese/mplusfonts/pkg-comment new file mode 100644 index 00000000000..40c0065a936 --- /dev/null +++ b/japanese/mplusfonts/pkg-comment @@ -0,0 +1 @@ +12x13 dots X11 kanji fonts with simple and high readable design diff --git a/japanese/mplusfonts/pkg-descr b/japanese/mplusfonts/pkg-descr new file mode 100644 index 00000000000..04ee9511797 --- /dev/null +++ b/japanese/mplusfonts/pkg-descr @@ -0,0 +1,13 @@ +M+ bitmap fonts is a bitmap font set aimed for simple and high readable design. + +- mplus_j12r.bdf: 12x13 dots Kanji (jisx0208) +- mplus_j12b.bdf: 12x13 dots bold Kanji (jisx0208) +- mplus_j12r_jisx0201.bdf: 6x13 dots ASCII + Half-wide Kana (jisx0201) +- mplus_j12b_jisx0201.bdf: 6x13 dots bold ASCII + Half-wide Kana (jisx0201) +- mplus_j12r_iso8859.bdf: 6x13 dots ASCII + European char (iso8859-1) +- mplus_j12b_iso8859.bdf: 6x13 dots bold ASCII + European char (iso8859-1) + +WWW: http://mplus-fonts.sourceforge.jp/ + +-- H.Miyamoto +<Ys@PixyGarden.net> diff --git a/japanese/mplusfonts/pkg-plist b/japanese/mplusfonts/pkg-plist new file mode 100644 index 00000000000..a489edcbc0e --- /dev/null +++ b/japanese/mplusfonts/pkg-plist @@ -0,0 +1,13 @@ +%%FONTSDIR%%/mplus_j12b_iso8859.pcf.gz +%%FONTSDIR%%/mplus_j12b_jisx0201.pcf.gz +%%FONTSDIR%%/mplus_j12b.pcf.gz +%%FONTSDIR%%/mplus_j12r_iso8859.pcf.gz +%%FONTSDIR%%/mplus_j12r_jisx0201.pcf.gz +%%FONTSDIR%%/mplus_j12r.pcf.gz +%%PORTDOCS%%%%DOCSDIR%%/LICENSE +%%PORTDOCS%%%%DOCSDIR%%/README_J +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@exec cd %D/%%FONTSDIR%% ; %D/bin/mkfontdir +@unexec cd %D/%%FONTSDIR%% ; %D/bin/mkfontdir +@unexec if [ `wc -c %D/%%FONTSDIR%%/fonts.dir | awk '{print $1}'` = 2 ]; then rm -f %D/%%FONTSDIR%%/fonts.dir; fi +@unexec if [ ! -s %D/%%FONTSDIR%%/fonts.alias ]; then rm -f %D/%%FONTSDIR%%/fonts.alias; fi diff --git a/japanese/mplusfonts/pkg-req b/japanese/mplusfonts/pkg-req new file mode 100644 index 00000000000..fd576dda5c6 --- /dev/null +++ b/japanese/mplusfonts/pkg-req @@ -0,0 +1,46 @@ +#!/bin/sh + +if [ "x$1" = "x" ]; then + exit 1; +fi +if [ "x$2" != "xINSTALL" -a "x$2" != "xDEINSTALL" ]; then + exit 1; +fi + +export FONTDIR; FONTDIR=${PKG_PREFIX}/lib/X11/fonts/local + +if [ "$2x" = "INSTALLx" -a ! -d ${FONTDIR} ]; then + echo '**********************************************************************' + echo "****** ${FONTDIR}/ doesn't exist." + echo "****** Creating ${FONTDIR}/" + echo '****** Please upgrade your XFree86 to 3.3.3 or upper,' + echo "****** or add this directory to your /etc/XF86Config's FontPath entry." + echo '**********************************************************************' + mkdir ${FONTDIR} +fi + +# font alias entry here! +TMPFILE=/tmp/install-fonts-alias-$$ +cat << EOF > ${TMPFILE} +-mplus-gothic-medium-r-normal--13-120-75-75-c-120-jisx0208.1983-0 -mplus-gothic-medium-r-normal--13-120-75-75-c-120-jisx0208.1990-0 +-mplus-gothic-bold-r-normal--13-120-75-75-c-120-jisx0208.1983-0 -mplus-gothic-bold-r-normal--13-120-75-75-c-120-jisx0208.1990-0 +EOF + +echo "Updating ${FONTDIR}/fonts.alias" +cd ${FONTDIR} +touch fonts.alias +cp fonts.alias fonts.alias.orig +if [ "$2" = "INSTALL" ] ; then + (grep -v -e "`cat ${TMPFILE}`" fonts.alias.orig ; \ + cat ${TMPFILE}) > fonts.alias +elif [ "$2" = "DEINSTALL" ] ; then + grep -v -e "`cat ${TMPFILE}`" fonts.alias.orig > fonts.alias +fi +rm -f fonts.alias.orig ${TMPFILE} + +echo "**********************************************************" +echo "You should restart X server or do 'xset fp rehash' command" +echo "to enable this update." +echo "**********************************************************" + +exit 0; |