diff options
author | Ralph Seichter <github@seichter.de> | 2018-07-18 21:14:23 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-07-30 22:22:59 +0200 |
commit | 53c6a8409e3078aa92d8e7e9003bd287c8831150 (patch) | |
tree | 43054368381a4ffa27bd29b3d5543f1759997866 /www-servers/nginx-unit | |
parent | dev-python/invoke: bump to 1.1.0 (diff) | |
download | gentoo-53c6a8409e3078aa92d8e7e9003bd287c8831150.tar.gz gentoo-53c6a8409e3078aa92d8e7e9003bd287c8831150.tar.bz2 gentoo-53c6a8409e3078aa92d8e7e9003bd287c8831150.zip |
www-servers/nginx-unit: Added 'ruby' use flag
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'www-servers/nginx-unit')
-rw-r--r-- | www-servers/nginx-unit/nginx-unit-1.3-r1.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/www-servers/nginx-unit/nginx-unit-1.3-r1.ebuild b/www-servers/nginx-unit/nginx-unit-1.3-r1.ebuild new file mode 100644 index 000000000000..9a9a22e39cd3 --- /dev/null +++ b/www-servers/nginx-unit/nginx-unit-1.3-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_P="unit-${PV}" + +DESCRIPTION="A dynamic web and application server" +HOMEPAGE="https://unit.nginx.org" +SRC_URI="https://unit.nginx.org/download/${MY_P}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="perl python ruby" +REQUIRED_USE="|| ( ${IUSE} )" + +DEPEND="perl? ( dev-lang/perl:= ) + python? ( dev-lang/python:= ) + ruby? ( dev-lang/ruby:= )" +RDEPEND="${DEPEND}" +S="${WORKDIR}/${MY_P}" + +src_configure() { + ./configure \ + --prefix=/usr \ + --log=/var/log/${PN} \ + --state=/var/lib/${PN} \ + --pid=/run/${PN}.pid \ + --control=unix:/run/${PN}.sock || die "Core configuration failed" + for flag in ${IUSE} ; do + if use ${flag} ; then + ./configure ${flag} || die "Module configuration failed: ${flag}" + fi + done +} + +src_install() { + default + diropts -m 0770 + keepdir /var/lib/${PN} + newinitd "${FILESDIR}/${PN}.initd" ${PN} +} |