pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/print/stylewriter DESTDIR support. Create spooldir at ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/1a76e5763003
branches: trunk
changeset: 571418:1a76e5763003
user: joerg <joerg%pkgsrc.org@localhost>
date: Fri Feb 12 00:12:11 2010 +0000
description:
DESTDIR support. Create spooldir at install time. Bump revision.
diffstat:
print/stylewriter/Makefile | 22 ++++++++++++----------
1 files changed, 12 insertions(+), 10 deletions(-)
diffs (67 lines):
diff -r 98e88eec70b6 -r 1a76e5763003 print/stylewriter/Makefile
--- a/print/stylewriter/Makefile Fri Feb 12 00:00:45 2010 +0000
+++ b/print/stylewriter/Makefile Fri Feb 12 00:12:11 2010 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.21 2008/06/16 13:22:49 joerg Exp $
+# $NetBSD: Makefile,v 1.22 2010/02/12 00:12:11 joerg Exp $
#
DISTNAME= stylewriter
PKGNAME= stylewriter-0.9.9
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= print
MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/packages/distfiles/
@@ -11,6 +11,8 @@
HOMEPAGE= http://homepage.mac.com/monroe/styl/
COMMENT= Apple StyleWriter driver for un*x
+PKG_DESTDIR_SUPPORT= user-destdir
+
DEPENDS+= enscript>=1.6.3nb1:../../print/enscript
USE_TOOLS+= gs:run
@@ -31,34 +33,34 @@
post-extract:
${CP} ${FILESDIR}/Makefile ${WRKSRC}
+INSTALLATION_DIRS+= ${FILTER_DIR} share/doc/stylewriter share/examples/stylewriter
+
+OWN_DIRS+= /var/spool/lpd/stylps
+
post-install:
${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
- ${INSTALL_DATA_DIR} ${PREFIX}/${FILTER_DIR}
(cd ${WRKSRC}/scripts; \
for FILTER in ${FILTERS}; do \
${SED} ${FILTER_SED} \
< $${FILTER} > ${WRKDIR}/$${FILTER}; \
${INSTALL_SCRIPT} ${WRKDIR}/$${FILTER} \
- ${PREFIX}/${FILTER_DIR}/$${FILTER}; \
+ ${DESTDIR}${PREFIX}/${FILTER_DIR}/$${FILTER}; \
${RM} ${WRKDIR}/$${FILTER}; \
done)
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/stylewriter
for FILE in README README.protocol README.troubleshooting; do \
${INSTALL_DATA} ${WRKSRC}/$${FILE} \
- ${PREFIX}/share/doc/stylewriter; \
+ ${DESTDIR}${PREFIX}/share/doc/stylewriter; \
done
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/stylewriter
(cd ${WRKSRC}; \
for PRINTCAP in printcap printcap.a4; do \
${SED} ${PRINTCAP_SED} \
< $${PRINTCAP} > ${WRKDIR}/$${PRINTCAP}; \
${INSTALL_DATA} ${WRKDIR}/$${PRINTCAP} \
- ${PREFIX}/share/examples/stylewriter; \
+ ${DESTDIR}${PREFIX}/share/examples/stylewriter; \
${RM} ${WRKDIR}/$${PRINTCAP}; \
done)
- ${INSTALL_DATA} ${WRKSRC}/styl.ppd ${PREFIX}/share/examples/stylewriter
- ${INSTALL_DATA_DIR} /var/spool/lpd/stylps
+ ${INSTALL_DATA} ${WRKSRC}/styl.ppd ${DESTDIR}${PREFIX}/share/examples/stylewriter
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index