From abf7aee2653fec182ad215fd2738f49c6df5d695 Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Mon, 12 Feb 2018 21:00:08 +0100 Subject: [PATCH] net-analyzer/tcpreen: Fix some compiler warnings. Package-Manager: Portage-2.3.24, Repoman-2.3.6 --- .../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(-) create mode 100644 net-analyzer/tcpreen/files/tcpreen-1.4.4-literal-suffix.patch 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 000000000000..1808a54f8875 --- /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 a2cc20e37a9d..4a5d1fc11656 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) -- 2.26.2