diff options
author | jdolecek <jdolecek@pkgsrc.org> | 2004-04-02 21:54:49 +0000 |
---|---|---|
committer | jdolecek <jdolecek@pkgsrc.org> | 2004-04-02 21:54:49 +0000 |
commit | 19c94f41861e5cf7f25e9f8c06f06936389b543c (patch) | |
tree | 5bb5b671d88a147c4402c306960d742a1a01ffd3 /www | |
parent | bd1564f2adeed7286917a5c68e37a4345f1d676c (diff) | |
download | pkgsrc-19c94f41861e5cf7f25e9f8c06f06936389b543c.tar.gz |
handle also 'doc' and 'test' files, this is necessary for pear-Log
Diffstat (limited to 'www')
-rw-r--r-- | www/php4/pear.mk | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/www/php4/pear.mk b/www/php4/pear.mk index 8d865d3b5df..eb0ac409c6e 100644 --- a/www/php4/pear.mk +++ b/www/php4/pear.mk @@ -1,4 +1,4 @@ -# $NetBSD: pear.mk,v 1.3 2004/03/17 19:07:51 kristerw Exp $ +# $NetBSD: pear.mk,v 1.4 2004/04/02 21:54:49 jdolecek Exp $ # # This Makefile fragment is intended to be included by packages that build # and install pear packages. @@ -33,17 +33,25 @@ MASTER_SITES+= ${MASTER_SITE_PEAR_PACKAGE} PEAR_CMD= ${PREFIX}/bin/pear PEAR_LIB= lib/php +_PEAR_PKG= ${DISTNAME:C/-.*//} + # Changed to not use :tl modifier since that's currently NetBSD 1.6-only -_PEAR_PKG!= ${ECHO} ${DISTNAME:C/-.*//} | ${TR} '[A-Z]' '[a-z]' +_PEAR_PKG_LC!= ${ECHO} ${_PEAR_PKG} | ${TR} '[A-Z]' '[a-z]' # Dynamic PLIST # The package.xml 'parsing' is a bit crude, but enough for now. Eventually # should write a small PHP script for this, using real XML parser. PEAR_GENERATE_PLIST= \ ${ECHO} "@comment The following lines are automatically generated"; \ - ${ECHO} "${PEAR_LIB}/.registry/${_PEAR_PKG}.reg"; \ + ${ECHO} "${PEAR_LIB}/.registry/${_PEAR_PKG_LC}.reg"; \ ${FGREP} '<file role="php"' ${WRKDIR}/package.xml | ${SED} -e 's,.*<file role="php",<,' -e 's,<.*baseinstalldir="\([^"]*\)",\1/<,' -e 's,<.* name=",,' -e 's,".*,,' -e "s,^/*,${PEAR_LIB}/,"; \ - ${FGREP} '<file role="php"' ${WRKDIR}/package.xml | ${SED} -e 's,.*<file role="php",<,' -e 's,<.*baseinstalldir="\([^"]*\)",\1/<,' -e 's,<.* name=",,' -e 's,".*,,' -e 's,//*,/,g' -e 's,/[^/]*$$,,' | ${FGREP} '/' | ${SORT} -ru | ${SED} -e "s,^,@dirrm ${PEAR_LIB}/,"; + ${FGREP} '<file role="php"' ${WRKDIR}/package.xml | ${SED} -e 's,.*<file role="php",<,' -e 's,<.*baseinstalldir="\([^"]*\)",\1/<,' -e 's,<.* name=",,' -e 's,".*,,' -e 's,//*,/,g' -e 's,/[^/]*$$,,' | ${FGREP} '/' | ${SORT} -ru | ${SED} -e "s,^,@dirrm ${PEAR_LIB},"; \ + ${FGREP} '<file role="doc"' ${WRKDIR}/package.xml | ${SED} -e 's,.*<file role="doc",<,' -e 's,<.*baseinstalldir="\([^"]*\)",\1/<,' -e 's,<.* name=",,' -e 's,".*,,' -e "s,^/*,${PEAR_LIB}/doc/${_PEAR_PKG}/,"; \ + ${FGREP} '<file role="doc"' ${WRKDIR}/package.xml | ${SED} -e 's,.*<file role="doc",<,' -e 's,<.*baseinstalldir="\([^"]*\)",\1/<,' -e 's,<.* name=",,' -e 's,".*,,' -e 's,//*,/,g' -e 's,/[^/]*$$,,' | ${FGREP} '/' | ${SORT} -ru | ${SED} -e "s,^,@dirrm ${PEAR_LIB}/doc/${_PEAR_PKG},"; \ + ${FGREP} -q '<file role="doc"' ${WRKDIR}/package.xml && echo "@dirrm ${PEAR_LIB}/doc/${_PEAR_PKG}"; \ + ${FGREP} '<file role="test"' ${WRKDIR}/package.xml | ${SED} -e 's,.*<file role="test",<,' -e 's,<.*baseinstalldir="\([^"]*\)",\1/<,' -e 's,<.* name=",,' -e 's,".*,,' -e "s,^/*,${PEAR_LIB}/test/${_PEAR_PKG}/,"; \ + ${FGREP} '<file role="test"' ${WRKDIR}/package.xml | ${SED} -e 's,.*<file role="test",<,' -e 's,<.*baseinstalldir="\([^"]*\)",\1/<,' -e 's,<.* name=",,' -e 's,".*,,' -e 's,//*,/,g' -e 's,/[^/]*$$,,' | ${FGREP} '/' | ${SORT} -ru | ${SED} -e "s,^,@dirrm ${PEAR_LIB}/test/${_PEAR_PKG},"; \ + ${FGREP} -q '<file role="test"' ${WRKDIR}/package.xml && echo "@dirrm ${PEAR_LIB}/test/${_PEAR_PKG}"; GENERATE_PLIST+= ${PEAR_GENERATE_PLIST} NO_BUILD= # defined |