1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit autotools multilib
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"
26 -e "s/@NDPI_MAJOR@/$(ver_cut 1)/g" \
27 -e "s/@NDPI_MINOR@/$(ver_cut 2)/g" \
28 -e "s/@NDPI_PATCH@/$(ver_cut 3)/g" \
29 -e "s/@NDPI_VERSION_SHORT@/${PV}/g" \
30 < "${S}/configure.seed" \
31 > "${S}/configure.ac" || die
34 -e "s%^libdir\s*=\s*\${prefix}/lib\s*$%libdir = \${prefix}/$(get_libdir)%" \
35 src/lib/Makefile.in || die
43 if ! use static-libs; then
44 rm "${D}"/usr/$(get_libdir)/lib${PN,,}.a || die