Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/nginx-unit/
Date: Mon, 30 Jul 2018 20:23:07
Message-Id: 1532982179.53c6a8409e3078aa92d8e7e9003bd287c8831150.mgorny@gentoo
1 commit: 53c6a8409e3078aa92d8e7e9003bd287c8831150
2 Author: Ralph Seichter <github <AT> seichter <DOT> de>
3 AuthorDate: Wed Jul 18 19:14:23 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 30 20:22:59 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53c6a840
7
8 www-servers/nginx-unit: Added 'ruby' use flag
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 www-servers/nginx-unit/nginx-unit-1.3-r1.ebuild | 43 +++++++++++++++++++++++++
13 1 file changed, 43 insertions(+)
14
15 diff --git a/www-servers/nginx-unit/nginx-unit-1.3-r1.ebuild b/www-servers/nginx-unit/nginx-unit-1.3-r1.ebuild
16 new file mode 100644
17 index 00000000000..9a9a22e39cd
18 --- /dev/null
19 +++ b/www-servers/nginx-unit/nginx-unit-1.3-r1.ebuild
20 @@ -0,0 +1,43 @@
21 +# Copyright 1999-2018 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=7
25 +
26 +MY_P="unit-${PV}"
27 +
28 +DESCRIPTION="A dynamic web and application server"
29 +HOMEPAGE="https://unit.nginx.org"
30 +SRC_URI="https://unit.nginx.org/download/${MY_P}.tar.gz -> ${P}.tar.gz"
31 +
32 +LICENSE="Apache-2.0"
33 +SLOT="0"
34 +KEYWORDS="~amd64"
35 +IUSE="perl python ruby"
36 +REQUIRED_USE="|| ( ${IUSE} )"
37 +
38 +DEPEND="perl? ( dev-lang/perl:= )
39 + python? ( dev-lang/python:= )
40 + ruby? ( dev-lang/ruby:= )"
41 +RDEPEND="${DEPEND}"
42 +S="${WORKDIR}/${MY_P}"
43 +
44 +src_configure() {
45 + ./configure \
46 + --prefix=/usr \
47 + --log=/var/log/${PN} \
48 + --state=/var/lib/${PN} \
49 + --pid=/run/${PN}.pid \
50 + --control=unix:/run/${PN}.sock || die "Core configuration failed"
51 + for flag in ${IUSE} ; do
52 + if use ${flag} ; then
53 + ./configure ${flag} || die "Module configuration failed: ${flag}"
54 + fi
55 + done
56 +}
57 +
58 +src_install() {
59 + default
60 + diropts -m 0770
61 + keepdir /var/lib/${PN}
62 + newinitd "${FILESDIR}/${PN}.initd" ${PN}
63 +}