summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2018-03-27 02:14:07 -0400
committerTim Harder <radhermit@gentoo.org>2018-03-27 02:27:37 -0400
commitc80052ec99afd0094a05053fc1eeb8970392bd5d (patch)
tree7fe25f3bf3f0bb2186ed56b86e62423f5f4861fd /net-news
parentsci-mathematics/why3-for-spark: Fix STRIP_MASK usage. Bug #651458 (diff)
downloadgentoo-c80052ec99afd0094a05053fc1eeb8970392bd5d.tar.gz
gentoo-c80052ec99afd0094a05053fc1eeb8970392bd5d.tar.bz2
gentoo-c80052ec99afd0094a05053fc1eeb8970392bd5d.zip
net-news/newsboat: version bump to 2.11
Diffstat (limited to 'net-news')
-rw-r--r--net-news/newsboat/Manifest1
-rw-r--r--net-news/newsboat/files/newsboat-2.11-flags.patch14
-rw-r--r--net-news/newsboat/newsboat-2.11.ebuild73
-rw-r--r--net-news/newsboat/newsboat-9999.ebuild20
4 files changed, 100 insertions, 8 deletions
diff --git a/net-news/newsboat/Manifest b/net-news/newsboat/Manifest
index 45c0b831e4d..47ea0f9b00f 100644
--- a/net-news/newsboat/Manifest
+++ b/net-news/newsboat/Manifest
@@ -1 +1,2 @@
DIST newsboat-2.10.2.tar.xz 334820 BLAKE2B 08f5ee71b86c33c8aef5d2dc510deccefae8161fa1a3453947e94c9aead550468bd43368022ad438d4eb6da5ac18a348f9123489f2275fd8aed91ce40a5e9a32 SHA512 b807e0539bf31a4536af4e933623ec4de974995dda2345178057601aff43081746941d93a26269b6e8b77aee34b50a7c9867f867bed1331fc9a2c381163636fc
+DIST newsboat-2.11.tar.xz 425912 BLAKE2B 57c61073a08cc09f800cf08544f68f589221d2aa9c5549e0f712914ad0ac43c0e0b95ee9f5fa019f4034d66ba383b10929cb0d01be4dc6b8c29c17f4e477347b SHA512 a82c1ccb53d8be733973c678b0891821a7aec44654b6bfa167253774adbcc6b73e570cd197e2ea038c827719cd1a92d043dfecd0671f32ba51185a87889181f1
diff --git a/net-news/newsboat/files/newsboat-2.11-flags.patch b/net-news/newsboat/files/newsboat-2.11-flags.patch
new file mode 100644
index 00000000000..bcee380dd30
--- /dev/null
+++ b/net-news/newsboat/files/newsboat-2.11-flags.patch
@@ -0,0 +1,14 @@
+--- newsboat-2.11/Makefile
++++ newsboat-2.11/Makefile
+@@ -18,9 +18,9 @@
+ DEFINES+=-DGIT_HASH=\"$(GIT_HASH)\"
+ endif
+
+-WARNFLAGS=-Werror -Wall -Wextra -Wunreachable-code
++WARNFLAGS=-Wall -Wextra -Wunreachable-code
+ INCLUDES=-Iinclude -Istfl -Ifilter -I. -Irss
+-BARE_CXXFLAGS=-std=c++11 -O2 -ggdb $(INCLUDES)
++BARE_CXXFLAGS=-std=c++11 $(INCLUDES)
+ LDFLAGS+=-L.
+
+ PACKAGE=newsboat
diff --git a/net-news/newsboat/newsboat-2.11.ebuild b/net-news/newsboat/newsboat-2.11.ebuild
new file mode 100644
index 00000000000..ecf68baaf18
--- /dev/null
+++ b/net-news/newsboat/newsboat-2.11.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/newsboat/newsboat.git"
+else
+ KEYWORDS="~amd64 ~x86"
+ SRC_URI="https://newsboat.org/releases/${PV}/${P}.tar.xz"
+fi
+
+inherit toolchain-funcs
+
+DESCRIPTION="An RSS/Atom feed reader for text terminals"
+HOMEPAGE="https://newsboat.org/ https://github.com/newsboat/newsboat"
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="test"
+
+RDEPEND="
+ >=dev-db/sqlite-3.5:3
+ >=dev-libs/stfl-0.21
+ >=net-misc/curl-7.18.0
+ >=dev-libs/json-c-0.11:=
+ dev-libs/libxml2
+ sys-libs/ncurses:0=[unicode]
+"
+DEPEND="${RDEPEND}
+ app-text/asciidoc
+ virtual/pkgconfig
+ sys-devel/gettext
+ test? ( >=dev-cpp/catch-2 )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-flags.patch
+)
+
+src_prepare() {
+ default
+
+ # use system catch
+ sed -i 's#"3rd-party/catch.hpp"#<catch/catch.hpp>#' test/*.cpp || die
+ rm 3rd-party/catch.hpp || die
+}
+
+src_configure() {
+ ./config.sh || die
+}
+
+src_compile() {
+ # update object build deps to use system catch
+ echo > mk/mk.deps || die
+ emake depslist
+
+ emake prefix="/usr" CXX="$(tc-getCXX)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)"
+}
+
+src_test() {
+ # tests require UTF-8 locale
+ emake test
+ # Tests fail if in ${S} rather than in ${S}/test
+ cd "${S}"/test || die
+ ./test || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" prefix="/usr" docdir="/usr/share/doc/${PF}" install
+ dodoc CHANGELOG.md README.md TODO
+}
diff --git a/net-news/newsboat/newsboat-9999.ebuild b/net-news/newsboat/newsboat-9999.ebuild
index ff9f70fe3e5..33b53c61955 100644
--- a/net-news/newsboat/newsboat-9999.ebuild
+++ b/net-news/newsboat/newsboat-9999.ebuild
@@ -30,22 +30,21 @@ RDEPEND="
"
DEPEND="${RDEPEND}
app-text/asciidoc
- dev-lang/perl
virtual/pkgconfig
sys-devel/gettext
- test? (
- dev-libs/boost
- sys-devel/bc
- )
+ test? ( >=dev-cpp/catch-2 )
"
-# tests require network access
-RESTRICT="test"
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.11-flags.patch
+)
src_prepare() {
default
- sed -e 's:-ggdb::' -e 's:-Werror::' -i Makefile || die
+ # use system catch
+ sed -i 's#"3rd-party/catch.hpp"#<catch/catch.hpp>#' test/*.cpp || die
+ rm 3rd-party/catch.hpp || die
}
src_configure() {
@@ -53,10 +52,15 @@ src_configure() {
}
src_compile() {
+ # update object build deps to use system catch
+ echo > mk/mk.deps || die
+ emake depslist
+
emake prefix="/usr" CXX="$(tc-getCXX)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)"
}
src_test() {
+ # tests require UTF-8 locale
emake test
# Tests fail if in ${S} rather than in ${S}/test
cd "${S}"/test || die