diff options
author | knu <knu@FreeBSD.org> | 2001-06-23 19:14:58 +0000 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2001-06-23 19:14:58 +0000 |
commit | e1fece63128f06f44bc6d3f2e0b2e46018952be2 (patch) | |
tree | 48f885f8292f382bdedfcc0184f58640bfed9630 /japanese/shinonome | |
parent | 3280056efa7f28d2391edadd8d70b880ea4decdc (diff) | |
download | FreeBSD-ports-e1fece63128f06f44bc6d3f2e0b2e46018952be2.zip FreeBSD-ports-e1fece63128f06f44bc6d3f2e0b2e46018952be2.tar.gz |
Add ja-shinonome, Japanese 12,14,16 dot fonts.
PR: ports/28174
Submitted by: Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
Diffstat (limited to 'japanese/shinonome')
-rw-r--r-- | japanese/shinonome/Makefile | 74 | ||||
-rw-r--r-- | japanese/shinonome/distinfo | 1 | ||||
-rw-r--r-- | japanese/shinonome/pkg-comment | 1 | ||||
-rw-r--r-- | japanese/shinonome/pkg-descr | 3 | ||||
-rw-r--r-- | japanese/shinonome/pkg-plist | 75 | ||||
-rw-r--r-- | japanese/shinonome/pkg-req | 39 |
6 files changed, 193 insertions, 0 deletions
diff --git a/japanese/shinonome/Makefile b/japanese/shinonome/Makefile new file mode 100644 index 0000000..6babb9d --- /dev/null +++ b/japanese/shinonome/Makefile @@ -0,0 +1,74 @@ +# New ports collection makefile for: shinonome +# Date created: June 15 2001 +# Whom: Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp> +# +# $FreeBSD$ +# + +PORTNAME= shinonome +PORTVERSION= 0.9.2 +CATEGORIES= japanese x11-fonts +MASTER_SITES= http://openlab.ring.gr.jp/efont/dist/shinonome/%SUBDIR%/ +MASTER_SITE_SUBDIR= . old + +MAINTAINER= yoichi@eken.phys.nagoya-u.ac.jp + +USE_BZIP2= yes +HAS_CONFIGURE= yes +USE_GMAKE= yes +USE_X_PREFIX= yes +FONTSDIR= lib/X11/fonts/local +DOCSDIR= share/doc/shinonome +CONFIGURE_ARGS= --with-fontdir=${PREFIX}/${FONTSDIR} --enable-compress + +.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 + +FONTNAMES=\ + shnm6x12a shnm7x14rbi shnmk12maru shnmk14bi \ + shnm6x12ab shnm7x14ri shnmk12marub shnmk14i \ + shnm6x12abi shnm8x16a shnmk12marubi shnmk14min \ + shnm6x12ai shnm8x16ab shnmk12marui shnmk14minb \ + shnm6x12r shnm8x16abi shnmk12min shnmk14minbi \ + shnm6x12rb shnm8x16ai shnmk12minb shnmk14mini \ + shnm6x12rbi shnm8x16r shnmk12minbi shnmk16 \ + shnm6x12ri shnm8x16rb shnmk12mini shnmk16b \ + shnm7x14a shnm8x16rbi shnmk12p shnmk16bi \ + shnm7x14ab shnm8x16ri shnmk12pb shnmk16i \ + shnm7x14abi shnmk12 shnmk12pbi shnmk16min \ + shnm7x14ai shnmk12b shnmk12pi shnmk16minb \ + shnm7x14r shnmk12bi shnmk14 shnmk16minbi \ + shnm7x14rb shnmk12i shnmk14b shnmk16mini +DOCS= AUTHORS BUGS ChangeLog ChangeLog.0 DESIGN.12 DESIGN.14 \ + DESIGN.16 DESIGN.18 INSTALL README THANKS TODO + +PLIST_SUB+= FONTSDIR=${FONTSDIR} DOCSDIR=${DOCSDIR} + +post-build: +.for i in ${FONTNAMES} + @cd ${WRKSRC}; ${GZIP_CMD} ${i}.pcf +.endfor + +pre-install: + @${MKDIR} ${PREFIX}/${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/fonts.alias ${PREFIX}/${DOCSDIR} + @${SETENV} PKG_PREFIX=${PREFIX} \ + ${SH} ${PKGREQ} ${PKGNAME} INSTALL + +do-install: +.for i in ${FONTNAMES} + ${INSTALL_DATA} ${WRKSRC}/${i}.pcf.gz ${PREFIX}/${FONTSDIR} +.endfor + @mkfontdir ${PREFIX}/${FONTSDIR} + @${CAT} ${PREFIX}/${DOCSDIR}/fonts.alias >> ${PREFIX}/${FONTSDIR}/fonts.alias +.if !defined(NOPORTDOCS) +.for i in ${DOCS} + @${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${DOCSDIR} +.endfor +.endif + +.include <bsd.port.post.mk> diff --git a/japanese/shinonome/distinfo b/japanese/shinonome/distinfo new file mode 100644 index 0000000..9f0fd2e --- /dev/null +++ b/japanese/shinonome/distinfo @@ -0,0 +1 @@ +MD5 (shinonome-0.9.2.tar.bz2) = 7b42d052eebfb4c03c7b9354ee3a91e6 diff --git a/japanese/shinonome/pkg-comment b/japanese/shinonome/pkg-comment new file mode 100644 index 0000000..9e225c5 --- /dev/null +++ b/japanese/shinonome/pkg-comment @@ -0,0 +1 @@ +Japanese 12,14,16 dot fonts diff --git a/japanese/shinonome/pkg-descr b/japanese/shinonome/pkg-descr new file mode 100644 index 0000000..75f1c4e --- /dev/null +++ b/japanese/shinonome/pkg-descr @@ -0,0 +1,3 @@ +shinonome fonts - japanese public domain fonts + +WWW: http://openlab.ring.gr.jp/efont/shinonome/ diff --git a/japanese/shinonome/pkg-plist b/japanese/shinonome/pkg-plist new file mode 100644 index 0000000..96d088f --- /dev/null +++ b/japanese/shinonome/pkg-plist @@ -0,0 +1,75 @@ +%%FONTSDIR%%/shnm6x12a.pcf.gz +%%FONTSDIR%%/shnm6x12ab.pcf.gz +%%FONTSDIR%%/shnm6x12abi.pcf.gz +%%FONTSDIR%%/shnm6x12ai.pcf.gz +%%FONTSDIR%%/shnm6x12r.pcf.gz +%%FONTSDIR%%/shnm6x12rb.pcf.gz +%%FONTSDIR%%/shnm6x12rbi.pcf.gz +%%FONTSDIR%%/shnm6x12ri.pcf.gz +%%FONTSDIR%%/shnm7x14a.pcf.gz +%%FONTSDIR%%/shnm7x14ab.pcf.gz +%%FONTSDIR%%/shnm7x14abi.pcf.gz +%%FONTSDIR%%/shnm7x14ai.pcf.gz +%%FONTSDIR%%/shnm7x14r.pcf.gz +%%FONTSDIR%%/shnm7x14rb.pcf.gz +%%FONTSDIR%%/shnm7x14rbi.pcf.gz +%%FONTSDIR%%/shnm7x14ri.pcf.gz +%%FONTSDIR%%/shnm8x16a.pcf.gz +%%FONTSDIR%%/shnm8x16ab.pcf.gz +%%FONTSDIR%%/shnm8x16abi.pcf.gz +%%FONTSDIR%%/shnm8x16ai.pcf.gz +%%FONTSDIR%%/shnm8x16r.pcf.gz +%%FONTSDIR%%/shnm8x16rb.pcf.gz +%%FONTSDIR%%/shnm8x16rbi.pcf.gz +%%FONTSDIR%%/shnm8x16ri.pcf.gz +%%FONTSDIR%%/shnmk12.pcf.gz +%%FONTSDIR%%/shnmk12b.pcf.gz +%%FONTSDIR%%/shnmk12bi.pcf.gz +%%FONTSDIR%%/shnmk12i.pcf.gz +%%FONTSDIR%%/shnmk12maru.pcf.gz +%%FONTSDIR%%/shnmk12marub.pcf.gz +%%FONTSDIR%%/shnmk12marubi.pcf.gz +%%FONTSDIR%%/shnmk12marui.pcf.gz +%%FONTSDIR%%/shnmk12min.pcf.gz +%%FONTSDIR%%/shnmk12minb.pcf.gz +%%FONTSDIR%%/shnmk12minbi.pcf.gz +%%FONTSDIR%%/shnmk12mini.pcf.gz +%%FONTSDIR%%/shnmk12p.pcf.gz +%%FONTSDIR%%/shnmk12pb.pcf.gz +%%FONTSDIR%%/shnmk12pbi.pcf.gz +%%FONTSDIR%%/shnmk12pi.pcf.gz +%%FONTSDIR%%/shnmk14.pcf.gz +%%FONTSDIR%%/shnmk14b.pcf.gz +%%FONTSDIR%%/shnmk14bi.pcf.gz +%%FONTSDIR%%/shnmk14i.pcf.gz +%%FONTSDIR%%/shnmk14min.pcf.gz +%%FONTSDIR%%/shnmk14minb.pcf.gz +%%FONTSDIR%%/shnmk14minbi.pcf.gz +%%FONTSDIR%%/shnmk14mini.pcf.gz +%%FONTSDIR%%/shnmk16.pcf.gz +%%FONTSDIR%%/shnmk16b.pcf.gz +%%FONTSDIR%%/shnmk16bi.pcf.gz +%%FONTSDIR%%/shnmk16i.pcf.gz +%%FONTSDIR%%/shnmk16min.pcf.gz +%%FONTSDIR%%/shnmk16minb.pcf.gz +%%FONTSDIR%%/shnmk16minbi.pcf.gz +%%FONTSDIR%%/shnmk16mini.pcf.gz +%%DOCSDIR%%/fonts.alias +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS +%%PORTDOCS%%%%DOCSDIR%%/BUGS +%%PORTDOCS%%%%DOCSDIR%%/ChangeLog +%%PORTDOCS%%%%DOCSDIR%%/ChangeLog.0 +%%PORTDOCS%%%%DOCSDIR%%/DESIGN.12 +%%PORTDOCS%%%%DOCSDIR%%/DESIGN.14 +%%PORTDOCS%%%%DOCSDIR%%/DESIGN.16 +%%PORTDOCS%%%%DOCSDIR%%/DESIGN.18 +%%PORTDOCS%%%%DOCSDIR%%/INSTALL +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/THANKS +%%PORTDOCS%%%%DOCSDIR%%/TODO +@dirrm %%DOCSDIR%% +@exec cd %D/%%FONTSDIR%% ; %D/bin/mkfontdir +@exec cat %D/%%DOCSDIR%%/fonts.alias >> %D/%%FONTSDIR%%/fonts.alias +@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/shinonome/pkg-req b/japanese/shinonome/pkg-req new file mode 100644 index 0000000..530a1f5 --- /dev/null +++ b/japanese/shinonome/pkg-req @@ -0,0 +1,39 @@ +#!/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! +FONTS_ALIAS=${PKG_PREFIX}/share/doc/shinonome/fonts.alias + +if [ "$2" = "DEINSTALL" ] ; then + echo "Updating ${FONTDIR}/fonts.alias" + cd ${FONTDIR} + touch fonts.alias + cp fonts.alias fonts.alias.orig + grep -v -- "`cat ${FONTS_ALIAS}`" fonts.alias.orig > fonts.alias + rm -f fonts.alias.orig +fi + +echo "**********************************************************" +echo "You should restart X server or do 'xset fp rehash' command" +echo "to enable this update." +echo "**********************************************************" + +exit 0; |