mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
development/hhvm-pgsql: Added (Postgres Extension for HipHop).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
8b6615f3c7
commit
2417f790cd
4 changed files with 118 additions and 0 deletions
8
development/hhvm-pgsql/README
Normal file
8
development/hhvm-pgsql/README
Normal file
|
@ -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.
|
81
development/hhvm-pgsql/hhvm-pgsql.SlackBuild
Normal file
81
development/hhvm-pgsql/hhvm-pgsql.SlackBuild
Normal file
|
@ -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}
|
10
development/hhvm-pgsql/hhvm-pgsql.info
Normal file
10
development/hhvm-pgsql/hhvm-pgsql.info
Normal file
|
@ -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"
|
19
development/hhvm-pgsql/slack-desc
Normal file
19
development/hhvm-pgsql/slack-desc
Normal file
|
@ -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:
|
Loading…
Reference in a new issue