summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Bergmann <sebastian@gentoo.org>2005-03-09 07:38:11 +0000
committerSebastian Bergmann <sebastian@gentoo.org>2005-03-09 07:38:11 +0000
commit33a24770511396d8be24e00da358f8506c4ef540 (patch)
tree51d21120cf743925fd598fef1c9af17c4c493953 /dev-php
parentFixed LDFLAGS (diff)
downloadgentoo-2-33a24770511396d8be24e00da358f8506c4ef540.tar.gz
gentoo-2-33a24770511396d8be24e00da358f8506c4ef540.tar.bz2
gentoo-2-33a24770511396d8be24e00da358f8506c4ef540.zip
Change PEAR installation directory from /usr/lib/php to /usr/share/php.
(Portage version: 2.0.51.19)
Diffstat (limited to 'dev-php')
-rw-r--r--dev-php/PEAR-PEAR/ChangeLog6
-rw-r--r--dev-php/PEAR-PEAR/PEAR-PEAR-1.3.5-r1.ebuild16
2 files changed, 17 insertions, 5 deletions
diff --git a/dev-php/PEAR-PEAR/ChangeLog b/dev-php/PEAR-PEAR/ChangeLog
index b02013d0fd21..d414a83969e2 100644
--- a/dev-php/PEAR-PEAR/ChangeLog
+++ b/dev-php/PEAR-PEAR/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-php/PEAR-PEAR
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-PEAR/ChangeLog,v 1.11 2005/03/09 06:28:03 sebastian Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-PEAR/ChangeLog,v 1.12 2005/03/09 07:38:11 sebastian Exp $
+
+ 09 Mar 2005; Sebastian Bergmann <sebastian@gentoo.org>
+ PEAR-PEAR-1.3.5-r1.ebuild:
+ Change PEAR installation directory from /usr/lib/php to /usr/share/php.
09 Mar 2005; Sebastian Bergmann <sebastian@gentoo.org>
PEAR-PEAR-1.3.5-r1.ebuild, PEAR-PEAR-1.3.5.ebuild:
diff --git a/dev-php/PEAR-PEAR/PEAR-PEAR-1.3.5-r1.ebuild b/dev-php/PEAR-PEAR/PEAR-PEAR-1.3.5-r1.ebuild
index 7b670db379d8..214e614e4a6a 100644
--- a/dev-php/PEAR-PEAR/PEAR-PEAR-1.3.5-r1.ebuild
+++ b/dev-php/PEAR-PEAR/PEAR-PEAR-1.3.5-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-PEAR/PEAR-PEAR-1.3.5-r1.ebuild,v 1.3 2005/03/09 06:28:03 sebastian Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-PEAR/PEAR-PEAR-1.3.5-r1.ebuild,v 1.4 2005/03/09 07:38:11 sebastian Exp $
ARCHIVE_TAR="1.2"
CONSOLE_GETOPT="1.2"
@@ -42,7 +42,7 @@ bootstrap_pear() {
cp ${WORKDIR}/PEAR-${PEAR}/scripts/pearcmd.php ${WORKDIR}/PEAR/pearcmd.php
cp ${WORKDIR}/PEAR-${PEAR}/scripts/pear.sh ${WORKDIR}/PEAR/pear
sed -i 's:@php_bin@:/usr/bin/php:g' ${WORKDIR}/PEAR/pear || die
- sed -i 's:@php_dir@:/usr/lib/php:g' ${WORKDIR}/PEAR/pear || die
+ sed -i 's:@php_dir@:/usr/share/php:g' ${WORKDIR}/PEAR/pear || die
cp -r ${WORKDIR}/Archive_Tar-${ARCHIVE_TAR}/Archive ${WORKDIR}/PEAR/Archive
@@ -52,14 +52,22 @@ bootstrap_pear() {
cp ${WORKDIR}/XML_RPC-${XML_RPC}/Server.php ${WORKDIR}/PEAR/XML/RPC/Server.php
cd ${WORKDIR}/PEAR
- insinto /usr/lib/php
+ insinto /usr/share/php
doins -r Archive Console OS PEAR XML *.php
dobin pear
}
install_pear_after_bootstrap() {
+ /usr/bin/php -d include_path=".:${D}/usr/share/php" ${D}/usr/share/php/pearcmd.php config-set doc_dir /usr/share/php/doc || die
+ /usr/bin/php -d include_path=".:${D}/usr/share/php" ${D}/usr/share/php/pearcmd.php config-set data_dir /usr/share/php/data || die
+ /usr/bin/php -d include_path=".:${D}/usr/share/php" ${D}/usr/share/php/pearcmd.php config-set php_dir /usr/share/php || die
+ /usr/bin/php -d include_path=".:${D}/usr/share/php" ${D}/usr/share/php/pearcmd.php config-set test_dir /usr/share/php/test || die
+
+ mkdir ${D}/etc
+ cp $HOME/.pearrc ${D}/etc/pear.conf
+
prepare_pear_install
- /usr/bin/php -d include_path=".:${D}/usr/lib/php" ${D}/usr/lib/php/pearcmd.php install --nodeps -R ${D} package.xml || die
+ /usr/bin/php -d include_path=".:${D}/usr/share/php" ${D}/usr/share/php/pearcmd.php install --nodeps -R ${D} package.xml || die
}
install_pear_without_bootstrap() {