summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Wulf C. Krueger <philantrop@exherbo.org> 2010-12-04 16:32:10 +0100
committerAvatar Wulf C. Krueger <philantrop@exherbo.org> 2010-12-04 16:32:10 +0100
commitc27b0b0e8e1f5712506956d45df56e689bbf5a66 (patch)
tree2ea8c331e44a34bd078fbfcdb31b245cc33ae718
parent2737eb3550101d73d304071d5456b8283e92de98 (diff)
downloadphp-c27b0b0e8e1f5712506956d45df56e689bbf5a66.tar.gz
php-c27b0b0e8e1f5712506956d45df56e689bbf5a66.tar.xz
Remove dev-pear/PEAR. If you need it, you use PHP anyway and it's in there.
-rw-r--r--packages/dev-pear/PEAR/PEAR-1.7.2.exheres-07
-rw-r--r--packages/dev-pear/PEAR/PEAR.exlib132
-rw-r--r--packages/dev-pear/PEAR/files/pear.conf2
3 files changed, 0 insertions, 141 deletions
diff --git a/packages/dev-pear/PEAR/PEAR-1.7.2.exheres-0 b/packages/dev-pear/PEAR/PEAR-1.7.2.exheres-0
deleted file mode 100644
index 870535c..0000000
--- a/packages/dev-pear/PEAR/PEAR-1.7.2.exheres-0
+++ /dev/null
@@ -1,7 +0,0 @@
-# Copyright 2010 Wulf C. Krueger <philantrop@exherbo.org>
-# Distributed under the terms of the GNU General Public License v2
-
-require PEAR
-
-PLATFORMS="~amd64 ~x86"
-
diff --git a/packages/dev-pear/PEAR/PEAR.exlib b/packages/dev-pear/PEAR/PEAR.exlib
deleted file mode 100644
index 1ab1565..0000000
--- a/packages/dev-pear/PEAR/PEAR.exlib
+++ /dev/null
@@ -1,132 +0,0 @@
-# Copyright 2010 Wulf C. Krueger <philantrop@exherbo.org>
-# Distributed under the terms of the GNU General Public License v2
-# Based in part upon 'PEAR-PEAR-1.7.1.ebuild' from Gentoo, which is:
-# Copyright 1999-2008 Gentoo Foundation
-
-export_exlib_phases pkg_setup src_install pkg_preinst pkg_postinst
-
-ARCHIVE_TAR="1.3.2"
-CONSOLE_GETOPT="1.2.3"
-STRUCTURES_GRAPH="1.0.2"
-XML_RPC="1.5.1"
-PEAR="${PV}"
-PHPCLI="/usr/bin/php"
-
-SUMMARY="PEAR Base System (PEAR, Archive_Tar, Console_Getopt, Structures_Graph, XML_RPC)."
-
-HOMEPAGE="http://pear.php.net"
-DOWNLOADS="
- ${HOMEPAGE}/get/Archive_Tar-${ARCHIVE_TAR}.tgz
- ${HOMEPAGE}/get/Console_Getopt-${CONSOLE_GETOPT}.tgz
- ${HOMEPAGE}/get/Structures_Graph-${STRUCTURES_GRAPH}.tgz
- ${HOMEPAGE}/get/XML_RPC-${XML_RPC}.tgz
- ${HOMEPAGE}/get/PEAR-${PEAR}.tgz
-"
-
-BUGS_TO="philantrop@exherbo.org"
-
-LICENCES="LGPL-2.1 PHP-2.02 PHP-3 PHP-3.01 MIT"
-SLOT="0"
-MYOPTIONS=""
-
-DEPENDENCIES="
- build+run:
- dev-lang/php[pear][php_extensions:pcre][php_extensions:xml]
-"
-
-WORK=${WORKBASE}
-
-PEAR_pkg_setup() {
- [[ -z "${PEAR_CACHEDIR}" ]] && PEAR_CACHEDIR="/var/cache/pear"
- [[ -z "${PEAR_DOWNLOADDIR}" ]] && PEAR_DOWNLOADDIR="/var/tmp/pear"
- [[ -z "${PEAR_TEMPDIR}" ]] && PEAR_TEMPDIR="/tmp"
-}
-
-PEAR_src_install() {
- # install PEAR package
- cd "${WORK}"/PEAR-${PEAR}
-
- insinto /usr/share/pear
- doins -r PEAR/
- doins -r OS/
- doins PEAR.php System.php
- doins scripts/pearcmd.php
- doins scripts/peclcmd.php
-
- newbin scripts/pear.sh pear
- newbin scripts/peardev.sh peardev
- newbin scripts/pecl.sh pecl
-
- # install Archive_Tar package
- cd "${WORK}"/Archive_Tar-${ARCHIVE_TAR}
- insinto /usr/share/pear
- doins -r Archive/
-
- # install Console_Getopt package.
- cd "${WORK}"/Console_Getopt-${CONSOLE_GETOPT}
- insinto /usr/share/pear
- doins -r Console/
-
- # install Structures_Graph package
- cd "${WORK}"/Structures_Graph-${STRUCTURES_GRAPH}
- insinto /usr/share/pear
- doins -r Structures/
-
- # install XML_RPC package
- cd "${WORK}"/XML_RPC-${XML_RPC}
- insinto /usr/share/pear/XML
- doins RPC.php
- insinto /usr/share/pear/XML/RPC
- doins Dump.php Server.php
-
- # adjust some scripts for current version
- for i in pearcmd.php peclcmd.php ; do
- sed -i -e "s:@pear_version@:${PEAR}:g" "${IMAGE}"/usr/share/pear/${i}
- done
-
- for i in pear peardev pecl ; do
- sed -i -e "s:@php_bin@:${PHPCLI}:g" "${IMAGE}"/usr/bin/${i}
- sed -i -e "s:@bin_dir@:/usr/bin:g" "${IMAGE}"/usr/bin/${i}
- sed -i -e "s:@php_dir@:/usr/share/pear:g" "${IMAGE}"/usr/bin/${i}
- done
- sed -i -e "s:-d output_buffering=1:-d output_buffering=1 -d memory_limit=32M:g" "${IMAGE}"/usr/bin/pear
-
- sed -i -e "s:@package_version@:${PEAR}:g" "${IMAGE}"/usr/share/pear/PEAR/Command/Package.php
- sed -i -e "s:@PEAR-VER@:${PEAR}:g" "${IMAGE}"/usr/share/pear/PEAR/Dependency2.php
- sed -i -e "s:@PEAR-VER@:${PEAR}:g" "${IMAGE}"/usr/share/pear/PEAR/PackageFile/Parser/v1.php
- sed -i -e "s:@PEAR-VER@:${PEAR}:g" "${IMAGE}"/usr/share/pear/PEAR/PackageFile/Parser/v2.php
-
- # finalize install
- insinto /etc
- doins "${FILES}"/pear.conf
- sed -i -e "s|s:PHPCLILEN:\"PHPCLI\"|s:${#PHPCLI}:\"${PHPCLI}\"|g" "${IMAGE}"/etc/pear.conf
- sed -i -e "s|s:CACHEDIRLEN:\"CACHEDIR\"|s:${#PEAR_CACHEDIR}:\"${PEAR_CACHEDIR}\"|g" "${IMAGE}"/etc/pear.conf
- sed -i -e "s|s:DOWNLOADDIRLEN:\"DOWNLOADDIR\"|s:${#PEAR_DOWNLOADDIR}:\"${PEAR_DOWNLOADDIR}\"|g" "${IMAGE}"/etc/pear.conf
- sed -i -e "s|s:TEMPDIRLEN:\"TEMPDIR\"|s:${#PEAR_TEMPDIR}:\"${PEAR_TEMPDIR}\"|g" "${IMAGE}"/etc/pear.conf
-
- [[ "${PEAR_TEMPDIR}" != "/tmp" ]] && keepdir "${PEAR_TEMPDIR}"
- keepdir "${PEAR_CACHEDIR}"
- diropts -m1777
- keepdir "${PEAR_DOWNLOADDIR}"
-}
-
-PEAR_pkg_preinst() {
- rm -f "${ROOT}/etc/pear.conf"
-}
-
-PEAR_pkg_postinst() {
- pear clear-cache
-
- # To discover the necessary channels, net access is absolutely necessary.
- sydboxcmd sandunbox/net
-
- # Update PEAR/PECL channels as needed, add new ones to the list if needed
- local pearchans="pear.php.net pecl.php.net components.ez.no pear.phpdb.org pear.phing.info
- pear.symfony-project.com pear.phpunit.de pear.php-baustelle.de pear.phpontrax.com
- pear.agavi.org"
-
- for chan in ${pearchans} ; do
- pear channel-discover ${chan}
- pear channel-update ${chan}
- done
-}
diff --git a/packages/dev-pear/PEAR/files/pear.conf b/packages/dev-pear/PEAR/files/pear.conf
deleted file mode 100644
index 72afe89..0000000
--- a/packages/dev-pear/PEAR/files/pear.conf
+++ /dev/null
@@ -1,2 +0,0 @@
-#PEAR_Config 0.9
-a:9:{s:7:"doc_dir";s:19:"/usr/share/pear/doc";s:8:"data_dir";s:20:"/usr/share/pear/data";s:8:"test_dir";s:20:"/usr/share/pear/test";s:7:"php_dir";s:15:"/usr/share/pear";s:7:"bin_dir";s:8:"/usr/bin";s:7:"php_bin";s:PHPCLILEN:"PHPCLI";s:9:"cache_dir";s:CACHEDIRLEN:"CACHEDIR";s:12:"download_dir";s:DOWNLOADDIRLEN:"DOWNLOADDIR";s:8:"temp_dir";s:TEMPDIRLEN:"TEMPDIR";}