net-analyzer/net-snmp: Update live ebuild
authorJeroen Roovers <jer@gentoo.org>
Sat, 25 Apr 2020 10:09:12 +0000 (12:09 +0200)
committerJeroen Roovers <jer@gentoo.org>
Sat, 25 Apr 2020 10:09:30 +0000 (12:09 +0200)
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Bug: https://bugs.gentoo.org/show_bug.cgi?id=705938
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
net-analyzer/net-snmp/files/net-snmp-99999999-tinfo.patch [new file with mode: 0644]
net-analyzer/net-snmp/net-snmp-99999999.ebuild

diff --git a/net-analyzer/net-snmp/files/net-snmp-99999999-tinfo.patch b/net-analyzer/net-snmp/files/net-snmp-99999999-tinfo.patch
new file mode 100644 (file)
index 0000000..6eb2df5
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/configure.d/config_os_libs2
++++ b/configure.d/config_os_libs2
+@@ -598,6 +598,7 @@
+   AC_CHECK_HEADERS([curses.h])
+   AC_CHECK_HEADERS([ncurses/curses.h])],,,
+   [LIBCURSES])
++NETSNMP_SEARCH_LIBS([cbreak], [tinfo],[LIBCURSES="$LIBCURSES -ltinfo"],,,)
+ AC_SUBST([LIBCURSES])
+ #   libm for ceil
index dded84ec7341f7ba860ef242efd410448161f4e5..dd3818e50c1d64ff9dd92305194e8ec65000bb36 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-PYTHON_COMPAT=( python2_7 )
+PYTHON_COMPAT=( python3_{6,7,8} )
 DISTUTILS_SINGLE_IMPL=yesplz
 DISTUTILS_OPTIONAL=yesplz
 WANT_AUTOMAKE=none
@@ -76,8 +76,8 @@ PATCHES=(
        "${FILESDIR}"/${PN}-5.7.3-include-limits.patch
        "${FILESDIR}"/${PN}-5.8-do-not-conflate-LDFLAGS-and-LIBS.patch
        "${FILESDIR}"/${PN}-5.8-pcap.patch
-       "${FILESDIR}"/${PN}-5.8-tinfo.patch
        "${FILESDIR}"/${PN}-5.8.1-pkg-config.patch
+       "${FILESDIR}"/${PN}-99999999-tinfo.patch
 )
 
 pkg_setup() {