summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-02-16 18:30:09 +0000
committerSam James <sam@gentoo.org>2021-02-16 18:39:31 +0000
commit42dcbd54456d28b73432bbf4be11f14f36f5d342 (patch)
tree4673441babde20f6670ea0a07bdf38962592bb23 /www-servers
parentwww-servers/nginx-unit: Remove obsolete ebuild (diff)
downloadgentoo-42dcbd54456d28b73432bbf4be11f14f36f5d342.tar.gz
gentoo-42dcbd54456d28b73432bbf4be11f14f36f5d342.tar.bz2
gentoo-42dcbd54456d28b73432bbf4be11f14f36f5d342.zip
www-servers/nginx-unit: minor style changes
Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'www-servers')
-rw-r--r--www-servers/nginx-unit/nginx-unit-1.22.0.ebuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/www-servers/nginx-unit/nginx-unit-1.22.0.ebuild b/www-servers/nginx-unit/nginx-unit-1.22.0.ebuild
index b0456d581545..faa05dcce8d4 100644
--- a/www-servers/nginx-unit/nginx-unit-1.22.0.ebuild
+++ b/www-servers/nginx-unit/nginx-unit-1.22.0.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-PYTHON_COMPAT=(python3_{7,8,9})
+PYTHON_COMPAT=( python3_{7,8,9} )
inherit flag-o-matic python-single-r1 toolchain-funcs
@@ -11,6 +11,7 @@ MY_P="unit-${PV}"
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"
+S="${WORKDIR}/${MY_P}"
LICENSE="Apache-2.0"
SLOT="0"
@@ -32,7 +33,6 @@ DEPEND="perl? ( dev-lang/perl:= )
)
ssl? ( dev-libs/openssl:0 )"
RDEPEND="${DEPEND}"
-S="${WORKDIR}/${MY_P}"
pkg_setup() {
use python && python-single-r1_pkg_setup
@@ -52,17 +52,21 @@ src_configure() {
--prefix=/usr
--state=/var/lib/${PN}
)
+
use ssl && opt+=( --openssl )
export AR="$(tc-getAR)"
export CC="$(tc-getCC)"
./configure ${opt[@]} --ld-opt="${LDFLAGS}" || die "Core configuration failed"
+
# Modules require position-independent code
append-cflags $(test-flags-CC -fPIC)
+
for flag in ${MY_USE} ; do
if use ${flag} ; then
./configure ${flag} || die "Module configuration failed: ${flag}"
fi
done
+
for flag in ${MY_USE_PHP} ; do
if use ${flag} ; then
local php_slot="/usr/$(get_libdir)/${flag/-/.}"
@@ -76,6 +80,7 @@ src_configure() {
src_install() {
default
+
diropts -m 0770
keepdir /var/lib/${PN}
newinitd "${FILESDIR}/${PN}.initd" ${PN}