* [gentoo-commits] repo/gentoo:master commit in: dev-php/pecl-brotli/
@ 2024-05-21 10:47 Sam James
0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2024-05-21 10:47 UTC (permalink / raw
To: gentoo-commits
commit: f7e5e4fbf673f738833b25fc39711106a361e429
Author: Rahil Bhimjiani <me <AT> rahil <DOT> rocks>
AuthorDate: Fri Mar 29 07:55:11 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue May 21 10:45:17 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7e5e4fb
dev-php/pecl-brotli: Brotli compression extension for PHP
What?
* brotli is widely used compression in web (better than gzip), so is
PHP. PHP applications (i.e. w3 total cache) use this extension to
compress http responses on-the-fly.
* Features live ebuild
* Compatible with php versions currently available in tree
* Links with app-arch/brotli
Why (in ::gentoo)?
* I don't have any strong reason for it to be in ::gentoo. It can be in ::guru too.
* It is not a standalone application or package but the extension to already established PHP ecosystem.
* There are already 200+ dev-php/\* packages including extensions like this one in ::gentoo.
* Alpine and freebsd have already packaged it https://repology.org/project/php:brotli/ indicates that package is trusted by other downstreams as well.
Signed-off-by: Rahil Bhimjiani <me <AT> rahil.rocks>
Closes: https://github.com/gentoo/gentoo/pull/35978
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-php/pecl-brotli/Manifest | 1 +
dev-php/pecl-brotli/metadata.xml | 17 +++++++++++++
dev-php/pecl-brotli/pecl-brotli-0.15.0.ebuild | 35 +++++++++++++++++++++++++++
dev-php/pecl-brotli/pecl-brotli-9999.ebuild | 35 +++++++++++++++++++++++++++
4 files changed, 88 insertions(+)
diff --git a/dev-php/pecl-brotli/Manifest b/dev-php/pecl-brotli/Manifest
new file mode 100644
index 000000000000..0fce687535d5
--- /dev/null
+++ b/dev-php/pecl-brotli/Manifest
@@ -0,0 +1 @@
+DIST pecl-brotli-0.15.0.tgz 468436 BLAKE2B 865f1e970157ac1fead313e63133c74b48ef8fc1d916ea1efbba74186f6ba2b9c3e93b67f842df40b3399713c5bef3d62a15dda0f626a0c9a3b0a956c763a9eb SHA512 0e3be424eace7ed50f67dac780fa55c0fa6da1265676cea12588d8713ec6636936379a543bde48f7b30054aeda038200a3f650259e2da589f642447125b32e6a
diff --git a/dev-php/pecl-brotli/metadata.xml b/dev-php/pecl-brotli/metadata.xml
new file mode 100644
index 000000000000..dca5b6092a4e
--- /dev/null
+++ b/dev-php/pecl-brotli/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>me@rahil.rocks</email>
+ <name>Rahil Bhimjiani</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">kjdev/php-ext-brotli</remote-id>
+ <bugs-to>https://github.com/kjdev/php-ext-brotli/issues</bugs-to>
+ <doc>https://github.com/kjdev/php-ext-brotli/blob/master/README.md</doc>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-php/pecl-brotli/pecl-brotli-0.15.0.ebuild b/dev-php/pecl-brotli/pecl-brotli-0.15.0.ebuild
new file mode 100644
index 000000000000..837566cf855e
--- /dev/null
+++ b/dev-php/pecl-brotli/pecl-brotli-0.15.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_PHP="php8-1 php8-2 php8-3"
+
+inherit php-ext-pecl-r3
+
+unset SRC_URI
+PHP_EXT_PECL_PKG_V="${PHP_EXT_PECL_PKG}-${PV/_/}"
+
+if [[ ${PV} == 9999* ]]; then
+ EGIT_REPO_URI="https://github.com/kjdev/php-ext-brotli.git"
+ EGIT_CHECKOUT_DIR="${WORKDIR}/${PHP_EXT_PECL_PKG_V}"
+ EGIT_SUBMODULES=()
+ inherit git-r3
+else
+ SRC_URI="https://pecl.php.net/get/${PHP_EXT_PECL_PKG_V}.tgz -> ${P}.tgz"
+ KEYWORDS="~amd64"
+fi
+
+DESCRIPTION="Brotli compression extension for PHP"
+HOMEPAGE+=" https://github.com/kjdev/php-ext-brotli"
+
+LICENSE="MIT"
+SLOT="0"
+
+RDEPEND="app-arch/brotli"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PHP_EXT_ECONF_ARGS=(
+ --with-libbrotli
+)
diff --git a/dev-php/pecl-brotli/pecl-brotli-9999.ebuild b/dev-php/pecl-brotli/pecl-brotli-9999.ebuild
new file mode 100644
index 000000000000..837566cf855e
--- /dev/null
+++ b/dev-php/pecl-brotli/pecl-brotli-9999.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_PHP="php8-1 php8-2 php8-3"
+
+inherit php-ext-pecl-r3
+
+unset SRC_URI
+PHP_EXT_PECL_PKG_V="${PHP_EXT_PECL_PKG}-${PV/_/}"
+
+if [[ ${PV} == 9999* ]]; then
+ EGIT_REPO_URI="https://github.com/kjdev/php-ext-brotli.git"
+ EGIT_CHECKOUT_DIR="${WORKDIR}/${PHP_EXT_PECL_PKG_V}"
+ EGIT_SUBMODULES=()
+ inherit git-r3
+else
+ SRC_URI="https://pecl.php.net/get/${PHP_EXT_PECL_PKG_V}.tgz -> ${P}.tgz"
+ KEYWORDS="~amd64"
+fi
+
+DESCRIPTION="Brotli compression extension for PHP"
+HOMEPAGE+=" https://github.com/kjdev/php-ext-brotli"
+
+LICENSE="MIT"
+SLOT="0"
+
+RDEPEND="app-arch/brotli"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PHP_EXT_ECONF_ARGS=(
+ --with-libbrotli
+)
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-php/pecl-brotli/
@ 2024-05-21 10:47 Sam James
0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2024-05-21 10:47 UTC (permalink / raw
To: gentoo-commits
commit: f9bac954a360dbb2c1983716e28facfe861a78bb
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue May 21 10:45:56 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue May 21 10:45:56 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9bac954
dev-php/pecl-brotli: subscribe to brotli subslot
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-php/pecl-brotli/pecl-brotli-0.15.0.ebuild | 2 +-
dev-php/pecl-brotli/pecl-brotli-9999.ebuild | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev-php/pecl-brotli/pecl-brotli-0.15.0.ebuild b/dev-php/pecl-brotli/pecl-brotli-0.15.0.ebuild
index 837566cf855e..605396f97a83 100644
--- a/dev-php/pecl-brotli/pecl-brotli-0.15.0.ebuild
+++ b/dev-php/pecl-brotli/pecl-brotli-0.15.0.ebuild
@@ -26,7 +26,7 @@ HOMEPAGE+=" https://github.com/kjdev/php-ext-brotli"
LICENSE="MIT"
SLOT="0"
-RDEPEND="app-arch/brotli"
+RDEPEND="app-arch/brotli:="
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
diff --git a/dev-php/pecl-brotli/pecl-brotli-9999.ebuild b/dev-php/pecl-brotli/pecl-brotli-9999.ebuild
index 837566cf855e..605396f97a83 100644
--- a/dev-php/pecl-brotli/pecl-brotli-9999.ebuild
+++ b/dev-php/pecl-brotli/pecl-brotli-9999.ebuild
@@ -26,7 +26,7 @@ HOMEPAGE+=" https://github.com/kjdev/php-ext-brotli"
LICENSE="MIT"
SLOT="0"
-RDEPEND="app-arch/brotli"
+RDEPEND="app-arch/brotli:="
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-php/pecl-brotli/
@ 2025-05-04 5:13 Joonas Niilola
0 siblings, 0 replies; 3+ messages in thread
From: Joonas Niilola @ 2025-05-04 5:13 UTC (permalink / raw
To: gentoo-commits
commit: a830fe20ab5dde880edf03f4feffea49a2b2b8d0
Author: Rahil Bhimjiani <me <AT> rahil <DOT> rocks>
AuthorDate: Fri Mar 14 15:51:54 2025 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sun May 4 05:06:47 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a830fe20
dev-php/pecl-brotli: update to 0.16.0 & support php-8.4 drop php-8.1
Signed-off-by: Rahil Bhimjiani <me <AT> rahil.rocks>
Closes: https://github.com/gentoo/gentoo/pull/41077
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
dev-php/pecl-brotli/Manifest | 1 +
.../{pecl-brotli-9999.ebuild => pecl-brotli-0.16.0.ebuild} | 12 +++++++++---
dev-php/pecl-brotli/pecl-brotli-9999.ebuild | 12 +++++++++---
3 files changed, 19 insertions(+), 6 deletions(-)
diff --git a/dev-php/pecl-brotli/Manifest b/dev-php/pecl-brotli/Manifest
index 0fce687535d5..f418fe44c483 100644
--- a/dev-php/pecl-brotli/Manifest
+++ b/dev-php/pecl-brotli/Manifest
@@ -1 +1,2 @@
DIST pecl-brotli-0.15.0.tgz 468436 BLAKE2B 865f1e970157ac1fead313e63133c74b48ef8fc1d916ea1efbba74186f6ba2b9c3e93b67f842df40b3399713c5bef3d62a15dda0f626a0c9a3b0a956c763a9eb SHA512 0e3be424eace7ed50f67dac780fa55c0fa6da1265676cea12588d8713ec6636936379a543bde48f7b30054aeda038200a3f650259e2da589f642447125b32e6a
+DIST pecl-brotli-0.16.0.tgz 470378 BLAKE2B 5a64b86a4ef53badafdb55e67d9e5b508123604c0317aaa4c827c6534f71232b2e2cdca378d970be35bcd12a9b74c18fc3064ed6639ba7f2384a905107134942 SHA512 c8876afe320eb18a6073e0441ad1e17bbe5ff967f9a4c774e775fb23904f676974b328716651f93e893aebbcc9b1550e1276cd7eab08189aab2fe88828d9bde3
diff --git a/dev-php/pecl-brotli/pecl-brotli-9999.ebuild b/dev-php/pecl-brotli/pecl-brotli-0.16.0.ebuild
similarity index 79%
copy from dev-php/pecl-brotli/pecl-brotli-9999.ebuild
copy to dev-php/pecl-brotli/pecl-brotli-0.16.0.ebuild
index 605396f97a83..0e0a2032e897 100644
--- a/dev-php/pecl-brotli/pecl-brotli-9999.ebuild
+++ b/dev-php/pecl-brotli/pecl-brotli-0.16.0.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-USE_PHP="php8-1 php8-2 php8-3"
+USE_PHP="php8-2 php8-3 php8-4"
inherit php-ext-pecl-r3
@@ -24,7 +24,7 @@ DESCRIPTION="Brotli compression extension for PHP"
HOMEPAGE+=" https://github.com/kjdev/php-ext-brotli"
LICENSE="MIT"
-SLOT="0"
+SLOT="0/0.16"
RDEPEND="app-arch/brotli:="
DEPEND="${RDEPEND}"
@@ -33,3 +33,9 @@ BDEPEND="virtual/pkgconfig"
PHP_EXT_ECONF_ARGS=(
--with-libbrotli
)
+
+src_test(){
+ export SKIP_ONLINE_TESTS="yes"
+ php-ext-pecl-r3_src_test
+ unset SKIP_ONLINE_TESTS
+}
diff --git a/dev-php/pecl-brotli/pecl-brotli-9999.ebuild b/dev-php/pecl-brotli/pecl-brotli-9999.ebuild
index 605396f97a83..0e0a2032e897 100644
--- a/dev-php/pecl-brotli/pecl-brotli-9999.ebuild
+++ b/dev-php/pecl-brotli/pecl-brotli-9999.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-USE_PHP="php8-1 php8-2 php8-3"
+USE_PHP="php8-2 php8-3 php8-4"
inherit php-ext-pecl-r3
@@ -24,7 +24,7 @@ DESCRIPTION="Brotli compression extension for PHP"
HOMEPAGE+=" https://github.com/kjdev/php-ext-brotli"
LICENSE="MIT"
-SLOT="0"
+SLOT="0/0.16"
RDEPEND="app-arch/brotli:="
DEPEND="${RDEPEND}"
@@ -33,3 +33,9 @@ BDEPEND="virtual/pkgconfig"
PHP_EXT_ECONF_ARGS=(
--with-libbrotli
)
+
+src_test(){
+ export SKIP_ONLINE_TESTS="yes"
+ php-ext-pecl-r3_src_test
+ unset SKIP_ONLINE_TESTS
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-05-04 5:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-21 10:47 [gentoo-commits] repo/gentoo:master commit in: dev-php/pecl-brotli/ Sam James
-- strict thread matches above, loose matches on Subject: below --
2025-05-04 5:13 Joonas Niilola
2024-05-21 10:47 Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox