1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

update japanese/mplusfonts: 1.2.5 -> 2.0.5

PR:		55804
Submitted by:	"H.Miyamoto" <Ys@PixyGarden.net> (maintainer)
This commit is contained in:
Daichi GOTO 2003-08-21 04:57:32 +00:00
parent 7b727544c9
commit e1f613d13c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=87421
8 changed files with 44 additions and 170 deletions

View File

@ -6,15 +6,16 @@
#
PORTNAME= mplusfonts
PORTVERSION= 1.2.5
PORTVERSION= 2.0.5
CATEGORIES= japanese x11-fonts
MASTER_SITES= http://downloads.sourceforge.jp/mplus-fonts/2464/ \
MASTER_SITES= http://downloads.sourceforge.jp/mplus-fonts/5030/ \
http://wids.net/archive/mplusfonts/distfiles/
DISTNAME= mplus_bitmap_fonts-${PORTVERSION}
MAINTAINER= Ys@PixyGarden.net
COMMENT= 12x13 dots X11 kanji fonts with simple and readable design
NO_BUILD= yes
USE_X_PREFIX= yes
.include <bsd.port.pre.mk>
@ -26,14 +27,11 @@ RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11/XFree86-4-clients
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}
DOCS= INSTALL_E LICENSE_E README_E \
INSTALL_J LICENSE_J README_J \
README_mplusj10
INSTALL_J LICENSE_J README_J
FONTSDIR= ${PREFIX}/lib/X11/fonts/local
PLIST_SUB= FONTSDIR=${FONTSDIR:S/${PREFIX}\///}
do-build:
pre-install:
@${MKDIR} ${DOCSDIR}
.for i in e j
@ -49,7 +47,7 @@ pre-install:
do-install:
cd ${WRKSRC} && \
${WRKSRC}/install_mplus_fonts ${FONTSDIR}
DESTDIR="${FONTSDIR}" ${WRKSRC}/install_mplus_fonts
.if !defined(NOPORTDOCS)
.for i in ${DOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}

View File

@ -1 +1 @@
MD5 (mplus_bitmap_fonts-1.2.5.tar.gz) = bd30bd8ee0b8f375d3b307f2aa243de1
MD5 (mplus_bitmap_fonts-2.0.5.tar.gz) = 937051f553fe5825b37de187cde0a437

View File

@ -1,90 +1,30 @@
--- install_mplus_fonts.orig Sat May 31 00:02:38 2003
+++ install_mplus_fonts Sat May 31 00:06:47 2003
@@ -2,7 +2,7 @@
# Install "mplus" directory [ /usr/X11R6/lib/X11/fonts ]
-PREFIX=/usr/X11R6/lib/X11/fonts
+PREFIX=$1
# Install M+ bitmap fonts EURO (iso8859-15) [ YES or NO ]
EURO15=YES
@@ -20,19 +20,6 @@
--- install_mplus_fonts.orig Mon Aug 18 13:26:45 2003
+++ install_mplus_fonts Mon Aug 18 13:32:03 2003
@@ -29,18 +29,6 @@
-
-# Backup/Create mplus directory
-if [ -d $PREFIX/mplus.BAK ]; then
- echo "remove: '$PREFIX/mplus.BAK' directory"
- rm -rf $PREFIX/mplus.BAK
-if [ -d ${PREFIX}.BAK ]; then
- echo "remove: '${PREFIX}.BAK' directory"
- rm -rf ${PREFIX}.BAK
-fi
-if [ -d $PREFIX/mplus ]; then
- echo "backup: present 'mplus' directory to 'mplus.BAK'"
- mv $PREFIX/mplus $PREFIX/mplus.BAK
-if [ -d $PREFIX ]; then
- echo "backup: present '${PREFIX##/*/}' directory to '${PREFIX##/*/}.BAK'"
- mv ${PREFIX} ${PREFIX}.BAK
-fi
-echo "create: new '$PREFIX/mplus' directory"
-mkdir -p $PREFIX/mplus
-echo "create: new '$PREFIX' directory"
-mkdir -p $PREFIX
-
# Install M+ bitmap fonts E
echo ""
echo "Install M+ bitmap fonts E (iso8859-1)..."
@@ -45,10 +32,10 @@
do
b=`basename $f .bdf`
echo "create: $b.pcf.gz"
- bdftopcf $f | gzip > $PREFIX/mplus/$b.pcf.gz
+ bdftopcf $f | gzip > $PREFIX/$b.pcf.gz
echo -e "\nInstall M+ bitmap fonts E (iso8859-1)..."
cd fonts_e
@@ -55,7 +43,7 @@
bdftopcf $f | gzip > $PREFIX/$b.pcf.gz
done
echo "create: fonts.alias for M+ bitmap fonts E"
-cat fonts.alias > $PREFIX/mplus/fonts.alias
-cat fonts.alias > $PREFIX/fonts.alias
+cat fonts.alias >> $PREFIX/fonts.alias
cd -
# Install M+ bitmap fonts EURO
@@ -63,18 +50,18 @@
cp ../$b.bdf ./
patch $b.bdf $b.diff
mv $b.bdf $b-euro.bdf
- bdftopcf $b-euro.bdf | gzip > $PREFIX/mplus/$b-euro.pcf.gz
+ bdftopcf $b-euro.bdf | gzip > $PREFIX/$b-euro.pcf.gz
done
echo "create: mplus_h12rw-euro.pcf.gz"
awk '/^SWIDTH/{$2 += 80} /^DWIDTH/{$2 += 1} {print}' \
mplus_h12r-euro.bdf | sed 's/hlv/hlvw/' > mplus_h12rw-euro.bdf
bdftopcf mplus_h12rw-euro.bdf \
- | gzip > $PREFIX/mplus/mplus_h12rw-euro.pcf.gz
+ | gzip > $PREFIX/mplus_h12rw-euro.pcf.gz
# rm $b-euro.bdf
echo "create: fonts.alias for M+ bitmap fonts EURO"
- cat fonts.alias >> $PREFIX/mplus/fonts.alias
+ cat fonts.alias >> $PREFIX/fonts.alias
cd -
fi
@@ -128,12 +115,12 @@
do
b=`basename $f .bdf`
echo "create: $b.pcf.gz"
- bdftopcf $f | gzip > $PREFIX/mplus/$b.pcf.gz
+ bdftopcf $f | gzip > $PREFIX/$b.pcf.gz
done
# rm mplus_j1*b.bdf
echo "create: fonts.alias for M+ bitmap fonts J"
- cat fonts.alias >> $PREFIX/mplus/fonts.alias
+ cat fonts.alias >> $PREFIX/fonts.alias
cd -
fi
@@ -158,7 +145,5 @@
# Finish
echo ""
echo "create: fonts.dir file"
-mkfontdir $PREFIX/mplus
-echo -n "xset fp rehash..."
-xset fp rehash &&
+mkfontdir $PREFIX
echo " done"

View File

@ -54,7 +54,6 @@
%%PORTDOCS%%%%DOCSDIR%%/LICENSE_J
%%PORTDOCS%%%%DOCSDIR%%/README_E
%%PORTDOCS%%%%DOCSDIR%%/README_J
%%PORTDOCS%%%%DOCSDIR%%/README_mplusj10
@dirrm %%DOCSDIR%%
@exec cd %D/%%FONTSDIR%% ; %D/bin/mkfontdir
@exec cat %D/%%DOCSDIR%%/fonts.alias >> %D/%%FONTSDIR%%/fonts.alias

View File

@ -6,15 +6,16 @@
#
PORTNAME= mplusfonts
PORTVERSION= 1.2.5
PORTVERSION= 2.0.5
CATEGORIES= japanese x11-fonts
MASTER_SITES= http://downloads.sourceforge.jp/mplus-fonts/2464/ \
MASTER_SITES= http://downloads.sourceforge.jp/mplus-fonts/5030/ \
http://wids.net/archive/mplusfonts/distfiles/
DISTNAME= mplus_bitmap_fonts-${PORTVERSION}
MAINTAINER= Ys@PixyGarden.net
COMMENT= 12x13 dots X11 kanji fonts with simple and readable design
NO_BUILD= yes
USE_X_PREFIX= yes
.include <bsd.port.pre.mk>
@ -26,14 +27,11 @@ RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11/XFree86-4-clients
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}
DOCS= INSTALL_E LICENSE_E README_E \
INSTALL_J LICENSE_J README_J \
README_mplusj10
INSTALL_J LICENSE_J README_J
FONTSDIR= ${PREFIX}/lib/X11/fonts/local
PLIST_SUB= FONTSDIR=${FONTSDIR:S/${PREFIX}\///}
do-build:
pre-install:
@${MKDIR} ${DOCSDIR}
.for i in e j
@ -49,7 +47,7 @@ pre-install:
do-install:
cd ${WRKSRC} && \
${WRKSRC}/install_mplus_fonts ${FONTSDIR}
DESTDIR="${FONTSDIR}" ${WRKSRC}/install_mplus_fonts
.if !defined(NOPORTDOCS)
.for i in ${DOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}

View File

@ -1 +1 @@
MD5 (mplus_bitmap_fonts-1.2.5.tar.gz) = bd30bd8ee0b8f375d3b307f2aa243de1
MD5 (mplus_bitmap_fonts-2.0.5.tar.gz) = 937051f553fe5825b37de187cde0a437

View File

@ -1,90 +1,30 @@
--- install_mplus_fonts.orig Sat May 31 00:02:38 2003
+++ install_mplus_fonts Sat May 31 00:06:47 2003
@@ -2,7 +2,7 @@
# Install "mplus" directory [ /usr/X11R6/lib/X11/fonts ]
-PREFIX=/usr/X11R6/lib/X11/fonts
+PREFIX=$1
# Install M+ bitmap fonts EURO (iso8859-15) [ YES or NO ]
EURO15=YES
@@ -20,19 +20,6 @@
--- install_mplus_fonts.orig Mon Aug 18 13:26:45 2003
+++ install_mplus_fonts Mon Aug 18 13:32:03 2003
@@ -29,18 +29,6 @@
-
-# Backup/Create mplus directory
-if [ -d $PREFIX/mplus.BAK ]; then
- echo "remove: '$PREFIX/mplus.BAK' directory"
- rm -rf $PREFIX/mplus.BAK
-if [ -d ${PREFIX}.BAK ]; then
- echo "remove: '${PREFIX}.BAK' directory"
- rm -rf ${PREFIX}.BAK
-fi
-if [ -d $PREFIX/mplus ]; then
- echo "backup: present 'mplus' directory to 'mplus.BAK'"
- mv $PREFIX/mplus $PREFIX/mplus.BAK
-if [ -d $PREFIX ]; then
- echo "backup: present '${PREFIX##/*/}' directory to '${PREFIX##/*/}.BAK'"
- mv ${PREFIX} ${PREFIX}.BAK
-fi
-echo "create: new '$PREFIX/mplus' directory"
-mkdir -p $PREFIX/mplus
-echo "create: new '$PREFIX' directory"
-mkdir -p $PREFIX
-
# Install M+ bitmap fonts E
echo ""
echo "Install M+ bitmap fonts E (iso8859-1)..."
@@ -45,10 +32,10 @@
do
b=`basename $f .bdf`
echo "create: $b.pcf.gz"
- bdftopcf $f | gzip > $PREFIX/mplus/$b.pcf.gz
+ bdftopcf $f | gzip > $PREFIX/$b.pcf.gz
echo -e "\nInstall M+ bitmap fonts E (iso8859-1)..."
cd fonts_e
@@ -55,7 +43,7 @@
bdftopcf $f | gzip > $PREFIX/$b.pcf.gz
done
echo "create: fonts.alias for M+ bitmap fonts E"
-cat fonts.alias > $PREFIX/mplus/fonts.alias
-cat fonts.alias > $PREFIX/fonts.alias
+cat fonts.alias >> $PREFIX/fonts.alias
cd -
# Install M+ bitmap fonts EURO
@@ -63,18 +50,18 @@
cp ../$b.bdf ./
patch $b.bdf $b.diff
mv $b.bdf $b-euro.bdf
- bdftopcf $b-euro.bdf | gzip > $PREFIX/mplus/$b-euro.pcf.gz
+ bdftopcf $b-euro.bdf | gzip > $PREFIX/$b-euro.pcf.gz
done
echo "create: mplus_h12rw-euro.pcf.gz"
awk '/^SWIDTH/{$2 += 80} /^DWIDTH/{$2 += 1} {print}' \
mplus_h12r-euro.bdf | sed 's/hlv/hlvw/' > mplus_h12rw-euro.bdf
bdftopcf mplus_h12rw-euro.bdf \
- | gzip > $PREFIX/mplus/mplus_h12rw-euro.pcf.gz
+ | gzip > $PREFIX/mplus_h12rw-euro.pcf.gz
# rm $b-euro.bdf
echo "create: fonts.alias for M+ bitmap fonts EURO"
- cat fonts.alias >> $PREFIX/mplus/fonts.alias
+ cat fonts.alias >> $PREFIX/fonts.alias
cd -
fi
@@ -128,12 +115,12 @@
do
b=`basename $f .bdf`
echo "create: $b.pcf.gz"
- bdftopcf $f | gzip > $PREFIX/mplus/$b.pcf.gz
+ bdftopcf $f | gzip > $PREFIX/$b.pcf.gz
done
# rm mplus_j1*b.bdf
echo "create: fonts.alias for M+ bitmap fonts J"
- cat fonts.alias >> $PREFIX/mplus/fonts.alias
+ cat fonts.alias >> $PREFIX/fonts.alias
cd -
fi
@@ -158,7 +145,5 @@
# Finish
echo ""
echo "create: fonts.dir file"
-mkfontdir $PREFIX/mplus
-echo -n "xset fp rehash..."
-xset fp rehash &&
+mkfontdir $PREFIX
echo " done"

View File

@ -54,7 +54,6 @@
%%PORTDOCS%%%%DOCSDIR%%/LICENSE_J
%%PORTDOCS%%%%DOCSDIR%%/README_E
%%PORTDOCS%%%%DOCSDIR%%/README_J
%%PORTDOCS%%%%DOCSDIR%%/README_mplusj10
@dirrm %%DOCSDIR%%
@exec cd %D/%%FONTSDIR%% ; %D/bin/mkfontdir
@exec cat %D/%%DOCSDIR%%/fonts.alias >> %D/%%FONTSDIR%%/fonts.alias