Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/nginx-unit/
Date: Sun, 17 Nov 2019 07:46:13
Message-Id: 1573976747.9906366308c5c5e9e342660e3707fd278b6e7bbf.juippis@gentoo
1 commit: 9906366308c5c5e9e342660e3707fd278b6e7bbf
2 Author: Ralph Seichter <github <AT> seichter <DOT> de>
3 AuthorDate: Thu Nov 14 20:50:36 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 17 07:45:47 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99063663
7
8 www-servers/nginx-unit: Bump to version 1.13.0
9
10 Upstream release 1.13.0, changelog available here:
11 http://unit.nginx.org/CHANGES.txt
12
13 Package-Manager: Portage-2.3.76, Repoman-2.3.16
14 Signed-off-by: Ralph Seichter <gentoo <AT> seichter.de>
15 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
16
17 www-servers/nginx-unit/Manifest | 1 +
18 www-servers/nginx-unit/nginx-unit-1.13.0.ebuild | 80 +++++++++++++++++++++++++
19 2 files changed, 81 insertions(+)
20
21 diff --git a/www-servers/nginx-unit/Manifest b/www-servers/nginx-unit/Manifest
22 index 1d0e3a28f48..1b19103ae93 100644
23 --- a/www-servers/nginx-unit/Manifest
24 +++ b/www-servers/nginx-unit/Manifest
25 @@ -1,2 +1,3 @@
26 DIST nginx-unit-1.12.0.tar.gz 681661 BLAKE2B 1e497172a37fdcd33d0ced5b97675bff42f4cadab2f9363316e667c90c8b4dc4b43f4b8d5cff9f547daa7e92d532550434907515134a5c958586f1822beea749 SHA512 a55a084ed6e1cd3f784bd81571772ca29ca9a0d19089c9bb74c88258d2e1ef872978219c47b6dc2610711ae1aa95ef68ddb77f45747a2eacdd9d92c6f8fee28b
27 +DIST nginx-unit-1.13.0.tar.gz 693159 BLAKE2B fd2e803188e66c16d5956f26e693c81273b1f3f69c9b68209f15bca6abd0e06b9fb9e03eb32ab640b8f601260b439abee1c4aa9cd03ed92fd26ab55893a6a6ab SHA512 cf33295604040963545b04f72f1a894431d4ee22a2c7b9560f18a694f110ee3bf243c90f65cfa4760a0009a5a7b132b75e1bb51439b19255e15148e8f4e9b9a7
28 DIST nginx-unit-1.8.0.tar.gz 511226 BLAKE2B e396b27954840a5f1ad3a4cd9501a5e5fe769a754c51043da784a2c4596e6acc33089f495bf412a0db086e5c715a51292c7dece004a6512564421a431b6c339e SHA512 1d0ad05343ff70aff4c6e221a36c20df95fa2e2262ae5c69963a9bcb9ef883151e8a2fa9fef29f43ac5489aa5cbb3e9dfd10cf5e7f6d7a98742b490ebf3a0413
29
30 diff --git a/www-servers/nginx-unit/nginx-unit-1.13.0.ebuild b/www-servers/nginx-unit/nginx-unit-1.13.0.ebuild
31 new file mode 100644
32 index 00000000000..b398e40980a
33 --- /dev/null
34 +++ b/www-servers/nginx-unit/nginx-unit-1.13.0.ebuild
35 @@ -0,0 +1,80 @@
36 +# Copyright 1999-2019 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +PYTHON_COMPAT=(python2_7 python3_{5,6,7})
42 +
43 +inherit flag-o-matic python-single-r1
44 +
45 +MY_P="unit-${PV}"
46 +DESCRIPTION="Dynamic web and application server"
47 +HOMEPAGE="https://unit.nginx.org"
48 +SRC_URI="https://unit.nginx.org/download/${MY_P}.tar.gz -> ${P}.tar.gz"
49 +
50 +LICENSE="Apache-2.0"
51 +SLOT="0"
52 +KEYWORDS="~amd64"
53 +MY_USE="perl python ruby"
54 +MY_USE_PHP="php5-6 php7-1 php7-2 php7-3"
55 +IUSE="${MY_USE} ${MY_USE_PHP} ssl"
56 +REQUIRED_USE="|| ( ${IUSE} )
57 + python? ( ${PYTHON_REQUIRED_USE} )"
58 +
59 +DEPEND="perl? ( dev-lang/perl:= )
60 + php5-6? ( dev-lang/php:5.6[embed] )
61 + php7-1? ( dev-lang/php:7.1[embed] )
62 + php7-2? ( dev-lang/php:7.2[embed] )
63 + php7-3? ( dev-lang/php:7.3[embed] )
64 + python? ( ${PYTHON_DEPS} )
65 + ruby? ( dev-lang/ruby:* )
66 + ssl? ( dev-libs/openssl:0 )"
67 +RDEPEND="${DEPEND}"
68 +S="${WORKDIR}/${MY_P}"
69 +
70 +pkg_setup() {
71 + use python && python-single-r1_pkg_setup
72 +}
73 +
74 +src_prepare() {
75 + eapply_user
76 + sed -i '/^CFLAGS/d' auto/make || die
77 +}
78 +
79 +src_configure() {
80 + local opt=(
81 + --control=unix:/run/${PN}.sock
82 + --log=/var/log/${PN}
83 + --modules=$(get_libdir)/${PN}
84 + --pid=/run/${PN}.pid
85 + --prefix=/usr
86 + --state=/var/lib/${PN}
87 + )
88 + use ssl && opt+=( --openssl )
89 + export AR="$(tc-getAR)"
90 + export CC="$(tc-getCC)"
91 + ./configure ${opt[@]} --ld-opt="${LDFLAGS}" || die "Core configuration failed"
92 + # Modules require position-independent code
93 + append-cflags $(test-flags-CC -fPIC)
94 + for flag in ${MY_USE} ; do
95 + if use ${flag} ; then
96 + ./configure ${flag} || die "Module configuration failed: ${flag}"
97 + fi
98 + done
99 + for flag in ${MY_USE_PHP} ; do
100 + if use ${flag} ; then
101 + local php_slot="/usr/$(get_libdir)/${flag/-/.}"
102 + ./configure php \
103 + --module=${flag} \
104 + --config=${php_slot}/bin/php-config \
105 + --lib-path=${php_slot}/$(get_libdir) || die "Module configuration failed: ${flag}"
106 + fi
107 + done
108 +}
109 +
110 +src_install() {
111 + default
112 + diropts -m 0770
113 + keepdir /var/lib/${PN}
114 + newinitd "${FILESDIR}/${PN}.initd" ${PN}
115 +}