Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/pecl-oauth/
Date: Mon, 02 Dec 2019 13:39:57
Message-Id: 1575293984.fd91b9562a48b0f6d32f6bc76c755365ccc39ea1.whissi@gentoo
1 commit: fd91b9562a48b0f6d32f6bc76c755365ccc39ea1
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 2 13:35:35 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 2 13:39:44 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd91b956
7
8 dev-php/pecl-oauth: bump to v2.0.4
9
10 Package-Manager: Portage-2.3.80, Repoman-2.3.19
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 dev-php/pecl-oauth/Manifest | 1 +
14 dev-php/pecl-oauth/pecl-oauth-2.0.4.ebuild | 61 ++++++++++++++++++++++++++++++
15 2 files changed, 62 insertions(+)
16
17 diff --git a/dev-php/pecl-oauth/Manifest b/dev-php/pecl-oauth/Manifest
18 index 89ade9ac0bc..0a3deb2daf7 100644
19 --- a/dev-php/pecl-oauth/Manifest
20 +++ b/dev-php/pecl-oauth/Manifest
21 @@ -1,3 +1,4 @@
22 DIST oauth-1.2.3.tgz 45531 BLAKE2B 10fb5a3d1a46ee17fef7b129b3c29d67d565d296579aff63d8309f4efc5b881450249fb8e6d25703a33ad53e336775abc73f3d8e489f78c00c8988219b02ae1b SHA512 ca61dbec8fa51679accb31eab90b8699c7780f2d60a83566ce05667148ee44b7dc70fd8235414d6a3a996b252ad4a236b3e8a549685fd7e890e0874029c455e1
23 DIST oauth-2.0.2.tgz 49115 BLAKE2B 292c8c2d7fa3728aa6a73cdb65ee1c603f341cd24596d64b910f495ef649adb1f90ba4dfdab5ce1802dee9e8a0e3a6af502da340ed467de6e8c5d83df18abc7d SHA512 b7aa9459542ec390a5420127d75607702ae6df6254f4e39acb62d35c6a39b8b7990499c279df07ce681081e455b55219c51df42fd516321f317465badf6d459d
24 DIST oauth-2.0.3.tgz 49413 BLAKE2B 581ba50a3add230364ed5c161b76073b1dd7c301eaf4cd048ed97039deb45fea73da56f0d0b69186d8f6fb20a55724ba5892d80bd7aae343b15534d3c82b6346 SHA512 3e0ce5ce01533bfd304c0c34465cc184fbd0af1a25f5192860e6394c86dc948688cc8d4b419b48676481cef3a685ba70ac612a8c516da26d0dfe9efdef7e98d9
25 +DIST oauth-2.0.4.tgz 49359 BLAKE2B d5fb23293fc03f40e2b3a5c5ad51bce1b06a6004e1f20d1563b3db7bb79a71f70bca467348d68b4f6d2393003b4ad23debbe5877192d9e189056e86f9fc00b3e SHA512 269b579f87a9f3f229433c74937f74b9b6df453a6e05f7751ca12fa5f24c9ad62d1ebe5cdb370d33d774a0f2e244c1c685a53226dcb35c0005b5532a00c137d4
26
27 diff --git a/dev-php/pecl-oauth/pecl-oauth-2.0.4.ebuild b/dev-php/pecl-oauth/pecl-oauth-2.0.4.ebuild
28 new file mode 100644
29 index 00000000000..076b3f695e0
30 --- /dev/null
31 +++ b/dev-php/pecl-oauth/pecl-oauth-2.0.4.ebuild
32 @@ -0,0 +1,61 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI="7"
37 +PHP_EXT_NAME="oauth"
38 +PHP_EXT_INI="yes"
39 +PHP_EXT_ZENDEXT="no"
40 +
41 +USE_PHP="php5-6 php7-0 php7-1 php7-2 php7-3 php7-4"
42 +
43 +inherit php-ext-pecl-r3
44 +
45 +# Really only build for 7.0
46 +USE_PHP="php7-0 php7-1 php7-2 php7-3 php7-4"
47 +
48 +KEYWORDS="~amd64 ~x86"
49 +
50 +DESCRIPTION="OAuth is an authorization protocol built on top of HTTP"
51 +LICENSE="BSD"
52 +SLOT="7"
53 +IUSE="+curl examples"
54 +
55 +DEPEND="php_targets_php7-0? ( dev-lang/php:7.0[hash]
56 + dev-libs/libpcre:3= curl? ( net-misc/curl:0= ) )
57 + php_targets_php7-1? ( dev-lang/php:7.1[hash]
58 + dev-libs/libpcre:3= curl? ( net-misc/curl:0= ) )
59 + php_targets_php7-2? ( dev-lang/php:7.2[hash]
60 + dev-libs/libpcre:3= curl? ( net-misc/curl:0= ) )
61 + php_targets_php7-3? ( dev-lang/php:7.3[hash]
62 + dev-libs/libpcre:3= curl? ( net-misc/curl:0= ) )
63 + php_targets_php7-4? (
64 + dev-libs/libpcre:3= curl? ( net-misc/curl:0= ) )
65 +"
66 +RDEPEND="${DEPEND} php_targets_php5-6? ( ${CATEGORY}/${PN}:0[php_targets_php5-6(-)?] )"
67 +
68 +src_prepare() {
69 + if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 || use php_targets_php7-3 || use php_targets_php7-4; then
70 + # Disable tests that depend on header order
71 + rm "${S}/tests/bug16946.phpt" "${S}/tests/overflow_redir.phpt" || die
72 + php-ext-source-r3_src_prepare
73 + else
74 + eapply_user
75 + fi
76 +}
77 +
78 +src_configure() {
79 + if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 || use php_targets_php7-3 || use php_targets_php7-4; then
80 + local PHP_EXT_ECONF_ARGS=(
81 + --enable-oauth
82 + $(use_with curl)
83 + )
84 +
85 + php-ext-source-r3_src_configure
86 + fi
87 +}
88 +
89 +src_install() {
90 + if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 || use php_targets_php7-3 || use php_targets_php7-4; then
91 + php-ext-pecl-r3_src_install
92 + fi
93 +}