diff options
author | Nathan Johnson <njohnson@ena.com> | 2016-06-21 13:35:11 -0500 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-06-22 21:45:04 +0200 |
commit | 831188a6a35ed433909ddca7ebefa70c9029719c (patch) | |
tree | fa70bef517373ce60b74c6d0f7cbf1d05755adc8 /testing/php5-amqp/package_version.patch | |
parent | 510da6cf43e86bf53a64a018de95bd1e1621aee1 (diff) | |
download | aports-831188a6a35ed433909ddca7ebefa70c9029719c.tar.bz2 aports-831188a6a35ed433909ddca7ebefa70c9029719c.tar.xz |
testing/php5-amqp: new aport
https://pecl.php.net/package/amqp
PHP Extionson to communicate with any AMQP compliant server
Diffstat (limited to 'testing/php5-amqp/package_version.patch')
-rw-r--r-- | testing/php5-amqp/package_version.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/php5-amqp/package_version.patch b/testing/php5-amqp/package_version.patch new file mode 100644 index 0000000000..65cfd568fe --- /dev/null +++ b/testing/php5-amqp/package_version.patch @@ -0,0 +1,31 @@ +--- a/config.m4 ++++ b/config.m4 +@@ -104,27 +104,7 @@ + + PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $AMQP_DIR/$PHP_LIBDIR, AMQP_SHARED_LIBADD) + PHP_SUBST(AMQP_SHARED_LIBADD) +- +- if test -z "$TRAVIS" ; then +- type git &>/dev/null +- +- if test $? -eq 0 ; then +- git describe --abbrev=0 --tags &>/dev/null +- +- if test $? -eq 0 ; then +- AC_DEFINE_UNQUOTED([PHP_AMQP_VERSION], ["`git describe --abbrev=0 --tags`-`git rev-parse --abbrev-ref HEAD`-dev"], [git version]) +- fi +- +- git rev-parse --short HEAD &>/dev/null +- +- if test $? -eq 0 ; then +- AC_DEFINE_UNQUOTED([PHP_AMQP_REVISION], ["`git rev-parse --short HEAD`"], [git revision]) +- fi +- else +- AC_MSG_NOTICE([git not installed. Cannot obtain php_amqp version tag. Install git.]) +- fi +- fi +- ++ AC_DEFINE_UNQUOTED([PHP_AMQP_VERSION], ["`echo ${PWD##*/amqp-}`"], ["AMQP Module Version"]) + AMQP_SOURCES="amqp.c amqp_exchange.c amqp_queue.c amqp_connection.c amqp_connection_resource.c amqp_channel.c amqp_envelope.c" + + PHP_NEW_EXTENSION(amqp, $AMQP_SOURCES, $ext_shared) |