net-analyzer/tcpreen: Fix some compiler warnings.
authorJeroen Roovers <jer@gentoo.org>
Mon, 12 Feb 2018 20:00:08 +0000 (21:00 +0100)
committerJeroen Roovers <jer@gentoo.org>
Mon, 12 Feb 2018 20:00:08 +0000 (21:00 +0100)
Package-Manager: Portage-2.3.24, Repoman-2.3.6

net-analyzer/tcpreen/files/tcpreen-1.4.4-literal-suffix.patch [new file with mode: 0644]
net-analyzer/tcpreen/tcpreen-1.4.4.ebuild

diff --git a/net-analyzer/tcpreen/files/tcpreen-1.4.4-literal-suffix.patch b/net-analyzer/tcpreen/files/tcpreen-1.4.4-literal-suffix.patch
new file mode 100644 (file)
index 0000000..1808a54
--- /dev/null
@@ -0,0 +1,13 @@
+--- a/src/main.cpp
++++ b/src/main.cpp
+@@ -108,8 +108,8 @@
+ # define VERSION "unknown version"
+ #endif
+       puts (
+-"TCP re-engineering tool "VERSION" ("PACKAGE_HOST")\n"
+-" built "__DATE__" on "PACKAGE_BUILD_HOSTNAME" ("PACKAGE_BUILD")\n"
++"TCP re-engineering tool " VERSION " (" PACKAGE_HOST ")\n"
++" built " __DATE__ " on " PACKAGE_BUILD_HOSTNAME " (" PACKAGE_BUILD ")\n"
+ "Copyright (C) 2002-2004 Remi Denis-Courmont");
+       puts (_(
+ "This is free software; see the source for copying conditions.\n"
index a2cc20e37a9d878805f2fe25445bf0b8eec19348..4a5d1fc11656c5cfd9a5ef99096ea45b6d930121 100644 (file)
@@ -1,7 +1,7 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=6
 inherit toolchain-funcs
 
 DESCRIPTION="TCP network re-engineering tool"
@@ -12,10 +12,13 @@ LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 ~ppc x86"
 IUSE="nls"
-
-DEPEND="nls? ( sys-devel/gettext )"
-
+DEPEND="
+       nls? ( sys-devel/gettext )
+"
 DOCS=( AUTHORS NEWS README THANKS TODO )
+PATCHES=(
+       "${FILESDIR}"/${P}-literal-suffix.patch
+)
 
 src_configure() {
        econf $(use_enable nls)