From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1701794-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 3E8EE15802C
	for <garchives@archives.gentoo.org>; Fri, 20 Dec 2024 18:35:34 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 5871EE076B;
	Fri, 20 Dec 2024 18:35:33 +0000 (UTC)
Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 706DFE076B
	for <gentoo-commits@lists.gentoo.org>; Fri, 20 Dec 2024 18:35:32 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 6821933BE1D
	for <gentoo-commits@lists.gentoo.org>; Fri, 20 Dec 2024 18:35:31 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 6B85C1048
	for <gentoo-commits@lists.gentoo.org>; Fri, 20 Dec 2024 18:35:29 +0000 (UTC)
From: "Mike Pagano" <mpagano@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Mike Pagano" <mpagano@gentoo.org>
Message-ID: <1734719691.836d75ceb03943f37f2c88b29122370fa5d76e93.mpagano@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/nginx-unit/
X-VCS-Repository: repo/gentoo
X-VCS-Files: www-servers/nginx-unit/metadata.xml www-servers/nginx-unit/nginx-unit-1.34.0.ebuild
X-VCS-Directories: www-servers/nginx-unit/
X-VCS-Committer: mpagano
X-VCS-Committer-Name: Mike Pagano
X-VCS-Revision: 836d75ceb03943f37f2c88b29122370fa5d76e93
X-VCS-Branch: master
Date: Fri, 20 Dec 2024 18:35:29 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: a9c06ae5-4997-4d07-80b0-1977a2f851c2
X-Archives-Hash: de18e81bc3bab74046e882246d29a517

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