aboutsummaryrefslogtreecommitdiff
path: root/japanese/epson-ttfonts
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2005-03-19 11:13:42 +0000
committerMaho Nakata <maho@FreeBSD.org>2005-03-19 11:13:42 +0000
commit21c7da19f23953312a9441f24162bb2ec76702a2 (patch)
treec489a3b44fc519978c535722845502a52f64c5de /japanese/epson-ttfonts
parent81c90e8308411cfd7aa9741febc4b6ee529d1a1d (diff)
downloadports-21c7da19f23953312a9441f24162bb2ec76702a2.tar.gz
ports-21c7da19f23953312a9441f24162bb2ec76702a2.zip
Add EPSON TrueTypeFontVer.3.0
Including: MaruGothic, FutoMaruGothicB, FutoMinchotaiB, FutoGyosyotaiB FutoKakuGothicB, KyokasyotaiM, SeiKaisyotaiM, GyoshotaiM You can use these fonts if you are using following EPSON printer LP-9800C/9600SPD/9600S/9600/9500C/9500CZ/9400/9300/9200SX/ 9200S/9200PS2/9200/9100/9000/9000B/9000C/8900/8800CR/8800C/ 8700PS3/8700/8600FXN/8600FX/8600FN/8600F/8600/8500C/8500/ 8400FXN/8400FX/8400FN/8400F/8400/8300S/8300F/8300C/8300/ 8200PS2/8200CPD/8200C/8200/8100/8000SX/8000SE/8000S/8000C/ 8000/7900/7800C/7700/7500/7100/7000G/7000C/7000/6100/ 3000C/3000/2500/2400/2200/2000LT/2000C/2000/1900N/1900/ 1800/1700S/1700/1600/1500S/1500C/1500/1400/1300U/1300/ 1200/1000/900/800S/800 WWW: http://www.i-love-epson.co.jp/download2/printer/driver/win/page/ttf30.htm
Notes
Notes: svn path=/head/; revision=131632
Diffstat (limited to 'japanese/epson-ttfonts')
-rw-r--r--japanese/epson-ttfonts/Makefile51
-rw-r--r--japanese/epson-ttfonts/distinfo2
-rw-r--r--japanese/epson-ttfonts/files/fonts.alias.epson31
-rw-r--r--japanese/epson-ttfonts/files/fonts.dir.epson17
-rw-r--r--japanese/epson-ttfonts/pkg-deinstall14
-rw-r--r--japanese/epson-ttfonts/pkg-descr17
-rw-r--r--japanese/epson-ttfonts/pkg-install20
-rw-r--r--japanese/epson-ttfonts/pkg-plist10
8 files changed, 162 insertions, 0 deletions
diff --git a/japanese/epson-ttfonts/Makefile b/japanese/epson-ttfonts/Makefile
new file mode 100644
index 000000000000..1cb6cf611a00
--- /dev/null
+++ b/japanese/epson-ttfonts/Makefile
@@ -0,0 +1,51 @@
+# New ports collection makefile for: epson-ttfonts
+# Date created: 20 Feb 2005
+# Whom: NAKATA, Maho <maho@FreeBSD.org>
+#
+# $FreeBSD$
+
+PORTNAME= epson-ttfonts
+PORTVERSION= 3.0.20050220
+CATEGORIES= japanese x11-fonts
+MASTER_SITES= http://www2.i-love-epson.co.jp/download/printer/driver/win/page/
+DISTNAME= ${EPSONFONTS}
+EXTRACT_SUFX=.exe
+DIST_SUBDIR= epson
+
+MAINTAINER= maho@FreeBSD.org
+COMMENT= EPSON TrueTypeFontVer.3.0, only usable with EPSON printer
+
+RESTRICTED= "Redistribution not permitted; only usable with EPSON printer."
+NO_CDROM= Redistribution not permitted in any form
+NO_PACKAGE= Redistribution not permitted in any form
+
+EPSONFONTS= ttf30
+USE_X_PREFIX= yes
+USE_ZIP= yes
+NO_BUILD= yes
+
+FONTSDIR= lib/X11/fonts/TrueType
+MAKE_ENV= FONTSDIR=${FONTSDIR}
+PLIST_SUB= FONTSDIR=${FONTSDIR}
+
+do-extract:
+ @${MKDIR} ${WRKDIR}
+ @cd ${WRKDIR} ; \
+ ${CAT} ${DISTDIR}/${DIST_SUBDIR}/${EPSONFONTS}.exe | ${TAIL} -c 16591797 >FILE ;\
+ ${UNZIP_CMD} FILE ; ${RM} FILE
+
+do-install:
+
+.if !exists(${PREFIX}/${FONTSDIR})
+ @${ECHO} "*********************************************************"
+ @${ECHO} "Please add ${PREFIX}/${FONTSDIR} to your font path"
+ @${ECHO} "and load 'freetype' module in /etc/x11/xorg.conf."
+ @${ECHO} "*********************************************************"
+ ${MKDIR} ${PREFIX}/${FONTSDIR}
+.endif
+ ${INSTALL_DATA} ${WRKSRC}/*.ttf \
+ ${FILESDIR}/fonts.alias.epson \
+ ${FILESDIR}/fonts.dir.epson \
+ ${PREFIX}/${FONTSDIR}
+ ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+.include <bsd.port.mk>
diff --git a/japanese/epson-ttfonts/distinfo b/japanese/epson-ttfonts/distinfo
new file mode 100644
index 000000000000..086505c3f719
--- /dev/null
+++ b/japanese/epson-ttfonts/distinfo
@@ -0,0 +1,2 @@
+MD5 (epson/ttf30.exe) = 2f7b7f64becfc5bf6dd13ee3c9bd006f
+SIZE (epson/ttf30.exe) = 16622058
diff --git a/japanese/epson-ttfonts/files/fonts.alias.epson b/japanese/epson-ttfonts/files/fonts.alias.epson
new file mode 100644
index 000000000000..1997e86b9fcd
--- /dev/null
+++ b/japanese/epson-ttfonts/files/fonts.alias.epson
@@ -0,0 +1,31 @@
+-epson-EPSON MGOBOLD-medium-r-normal--0-0-0-0-p-0-ascii-0 -epson-EPSON MGOBOLD-medium-r-normal--0-0-0-0-c-0-ascii-0
+-epson-EPSON MGOBOLD-medium-r-normal--0-0-0-0-p-0-iso10646-1 -epson-EPSON MGOBOLD-medium-r-normal--0-0-0-0-c-0-iso10646-1
+-epson-EPSON GYOSHO-medium-r-normal--0-0-0-0-p-0-ascii-0 -epson-EPSON GYOSHO-medium-r-normal--0-0-0-0-c-0-ascii-0
+-epson-EPSON GYOSHO-medium-r-normal--0-0-0-0-p-0-iso10646-1 -epson-EPSON GYOSHO-medium-r-normal--0-0-0-0-c-0-iso10646-1
+-epson-EPSON KAISHO-medium-r-normal--0-0-0-0-p-0-ascii-0 -epson-EPSON KAISHO-medium-r-normal--0-0-0-0-c-0-ascii-0
+-epson-EPSON KAISHO-medium-r-normal--0-0-0-0-p-0-iso10646-1 -epson-EPSON KAISHO-medium-r-normal--0-0-0-0-c-0-iso10646-1
+-epson-EPSON KAISHOBOLD-medium-r-normal--0-0-0-0-p-0-ascii-0 -epson-EPSON KAISHOBOLD-medium-r-normal--0-0-0-0-c-0-ascii-0
+-epson-EPSON KAISYOBOLD-medium-r-normal--0-0-0-0-p-0-iso10646-1-epson-EPSON KAISYOBOLD-medium-r-normal--0-0-0-0-c-0-iso10646-1
+-epson-EPSON KYOKASYO-medium-r-normal--0-0-0-0-p-0-ascii-0 -epson-EPSON KYOKASYO-medium-r-normal--0-0-0-0-c-0-ascii-0
+-epson-EPSON KYOKASYO-medium-r-normal--0-0-0-0-p-0-iso10646-1 -epson-EPSON KYOKASYO-medium-r-normal--0-0-0-0-c-0-iso10646-1
+-epson-EPSON MARUGO-medium-r-normal--0-0-0-0-p-0-ascii-0 -epson-EPSON MARUGO-medium-r-normal--0-0-0-0-c-0-ascii-0
+-epson-EPSON MARUGO-medium-r-normal--0-0-0-0-p-0-iso10646-1 -epson-EPSON MARUGO-medium-r-normal--0-0-0-0-c-0-iso10646-1
+-epson-EPSON GYOSHOBOLD-medium-r-normal--0-0-0-0-p-0-ascii-0 -epson-EPSON GYOSHOBOLD-medium-r-normal--0-0-0-0-c-0-ascii-0
+-epson-EPSON GYOSHOBOLD-medium-r-normal--0-0-0-0-p-0-iso10646-1 -epson-EPSON GYOSHOBOLD-medium-r-normal--0-0-0-0-c-0-iso10646-1
+-epson-EPSON MINCHOBOLD-medium-r-normal--0-0-0-0-p-0-ascii-0 -epson-EPSON MINCHOBOLD-medium-r-normal--0-0-0-0-c-0-ascii-0
+-epson-EPSON MINCHOBOLD-medium-r-normal--0-0-0-0-p-0-iso10646-1 -epson-EPSON MINCHOBOLD-medium-r-normal--0-0-0-0-c-0-iso10646-1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ \ No newline at end of file
diff --git a/japanese/epson-ttfonts/files/fonts.dir.epson b/japanese/epson-ttfonts/files/fonts.dir.epson
new file mode 100644
index 000000000000..a749da8d1854
--- /dev/null
+++ b/japanese/epson-ttfonts/files/fonts.dir.epson
@@ -0,0 +1,17 @@
+16
+epmgobld.ttf -epson-EPSON MGOBOLD-medium-r-normal--0-0-0-0-c-0-ascii-0
+epmgobld.ttf -epson-EPSON MGOBOLD-medium-r-normal--0-0-0-0-c-0-iso10646-1
+epgyosho.ttf -epson-EPSON GYOSHO-medium-r-normal--0-0-0-0-c-0-ascii-0
+epgyosho.ttf -epson-EPSON GYOSHO-medium-r-normal--0-0-0-0-c-0-iso10646-1
+epkaisho.ttf -epson-EPSON KAISHO-medium-r-normal--0-0-0-0-c-0-ascii-0
+epkaisho.ttf -epson-EPSON KAISHO-medium-r-normal--0-0-0-0-c-0-iso10646-1
+epkgobld.ttf -epson-EPSON KAISHOBOLD-medium-r-normal--0-0-0-0-c-0-ascii-0
+epkgobld.ttf -epson-EPSON KAISYOBOLD-medium-r-normal--0-0-0-0-c-0-iso10646-1
+epkyouka.ttf -epson-EPSON KYOKASYO-medium-r-normal--0-0-0-0-c-0-ascii-0
+epkyouka.ttf -epson-EPSON KYOKASYO-medium-r-normal--0-0-0-0-c-0-iso10646-1
+epmarugo.ttf -epson-EPSON MARUGO-medium-r-normal--0-0-0-0-c-0-ascii-0
+epmarugo.ttf -epson-EPSON MARUGO-medium-r-normal--0-0-0-0-c-0-iso10646-1
+epgyobld.ttf -epson-EPSON GYOSHOBOLD-medium-r-normal--0-0-0-0-c-0-ascii-0
+epgyobld.ttf -epson-EPSON GYOSHOBOLD-medium-r-normal--0-0-0-0-c-0-iso10646-1
+epminbld.ttf -epson-EPSON MINCHOBOLD-medium-r-normal--0-0-0-0-c-0-ascii-0
+epminbld.ttf -epson-EPSON MINCHOBOLD-medium-r-normal--0-0-0-0-c-0-iso10646-1
diff --git a/japanese/epson-ttfonts/pkg-deinstall b/japanese/epson-ttfonts/pkg-deinstall
new file mode 100644
index 000000000000..c5c8f5a8f104
--- /dev/null
+++ b/japanese/epson-ttfonts/pkg-deinstall
@@ -0,0 +1,14 @@
+#!/bin/sh
+XFLDNAME="-epson-EPSON"
+if [ "$2" != "DEINSTALL" ]; then
+ exit 0
+fi
+FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType
+cd ${FONTDIR}
+sed -e "/${XFLDNAME}/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 "/^${XFLDNAME}/d" fonts.alias > fonts.alias.tmp
+mv -f fonts.alias.tmp fonts.alias
+rm -f fonts.dir.tmp
diff --git a/japanese/epson-ttfonts/pkg-descr b/japanese/epson-ttfonts/pkg-descr
new file mode 100644
index 000000000000..4cbb95635202
--- /dev/null
+++ b/japanese/epson-ttfonts/pkg-descr
@@ -0,0 +1,17 @@
+EPSON TrueTypeFontVer.3.0
+You can use these fonts if you are using following EPSON printer
+LP-9800C/9600SPD/9600S/9600/9500C/9500CZ/9400/9300/9200SX/
+9200S/9200PS2/9200/9100/9000/9000B/9000C/8900/8800CR/8800C/
+8700PS3/8700/8600FXN/8600FX/8600FN/8600F/8600/8500C/8500/
+8400FXN/8400FX/8400FN/8400F/8400/8300S/8300F/8300C/8300/
+8200PS2/8200CPD/8200C/8200/8100/8000SX/8000SE/8000S/8000C/
+8000/7900/7800C/7700/7500/7100/7000G/7000C/7000/6100/
+3000C/3000/2500/2400/2200/2000LT/2000C/2000/1900N/1900/
+1800/1700S/1700/1600/1500S/1500C/1500/1400/1300U/1300/
+1200/1000/900/800S/800
+
+Including:
+MaruGothic, FutoMaruGothicB, FutoMinchotaiB, FutoGyosyotaiB
+FutoKakuGothicB, KyokasyotaiM, SeiKaisyotaiM, GyoshotaiM
+
+WWW: http://www.i-love-epson.co.jp/download2/printer/driver/win/page/ttf30.htm
diff --git a/japanese/epson-ttfonts/pkg-install b/japanese/epson-ttfonts/pkg-install
new file mode 100644
index 000000000000..faa97cb9013a
--- /dev/null
+++ b/japanese/epson-ttfonts/pkg-install
@@ -0,0 +1,20 @@
+#!/bin/sh
+XFLDNAME="-epson-EPSON"
+FONTNAME=epson
+FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType
+if [ "$2" = "PRE-INSTALL" ]; then
+ echo "Please add ${FONTDIR} to your /etc/x11/xorg.conf file"
+ exit 0
+fi
+cd ${FONTDIR}
+touch fonts.dir
+sed -e "/${XFLDNAME}/d" fonts.dir > fonts.dir.tmp
+numfonts=$(echo $(cat fonts.dir.tmp fonts.dir.${FONTNAME} | wc -l) - 2 | bc)
+echo ${numfonts} > fonts.dir
+sed -e 1d fonts.dir.tmp >> fonts.dir
+sed -e 1d fonts.dir.$FONTNAME >> fonts.dir
+touch fonts.alias
+sed -e "/^${XFLDNAME}/d" fonts.alias > fonts.alias.tmp
+mv -f fonts.alias.tmp fonts.alias
+cat fonts.alias.${FONTNAME} >> fonts.alias
+rm -f fonts.dir.tmp fonts.alias.tmp
diff --git a/japanese/epson-ttfonts/pkg-plist b/japanese/epson-ttfonts/pkg-plist
new file mode 100644
index 000000000000..6ff315bd9c6f
--- /dev/null
+++ b/japanese/epson-ttfonts/pkg-plist
@@ -0,0 +1,10 @@
+%%FONTSDIR%%/fonts.alias.epson
+%%FONTSDIR%%/fonts.dir.epson
+%%FONTSDIR%%/epgyobld.ttf
+%%FONTSDIR%%/epgyosho.ttf
+%%FONTSDIR%%/epkaisho.ttf
+%%FONTSDIR%%/epkgobld.ttf
+%%FONTSDIR%%/epkyouka.ttf
+%%FONTSDIR%%/epmarugo.ttf
+%%FONTSDIR%%/epmgobld.ttf
+%%FONTSDIR%%/epminbld.ttf