summaryrefslogtreecommitdiff
path: root/print/xpdf-thai
diff options
context:
space:
mode:
authorwiz <wiz>2002-08-06 14:04:34 +0000
committerwiz <wiz>2002-08-06 14:04:34 +0000
commit981ab78b9dbaa105fe9eaadbfaa3b7042f6a9b5f (patch)
tree504ac74e084d0125548ebb0a87a57e8c67594e6d /print/xpdf-thai
parent1e2889d10bc79c679a92df1aa98139a4f27d66ed (diff)
downloadpkgsrc-981ab78b9dbaa105fe9eaadbfaa3b7042f6a9b5f.tar.gz
Initial import of language support packages for xpdf.
Most of them provided by Rui-Xiang Guo in pkg/16258-16264. I updated them to the current versions and did some cleanup (e.g., adding DIST_SUBDIR).
Diffstat (limited to 'print/xpdf-thai')
-rw-r--r--print/xpdf-thai/DEINSTALL24
-rw-r--r--print/xpdf-thai/DESCR11
-rw-r--r--print/xpdf-thai/Makefile36
-rw-r--r--print/xpdf-thai/PLIST5
-rw-r--r--print/xpdf-thai/distinfo4
5 files changed, 80 insertions, 0 deletions
diff --git a/print/xpdf-thai/DEINSTALL b/print/xpdf-thai/DEINSTALL
new file mode 100644
index 00000000000..749990135db
--- /dev/null
+++ b/print/xpdf-thai/DEINSTALL
@@ -0,0 +1,24 @@
+#!/bin/sh
+#
+# $NetBSD: DEINSTALL,v 1.1.1.1 2002/08/06 14:04:34 wiz Exp $
+
+PKGNAME=$1
+STAGE=$2
+
+XPDFRC=${PKG_PREFIX}/etc/xpdfrc
+
+case ${STAGE} in
+DEINSTALL)
+ ;;
+
+POST-DEINSTALL)
+ sed -e "/hai/d" ${XPDFRC} > ${XPDFRC}.tmp
+ mv -f ${XPDFRC}.tmp ${XPDFRC}
+ ;;
+
+*)
+ echo "Unexpected argument: ${STAGE}"
+ exit 1
+ ;;
+esac
+exit 0
diff --git a/print/xpdf-thai/DESCR b/print/xpdf-thai/DESCR
new file mode 100644
index 00000000000..6ecc19ea89d
--- /dev/null
+++ b/print/xpdf-thai/DESCR
@@ -0,0 +1,11 @@
+If this package includes CMap files, they contain their own copyright
+notices and distribution conditions. All other files in the package
+are Copyright 2002 Derek B. Noonburg, and are licensed under the GNU
+General Public License (GPL), version 2.
+
+This package provides support files needed to use the Xpdf tools with
+Thai PDF files.
+
+Contents:
+- Thai character names
+- TIS-620 encoding
diff --git a/print/xpdf-thai/Makefile b/print/xpdf-thai/Makefile
new file mode 100644
index 00000000000..372163d09db
--- /dev/null
+++ b/print/xpdf-thai/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/08/06 14:04:34 wiz Exp $
+#
+
+DISTNAME= xpdf-thai
+PKGNAME= ${DISTNAME}-20020521
+CATEGORIES= print
+MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/
+
+MAINTAINER= rxg@netbsd.org
+HOMEPAGE= http://www.foolabs.com/xpdf/
+COMMENT= xpdf support files for Thai
+
+DEPENDS+= xpdf>=1.00:../../print/xpdf
+
+USE_X11BASE= yes
+
+DIST_SUBDIR= ${PKGNAME}
+WRKSRC= ${WRKDIR}/${DISTNAME}
+NO_CONFIGURE= yes
+NO_BUILD= yes
+
+post-patch:
+ ${MV} ${WRKSRC}/add-to-xpdfrc ${WRKSRC}/add-to-xpdfrc.orig
+ ${SED} -e 's:/usr/local:'${X11PREFIX}':g' < ${WRKSRC}/add-to-xpdfrc.orig > ${WRKSRC}/add-to-xpdfrc
+
+do-install:
+ ${INSTALL_DATA_DIR} ${X11PREFIX}/share/xpdf/thai
+ ${INSTALL_DATA} ${WRKSRC}/TIS-620.unicodeMap \
+ ${X11PREFIX}/share/xpdf/thai
+ ${INSTALL_DATA} ${WRKSRC}/Thai.nameToUnicode \
+ ${X11PREFIX}/share/xpdf/thai
+
+post-install:
+ ${CAT} ${WRKSRC}/add-to-xpdfrc >> ${X11PREFIX}/etc/xpdfrc
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/print/xpdf-thai/PLIST b/print/xpdf-thai/PLIST
new file mode 100644
index 00000000000..59849a53616
--- /dev/null
+++ b/print/xpdf-thai/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/08/06 14:04:34 wiz Exp $
+share/xpdf/thai/TIS-620.unicodeMap
+share/xpdf/thai/Thai.nameToUnicode
+@dirrm share/xpdf/thai
+@unexec ${RMDIR} %D/share/xpdf 2> /dev/null || true
diff --git a/print/xpdf-thai/distinfo b/print/xpdf-thai/distinfo
new file mode 100644
index 00000000000..58fc6399385
--- /dev/null
+++ b/print/xpdf-thai/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/08/06 14:04:34 wiz Exp $
+
+SHA1 (xpdf-thai-20020521/xpdf-thai.tar.gz) = a69389f3530ee5bb0acd0cda404e1d3374011b5d
+Size (xpdf-thai-20020521/xpdf-thai.tar.gz) = 1876 bytes