summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Wulf C. Krueger <philantrop@exherbo.org> 2010-05-30 19:54:44 +0200
committerAvatar Wulf C. Krueger <philantrop@exherbo.org> 2010-05-30 19:54:44 +0200
commitae1c2998cf1c9a1eafdc64e851e99eaa8148e1b3 (patch)
tree377ebf5015de59c8d4e9870a41423405f75eadc3
parent0d9ae3d4f76f9be2cb254217b32afca55a9daa01 (diff)
downloadphp-ae1c2998cf1c9a1eafdc64e851e99eaa8148e1b3.tar.gz
php-ae1c2998cf1c9a1eafdc64e851e99eaa8148e1b3.tar.xz
Quoting. Style.
-rw-r--r--exlibs/php-pecl.exlib18
1 files changed, 9 insertions, 9 deletions
diff --git a/exlibs/php-pecl.exlib b/exlibs/php-pecl.exlib
index e71fe0a..ba44104 100644
--- a/exlibs/php-pecl.exlib
+++ b/exlibs/php-pecl.exlib
@@ -21,15 +21,15 @@ fix_PECL_PV() {
}
# Unless it's set in the exheres, use the above function to get PECL_PV for DOWNLOADS.
-[[ -z "${PECL_PV}" ]] && fix_PECL_PV
+[[ -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}"
+[[ -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}
+WORK=${WORKBASE}/${PN}-${PECL_PV}
php-pecl_src_configure() {
phpize
@@ -42,12 +42,12 @@ php-pecl_src_install() {
sydboxcmd write $(php-config --extension-dir)
# Provide a updated php.ini which loads the new extension - based on the current php.ini.
- edo mkdir -p ${IMAGE}/etc/php
- edo cp /etc/php/php.ini ${IMAGE}/etc/php/php.ini
- hasLines=`grep -c "extension = ${PN}.so" "${IMAGE}"/etc/php/php.ini`
+ edo mkdir -p "${IMAGE}"/etc/php
+ edo cp /etc/php/php.ini "${IMAGE}"/etc/php/php.ini
+ hasLines=$(grep -c "extension = ${PN}.so" "${IMAGE}"/etc/php/php.ini)
if [[ $hasLines -eq 0 ]] ; then
# Find linenumber extension_dir and use the next line.
- linenum=`edo grep -n "extension_dir" "${IMAGE}"/etc/php/php.ini | head -1 | awk -F: '{ print $1}'`
+ linenum=$(edo grep -n "extension_dir" "${IMAGE}"/etc/php/php.ini | head -1 | awk -F: '{ print $1}')
linenum=$((linenum+1))
# Insert extension in php.ini.
edo sed -i "${linenum}i\extension = ${PN}.so" "${IMAGE}"/etc/php/php.ini
@@ -58,6 +58,6 @@ php-pecl_src_install() {
php-pecl_pkg_postinst() {
# Make sure the extension is executable.
- chmod +x $(php-config --extension-dir)/${PN}.so
+ edo chmod +x $(php-config --extension-dir)/${PN}.so
}