commit:     836d75ceb03943f37f2c88b29122370fa5d76e93
Author:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 20 18:34:51 2024 +0000
Commit:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
CommitDate: Fri Dec 20 18:34:51 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=836d75ce

www-servers/nginx-unit: Fix module building, add missing use flag

Genenral clean-up

Closes: https://bugs.gentoo.org/946712

Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org>

 www-servers/nginx-unit/metadata.xml             |  1 +
 www-servers/nginx-unit/nginx-unit-1.34.0.ebuild | 11 ++++++-----
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/www-servers/nginx-unit/metadata.xml 
b/www-servers/nginx-unit/metadata.xml
index 488056a85af1..24657a21ed21 100644
--- a/www-servers/nginx-unit/metadata.xml
+++ b/www-servers/nginx-unit/metadata.xml
@@ -15,6 +15,7 @@
        <use>
                <flag name="php8-1">Support for PHP 8.1</flag>
                <flag name="php8-2">Support for PHP 8.2</flag>
+               <flag name="php8-3">Support for PHP 8.3</flag>
        </use>
        <upstream>
                <remote-id type="github">nginx/unit</remote-id>

diff --git a/www-servers/nginx-unit/nginx-unit-1.34.0.ebuild 
b/www-servers/nginx-unit/nginx-unit-1.34.0.ebuild
index 98578c3a0f47..c2653283b9e1 100644
--- a/www-servers/nginx-unit/nginx-unit-1.34.0.ebuild
+++ b/www-servers/nginx-unit/nginx-unit-1.34.0.ebuild
@@ -4,11 +4,13 @@
 EAPI=8
 
 PYTHON_COMPAT=( python3_{12..13} )
-USE_PHP="php8-3"
 
 inherit flag-o-matic python-single-r1 systemd toolchain-funcs
 
 MY_P="unit-${PV}"
+MY_USE="perl python ruby"
+MY_USE_PHP="php8-3"
+
 DESCRIPTION="Dynamic web and application server"
 HOMEPAGE="https://unit.nginx.org";
 SRC_URI="https://unit.nginx.org/download/${MY_P}.tar.gz -> ${P}.tar.gz"
@@ -17,12 +19,13 @@ S="${WORKDIR}/${MY_P}"
 LICENSE="Apache-2.0"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="perl php python ruby ssl"
+IUSE="${MY_USE} ${MY_USE_PHP} perl ssl"
+
 REQUIRED_USE="|| ( ${IUSE} )
        python? ( ${PYTHON_REQUIRED_USE} )"
 
 DEPEND="perl? ( dev-lang/perl:= )
-       php? ( dev-lang/php:8.3[embed] )
+       php8-3? ( dev-lang/php:8.3[embed] )
        python? ( ${PYTHON_DEPS} )
        ruby? (
                dev-lang/ruby:=
@@ -85,8 +88,6 @@ src_install() {
        default
 
        if use perl ; then
-               echo "1"
-               echo "D is ${D}"
                emake DESTDIR="${D}/" perl-install
        fi
 

Reply via email to