diff --git a/japanese/Makefile b/japanese/Makefile index 15af78ced2e1..09648347d97f 100644 --- a/japanese/Makefile +++ b/japanese/Makefile @@ -165,6 +165,7 @@ SUBDIR += makejvf SUBDIR += man SUBDIR += man-doc + SUBDIR += marumoji-fonts SUBDIR += mendexk-euc SUBDIR += mendexk-sjis SUBDIR += mh diff --git a/japanese/marumoji-fonts/Makefile b/japanese/marumoji-fonts/Makefile new file mode 100644 index 000000000000..2562f0938458 --- /dev/null +++ b/japanese/marumoji-fonts/Makefile @@ -0,0 +1,66 @@ +# New ports collection makefile for: marumoji-fonts +# Date created: Jun 1 2001 +# Whom: Yoichi NAKAYAMA +# +# $FreeBSD$ +# + +PORTNAME= marumoji-fonts +PORTVERSION= 1.0 +CATEGORIES= japanese x11-fonts +MASTER_SITES= http://mlnews.com/marumoji/src/ \ + http://www.eken.phys.nagoya-u.ac.jp/~yoichi/FreeBSD/distfiles/ \ + ftp://ftp.lavender.org/pub/x11/fonts/ +DISTFILES= maru14.pcf.gz maru16.pcf.gz maru18.pcf.gz \ + 7x14maru.bdf.gz 7x14rkmaru.bdf.gz \ + 8x16maru.bdf.gz 8x16rkmr.bdf.gz \ + 9x18maru.bdf.gz 9x18rkmr.bdf.gz + +MAINTAINER= yoichi@eken.phys.nagoya-u.ac.jp + +NO_WRKSUBDIR= yes +USE_X_PREFIX= yes +FONTSDIR= lib/X11/fonts/local + +.include + +.if ${XFREE86_VERSION} == 4 +BUILD_DEPENDS+= bdftopcf:${PORTSDIR}/x11/XFree86-4-clients +RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11/XFree86-4-clients +.endif + +BDFFONTS= 7x14maru.bdf.gz 7x14rkmaru.bdf.gz 8x16maru.bdf.gz \ + 8x16rkmr.bdf.gz 9x18maru.bdf.gz 9x18rkmr.bdf.gz +FONTSIZE= 7x14 8x16 9x18 +PLIST_SUB= FONTSDIR=${FONTSDIR} + +do-extract: + @${MKDIR} ${WRKDIR} +.for i in ${BDFFONTS} + @${CP} ${DISTDIR}/${i} ${WRKDIR} + @${GUNZIP_CMD} ${WRKDIR}/${i} +.endfor + @${MV} ${WRKDIR}/7x14rkmaru.bdf ${WRKDIR}/7x14rkmr.bdf + +do-build: +.for i in ${FONTSIZE} + (cd ${WRKSRC} ; \ + bdftopcf ${i}maru.bdf > ${i}maru.pcf ; ${GZIP_CMD} ${i}maru.pcf; \ + bdftopcf ${i}rkmr.bdf > ${i}rkmr.pcf ; ${GZIP_CMD} ${i}rkmr.pcf ) +.endfor + +do-install: + ${MKDIR} ${PREFIX}/${FONTSDIR} + (cd ${DISTDIR} ; ${INSTALL_DATA} maru14.pcf.gz maru16.pcf.gz maru18.pcf.gz ${PREFIX}/${FONTSDIR}) +.for i in ${FONTSIZE} + (cd ${WRKSRC} ; ${INSTALL_DATA} ${i}maru.pcf.gz ${i}rkmr.pcf.gz ${PREFIX}/${FONTSDIR}) +.endfor + mkfontdir ${PREFIX}/${FONTSDIR} + ${MKDIR} ${PREFIX}/share/doc/marumoji-fonts + ${INSTALL_DATA} ${FILESDIR}/LICENSE ${PREFIX}/share/doc/marumoji-fonts + +pre-install: + @${SETENV} PKG_PREFIX=${PREFIX} \ + ${SH} ${PKGREQ} ${PKGNAME} INSTALL + +.include diff --git a/japanese/marumoji-fonts/distinfo b/japanese/marumoji-fonts/distinfo new file mode 100644 index 000000000000..6029dec51dd5 --- /dev/null +++ b/japanese/marumoji-fonts/distinfo @@ -0,0 +1,9 @@ +MD5 (maru14.pcf.gz) = a7bfe676ad69ed8dde8807ecbe7c1758 +MD5 (maru16.pcf.gz) = 274dcd0aebd762fca01cc51f61009909 +MD5 (maru18.pcf.gz) = 70ae5db4e9d54f046c66eb2a03989bc0 +MD5 (7x14maru.bdf.gz) = 39b80c415e06440ffbe94d00e07f9a09 +MD5 (7x14rkmaru.bdf.gz) = 43eee9a0657ef93639523011827542b6 +MD5 (8x16maru.bdf.gz) = 3b547083854a6ddf99c754e1ab712b57 +MD5 (8x16rkmr.bdf.gz) = d31f451485d37c4485d9386fac791b95 +MD5 (9x18maru.bdf.gz) = 54d410840e7af5ff53647b2312ade144 +MD5 (9x18rkmr.bdf.gz) = 824e77fcfcc5aa4aded277e5cdb4202d diff --git a/japanese/marumoji-fonts/files/LICENSE b/japanese/marumoji-fonts/files/LICENSE new file mode 100644 index 000000000000..801a20a6262a --- /dev/null +++ b/japanese/marumoji-fonts/files/LICENSE @@ -0,0 +1,27 @@ +License agreement for marumoji-fonts port + +Copyright notice in 7x14rkmaru.bdf.gz is the following (others are +public domain). + +Permission to use, copy, modify, distribute, and sell this +software and its documentation for any purpose is hereby granted +without fee, provided that the above copyright notice appear in +all copies and that both that copyright notice and this permis- +sion notice appear in supporting documentation, and that the name +of PFU not be used in advertising or publicity pertaining to dis- +tribution of the software without specific, written prior permis- +sion. PFU makes no representations about the suitability of this +software for any purpose. It is provided "as is" without express +or implied warranty. + +PFU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, IN- +CLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN +NO EVENT SHALL PFU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSE- +QUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF +USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLI- +GENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION +WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +Original designed by K.Shirakami + Ver. 1.1 + freeware diff --git a/japanese/marumoji-fonts/pkg-comment b/japanese/marumoji-fonts/pkg-comment new file mode 100644 index 000000000000..9010eb6413ad --- /dev/null +++ b/japanese/marumoji-fonts/pkg-comment @@ -0,0 +1 @@ +Japanese marumoji fonts diff --git a/japanese/marumoji-fonts/pkg-descr b/japanese/marumoji-fonts/pkg-descr new file mode 100644 index 000000000000..12319f26d425 --- /dev/null +++ b/japanese/marumoji-fonts/pkg-descr @@ -0,0 +1,3 @@ +Japanese marumoji font collection for X + +WWW: http://mlnews.com/marumoji/ diff --git a/japanese/marumoji-fonts/pkg-plist b/japanese/marumoji-fonts/pkg-plist new file mode 100644 index 000000000000..4948b44922af --- /dev/null +++ b/japanese/marumoji-fonts/pkg-plist @@ -0,0 +1,15 @@ +%%FONTSDIR%%/7x14maru.pcf.gz +%%FONTSDIR%%/7x14rkmr.pcf.gz +%%FONTSDIR%%/8x16maru.pcf.gz +%%FONTSDIR%%/8x16rkmr.pcf.gz +%%FONTSDIR%%/9x18maru.pcf.gz +%%FONTSDIR%%/9x18rkmr.pcf.gz +%%FONTSDIR%%/maru14.pcf.gz +%%FONTSDIR%%/maru16.pcf.gz +%%FONTSDIR%%/maru18.pcf.gz +share/doc/marumoji-fonts/LICENSE +@dirrm share/doc/marumoji-fonts +@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/marumoji-fonts/pkg-req b/japanese/marumoji-fonts/pkg-req new file mode 100644 index 000000000000..9b8d752b2a78 --- /dev/null +++ b/japanese/marumoji-fonts/pkg-req @@ -0,0 +1,62 @@ +#!/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} +maru14 -misc-marumoji-medium-r-normal--14-130-75-75-c-140-jisx0208.1983-0 +maru16 -misc-marumoji-medium-r-normal--16-150-75-75-c-160-jisx0208.1983-0 +maru18 -misc-marumoji-medium-r-normal--18-170-75-75-c-180-jisx0208.1983-0 +7x14rkmr -misc-marumoji-medium-r-normal--14-130-75-75-c-70-jisx0201.1976-0 +7x14maru -misc-marumoji-medium-r-normal--14-130-75-75-c-70-iso8859-1 +8x16rkmr -misc-marumoji-medium-r-normal--16-150-75-75-c-80-jisx0201.1976-0 +8x16maru -misc-marumoji-medium-r-normal--16-150-75-75-c-80-iso8859-1 +9x18rkmr -misc-marumoji-medium-r-normal--18-170-75-75-c-90-jisx0201.1976-0 +9x18maru -misc-marumoji-medium-r-normal--18-170-75-75-c-90-iso8859-1 +-misc-marumoji-medium-r-normal--14-100-100-100-c-70-iso8859-1 -misc-marumoji-medium-r-normal--14-130-75-75-c-70-iso8859-1 +-misc-marumoji-medium-r-normal--14-100-100-100-c-70-jisx0201.1976-0 -misc-marumoji-medium-r-normal--14-130-75-75-c-70-jisx0201.1976-0 +-misc-marumoji-medium-r-normal--14-100-100-100-c-140-jisx0208.1983-0 -misc-marumoji-medium-r-normal--14-130-75-75-c-140-jisx0208.1983-0 +-misc-marumoji-medium-r-normal--16-120-100-100-c-80-iso8859-1 -misc-marumoji-medium-r-normal--16-150-75-75-c-80-iso8859-1 +-misc-marumoji-medium-r-normal--16-120-100-100-c-80-jisx0201.1976-0 -misc-marumoji-medium-r-normal--16-150-75-75-c-80-jisx0201.1976-0 +-misc-marumoji-medium-r-normal--16-120-100-100-c-160-jisx0208.1983-0 -misc-marumoji-medium-r-normal--16-150-75-75-c-160-jisx0208.1983-0 +-misc-marumoji-medium-r-normal--18-130-100-100-c-90-iso8859-1 -misc-marumoji-medium-r-normal--18-170-75-75-c-90-iso8859-1 +-misc-marumoji-medium-r-normal--18-130-100-100-c-90-jisx0201.1976-0 -misc-marumoji-medium-r-normal--18-170-75-75-c-90-jisx0201.1976-0 +-misc-marumoji-medium-r-normal--18-130-100-100-c-180-jisx0208.1983-0 -misc-marumoji-medium-r-normal--18-170-75-75-c-180-jisx0208.1983-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 -- "`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;