diff options
author | joerg <joerg> | 2008-06-12 00:20:10 +0000 |
---|---|---|
committer | joerg <joerg> | 2008-06-12 00:20:10 +0000 |
commit | c00099f48a82ac8b44e7016628388d9fc9b5bbb5 (patch) | |
tree | c819707a218c65168bc28010a27cd500ad6c347d /lang | |
parent | 40ce8ab9b3e3839355ed5eccafd31a607aae8197 (diff) | |
download | pkgsrc-c00099f48a82ac8b44e7016628388d9fc9b5bbb5.tar.gz |
Add basic DESTDIR support for PEAR packages. The skip list is a band aid
and the PEAR package itself must be reviewed to not include those files.
The patch doesn't work for dependencies right now.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/php/pear.mk | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/lang/php/pear.mk b/lang/php/pear.mk index 88a81844811..78a7082ad66 100644 --- a/lang/php/pear.mk +++ b/lang/php/pear.mk @@ -1,4 +1,4 @@ -# $NetBSD: pear.mk,v 1.10 2007/05/05 21:32:12 adrianp Exp $ +# $NetBSD: pear.mk,v 1.11 2008/06/12 00:20:10 joerg Exp $ # # This Makefile fragment is intended to be included by packages that build # and install pear packages. @@ -33,6 +33,9 @@ DEPENDS+= ${PHP_PKG_PREFIX}-pear-[0-9]*:../../lang/pear PEAR_CMD= ${PREFIX}/bin/pear PEAR_LIB= lib/php +.if ${_USE_DESTDIR} != "no" +PEAR_DESTDIR= -R ${DESTDIR} +.endif # whether @dirrm for baseinstalldir should be included in PLIST PEAR_DIRRM_BASEDIR?= # empty @@ -53,7 +56,19 @@ post-extract: @cd ${WRKSRC} && ${LN} -s ${WRKDIR}/package.xml package.xml do-install: - cd ${WRKSRC} && ${PEAR_CMD} "install" package.xml || exit 1 + cd ${WRKSRC} && ${PEAR_CMD} "install" ${PEAR_DESTDIR} package.xml || exit 1 + +.if ${_USE_DESTDIR} != "no" +CHECK_FILES_SKIP+= ${PREFIX}/lib/php/.channels/.alias/pear.txt +CHECK_FILES_SKIP+= ${PREFIX}/lib/php/.channels/.alias/pecl.txt +CHECK_FILES_SKIP+= ${PREFIX}/lib/php/.channels/__uri.reg +CHECK_FILES_SKIP+= ${PREFIX}/lib/php/.channels/pear.php.net.reg +CHECK_FILES_SKIP+= ${PREFIX}/lib/php/.channels/pecl.php.net.reg +CHECK_FILES_SKIP+= ${PREFIX}/lib/php/.depdb +CHECK_FILES_SKIP+= ${PREFIX}/lib/php/.depdblock +CHECK_FILES_SKIP+= ${PREFIX}/lib/php/.filemap +CHECK_FILES_SKIP+= ${PREFIX}/lib/php/.lock +.endif .include "../../lang/php/phpversion.mk" .include "${PHPPKGSRCDIR}/buildlink3.mk" |