net-libs/libhtp: bump to 0.5.32
authorMarek Szuba <marecki@gentoo.org>
Tue, 17 Dec 2019 12:23:57 +0000 (12:23 +0000)
committerMarek Szuba <marecki@gentoo.org>
Tue, 17 Dec 2019 12:48:19 +0000 (12:48 +0000)
Closes: https://bugs.gentoo.org/703178
Package-Manager: Portage-2.3.79, Repoman-2.3.16
Signed-off-by: Marek Szuba <marecki@gentoo.org>
net-libs/libhtp/Manifest
net-libs/libhtp/libhtp-0.5.32.ebuild [new file with mode: 0644]

index d95ffc2744b26c27ea78b0b199d1f566e75a9dc1..6309b387b8eb7df4ddef2059e8013e340db3cf4b 100644 (file)
@@ -1,2 +1,3 @@
 DIST libhtp-0.5.22.tar.gz 5773159 BLAKE2B ae3b759624ce7c6063013810142fbc12544d60cfaa482ad82114b65374923871bb732c86051822fe78a539efbe5e139f480117a28fd4ba2fac9201a46b8eb99f SHA512 3daf7241e8abca34bf348e0fc805c755472ebba01a869d5523637a81dfd6b9b3019941dff2e75d6e0978ebfbd60d917191e355aa43a2391500ecaaddab487ebc
 DIST libhtp-0.5.31.tar.gz 495621 BLAKE2B 7c6c552dbecfc8e4314207c1b944dabee1172ebad608848a80549b1726b9b0d576c01b7ba1f79beb3912e5e79384d5c261cf7a548d8c8f49b20f77b2c9d71823 SHA512 8069afe87548a9cb29a883ebeb9fad05a79297fc567de22e9c1c030f5239d4373478bc3ed5ecb284e84401f1086f6a18a58e288f28381b96dbb5b71d60afa03a
+DIST libhtp-0.5.32.tar.gz 496086 BLAKE2B 73a9a3cdfe45326a01a53597d25cf30535780de84770a47bd6ea425d5891db893bb0afa77dbaa23fb8c32c6c66c568d3fcd8df78d64fe569056f252ffc89cf04 SHA512 3df877b158b40a2c59bc66c0caf589d51b20d1d3ca27dab82f516693c22bfb9d6845305cfd42bf1a61c5df98a05fcad25850cc78cf948047600d6783ace7fc63
diff --git a/net-libs/libhtp/libhtp-0.5.32.ebuild b/net-libs/libhtp/libhtp-0.5.32.ebuild
new file mode 100644 (file)
index 0000000..d737b3e
--- /dev/null
@@ -0,0 +1,37 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools multilib-minimal
+
+DESCRIPTION="security-aware parser for the HTTP protocol and the related bits and pieces"
+HOMEPAGE="https://github.com/OISF/libhtp"
+SRC_URI="https://github.com/OISF/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
+IUSE="debug static-libs"
+
+RDEPEND="sys-libs/zlib[static-libs?]"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+multilib_src_configure() {
+       # The debug configure logic is broken.
+       ECONF_SOURCE=${S} \
+       econf \
+               $(usex debug '--enable-debug' '') \
+               $(use_enable static-libs static)
+}
+
+multilib_src_install_all() {
+       if ! use static-libs; then
+               find "${ED}" -name '*.la' -delete || die "Failed to remove .la files"
+       fi
+}