summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Scardovi <marco@scardovi.com>2021-04-18 07:52:11 +0200
committerJoonas Niilola <juippis@gentoo.org>2021-04-28 10:08:12 +0300
commitb0f6a1ec799ff56c579fad8a51be2098699df803 (patch)
tree3aa24e2177620322935b6cea1e4b67aee9bc8910 /app-benchmarks/siege/siege-4.0.9.ebuild
parentapp-misc/neofetch: Use optfeature for runtime dependencies (diff)
downloadgentoo-b0f6a1ec799ff56c579fad8a51be2098699df803.tar.gz
gentoo-b0f6a1ec799ff56c579fad8a51be2098699df803.tar.bz2
gentoo-b0f6a1ec799ff56c579fad8a51be2098699df803.zip
app-benchmarks/siege: bump to 4.0.9
Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Marco Scardovi <marco@scardovi.com> Closes: https://github.com/gentoo/gentoo/pull/20433 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-benchmarks/siege/siege-4.0.9.ebuild')
-rw-r--r--app-benchmarks/siege/siege-4.0.9.ebuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/app-benchmarks/siege/siege-4.0.9.ebuild b/app-benchmarks/siege/siege-4.0.9.ebuild
new file mode 100644
index 000000000000..222a5bf1384f
--- /dev/null
+++ b/app-benchmarks/siege/siege-4.0.9.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools bash-completion-r1
+
+DESCRIPTION="A HTTP regression testing and benchmarking utility"
+HOMEPAGE="https://www.joedog.org/siege-home https://github.com/JoeDog/siege"
+SRC_URI="http://download.joedog.org/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~x86 ~x64-macos"
+SLOT="0"
+
+IUSE="ssl"
+
+RDEPEND="ssl? ( dev-libs/openssl:0= )"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ default
+ # bundled macros break recent libtool
+ # remove /usr/lib from LDFLAGS, bug #732886
+ sed -i \
+ -e '/AC_PROG_SHELL/d' \
+ -e 's/SSL_LDFLAGS="-L.*lib"/SSL_LDFLAGS=""/g' \
+ -e 's/Z_LDFLAGS="-L.*lib"/Z_LDFLAGS=""/g' \
+ configure.ac || die
+ rm *.m4 || die "failed to remove bundled macros"
+ eautoreconf
+}
+
+src_configure() {
+ local myconf=(
+ $(use_with ssl ssl "${EPREFIX}/usr")
+ )
+ econf "${myconf[@]}"
+}
+
+src_install() {
+ emake DESTDIR="${ED}" install
+
+ dodoc AUTHORS ChangeLog INSTALL README* doc/siegerc doc/urls.txt
+
+ newbashcomp "${FILESDIR}"/${PN}.bash-completion ${PN}
+}
+
+pkg_postinst() {
+ elog "An example ~/.siegerc file has been installed in"
+ elog "${EPREFIX}/usr/share/doc/${PF}/"
+}