summaryrefslogtreecommitdiff
path: root/print/xpdf-hebrew
diff options
context:
space:
mode:
authorjoerg <joerg>2010-01-27 15:14:00 +0000
committerjoerg <joerg>2010-01-27 15:14:00 +0000
commitec5a76b84db3aa78ee0e98d7bb5fd53c92856023 (patch)
tree7d9e0ea49eb640f229f40eb6d2938452ee6b10af /print/xpdf-hebrew
parent97e8a9ede67d4aa132d5b3260ba1604956f4bb48 (diff)
downloadpkgsrc-ec5a76b84db3aa78ee0e98d7bb5fd53c92856023.tar.gz
Defer modification of xpdfrc to real package install time. Bump
revisions. Add DESTDIR support.
Diffstat (limited to 'print/xpdf-hebrew')
-rw-r--r--print/xpdf-hebrew/INSTALL10
-rw-r--r--print/xpdf-hebrew/Makefile17
-rw-r--r--print/xpdf-hebrew/PLIST3
3 files changed, 20 insertions, 10 deletions
diff --git a/print/xpdf-hebrew/INSTALL b/print/xpdf-hebrew/INSTALL
new file mode 100644
index 00000000000..dcb6294994d
--- /dev/null
+++ b/print/xpdf-hebrew/INSTALL
@@ -0,0 +1,10 @@
+# $NetBSD: INSTALL,v 1.1 2010/01/27 15:14:00 joerg Exp $
+
+XPDFRC=${PKG_SYSCONFDIR}/xpdfrc
+CAT=@CAT@
+
+case ${STAGE} in
+POST-INSTALL)
+ ${CAT} ${PREFIX}/share/xpdf/hebrew/add-to-xpdfrc >> ${XPDFRC}
+ ;;
+esac
diff --git a/print/xpdf-hebrew/Makefile b/print/xpdf-hebrew/Makefile
index f1c845ebba4..7f88ec1b192 100644
--- a/print/xpdf-hebrew/Makefile
+++ b/print/xpdf-hebrew/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.16 2006/03/14 01:14:33 jlam Exp $
+# $NetBSD: Makefile,v 1.17 2010/01/27 15:14:00 joerg Exp $
#
DISTNAME= xpdf-hebrew-2003-feb-16
PKGNAME= xpdf-hebrew-20030216
-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 Hebrew
-DEPENDS+= xpdf>=2.02:../../print/xpdf
+PKG_DESTDIR_SUPPORT= user-destdir
+DEPENDS+= xpdf>=2.02:../../print/xpdf
WRKSRC= ${WRKDIR}/xpdf-hebrew
NO_CONFIGURE= yes
NO_BUILD= yes
+INSTALLATION_DIRS+= share/xpdf/hebrew
+
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/hebrew
- ${INSTALL_DATA} ${WRKSRC}/ISO-8859-8.unicodeMap \
- ${PREFIX}/share/xpdf/hebrew
-
-post-install:
- ${CAT} ${WRKSRC}/add-to-xpdfrc >> ${PKG_SYSCONFDIR}/xpdfrc
+ ${INSTALL_DATA} ${WRKSRC}/ISO-8859-8.unicodeMap ${WRKSRC}/add-to-xpdfrc \
+ ${DESTDIR}${PREFIX}/share/xpdf/hebrew
.include "../../mk/bsd.pkg.mk"
diff --git a/print/xpdf-hebrew/PLIST b/print/xpdf-hebrew/PLIST
index 33d389eab23..5898bf4dd28 100644
--- a/print/xpdf-hebrew/PLIST
+++ b/print/xpdf-hebrew/PLIST
@@ -1,2 +1,3 @@
-@comment $NetBSD: PLIST,v 1.4 2009/06/14 18:12:03 joerg Exp $
+@comment $NetBSD: PLIST,v 1.5 2010/01/27 15:14:00 joerg Exp $
share/xpdf/hebrew/ISO-8859-8.unicodeMap
+share/xpdf/hebrew/add-to-xpdfrc