commit:     abf7aee2653fec182ad215fd2738f49c6df5d695
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 12 20:00:08 2018 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Mon Feb 12 20:00:08 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abf7aee2

net-analyzer/tcpreen: Fix some compiler warnings.

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 .../tcpreen/files/tcpreen-1.4.4-literal-suffix.patch        | 13 +++++++++++++
 net-analyzer/tcpreen/tcpreen-1.4.4.ebuild                   | 13 ++++++++-----
 2 files changed, 21 insertions(+), 5 deletions(-)

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
index 00000000000..1808a54f887
--- /dev/null
+++ b/net-analyzer/tcpreen/files/tcpreen-1.4.4-literal-suffix.patch
@@ -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"

diff --git a/net-analyzer/tcpreen/tcpreen-1.4.4.ebuild 
b/net-analyzer/tcpreen/tcpreen-1.4.4.ebuild
index a2cc20e37a9..4a5d1fc1165 100644
--- a/net-analyzer/tcpreen/tcpreen-1.4.4.ebuild
+++ b/net-analyzer/tcpreen/tcpreen-1.4.4.ebuild
@@ -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)

Reply via email to