aboutsummaryrefslogtreecommitdiffstats
path: root/korean
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2005-10-15 07:34:34 +0800
committerjkim <jkim@FreeBSD.org>2005-10-15 07:34:34 +0800
commit2beab92f291296f1cb41141b9a006206441b7d48 (patch)
tree43cc6b55ee21081c397c1bb23348312b8e6de884 /korean
parent3b3ddeeef4afdc930e89076d4e136433546c8813 (diff)
downloadfreebsd-ports-gnome-2beab92f291296f1cb41141b9a006206441b7d48.tar.gz
freebsd-ports-gnome-2beab92f291296f1cb41141b9a006206441b7d48.tar.zst
freebsd-ports-gnome-2beab92f291296f1cb41141b9a006206441b7d48.zip
Enable korean support for xpdf.
Approved by: maintainer timeout (15 days) Inspired by: ja-xpdf
Diffstat (limited to 'korean')
-rw-r--r--korean/xpdf/Makefile38
-rw-r--r--korean/xpdf/distinfo2
-rw-r--r--korean/xpdf/files/dot.xpdfrc24
-rw-r--r--korean/xpdf/pkg-descr1
-rw-r--r--korean/xpdf/pkg-install11
-rw-r--r--korean/xpdf/pkg-plist9
6 files changed, 85 insertions, 0 deletions
diff --git a/korean/xpdf/Makefile b/korean/xpdf/Makefile
new file mode 100644
index 000000000000..fd68e5844576
--- /dev/null
+++ b/korean/xpdf/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: ko-xpdf
+# Date created: Fri Sep 30 21:26:35 EDT 2005
+# Whom: Jung-uk Kim <jkim@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= xpdf
+PORTVERSION= 3.01
+CATEGORIES= korean
+MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/
+DISTNAME= xpdf-korean
+
+MAINTAINER= jkim@FreeBSD.org
+COMMENT= Korean xpdf font support
+
+RUN_DEPENDS= xpdf:${PORTSDIR}/graphics/xpdf \
+ ${LOCALBASE}/share/ghostscript/Resource/CMap/Adobe-Korea1-0:${PORTSDIR}/print/adobe-cmaps \
+ ${X11BASE}/lib/X11/fonts/TrueType/UnBatang.ttf:${PORTSDIR}/korean/unfonts-ttf
+
+USE_X_PREFIX= yes
+INSTALL_FILES= Adobe-Korea1.cidToUnicode ISO-2022-KR.unicodeMap \
+ README dot.xpdfrc
+
+do-build:
+ @${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \
+ -e 's|%%X11BASE%%|${X11BASE}|g' \
+ -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
+ ${FILESDIR}/dot.xpdfrc > ${WRKSRC}/dot.xpdfrc
+
+do-install:
+ ${MKDIR} ${PREFIX}/share/xpdf/korean
+.for i in ${INSTALL_FILES}
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/xpdf/korean
+.endfor
+ ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+
+.include <bsd.port.mk>
diff --git a/korean/xpdf/distinfo b/korean/xpdf/distinfo
new file mode 100644
index 000000000000..2b028979d7ea
--- /dev/null
+++ b/korean/xpdf/distinfo
@@ -0,0 +1,2 @@
+MD5 (xpdf-korean.tar.gz) = 3c1e00f3b9d5fa713df8a3d763d12f3a
+SIZE (xpdf-korean.tar.gz) = 470455
diff --git a/korean/xpdf/files/dot.xpdfrc b/korean/xpdf/files/dot.xpdfrc
new file mode 100644
index 000000000000..11f107e847f1
--- /dev/null
+++ b/korean/xpdf/files/dot.xpdfrc
@@ -0,0 +1,24 @@
+#Korean PDF resources
+cidToUnicode Adobe-Korea1 %%PREFIX%%/share/xpdf/korean/Adobe-Korea1.cidToUnicode
+unicodeMap ISO-2022-KR %%PREFIX%%/share/xpdf/korean/ISO-2022-KR.unicodeMap
+cMapDir Adobe-Korea1 %%LOCALBASE%%/share/ghostscript/Resource/CMap
+toUnicodeDir %%LOCALBASE%%/share/ghostscript/Resource/CMap
+displayNamedCIDFontTT Batang "%%X11BASE%%/lib/X11/fonts/TrueType/UnBatang.ttf"
+displayNamedCIDFontTT Batang,Bold "%%X11BASE%%/lib/X11/fonts/TrueType/UnBatangBold.ttf"
+displayNamedCIDFontTT Dotum "%%X11BASE%%/lib/X11/fonts/TrueType/UnDotum.ttf"
+displayNamedCIDFontTT Dotum,Bold "%%X11BASE%%/lib/X11/fonts/TrueType/UnDotumBold.ttf"
+displayNamedCIDFontTT Gulim "%%X11BASE%%/lib/X11/fonts/TrueType/UnGraphic.ttf"
+displayNamedCIDFontTT Gulim,Bold "%%X11BASE%%/lib/X11/fonts/TrueType/UnGraphicBold.ttf"
+displayNamedCIDFontTT Gungsuh "%%X11BASE%%/lib/X11/fonts/TrueType/UnGungseo.ttf"
+
+psFont16 Adobe-Korea1 H Batang-UniKS-UCS2-H UCS-2
+psFont16 Adobe-Korea1 V Batang-UniKS-UCS2-V UCS-2
+psNamedFont16 Batang H Batang-UniKS-UCS2-H UCS-2
+psNamedFont16 Batang V Batang-UniKS-UCS2-V UCS-2
+psNamedFont16 Dotum H Dotum-UniKS-UCS2-H UCS-2
+psNamedFont16 Dotum V Dotum-UniKS-UCS2-V UCS-2
+psNamedFont16 Gulim H Gulim-UniKS-UCS2-H UCS-2
+psNamedFont16 Gulim V Gulim-UniKS-UCS2-V UCS-2
+psNamedFont16 Gungsuh H Gungsuh-UniKS-UCS2-H UCS-2
+psNamedFont16 Gungsuh V Gungsuh-UniKS-UCS2-V UCS-2
+#Korean PDF resources
diff --git a/korean/xpdf/pkg-descr b/korean/xpdf/pkg-descr
new file mode 100644
index 000000000000..a6983bb71e12
--- /dev/null
+++ b/korean/xpdf/pkg-descr
@@ -0,0 +1 @@
+This ports enables xpdf to read korean pdf.
diff --git a/korean/xpdf/pkg-install b/korean/xpdf/pkg-install
new file mode 100644
index 000000000000..abee3aa12e85
--- /dev/null
+++ b/korean/xpdf/pkg-install
@@ -0,0 +1,11 @@
+#!/bin/sh
+if [ "$2" = "PRE-INSTALL" ]; then
+ exit 0
+fi
+umask 222
+XPDFRC=${PKG_PREFIX}/etc/xpdfrc
+ADDRESOURCE=${PKG_PREFIX}/share/xpdf/korean/dot.xpdfrc
+/usr/bin/sed '/^#Korean PDF resources$/,/^#Korean PDF resources$/d' ${XPDFRC} > ${XPDFRC}.nokorea
+/bin/rm -f ${XPDFRC}
+/bin/cat ${XPDFRC}.nokorea ${ADDRESOURCE} > ${XPDFRC}
+/bin/rm -f ${XPDFRC}.nokorea
diff --git a/korean/xpdf/pkg-plist b/korean/xpdf/pkg-plist
new file mode 100644
index 000000000000..dc49ec5dce00
--- /dev/null
+++ b/korean/xpdf/pkg-plist
@@ -0,0 +1,9 @@
+share/xpdf/korean/Adobe-Korea1.cidToUnicode
+share/xpdf/korean/ISO-2022-KR.unicodeMap
+share/xpdf/korean/README
+@unexec mv -f %D/etc/xpdfrc %D/etc/xpdfrc.korea
+@unexec (umask 222; grep -F -v --file=%D/share/xpdf/korean/dot.xpdfrc %D/etc/xpdfrc.korea > %D/etc/xpdfrc)
+share/xpdf/korean/dot.xpdfrc
+@unexec rm -f %D/etc/xpdfrc.korea
+@dirrm share/xpdf/korean
+@dirrm share/xpdf