diff options
author | Andrea Cerisara <andreacerisara@gmail.com> | 2020-08-30 08:29:31 +1000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2020-09-16 01:57:22 +0000 |
commit | c1cb1a3ed833b29d00cae9dee9677e0111e79d04 (patch) | |
tree | aecb5603c7de6a127a514594a3613ecd843a64a6 /app-benchmarks/siege/siege-4.0.7.ebuild | |
parent | app-benchmarks/siege: remove /usr/lib from LDFLAGS (diff) | |
download | gentoo-c1cb1a3ed833b29d00cae9dee9677e0111e79d04.tar.gz gentoo-c1cb1a3ed833b29d00cae9dee9677e0111e79d04.tar.bz2 gentoo-c1cb1a3ed833b29d00cae9dee9677e0111e79d04.zip |
app-benchmarks/siege-4.0.7: version bump
Signed-off-by: Andrea Cerisara <andreacerisara@gmail.com>
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Closes: https://github.com/gentoo/gentoo/pull/17324
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-benchmarks/siege/siege-4.0.7.ebuild')
-rw-r--r-- | app-benchmarks/siege/siege-4.0.7.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/app-benchmarks/siege/siege-4.0.7.ebuild b/app-benchmarks/siege/siege-4.0.7.ebuild new file mode 100644 index 000000000000..96acf64824f7 --- /dev/null +++ b/app-benchmarks/siege/siege-4.0.7.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2020 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="libressl ssl" + +RDEPEND="ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) +)" +DEPEND="${RDEPEND}" + +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}/" +} |