freebsd-ports/japanese/font-mplus/files/patch-install_mplus_fonts
Hiroki Sato 605c645403 Ports for Japanese fonts have been reorganized in the following way:
japanese/ipa-ttfonts -> japanese/font-mplus-ipa
japanese/ipa-ttfonts -> japanese/font-ipa
japanese/kochi-ttfonts -> japanese/font-kochi
japanese/mplusfonts -> japanese/font-mplus
japanese/sazanami-ttf -> japanese/font-sazanami
japanese/shinonome -> japanese/font-shinonome
japanese/umefont -> japanese/font-ume
japanese/vlgothic -> japanese/font-vlgothic

While basically these are port name changes for consistency,
installation directories are also changed:

font files -> ${PREFIX}/share/${PORTNAME}/*
symlinks -> ${PREFIX}/share/fonts/{TTF,OTF,fontname,...}/*
symlinks -> ${PREFIX}/lib/X11/fonts/{TTF,OTF,misc,fontname,...}/*

A user-visible one is that the directory name "TrueType" is replaced
with "TTF".
2009-05-31 09:15:47 +00:00

61 lines
1.3 KiB
Text

--- install_mplus_fonts.orig 2005-03-19 23:45:12.000000000 +0900
+++ install_mplus_fonts 2009-05-14 11:07:01.000000000 +0900
@@ -29,18 +29,6 @@
-# Backup/Create mplus directory
-if [ -d ${PREFIX}.BAK ]; then
- echo "remove: '${PREFIX}.BAK' directory"
- rm -rf ${PREFIX}.BAK
-fi
-if [ -d $PREFIX ]; then
- echo "backup: present '${PREFIX##/*/}' directory to '${PREFIX##/*/}.BAK'"
- mv ${PREFIX} ${PREFIX}.BAK
-fi
-echo "create: new '$PREFIX' directory"
-mkdir -p $PREFIX
-
# Install M+ BITMAP FONTS E
echo -e "\nInstall M+ BITMAP FONTS E (iso8859-1)..."
cd fonts_e
@@ -54,8 +42,6 @@
echo "create: $b.pcf.gz"
bdftopcf $f | gzip > $PREFIX/$b.pcf.gz
done
-echo "create: fonts.alias for M+ BITMAP FONTS E"
-cat fonts.alias > $PREFIX/fonts.alias
cd -
# Install M+ BITMAP FONTS EURO
@@ -79,8 +65,6 @@
| gzip > $PREFIX/mplus_h12rw-euro.pcf.gz
# rm $b-euro.bdf
- echo "create: fonts.alias for M+ BITMAP FONTS EURO"
- cat fonts.alias >> $PREFIX/fonts.alias
cd -
fi
@@ -145,8 +129,6 @@
done
# rm mplus_j1*b.bdf
- echo "create: fonts.alias for M+ BITMAP FONTS J"
- cat fonts.alias >> $PREFIX/fonts.alias
cd -
fi
@@ -166,12 +148,3 @@
echo "ERROR: No such file !"
fi
fi
-
-# Finish
-echo -e "\ncreate: fonts.dir file"
-mkfontdir $PREFIX
-if [ -z $DESTDIR ]; then
- echo -n "xset fp rehash..."
- xset fp rehash &&
- echo " done"
-fi