summaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1998-11-19 08:47:28 +0000
committerasami <asami@FreeBSD.org>1998-11-19 08:47:28 +0000
commit695dac427066c302d8c4e9a020f15f73394d27db (patch)
treef1d707fd8c0ad0abb960a36266304690c8e68265 /japanese
parent3131497a125d087d2b6dff3b6557668171ab2f04 (diff)
downloadFreeBSD-ports-695dac427066c302d8c4e9a020f15f73394d27db.zip
FreeBSD-ports-695dac427066c302d8c4e9a020f15f73394d27db.tar.gz
Two free TrueType fonts (Wadalab-gothic and Watanabe-mincho).
Diffstat (limited to 'japanese')
-rw-r--r--japanese/truetypefonts/Makefile37
-rw-r--r--japanese/truetypefonts/distinfo1
-rw-r--r--japanese/truetypefonts/pkg-comment1
-rw-r--r--japanese/truetypefonts/pkg-deinstall13
-rw-r--r--japanese/truetypefonts/pkg-descr1
-rw-r--r--japanese/truetypefonts/pkg-install18
-rw-r--r--japanese/truetypefonts/pkg-plist4
7 files changed, 75 insertions, 0 deletions
diff --git a/japanese/truetypefonts/Makefile b/japanese/truetypefonts/Makefile
new file mode 100644
index 0000000..ddb62f9
--- /dev/null
+++ b/japanese/truetypefonts/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for: Japanese TrueType fonts
+# Version required: 1998.10.20
+# Date created: 16 November 1998
+# Whom: asami
+#
+# $Id$
+#
+
+DISTNAME= ja-truetypefonts-1998.10.20
+CATEGORIES= japanese x11-fonts
+MASTER_SITES= http://www.linux.or.jp/%7Eishikawa/linux/dists/FreeType/
+DISTFILES= xtt-fonts_0.19981020-3.tar.gz
+
+MAINTAINER= candy@kgc.co.jp
+
+USE_X_PREFIX= yes
+WRKSRC= ${WRKDIR}/xtt-fonts-0.19981020
+NO_BUILD= yes
+FONTDIR= ${PREFIX}/lib/X11/fonts/truetype
+
+.include <bsd.port.pre.mk>
+
+do-install:
+.if !exists(${FONTDIR})
+ @${ECHO} "*********************************************************"
+ @${ECHO} "Please add ${FONTDIR} to your font path"
+ @${ECHO} "in /etc/XF86Config."
+ @${ECHO} "*********************************************************"
+ ${MKDIR} ${FONTDIR}
+.endif
+ ${INSTALL_DATA} ${WRKSRC}/wadalab-gothic.ttf ${FONTDIR}
+ ${INSTALL_DATA} ${WRKSRC}/watanabe-mincho.ttf ${FONTDIR}
+ ${INSTALL_DATA} ${WRKSRC}/fonts.dir ${FONTDIR}/fonts.dir.truetype
+ ${INSTALL_DATA} ${WRKSRC}/fonts.alias ${FONTDIR}/fonts.alias.truetype
+ ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
+
+.include <bsd.port.post.mk>
diff --git a/japanese/truetypefonts/distinfo b/japanese/truetypefonts/distinfo
new file mode 100644
index 0000000..ca472e6
--- /dev/null
+++ b/japanese/truetypefonts/distinfo
@@ -0,0 +1 @@
+MD5 (xtt-fonts_0.19981020-3.tar.gz) = d7a6ba273ea3109944eef839818a84a6
diff --git a/japanese/truetypefonts/pkg-comment b/japanese/truetypefonts/pkg-comment
new file mode 100644
index 0000000..4e405f6
--- /dev/null
+++ b/japanese/truetypefonts/pkg-comment
@@ -0,0 +1 @@
+Japanese TrueType Fonts
diff --git a/japanese/truetypefonts/pkg-deinstall b/japanese/truetypefonts/pkg-deinstall
new file mode 100644
index 0000000..8c268e9
--- /dev/null
+++ b/japanese/truetypefonts/pkg-deinstall
@@ -0,0 +1,13 @@
+#!/bin/sh
+if [ "$2" != "DEINSTALL" ]; then
+ exit 0
+fi
+FONTDIR=${PKG_PREFIX}/lib/X11/fonts/truetype
+cd ${FONTDIR}
+sed -e '/-watanabe-/d' -e '/-wadalab-/d' fonts.dir > fonts.dir.tmp
+numfonts=$(echo $(cat fonts.dir.tmp | wc -l) - 1 | bc)
+echo ${numfonts} > fonts.dir
+sed -e 1d fonts.dir.tmp >> fonts.dir
+sed -e '/^-watanabe-/d' -e '/^-wadalab-/d' fonts.alias > fonts.alias.tmp
+mv -f fonts.alias.tmp fonts.alias
+rm -f fonts.dir.tmp
diff --git a/japanese/truetypefonts/pkg-descr b/japanese/truetypefonts/pkg-descr
new file mode 100644
index 0000000..4e405f6
--- /dev/null
+++ b/japanese/truetypefonts/pkg-descr
@@ -0,0 +1 @@
+Japanese TrueType Fonts
diff --git a/japanese/truetypefonts/pkg-install b/japanese/truetypefonts/pkg-install
new file mode 100644
index 0000000..d10ce07
--- /dev/null
+++ b/japanese/truetypefonts/pkg-install
@@ -0,0 +1,18 @@
+#!/bin/sh
+if [ "$2" = "PRE-INSTALL" ]; then
+ echo "Please add ${FONTDIR} to your /etc/XF86Config file"
+ exit 0
+fi
+FONTDIR=${PKG_PREFIX}/lib/X11/fonts/truetype
+cd ${FONTDIR}
+touch fonts.dir
+sed -e '/-watanabe-/d' -e '/-wadalab-/d' fonts.dir > fonts.dir.tmp
+numfonts=$(echo $(cat fonts.dir.tmp fonts.dir.truetype | wc -l) - 2 | bc)
+echo ${numfonts} > fonts.dir
+sed -e 1d fonts.dir.tmp >> fonts.dir
+sed -e 1d fonts.dir.truetype >> fonts.dir
+touch fonts.alias
+sed -e '/^-watanabe-/d' -e '/^-wadalab-/d' fonts.alias > fonts.alias.tmp
+mv -f fonts.alias.tmp fonts.alias
+cat fonts.alias.truetype >> fonts.alias
+rm -f fonts.dir.tmp fonts.alias.tmp
diff --git a/japanese/truetypefonts/pkg-plist b/japanese/truetypefonts/pkg-plist
new file mode 100644
index 0000000..7e715b1
--- /dev/null
+++ b/japanese/truetypefonts/pkg-plist
@@ -0,0 +1,4 @@
+lib/X11/fonts/truetype/wadalab-gothic.ttf
+lib/X11/fonts/truetype/watanabe-mincho.ttf
+lib/X11/fonts/truetype/fonts.dir.truetype
+lib/X11/fonts/truetype/fonts.alias.truetype
OpenPOWER on IntegriCloud