diff options
author | Eugene Wissner <belka@caraus.de> | 2015-11-13 23:50:44 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-11-13 23:50:44 +0700 |
commit | 2417f790cd85ad6f6e927862ba21a4c78add8f06 (patch) | |
tree | e882e38092c0ee6156b4e2379b12cc8d027ca9f9 /development/hhvm-pgsql | |
parent | 8b6615f3c793f0abe98927036e19ae49f909d0ad (diff) | |
download | slackbuilds-2417f790cd85ad6f6e927862ba21a4c78add8f06.tar.gz |
development/hhvm-pgsql: Added (Postgres Extension for HipHop).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/hhvm-pgsql')
-rw-r--r-- | development/hhvm-pgsql/README | 8 | ||||
-rw-r--r-- | development/hhvm-pgsql/hhvm-pgsql.SlackBuild | 81 | ||||
-rw-r--r-- | development/hhvm-pgsql/hhvm-pgsql.info | 10 | ||||
-rw-r--r-- | development/hhvm-pgsql/slack-desc | 19 |
4 files changed, 118 insertions, 0 deletions
diff --git a/development/hhvm-pgsql/README b/development/hhvm-pgsql/README new file mode 100644 index 0000000000..54ceea89b1 --- /dev/null +++ b/development/hhvm-pgsql/README @@ -0,0 +1,8 @@ +This is an implementation of the pgsql and pdo_pgsql PHP extensions for HHVM. + +Once you've installed hhvm-pgsql, create the following lines in +/etc/hhvm/php.ini (create one if it doesn't exist): + extension_dir = /usr/lib64/hhvm/extensions + hhvm.extensions[pgsql] = pgsql.so + +Restart the HipHop virtual machine. diff --git a/development/hhvm-pgsql/hhvm-pgsql.SlackBuild b/development/hhvm-pgsql/hhvm-pgsql.SlackBuild new file mode 100644 index 0000000000..1d6f382b62 --- /dev/null +++ b/development/hhvm-pgsql/hhvm-pgsql.SlackBuild @@ -0,0 +1,81 @@ +#!/bin/sh + +# Slackware build script for hhvm-pgsql + +# Copyright 2015 Eugene Wissner, Dachau, Germany +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=hhvm-pgsql +VERSION=${VERSION:-3.10.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + echo "$ARCH is not supported." + exit 1 +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +if [ -e $CWD/$VERSION.tar.gz ]; then + tar xvf $CWD/$VERSION.tar.gz +else + tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +fi +cd $PRGNAM-$VERSION + +hphpize +cmake . +make + +strip --strip-unneeded pgsql.so + +mkdir -p $PKG/usr/lib64/hhvm/extensions +install -m 755 -o root -g root pgsql.so $PKG/usr/lib64/hhvm/extensions + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE.PHP README.md $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/development/hhvm-pgsql/hhvm-pgsql.info b/development/hhvm-pgsql/hhvm-pgsql.info new file mode 100644 index 0000000000..d7c6bb0ecf --- /dev/null +++ b/development/hhvm-pgsql/hhvm-pgsql.info @@ -0,0 +1,10 @@ +PRGNAM="hhvm-pgsql" +VERSION="3.10.0" +HOMEPAGE="https://github.com/PocketRent/hhvm-pgsql" +DOWNLOAD="UNSUPPORTED" +MD5SUM="" +DOWNLOAD_x86_64="https://github.com/PocketRent/hhvm-pgsql/archive/3.10.0.tar.gz" +MD5SUM_x86_64="5f75ec23bde4fd5a831710a91f050d25" +REQUIRES="hhvm postgresql" +MAINTAINER="Eugene Wissner" +EMAIL="belka@caraus.de" diff --git a/development/hhvm-pgsql/slack-desc b/development/hhvm-pgsql/slack-desc new file mode 100644 index 0000000000..975f6e64b3 --- /dev/null +++ b/development/hhvm-pgsql/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +hhvm-pgsql: hhvm-pgsql (Postgres Extension for HipHop) +hhvm-pgsql: +hhvm-pgsql: HHVM uses a just-in-time (JIT) compilation approach to achieve +hhvm-pgsql: superior performance while maintaining the development flexibility +hhvm-pgsql: that PHP provides. +hhvm-pgsql: +hhvm-pgsql: This is an implementation of the pgsql and pdo_pgsql PHP extensions +hhvm-pgsql: for HHVM. +hhvm-pgsql: +hhvm-pgsql: Homepage: https://github.com/PocketRent/hhvm-pgsql +hhvm-pgsql: |