Skip to content

Commit

Permalink
ext-pq
Browse files Browse the repository at this point in the history
  • Loading branch information
dzuelke committed Mar 30, 2016
1 parent 2bc59b3 commit b616068
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### ADD

- ext-imap for all PHP versions [David Zuelke]
- ext-pq/1.0.0 and 2.0.0 [David Zuelke]

### CHG

Expand Down
24 changes: 24 additions & 0 deletions support/build/extensions/no-debug-non-zts-20121212/pq
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env bash

dep_name=$(basename $BASH_SOURCE)

OUT_PREFIX=$1
export PATH=${OUT_PREFIX}/bin:${PATH}

# raphf needs to be loaded at build time
echo 'extension=raphf.so' > ${OUT_PREFIX}/etc/php/conf.d/raphf.ini

# we need to declare the right version of raphf as required
dep_formula=${0#$WORKSPACE_DIR/}
dep_version=${dep_formula##*"/${dep_name}-"}
series=$(php-config --version | cut -d. -f1,2) # get "5.5", "5.6", "7.0" etc for the php requirement in the manifest
case "$dep_version" in
1.*)
MANIFEST_REQUIRE="${MANIFEST_REQUIRE:-"{\"heroku-sys/php\":\"${series}.*\",\"heroku-sys/ext-raphf\":\"^1.1.0\",\"heroku-sys/ext-json\":\"*\",\"heroku-sys/ext-spl\":\"*\"}"}"
;;
*)
MANIFEST_REQUIRE="${MANIFEST_REQUIRE:-"{\"heroku-sys/php\":\"${series}.*\",\"heroku-sys/ext-raphf\":\">=2.0.0\",\"heroku-sys/ext-json\":\"*\",\"heroku-sys/ext-spl\":\"*\"}"}"
;;
esac

source $(dirname $BASH_SOURCE)/../pecl
5 changes: 5 additions & 0 deletions support/build/extensions/no-debug-non-zts-20121212/pq-1.0.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
# Build Path: /app/.heroku/php/
# Build Deps: php-5.5.33, extensions/no-debug-non-zts-20121212/raphf-1.1.2

source $(dirname $0)/pq
5 changes: 5 additions & 0 deletions support/build/extensions/no-debug-non-zts-20131226/pq-1.0.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
# Build Path: /app/.heroku/php/
# Build Deps: php-5.6.19, extensions/no-debug-non-zts-20131226/raphf-1.1.2

source $(dirname $0)/../no-debug-non-zts-20121212/pq
5 changes: 5 additions & 0 deletions support/build/extensions/no-debug-non-zts-20151012/pq-2.0.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
# Build Path: /app/.heroku/php/
# Build Deps: php-7.0.4, extensions/no-debug-non-zts-20151012/raphf-2.0.0

source $(dirname $0)/../no-debug-non-zts-20121212/pq

0 comments on commit b616068

Please sign in to comment.