summaryrefslogtreecommitdiff
path: root/www/php4
diff options
context:
space:
mode:
authorjdolecek <jdolecek>2004-11-01 19:55:57 +0000
committerjdolecek <jdolecek>2004-11-01 19:55:57 +0000
commit429c204812c454af902f0048769d3468bdcd021e (patch)
tree1508499c23c75b13b3d4909b3b79bf912e9507d7 /www/php4
parentb7a6a911df549b2e7f55856ded1d74a3d1193286 (diff)
downloadpkgsrc-429c204812c454af902f0048769d3468bdcd021e.tar.gz
use shared pear package support framework for both php4 & php5; based on
the former php4 version
Diffstat (limited to 'www/php4')
-rw-r--r--www/php4/pear.mk55
-rw-r--r--www/php4/pear_plist.php50
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";
-?>