소스 검색

create stand alone install for php-phalcon (for use with php-phalcon
and php-phalcon-micro)

Lita Gratrix 10 년 전
부모
커밋
84fc15b090

+ 1 - 1
frameworks/PHP/php-phalcon-micro/install.sh

@@ -1,3 +1,3 @@
 #!/bin/bash
 
-fw_depends php nginx
+fw_depends php cphalcon nginx

+ 1 - 1
frameworks/PHP/php-phalcon/install.sh

@@ -1,3 +1,3 @@
 #!/bin/bash
 
-fw_depends php nginx
+fw_depends php cphalcon nginx

+ 12 - 0
toolset/setup/linux/frameworks/cphalcon.sh

@@ -0,0 +1,12 @@
+# phalcon.so
+#   The configure seems broken, does not respect prefix. If you 
+#   update the value of PATH then it finds the prefix from `which php`
+export PATH=$IROOT/php-5.5.17/bin:$IROOT/php-5.5.17/sbin:$PATH
+git clone git://github.com/phalcon/cphalcon.git
+cd cphalcon
+git checkout phalcon-v1.3.2
+cd build/64bits 
+$IROOT/php-5.5.17/bin/phpize
+./configure --prefix=$IROOT/php-5.5.17 --enable-phalcon
+make
+make install

+ 20 - 0
toolset/setup/linux/languages/cphalcon.sh

@@ -0,0 +1,20 @@
+#!/bin/bash
+
+# phalcon.so
+#   The configure seems broken, does not respect prefix. If you 
+#   update the value of PATH then it finds the prefix from `which php`
+
+RETCODE=$(fw_exists ${IROOT}/cphalcon.installed)
+[ ! "$RETCODE" == 0 ] || { return 0; }
+
+export PATH=$IROOT/php-5.5.17/bin:$IROOT/php-5.5.17/sbin:$PATH
+git clone git://github.com/phalcon/cphalcon.git
+cd cphalcon
+git checkout phalcon-v1.3.2
+cd build/64bits 
+$IROOT/php-5.5.17/bin/phpize
+./configure --prefix=$IROOT/php-5.5.17 --enable-phalcon
+make
+make install
+
+touch ${IROOT}/cphalcon.installed