aboutsummaryrefslogtreecommitdiffstats
path: root/main/php-phalcon
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-11-27 12:30:39 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-11-27 12:30:39 +0000
commit7ae13a584ef6550881df84e0290d866e9cbb7ab9 (patch)
treead2f76b536dbaee5e25e4c03a0b9307bff23256f /main/php-phalcon
parent4ee899b79730ee14c412c757c646bae03f9f0b9e (diff)
downloadaports-7ae13a584ef6550881df84e0290d866e9cbb7ab9.tar.bz2
aports-7ae13a584ef6550881df84e0290d866e9cbb7ab9.tar.xz
main/php-phalcon: move from testing
Diffstat (limited to 'main/php-phalcon')
-rw-r--r--main/php-phalcon/10.cphalcon.patch13
-rw-r--r--main/php-phalcon/APKBUILD53
-rw-r--r--main/php-phalcon/phalcon.ini3
3 files changed, 69 insertions, 0 deletions
diff --git a/main/php-phalcon/10.cphalcon.patch b/main/php-phalcon/10.cphalcon.patch
new file mode 100644
index 0000000000..f928bc70e4
--- /dev/null
+++ b/main/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/main/php-phalcon/APKBUILD b/main/php-phalcon/APKBUILD
new file mode 100644
index 0000000000..c0e3af6b84
--- /dev/null
+++ b/main/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 || return 1
+}
+
+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/main/php-phalcon/phalcon.ini b/main/php-phalcon/phalcon.ini
new file mode 100644
index 0000000000..5a68fe28f3
--- /dev/null
+++ b/main/php-phalcon/phalcon.ini
@@ -0,0 +1,3 @@
+[phalcon]
+extension=phalcon.so
+