Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-misc/fcgiwrap/
Date: Sat, 27 Nov 2021 16:01:42
Message-Id: 1638028890.25215eb92428e29ff11b69350afaa7202c960914.marecki@gentoo
1 commit: 25215eb92428e29ff11b69350afaa7202c960914
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 27 15:09:02 2021 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 27 16:01:30 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25215eb9
7
8 www-misc/fcgiwrap: update EAPI 5 -> 8
9
10 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
11
12 www-misc/fcgiwrap/fcgiwrap-1.1.0-r2.ebuild | 53 ++++++++++++++++++++++++++++++
13 1 file changed, 53 insertions(+)
14
15 diff --git a/www-misc/fcgiwrap/fcgiwrap-1.1.0-r2.ebuild b/www-misc/fcgiwrap/fcgiwrap-1.1.0-r2.ebuild
16 new file mode 100644
17 index 000000000000..5280d34fc373
18 --- /dev/null
19 +++ b/www-misc/fcgiwrap/fcgiwrap-1.1.0-r2.ebuild
20 @@ -0,0 +1,53 @@
21 +# Copyright 1999-2021 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +inherit autotools systemd toolchain-funcs
27 +
28 +DESCRIPTION="Simple FastCGI wrapper for CGI scripts (CGI support for nginx)"
29 +HOMEPAGE="https://github.com/gnosek/fcgiwrap"
30 +SRC_URI="https://github.com/gnosek/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
31 +
32 +LICENSE="BSD"
33 +KEYWORDS="~amd64 ~arm ~x86"
34 +SLOT="0"
35 +IUSE="systemd"
36 +
37 +RDEPEND="
38 + dev-libs/fcgi
39 + systemd? ( sys-apps/systemd )
40 +"
41 +DEPEND="${RDEPEND}"
42 +BDEPEND="virtual/pkgconfig"
43 +
44 +DOCS=( README.rst )
45 +
46 +src_prepare() {
47 + sed -e "s/-Werror//" \
48 + -i configure.ac || die "sed failed"
49 +
50 + sed -e '/man8dir = $(DESTDIR)/s/@prefix@//' \
51 + -i Makefile.in || die "sed failed"
52 +
53 + sed -e "s/libsystemd-daemon/libsystemd/" \
54 + -i configure.ac || die "sed failed"
55 + tc-export CC
56 +
57 + # Fix systemd units for Gentoo
58 + sed -i -e '/User/d' systemd/fcgiwrap.service || die
59 + sed -i -e '/Group/d' systemd/fcgiwrap.service || die
60 +
61 + eapply_user
62 + eautoreconf
63 +}
64 +
65 +src_configure() {
66 + econf \
67 + $(use_with systemd) \
68 + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
69 +}
70 +
71 +pkg_postinst() {
72 + einfo "You may want to install www-servers/spawn-fcgi to use with fcgiwrap."
73 +}