diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-10-20 09:50:23 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-10-20 09:50:23 +0100 |
commit | 547caa904733bc2a3ac112415990a114ecbe8824 (patch) | |
tree | b8976d40b28d2cb015e3c07254aee99fe0ad655a /app-benchmarks/siege/siege-4.1.6-r1.ebuild | |
parent | 9346d46d1a9e0399ca3a4d3eb40689d0daa58ebc (diff) |
gentoo auto-resync : 20:10:2023 - 09:50:23
Diffstat (limited to 'app-benchmarks/siege/siege-4.1.6-r1.ebuild')
-rw-r--r-- | app-benchmarks/siege/siege-4.1.6-r1.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/app-benchmarks/siege/siege-4.1.6-r1.ebuild b/app-benchmarks/siege/siege-4.1.6-r1.ebuild new file mode 100644 index 000000000000..5b1dafa81d01 --- /dev/null +++ b/app-benchmarks/siege/siege-4.1.6-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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 ~arm64 ~hppa ~mips ~ppc ~x86 ~x64-macos" +SLOT="0" +IUSE="ssl" + +RDEPEND=" + sys-libs/zlib + ssl? ( dev-libs/openssl:0= ) +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-4.1.6-clang16-build-fix.patch +) + +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 "Failed to sed configure.ac" + 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}/" +} |