dev-php/pecl-stomp: new revisions fixing the no-ssl build.
authorMichael Orlitzky <mjo@gentoo.org>
Tue, 3 Jan 2017 04:57:50 +0000 (23:57 -0500)
committerMichael Orlitzky <mjo@gentoo.org>
Tue, 3 Jan 2017 05:03:40 +0000 (00:03 -0500)
The main reason for these two new revisions are to fix what happens
when USE="-ssl" is set. The build system expects --with-openssl-dir=no
in that case, so the existing --without-openssl-dir was causing it to
crash. That should now be fixed; I've used "usex" instead of "use_with".

Some other minor fixes were made:

  * The LICENSE for this package is PHP-3.01, not PHP-3.
  * The "ssl" flag was also defaulted to being on, which -- unless
    critical -- kind of defeats the purpose of USE flags. It now
    defaults to being off.
  * Two eclass variables that were set to their default values have
    been removed.
  * The test suite is now enabled, but only for v2.0.0 where it actually
    passes (even though failure doesn't kill the build?).

Gentoo-Bug: 603560

Package-Manager: portage-2.3.0

dev-php/pecl-stomp/pecl-stomp-1.0.9-r1.ebuild [moved from dev-php/pecl-stomp/pecl-stomp-1.0.9.ebuild with 69% similarity]
dev-php/pecl-stomp/pecl-stomp-2.0.0-r1.ebuild [moved from dev-php/pecl-stomp/pecl-stomp-2.0.0.ebuild with 69% similarity]

similarity index 69%
rename from dev-php/pecl-stomp/pecl-stomp-1.0.9.ebuild
rename to dev-php/pecl-stomp/pecl-stomp-1.0.9-r1.ebuild
index 2ac7efc2c9db446abda797e14aa81398bac02b64..ca443b95e65cf4c37fedf983c957a0bcd8d162e1 100644 (file)
@@ -1,13 +1,11 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI="6"
+EAPI=6
 
 USE_PHP="php5-6 php7-0"
 PHP_EXT_NAME="stomp"
-PHP_EXT_INI="yes"
-PHP_EXT_ZENDEXT="no"
 DOCS=( CREDITS doc/classes.php doc/functions.php )
 
 inherit php-ext-pecl-r3
@@ -16,10 +14,10 @@ USE_PHP="php5-6"
 
 KEYWORDS="~amd64 ~x86"
 
-DESCRIPTION="PHP extension to communicate with Stomp compliant Message Brokers"
-LICENSE="PHP-3"
+DESCRIPTION="PHP extension to communicate with Stomp message brokers"
+LICENSE="PHP-3.01"
 SLOT="0"
-IUSE="examples +ssl"
+IUSE="examples ssl"
 
 DEPEND="${DEPEND}
        php_targets_php5-6? ( dev-lang/php:5.6[ssl?] )
@@ -37,8 +35,10 @@ src_prepare() {
 }
 
 src_configure() {
-       local PHP_EXT_ECONF_ARGS=( --enable-stomp
-               $(use_with ssl openssl-dir=/usr) )
+       local PHP_EXT_ECONF_ARGS=(
+               --enable-stomp
+               --with-openssl-dir=$(usex ssl "${EPREFIX}/usr")
+       )
        php-ext-source-r3_src_configure
 }
 
similarity index 69%
rename from dev-php/pecl-stomp/pecl-stomp-2.0.0.ebuild
rename to dev-php/pecl-stomp/pecl-stomp-2.0.0-r1.ebuild
index 08bd34979fb2491aa886c9bf6078f6db3e69c852..a64f473dceb768a6dca905cfb5aa0387cca0caa5 100644 (file)
@@ -1,13 +1,11 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI="6"
+EAPI=6
 
 USE_PHP="php5-6 php7-0"
 PHP_EXT_NAME="stomp"
-PHP_EXT_INI="yes"
-PHP_EXT_ZENDEXT="no"
 DOCS=( CREDITS doc/classes.php doc/functions.php )
 
 inherit php-ext-pecl-r3
@@ -16,10 +14,10 @@ USE_PHP="php7-0"
 
 KEYWORDS="~amd64 ~x86"
 
-DESCRIPTION="PHP extension to communicate with Stomp compliant Message Brokers"
-LICENSE="PHP-3"
+DESCRIPTION="PHP extension to communicate with Stomp message brokers"
+LICENSE="PHP-3.01"
 SLOT="7"
-IUSE="examples +ssl"
+IUSE="examples ssl test"
 
 DEPEND="${DEPEND}
        php_targets_php7-0? ( dev-lang/php:7.0[ssl?] )
@@ -37,8 +35,10 @@ src_prepare() {
 }
 
 src_configure() {
-       local PHP_EXT_ECONF_ARGS=( --enable-stomp
-               $(use_with ssl openssl-dir=/usr) )
+       local PHP_EXT_ECONF_ARGS=(
+               --enable-stomp
+               --with-openssl-dir=$(usex ssl "${EPREFIX}/usr")
+       )
        php-ext-source-r3_src_configure
 }