summaryrefslogtreecommitdiff
path: root/print/xpdf-turkish
diff options
context:
space:
mode:
authorjoerg <joerg>2010-01-27 15:14:00 +0000
committerjoerg <joerg>2010-01-27 15:14:00 +0000
commit4d291d207c85745e363564f5ae80a130ea0c4d36 (patch)
tree7d9e0ea49eb640f229f40eb6d2938452ee6b10af /print/xpdf-turkish
parent2862ad2978f987fea83c7da3a19ac2ee1d438b9c (diff)
downloadpkgsrc-4d291d207c85745e363564f5ae80a130ea0c4d36.tar.gz
Defer modification of xpdfrc to real package install time. Bump
revisions. Add DESTDIR support.
Diffstat (limited to 'print/xpdf-turkish')
-rw-r--r--print/xpdf-turkish/INSTALL10
-rw-r--r--print/xpdf-turkish/Makefile17
-rw-r--r--print/xpdf-turkish/PLIST3
3 files changed, 20 insertions, 10 deletions
diff --git a/print/xpdf-turkish/INSTALL b/print/xpdf-turkish/INSTALL
new file mode 100644
index 00000000000..2fbc886d99e
--- /dev/null
+++ b/print/xpdf-turkish/INSTALL
@@ -0,0 +1,10 @@
+# $NetBSD: INSTALL,v 1.1 2010/01/27 15:14:01 joerg Exp $
+
+XPDFRC=${PKG_SYSCONFDIR}/xpdfrc
+CAT=@CAT@
+
+case ${STAGE} in
+POST-INSTALL)
+ ${CAT} ${PREFIX}/share/xpdf/turkish/add-to-xpdfrc >> ${XPDFRC}
+ ;;
+esac
diff --git a/print/xpdf-turkish/Makefile b/print/xpdf-turkish/Makefile
index b89925210a7..c75214edf6a 100644
--- a/print/xpdf-turkish/Makefile
+++ b/print/xpdf-turkish/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.18 2006/03/14 01:14:33 jlam Exp $
+# $NetBSD: Makefile,v 1.19 2010/01/27 15:14:01 joerg Exp $
#
DISTNAME= xpdf-turkish-2002-apr-10
PKGNAME= xpdf-turkish-20020410
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= print
MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/ \
http://gd.tuwien.ac.at/publishing/xpdf/
@@ -12,23 +12,22 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.foolabs.com/xpdf/
COMMENT= Xpdf support files for Turkish
-DEPENDS+= xpdf>=2.02:../../print/xpdf
+PKG_DESTDIR_SUPPORT= user-destdir
+DEPENDS+= xpdf>=2.02:../../print/xpdf
WRKSRC= ${WRKDIR}/xpdf-turkish
NO_CONFIGURE= yes
NO_BUILD= yes
+INSTALLATION_DIRS+= share/xpdf/turkish
+
post-patch:
${MV} ${WRKSRC}/add-to-xpdfrc ${WRKSRC}/add-to-xpdfrc.orig
${SED} -e 's:/usr/local:'${PREFIX}':g' < ${WRKSRC}/add-to-xpdfrc.orig > ${WRKSRC}/add-to-xpdfrc
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/xpdf/turkish
- ${INSTALL_DATA} ${WRKSRC}/ISO-8859-9.unicodeMap \
- ${PREFIX}/share/xpdf/turkish
-
-post-install:
- ${CAT} ${WRKSRC}/add-to-xpdfrc >> ${PKG_SYSCONFDIR}/xpdfrc
+ ${INSTALL_DATA} ${WRKSRC}/ISO-8859-9.unicodeMap ${WRKSRC}/add-to-xpdfrc \
+ ${DESTDIR}${PREFIX}/share/xpdf/turkish
.include "../../mk/bsd.pkg.mk"
diff --git a/print/xpdf-turkish/PLIST b/print/xpdf-turkish/PLIST
index 0f0ada4b2da..4e1555d8974 100644
--- a/print/xpdf-turkish/PLIST
+++ b/print/xpdf-turkish/PLIST
@@ -1,2 +1,3 @@
-@comment $NetBSD: PLIST,v 1.4 2009/06/14 18:12:04 joerg Exp $
+@comment $NetBSD: PLIST,v 1.5 2010/01/27 15:14:01 joerg Exp $
share/xpdf/turkish/ISO-8859-9.unicodeMap
+share/xpdf/turkish/add-to-xpdfrc