summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Marc-Antoine Perennou <keruspe@exherbo.org> 2015-08-25 16:47:24 +0200
committerAvatar Marc-Antoine Perennou <keruspe@exherbo.org> 2015-08-25 16:47:24 +0200
commit3fa0fa6b374667b63b0cd22dcacff1a6445eb5a1 (patch)
tree838f7ee49b4dce965ac6f4ef58ddef78ba8128b3
parent5ed458a283098a1a918a09ef2f357873f93aa449 (diff)
downloadphp-3fa0fa6b374667b63b0cd22dcacff1a6445eb5a1.tar.gz
php-3fa0fa6b374667b63b0cd22dcacff1a6445eb5a1.tar.xz
move php exlibs to ::arbor
Signed-off-by: Marc-Antoine Perennou <keruspe@exherbo.org>
-rw-r--r--exlibs/php-pear.exlib54
-rw-r--r--exlibs/php-pecl.exlib66
2 files changed, 0 insertions, 120 deletions
diff --git a/exlibs/php-pear.exlib b/exlibs/php-pear.exlib
deleted file mode 100644
index 8b95e06..0000000
--- a/exlibs/php-pear.exlib
+++ /dev/null
@@ -1,54 +0,0 @@
-# Copyright 2009 Wulf C. Krueger <philantrop@exherbo.org>
-# Distributed under the terms of the GNU General Public License v2
-# Based in part upon 'php-pear-r1.eclass' from Gentoo, which is:
-# Copyright 1999-2007 Gentoo Foundation
-
-export_exlib_phases src_install
-
-DEPENDENCIES="
- build+run:
- dev-lang/php[pear]
- dev-pear/PEAR[>=1.7.1]
-"
-
-fix_PEAR_PV() {
- tmp="${PV}"
- tmp="${tmp/_/}"
- tmp="${tmp/rc/RC}"
- tmp="${tmp/beta/b}"
- tmp="${tmp/alpha/a}"
- PEAR_PV="${tmp}"
-}
-
-# Unless it's set in the exheres, use the above function to get PEAR_PV for DOWNLOADS.
-[[ -z "${PEAR_PV}" ]] && fix_PEAR_PV
-
-# Set DOWNLOADS and HOMEPAGE
-[[ -z "${DOWNLOADS}" ]] && DOWNLOADS="http://pear.php.net/get/${PN}-${PEAR_PV}.tgz"
-[[ -z "${HOMEPAGE}" ]] && HOMEPAGE="http://pear.php.net/${PN}"
-
-WORK="${WORKBASE}"/${PN}-${PEAR_PV}
-
-php-pear_src_install() {
- local PKG_FILE=""
- local PHP_BIN="/usr/bin/php"
- local PEAR_BIN="/usr/bin/pear"
- local PEAR_PATH="/usr/share/pear"
-
- if [[ -f "${WORKBASE}"/package2.xml ]] ; then
- PKG_FILE="package2.xml"
- else
- PKG_FILE="package.xml"
- fi
-
- mv -f "${WORKBASE}/${PKG_FILE}" "${WORK}" || die "Failed to move ${WORKBASE}/${PKG_FILE}"
- "${PEAR_BIN}" -d php_bin="${PHP_BIN}" install --force --loose --nodeps --offline --packagingroot="${IMAGE}" "${WORK}/${PKG_FILE}" || die "Unable to install PEAR package"
-
- rm -rf \
- "${IMAGE}/${PEAR_PATH}/.channels" \
- "${IMAGE}/${PEAR_PATH}/.depdblock" \
- "${IMAGE}/${PEAR_PATH}/.depdb" \
- "${IMAGE}/${PEAR_PATH}/.filemap" \
- "${IMAGE}/${PEAR_PATH}/.lock" \
- "${IMAGE}/${PEAR_PATH}/.registry"
-}
diff --git a/exlibs/php-pecl.exlib b/exlibs/php-pecl.exlib
deleted file mode 100644
index 11dcaf8..0000000
--- a/exlibs/php-pecl.exlib
+++ /dev/null
@@ -1,66 +0,0 @@
-# Copyright 2010 Anders Ladegaard Marchsteiner <alm.anma@gmail.com>
-# Distributed under the terms of the GNU General Public License v2
-# Based in part upon 'php-pear.exlib', which is:
-# Copyright 2009 Wulf C. Krueger <philantrop@exherbo.org>
-
-export_exlib_phases src_configure src_install
-
-myexparam module=extension
-
-DEPENDENCIES="
- build+run:
- dev-lang/php[pear]
-"
-
-fix_PECL_PV() {
- tmp="${PV}"
- tmp="${tmp/_/}"
- tmp="${tmp/rc/RC}"
- tmp="${tmp/beta/b}"
- tmp="${tmp/alpha/a}"
- PECL_PV="${tmp}"
-}
-
-# Unless it's set in the exheres, use the above function to get PECL_PV for DOWNLOADS.
-[[ -z ${PECL_PV} ]] && fix_PECL_PV
-
-# Set DOWNLOADS and HOMEPAGE
-[[ -z ${DOWNLOADS} ]] && DOWNLOADS="http://pecl.php.net/get/${PN}-${PECL_PV}.tgz"
-[[ -z ${HOMEPAGE} ]] && HOMEPAGE="http://pecl.php.net/package/${PN}"
-
-UPSTREAM_CHANGELOG="http://pecl.php.net/package-changelog.php?package=${PN}&release=${PECL_PV}"
-
-WORK=${WORKBASE}/${PN}-${PECL_PV}
-
-install_module_config() {
- edo echo "extension = ${PN}.so" > "${IMAGE}"/etc/php/${PN}.ini
-}
-
-install_zend_config() {
- extensionDir=$(php-config --extension-dir)
- extensionFileName="${extensionDir}/${PN}.so"
- edo echo "zend_extension = ${extensionFileName}" > "${IMAGE}"/etc/php/${PN}.ini
-}
-
-php-pecl_src_configure() {
- phpize
-
- default
-}
-
-php-pecl_src_install() {
- exparam -v PHP_MODULE_TYPE module
-
- edo mkdir -p "${IMAGE}"/etc/php
-
- if [[ "$PHP_MODULE_TYPE" == "zend" ]] ; then
- install_zend_config
- elif [[ "$PHP_MODULE_TYPE" == "module" ]] ; then
- install_module_config
- else
- die "Invalid module type"
- fi
-
- INSTALL_ROOT="${IMAGE}" default
-}
-