From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BFEFB13832E for ; Thu, 4 Aug 2016 05:12:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2FB6AE0B10; Thu, 4 Aug 2016 05:12:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6BA04E0B0D for ; Thu, 4 Aug 2016 05:12:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0D8D4340B27 for ; Thu, 4 Aug 2016 05:12:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6364F2442 for ; Thu, 4 Aug 2016 05:12:05 +0000 (UTC) From: "Göktürk Yüksek" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Göktürk Yüksek" Message-ID: <1470287223.0c967b41cf3f8353a6addc7860cc795d06cea2f3.gokturk@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-nntp/nzbget/, net-nntp/nzbget/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-nntp/nzbget/files/nzbget-17.0_parcheck-tests-fix.patch net-nntp/nzbget/nzbget-17.0.ebuild X-VCS-Directories: net-nntp/nzbget/ net-nntp/nzbget/files/ X-VCS-Committer: gokturk X-VCS-Committer-Name: Göktürk Yüksek X-VCS-Revision: 0c967b41cf3f8353a6addc7860cc795d06cea2f3 X-VCS-Branch: master Date: Thu, 4 Aug 2016 05:12:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 0eeb129b-3fb3-4182-ba69-69c4a32b8bca X-Archives-Hash: 73e05ac4bceb5202dfbdd7bbe797aa1a commit: 0c967b41cf3f8353a6addc7860cc795d06cea2f3 Author: Göktürk Yüksek gentoo org> AuthorDate: Thu Aug 4 05:06:05 2016 +0000 Commit: Göktürk Yüksek gentoo org> CommitDate: Thu Aug 4 05:07:03 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c967b41 net-nntp/nzbget: fix tests with USE="-parcheck" for version 17.0 Package-Manager: portage-2.2.28 .../files/nzbget-17.0_parcheck-tests-fix.patch | 39 ++++++++++++++++++++++ net-nntp/nzbget/nzbget-17.0.ebuild | 8 ++++- 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/net-nntp/nzbget/files/nzbget-17.0_parcheck-tests-fix.patch b/net-nntp/nzbget/files/nzbget-17.0_parcheck-tests-fix.patch new file mode 100644 index 0000000..8200f2b --- /dev/null +++ b/net-nntp/nzbget/files/nzbget-17.0_parcheck-tests-fix.patch @@ -0,0 +1,39 @@ +From f2dcef1e5cba52bb6d06b189ec77398116bd204a Mon Sep 17 00:00:00 2001 +From: Gokturk Yuksek +Date: Thu, 4 Aug 2016 00:52:14 -0400 +Subject: [PATCH] Do not compile ParCheckerTest and ParRenamerTest if parcheck + is disabled + +--- + Makefile.am | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index b2c830b..0e01087 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -217,8 +217,6 @@ nzbget_SOURCES += \ + tests/main/CommandLineParserTest.cpp \ + tests/main/OptionsTest.cpp \ + tests/feed/FeedFilterTest.cpp \ +- tests/postprocess/ParCheckerTest.cpp \ +- tests/postprocess/ParRenamerTest.cpp \ + tests/postprocess/DupeMatcherTest.cpp \ + tests/queue/NzbFileTest.cpp \ + tests/nntp/ServerPoolTest.cpp \ +@@ -226,6 +224,12 @@ nzbget_SOURCES += \ + tests/util/NStringTest.cpp \ + tests/util/UtilTest.cpp + ++if WITH_PAR2 ++nzbget_SOURCES += \ ++ tests/postprocess/ParCheckerTest.cpp \ ++ tests/postprocess/ParRenamerTest.cpp ++endif ++ + AM_CPPFLAGS += \ + -I$(srcdir)/lib/catch \ + -I$(srcdir)/tests/suite +-- +2.7.3 + diff --git a/net-nntp/nzbget/nzbget-17.0.ebuild b/net-nntp/nzbget/nzbget-17.0.ebuild index 4c54fbb..6b57029 100644 --- a/net-nntp/nzbget/nzbget-17.0.ebuild +++ b/net-nntp/nzbget/nzbget-17.0.ebuild @@ -4,7 +4,7 @@ EAPI=6 -inherit eutils flag-o-matic user +inherit autotools eutils flag-o-matic user MY_PV=${PV/_pre/-r} MY_P=${PN}-${PV/_pre/-testing-r} @@ -29,6 +29,10 @@ DEPEND="${RDEPEND} virtual/pkgconfig" DOCS=( ChangeLog README nzbget.conf ) +PATCHES=( + "${FILESDIR}"/${P}_parcheck-tests-fix.patch +) + S=${WORKDIR}/${PN}-${PV/_pre*/-testing} pkg_pretend() { @@ -42,6 +46,8 @@ pkg_pretend() { src_prepare() { default + eautoreconf + sed -i 's:^ScriptDir=.*:ScriptDir=/usr/share/nzbget/ppscripts:' nzbget.conf || die sed \