pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/php4 handle also 'doc' and 'test' files, this is n...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/70efefddf805
branches:  trunk
changeset: 472047:70efefddf805
user:      jdolecek <jdolecek%pkgsrc.org@localhost>
date:      Fri Apr 02 21:54:49 2004 +0000

description:
handle also 'doc' and 'test' files, this is necessary for pear-Log

diffstat:

 www/php4/pear.mk |  16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r 704dd31decce -r 70efefddf805 www/php4/pear.mk
--- a/www/php4/pear.mk  Fri Apr 02 21:42:32 2004 +0000
+++ b/www/php4/pear.mk  Fri Apr 02 21:54:49 2004 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index