diff options
author | jdolecek <jdolecek> | 2004-11-01 19:55:57 +0000 |
---|---|---|
committer | jdolecek <jdolecek> | 2004-11-01 19:55:57 +0000 |
commit | 8f2f3b67cb64fdb2d8aae99be559615eb1d27ae0 (patch) | |
tree | 1508499c23c75b13b3d4909b3b79bf912e9507d7 /www | |
parent | c622e098716310fc95a268365a3aad642ede295d (diff) | |
download | pkgsrc-8f2f3b67cb64fdb2d8aae99be559615eb1d27ae0.tar.gz |
use shared pear package support framework for both php4 & php5; based on
the former php4 version
Diffstat (limited to 'www')
-rw-r--r-- | www/php4/pear.mk | 55 | ||||
-rw-r--r-- | www/php4/pear_plist.php | 50 |
2 files changed, 0 insertions, 105 deletions
diff --git a/www/php4/pear.mk b/www/php4/pear.mk deleted file mode 100644 index 3b0da82b87f..00000000000 --- a/www/php4/pear.mk +++ /dev/null @@ -1,55 +0,0 @@ -# $NetBSD: pear.mk,v 1.9 2004/07/14 07:06:05 jdolecek Exp $ -# -# This Makefile fragment is intended to be included by packages that build -# and install pear packages. -# -# If you don't know what pear is, you can visit: http://pear.php.net/ -# -# PEAR_CMD this is the actual script to execute to install the -# package. -# -# PEAR_LIB directory under ${PREFIX} where Pear modules are installed -# - -.if !defined(_PEAR_PACKAGE_MK) -_PEAR_PACKAGE_MK= # defined - -USE_BUILDLINK3= YES - -.include "../../www/php4/buildlink3.mk" - -.include "../../mk/bsd.prefs.mk" - -EXTRACT_SUFX= .tgz - -PKGNAME= pear-${DISTNAME} -CATEGORIES+= www - -MASTER_SITE_PEAR_PACKAGE+= \ - http://pear.php.net/get/ -MASTER_SITES+= ${MASTER_SITE_PEAR_PACKAGE} - -PEAR_CMD= ${PREFIX}/bin/pear -PEAR_LIB= lib/php - -# whether @dirrm for baseinstalldir should be included in PLIST -PEAR_DIRRM_BASEDIR?= # empty - -# Dynamic PLIST, generated via a helper PHP script, which parses the package -# XML config file. -PEAR_GENERATE_PLIST= \ - ${ECHO} "@comment The following lines are automatically generated"; \ - PEAR_LIB="${PEAR_LIB}" WRKSRC="${WRKSRC}" \ - PEAR_DIRRM_BASEDIR="${PEAR_DIRRM_BASEDIR}" \ - ${PREFIX}/bin/php ${PKGDIR}/../../www/php4/pear_plist.php; -GENERATE_PLIST+= ${PEAR_GENERATE_PLIST} - -NO_BUILD= # defined - -post-extract: - @cd ${WRKSRC} && ${LN} -s ${WRKDIR}/package.xml - -do-install: - cd ${WRKSRC} && ${PEAR_CMD} install package.xml - -.endif # _PEAR_PACKAGE_MK diff --git a/www/php4/pear_plist.php b/www/php4/pear_plist.php deleted file mode 100644 index fc23bc99336..00000000000 --- a/www/php4/pear_plist.php +++ /dev/null @@ -1,50 +0,0 @@ -<?php -# $NetBSD: pear_plist.php,v 1.1 2004/04/03 04:39:47 jdolecek Exp $ -# Parses package XML file and outputs appropriate PLIST - -$PEAR_LIB = getenv('PEAR_LIB'); -$WRKSRC = getenv('WRKSRC'); -$PEAR_DIRRM_BASEDIR = getenv('PEAR_DIRRM_BASEDIR'); -$dirrm = array(); - -include_once "PEAR/Common.php"; -$obj = &new PEAR_Common; -$info = $obj->infoFromAny("$WRKSRC/package.xml"); -$pkg = $info['package']; - -// output list of package files, in same order as specified in package -echo "$PEAR_LIB/.registry/".strtolower($pkg).".reg\n"; -foreach($info['filelist'] as $f => $v) { - switch($v['role']) { - case 'test': - case 'doc': - $prefix = "$v[role]/$pkg/"; - $dirrm["$v[role]/$pkg"] = true; - break; - - case 'php': - default: - if (!empty($v['baseinstalldir']) && $v['baseinstalldir'] != '/') { - $prefix = $v['baseinstalldir'] . '/'; - - if ($PEAR_DIRRM_BASEDIR) - $dirrm[$v['baseinstalldir']] = true; - } else - $prefix = ''; - break; - } - - - echo "{$PEAR_LIB}/{$prefix}{$f}\n"; - - while(($f = dirname($f)) && $f != '.') - $dirrm["{$prefix}{$f}"] = true; -} - -// output @dirrm directives, in reverse order so that deeper -// directories are removed first -$dirrm = array_keys($dirrm); -rsort($dirrm); -foreach($dirrm as $dir) - echo "@dirrm {$PEAR_LIB}/$dir\n"; -?> |