aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2016-11-07 16:29:15 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2016-11-07 16:30:44 +0000
commit0647682290df40c5d0e2463a1686b1d77d16f04b (patch)
treec5068945558df95ff27cca7dd9f5204b1ff9a3e8 /testing
parent04cc03b81e98ae8e18a126598b286e439d101512 (diff)
downloadaports-0647682290df40c5d0e2463a1686b1d77d16f04b.tar.bz2
aports-0647682290df40c5d0e2463a1686b1d77d16f04b.tar.xz
testing/mongo-php-driver: new aport
Low level MongoDB PHP library
Diffstat (limited to 'testing')
-rw-r--r--testing/mongo-php-driver/APKBUILD77
1 files changed, 77 insertions, 0 deletions
diff --git a/testing/mongo-php-driver/APKBUILD b/testing/mongo-php-driver/APKBUILD
new file mode 100644
index 0000000000..47800f60c8
--- /dev/null
+++ b/testing/mongo-php-driver/APKBUILD
@@ -0,0 +1,77 @@
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
+
+test -e ../libbson/APKBUILD && . ../libbson/APKBUILD && libbson_ver=$pkgver || return 1
+test -e ../mongo-c-driver/APKBUILD && . ../mongo-c-driver/APKBUILD && mongocdrv_ver=$pkgver || return 1
+
+pkgname=mongo-php-driver
+pkgver=1.1.9
+pkgrel=0
+pkgdesc="Low-level PHP driver for MongoDB"
+url="https://github.com/mongodb/mongo-php-driver"
+arch="all"
+license="Apache2"
+depends=
+depends_dev=
+makedepends="$depends_dev autoconf automake libressl-dev pkgconfig
+ mongo-c-driver pcre-dev php-dev"
+install=
+subpackages=
+source="$pkgname-$pkgver.tar.gz::https://github.com/mongodb/$pkgname/archive/$pkgver.tar.gz
+ libbson-${libbson_ver}.tar.gz::https://github.com/mongodb/libbson/archive/${libbson_ver}.tar.gz
+ mongo-c-driver-${mongocdrv_ver}.tar.gz::https://github.com/mongodb/mongo-c-driver/archive/${mongocdrv_ver}.tar.gz
+ "
+
+builddir="$srcdir"/$pkgname-$pkgver
+
+unpack() {
+ local u
+ if [ -z "$force" ]; then
+ verify || return 1
+ initdcheck || return 1
+ fi
+ mkdir -p "$srcdir"
+ for u in $source; do
+ local s="$SRCDEST/$(filename_from_uri $u)"
+ echo $s
+ case "$s" in
+ *$pkgname-$pkgver.*)
+ msg "Unpacking $s..."
+ tar xzf "$s" -C "$srcdir" || return 1;;
+ *libbson*)
+ msg "Unpacking $s..."
+ tar xzf "$s" --strip 1 -C "$srcdir"/$pkgname-$pkgver/src/libbson || return 1;;
+ *mongo-c-driver*)
+ msg "Unpacking $s..."
+ tar xzf "$s" --strip 1 -C "$srcdir"/$pkgname-$pkgver/src/libmongoc || return 1;;
+ esac
+ done
+}
+
+prepare() {
+ cd "$builddir"
+ phpize || return 1
+}
+
+build() {
+ cd "$builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make || return 1
+}
+
+package() {
+ cd "$builddir"
+ make INSTALL_ROOT="$pkgdir" install || return 1
+}
+
+md5sums="055a42ad282adf2c26701ff321611493 mongo-php-driver-1.1.9.tar.gz
+5d79d5504a05d5a4cd952062e73ac781 libbson-1.3.6.tar.gz
+c28ea267a44ffe64c4dff64cad6bfc77 mongo-c-driver-1.3.6.tar.gz"
+sha256sums="cf70d3016181b12108799e9fb7a8db7c859180d2544babf370b43b7f49d9b0f6 mongo-php-driver-1.1.9.tar.gz
+13f3358acf71e4d52bc006d68c7dcfb28a410e4f9b24470d9935ec8eed37fcd3 libbson-1.3.6.tar.gz
+c8d48cb1fdf054447a31381ff173733fdcf79e718ce360c7e9b8d506f60d8411 mongo-c-driver-1.3.6.tar.gz"
+sha512sums="7bb82d1f89b907598328e3ade3cbbafc541b6a104531a4eaf10ad9ea1fbc56b1b222618871e1d15410708b9eeceb88464722f0c9eb719781366d785bf5d6a7ca mongo-php-driver-1.1.9.tar.gz
+cf6fb3e95b0bc49517190ebbf8592e57934866510c4f00ac04406f013ebca4873d3f615d98b4e36437f8b676f0434209d7321e45e5d131e144d294031f06cc59 libbson-1.3.6.tar.gz
+d4f04fe74ca757cbd04d68903dca80a104701e85c809d5acd21ad2b8d98368a24f1951700694b7acc853c405e66d44521aa82c933c23300e7f2c354c01d7bc24 mongo-c-driver-1.3.6.tar.gz"