aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorV.Krishn <vkrishn4@gmail.com>2014-11-20 20:43:33 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-11-21 07:34:15 +0000
commitcde291301b5c5e6236a70114934fc331ff0c01b3 (patch)
tree0d384436d8fba8376b4f632827a80a1a0bb113a0
parent77562b884d9577740d56357b69a84303bb5be7ab (diff)
downloadaports-cde291301b5c5e6236a70114934fc331ff0c01b3.tar.bz2
aports-cde291301b5c5e6236a70114934fc331ff0c01b3.tar.xz
testing/php-phalcon: new aport
Phalcon is a web framework implemented as a C extension offering high performance and lower resource consumption. http://phalconphp.com/en/
-rw-r--r--testing/php-phalcon/10.cphalcon.patch13
-rw-r--r--testing/php-phalcon/APKBUILD53
-rw-r--r--testing/php-phalcon/phalcon.ini3
3 files changed, 69 insertions, 0 deletions
diff --git a/testing/php-phalcon/10.cphalcon.patch b/testing/php-phalcon/10.cphalcon.patch
new file mode 100644
index 0000000000..f928bc70e4
--- /dev/null
+++ b/testing/php-phalcon/10.cphalcon.patch
@@ -0,0 +1,13 @@
+diff --git a/build/install b/build/install
+index a0bc399..514bce7 100755
+--- a/build/install
++++ b/build/install
+@@ -61,4 +61,7 @@ if [ -f Makefile ]; then
+ fi
+
+ #Perform the compilation
+-phpize && ./configure --enable-phalcon && make && make install && echo -e "\nThanks for compiling Phalcon!\nBuild succeed: Please restart your web server to complete the installation"
++# phpize && ./configure --enable-phalcon && make && make install && echo -e "\nThanks for compiling Phalcon!\nBuild succeed: Please restart your web server to complete the installation"
++export PHALCONARCH="$DIR"
++phpize && ./configure --enable-phalcon && make
++
diff --git a/testing/php-phalcon/APKBUILD b/testing/php-phalcon/APKBUILD
new file mode 100644
index 0000000000..0e735e4101
--- /dev/null
+++ b/testing/php-phalcon/APKBUILD
@@ -0,0 +1,53 @@
+# Contributor: V.Krishn <vkrishn4@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=php-phalcon
+pkgver=1.3.4
+pkgrel=0
+pkgdesc="Web framework delivered as a C-extension for PHP"
+url="https://github.com/phalcon/cphalcon"
+arch="all"
+license="PHP"
+depends="php php-pdo php-json"
+makedepends="php-dev autoconf grep sed pcre-dev gawk re2c"
+subpackages=""
+source="saveas-https://github.com/phalcon/cphalcon/archive/$pkgver.tar.gz/$pkgname-$pkgver.tar.gz
+phalcon.ini
+10.cphalcon.patch
+"
+
+_builddir="$srcdir/cphalcon-$pkgver"
+prepare() {
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch)
+ msg "Applying $i"
+ patch -p1 -i "$srcdir"/$i || return 1
+ ;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir/build"
+ source ./install
+}
+
+package() {
+ cd "$_builddir/build/$PHALCONARCH"
+ make INSTALL_ROOT=$pkgdir install || return 1
+ install -D -m644 "$srcdir"/phalcon.ini "$pkgdir"/etc/php/conf.d/phalcon.ini
+}
+
+
+
+
+md5sums="431d446929338667c72eb4fa2383b0e9 php-phalcon-1.3.4.tar.gz
+4ff799a0f333728c44b7e7cf38af8d98 phalcon.ini
+12112063b1b10e2257a3763fa21e216f 10.cphalcon.patch"
+sha256sums="ed23e7e04f127227aa8995e382b7cf5e398ac9db4660a8b66fd0a95db437a449 php-phalcon-1.3.4.tar.gz
+e8a4178c51f104e28c6d79737b8e240cb35c3b96501ed5a866b9da3ff298d39c phalcon.ini
+919eea78cee4d7f879d3dedd819453a0dd3304f6b0eea6e08ccee240fbb795c8 10.cphalcon.patch"
+sha512sums="415539c7f779c837ae8ec3f07a777c02e54a4b7a44c8af4fd7f47165417a69be4a1a0fd0be08ec89b2257b5fb660050caeea688d873427813adb51f92897d59a php-phalcon-1.3.4.tar.gz
+559daf31ccc73184ebd27f17088ee8b336015c391baa21c707cf2cca999f9737bf80d224467af74b5049019ae7f222235fcfec07391fede2e25becfad4fcf5a1 phalcon.ini
+4877319bb79ddd8e52cdbd984a0d00199241406d73228c229a2430148653f6d5ef36c036d60ea7e661f2a46ed3e0bc747cf0bccbbbef24cc798700cfc39d5b3c 10.cphalcon.patch"
diff --git a/testing/php-phalcon/phalcon.ini b/testing/php-phalcon/phalcon.ini
new file mode 100644
index 0000000000..5a68fe28f3
--- /dev/null
+++ b/testing/php-phalcon/phalcon.ini
@@ -0,0 +1,3 @@
+[phalcon]
+extension=phalcon.so
+