pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/p5-perl-headers DESTDIR support.
details: https://anonhg.NetBSD.org/pkgsrc/rev/32dff3c0ccdf
branches: trunk
changeset: 522618:32dff3c0ccdf
user: joerg <joerg%pkgsrc.org@localhost>
date: Fri Dec 15 17:32:41 2006 +0000
description:
DESTDIR support.
diffstat:
devel/p5-perl-headers/Makefile | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diffs (36 lines):
diff -r 676490358b13 -r 32dff3c0ccdf devel/p5-perl-headers/Makefile
--- a/devel/p5-perl-headers/Makefile Fri Dec 15 16:43:57 2006 +0000
+++ b/devel/p5-perl-headers/Makefile Fri Dec 15 17:32:41 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2006/10/04 21:35:59 wiz Exp $
+# $NetBSD: Makefile,v 1.30 2006/12/15 17:32:41 joerg Exp $
DISTNAME= p5-perl-headers
PKGNAME= ${DISTNAME}-${OS_VERSION}
@@ -13,6 +13,7 @@
COMMENT= Perl header files
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}
PERL5_PACKLIST= .packlist.h2ph
@@ -43,12 +44,12 @@
> ${WRKSRC}/packlist
do-install:
- ${INSTALL_DATA_DIR} ${PERL5_INSTALLVENDORARCH}
- cd ${WRKSRC}/h2ph/ && ${PAX} -rw . ${PERL5_INSTALLVENDORARCH}
- ${INSTALL_DATA} ${WRKSRC}/packlist ${PERL5_INSTALLVENDORARCH}/${PERL5_PACKLIST}
- ${CAT} ${PERL5_INSTALLVENDORARCH}/${PERL5_PACKLIST} | ${XARGS} ${CHMOD} a-w
- ${CAT} ${PERL5_INSTALLVENDORARCH}/${PERL5_PACKLIST} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP}
- ${FIND} ${PERL5_INSTALLVENDORARCH} -type d -print \
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PERL5_INSTALLVENDORARCH}
+ cd ${WRKSRC}/h2ph/ && ${PAX} -rw . ${DESTDIR}${PERL5_INSTALLVENDORARCH}
+ ${INSTALL_DATA} ${WRKSRC}/packlist ${DESTDIR}${PERL5_INSTALLVENDORARCH}/${PERL5_PACKLIST}
+ ${SED} 's,^,${DESTDIR},' < ${DESTDIR}${PERL5_INSTALLVENDORARCH}/${PERL5_PACKLIST} | ${XARGS} ${CHMOD} a-w
+ ${SED} 's,^,${DESTDIR},' < ${DESTDIR}${PERL5_INSTALLVENDORARCH}/${PERL5_PACKLIST} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP}
+ ${FIND} ${DESTDIR}${PERL5_INSTALLVENDORARCH} -type d -print \
-exec ${CHMOD} ${PKGDIRMODE} {} \;
# empty do-nothing to override module.mk TEST_TARGET
Home |
Main Index |
Thread Index |
Old Index