diff options
author | Pierre-Olivier Mercier <nemunaire@nemunai.re> | 2018-04-03 22:56:31 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-05-18 16:41:18 +0200 |
commit | c713b813e899b2f8d2a7c1c0508f94fc9cd1dee8 (patch) | |
tree | 233e2cdb955306043824206000836b73f4935ff7 /app-benchmarks/siege/siege-4.0.4.ebuild | |
parent | dev-libs/sink: Add missing DEPEND (diff) | |
download | gentoo-c713b813e899b2f8d2a7c1c0508f94fc9cd1dee8.tar.gz gentoo-c713b813e899b2f8d2a7c1c0508f94fc9cd1dee8.tar.bz2 gentoo-c713b813e899b2f8d2a7c1c0508f94fc9cd1dee8.zip |
app-benchmarks/siege: bump to 4.0.4
Closes: https://github.com/gentoo/gentoo/pull/8110
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'app-benchmarks/siege/siege-4.0.4.ebuild')
-rw-r--r-- | app-benchmarks/siege/siege-4.0.4.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/app-benchmarks/siege/siege-4.0.4.ebuild b/app-benchmarks/siege/siege-4.0.4.ebuild new file mode 100644 index 000000000000..364acb95e137 --- /dev/null +++ b/app-benchmarks/siege/siege-4.0.4.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools bash-completion-r1 + +DESCRIPTION="A HTTP regression testing and benchmarking utility" +HOMEPAGE="https://www.joedog.org/siege-home/" +SRC_URI="http://download.joedog.org/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~x86 ~x64-macos" +SLOT="0" +IUSE="libressl ssl" + +RDEPEND="ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + )" +DEPEND="${RDEPEND} + sys-devel/libtool" + +src_prepare() { + default + # bundled macros break recent libtool + sed -i -e '/AC_PROG_SHELL/d' 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="${D}" 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}/" +} |