summaryrefslogtreecommitdiff
path: root/print/xpdf-greek
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-01-27 15:14:00 +0000
committerjoerg <joerg@pkgsrc.org>2010-01-27 15:14:00 +0000
commit9e0ec77394baaa84e9260f73bba4801f3b886a0d (patch)
tree7d9e0ea49eb640f229f40eb6d2938452ee6b10af /print/xpdf-greek
parent53581f277ac4d334d9aa11a4c416df49d49bf04e (diff)
downloadpkgsrc-9e0ec77394baaa84e9260f73bba4801f3b886a0d.tar.gz
Defer modification of xpdfrc to real package install time. Bump
revisions. Add DESTDIR support.
Diffstat (limited to 'print/xpdf-greek')
-rw-r--r--print/xpdf-greek/INSTALL10
-rw-r--r--print/xpdf-greek/Makefile18
-rw-r--r--print/xpdf-greek/PLIST3
3 files changed, 20 insertions, 11 deletions
diff --git a/print/xpdf-greek/INSTALL b/print/xpdf-greek/INSTALL
new file mode 100644
index 00000000000..1a201b7c595
--- /dev/null
+++ b/print/xpdf-greek/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/greek/add-to-xpdfrc >> ${XPDFRC}
+ ;;
+esac
diff --git a/print/xpdf-greek/Makefile b/print/xpdf-greek/Makefile
index 46bf8eb8239..c9763e91ea2 100644
--- a/print/xpdf-greek/Makefile
+++ b/print/xpdf-greek/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.17 2006/03/14 01:14:33 jlam Exp $
+# $NetBSD: Makefile,v 1.18 2010/01/27 15:14:00 joerg Exp $
#
DISTNAME= xpdf-greek-2003-jun-28
PKGNAME= xpdf-greek-20020628
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= print
MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/ \
http://gd.tuwien.ac.at/publishing/xpdf/
@@ -12,25 +12,23 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.foolabs.com/xpdf/
COMMENT= Xpdf support files for Greek
-DEPENDS+= xpdf>=2.02:../../print/xpdf
+PKG_DESTDIR_SUPPORT= user-destdir
+DEPENDS+= xpdf>=2.02:../../print/xpdf
WRKSRC= ${WRKDIR}/xpdf-greek
NO_CONFIGURE= yes
NO_BUILD= yes
+INSTALLATION_DIRS+= share/xpdf/greek
+
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/greek
${INSTALL_DATA} ${WRKSRC}/Greek.nameToUnicode \
- ${PREFIX}/share/xpdf/greek
- ${INSTALL_DATA} ${WRKSRC}/ISO-8859-7.unicodeMap \
- ${PREFIX}/share/xpdf/greek
-
-post-install:
- ${CAT} ${WRKSRC}/add-to-xpdfrc >> ${PKG_SYSCONFDIR}/xpdfrc
+ ${WRKSRC}/ISO-8859-7.unicodeMap ${WRKSRC}/add-to-xpdfrc \
+ ${DESTDIR}${PREFIX}/share/xpdf/greek
.include "../../mk/bsd.pkg.mk"
diff --git a/print/xpdf-greek/PLIST b/print/xpdf-greek/PLIST
index de2fda3dccf..896e100d40a 100644
--- a/print/xpdf-greek/PLIST
+++ b/print/xpdf-greek/PLIST
@@ -1,3 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2009/06/14 21:16:22 joerg Exp $
+@comment $NetBSD: PLIST,v 1.7 2010/01/27 15:14:00 joerg Exp $
share/xpdf/greek/Greek.nameToUnicode
share/xpdf/greek/ISO-8859-7.unicodeMap
+share/xpdf/greek/add-to-xpdfrc