1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit autotools eutils ltprune multilib versionator
7 DESCRIPTION="Open Source Deep Packet Inspection Software Toolkit"
8 HOMEPAGE="https://www.ntop.org/"
9 SRC_URI="https://github.com/ntop/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
13 KEYWORDS="~amd64 ~x86"
16 DEPEND="dev-libs/json-c:=
21 sed -e "s/@NDPI_MAJOR@/$(get_version_component_range 1)/g;s/@NDPI_MINOR@/$(get_version_component_range 2)/g;s/@NDPI_PATCH@/$(get_version_component_range 3)/g;s/@NDPI_VERSION_SHORT@/${PV}/g" < "${S}/configure.seed" > "${S}/configure.ac" || die
23 mv "${S}/src/lib/third_party/include/libcache.h" "${S}/src/include"
24 epatch "${FILESDIR}/${P}-libcache-include.patch"
32 if ! use static-libs; then
33 rm "${D}"/usr/$(get_libdir)/lib${PN,,}.a || die