Add mplusfonts. 12x13 dots X11 kanji fonts with simple and high readable design.

PR:		ports/43358
Submitted by:	Yuukis <Ys@PixyGarden.net>
This commit is contained in:
MANTANI Nobutaka 2003-01-13 14:50:12 +00:00
parent 402d75f13d
commit 012453ebdf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=73048
13 changed files with 259 additions and 0 deletions

View file

@ -208,6 +208,7 @@
SUBDIR += monafonts
SUBDIR += mozilla-jlp
SUBDIR += mozilla-jlp-devel
SUBDIR += mplusfonts
SUBDIR += msdosfs
SUBDIR += mtools
SUBDIR += muggy

View file

@ -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>

View file

@ -0,0 +1 @@
MD5 (mplus_fonts_J-1.0.4.tar.gz) = 2ae9c907ff8843f98b7d5346b7179959

View file

@ -0,0 +1 @@
12x13 dots X11 kanji fonts with simple and high readable design

View file

@ -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>

View file

@ -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

View file

@ -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;

View file

@ -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>

View file

@ -0,0 +1 @@
MD5 (mplus_fonts_J-1.0.4.tar.gz) = 2ae9c907ff8843f98b7d5346b7179959

View file

@ -0,0 +1 @@
12x13 dots X11 kanji fonts with simple and high readable design

View file

@ -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>

View file

@ -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

View file

@ -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;