gentoo-ebuilds/dev-php/pecl-brotli/pecl-brotli-0.15.0.ebuild
Bertrand Jacquin 55eb7403eb
*/*: remove reference to php8.1
php 8.1 is no longer part of portage tree since 2025-03-17 via
e8ed893286.

Bug: https://bugs.gentoo.org/959495
Signed-off-by: Bertrand Jacquin <bertrand@jacquin.bzh>
Part-of: https://github.com/gentoo/gentoo/pull/42868
Signed-off-by: Sam James <sam@gentoo.org>
2025-07-13 09:27:11 +01:00

35 lines
758 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_PHP="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
)