summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2018-06-27 19:27:47 -0400
committerTim Harder <radhermit@gentoo.org>2018-06-27 19:42:48 -0400
commitd2decb139fc1d9f9c829c1ec43fb876d70b3ae84 (patch)
tree39f05dcbdefb1bd64df06b2539b5d79345c97b25 /net-news
parentapp-text/texlive-core-2017-r4: arm64 stable (bug #655052) (diff)
downloadgentoo-d2decb139fc1d9f9c829c1ec43fb876d70b3ae84.tar.gz
gentoo-d2decb139fc1d9f9c829c1ec43fb876d70b3ae84.tar.bz2
gentoo-d2decb139fc1d9f9c829c1ec43fb876d70b3ae84.zip
net-news/newsboat: version bump to 2.12
Diffstat (limited to 'net-news')
-rw-r--r--net-news/newsboat/Manifest1
-rw-r--r--net-news/newsboat/newsboat-2.12.ebuild73
-rw-r--r--net-news/newsboat/newsboat-9999.ebuild2
3 files changed, 75 insertions, 1 deletions
diff --git a/net-news/newsboat/Manifest b/net-news/newsboat/Manifest
index 90ef3fdfcb72..a6a8a7e68711 100644
--- a/net-news/newsboat/Manifest
+++ b/net-news/newsboat/Manifest
@@ -1,2 +1,3 @@
DIST newsboat-2.10.2.tar.xz 334820 BLAKE2B 08f5ee71b86c33c8aef5d2dc510deccefae8161fa1a3453947e94c9aead550468bd43368022ad438d4eb6da5ac18a348f9123489f2275fd8aed91ce40a5e9a32 SHA512 b807e0539bf31a4536af4e933623ec4de974995dda2345178057601aff43081746941d93a26269b6e8b77aee34b50a7c9867f867bed1331fc9a2c381163636fc
DIST newsboat-2.11.1.tar.xz 426056 BLAKE2B e13778dcd9fa4d821e4578ddb16193ede13cbb67d1a363deebede018ec9cc00f9ddfb2c86445ada2c3debe60af64923eaba2296ccbd1ffe8f31488d02b9cbc3b SHA512 265b83828eb3da6e61b14b6d16012baf3de147b777fa09a8cad0e76d4cf54677389bf89abf10f94a644def57f41694869a6ea07465e7cc97ec12df74d939bb5a
+DIST newsboat-2.12.tar.xz 442132 BLAKE2B 74fc543ee5f0de274f7a6adee6102b190ce9288ceee5824704ac5605f82fdb729fa351699052579c1fff160ef9ef7b97da4c35b30c6acf548b930d91e1088d7f SHA512 211024288c58ac467e1953f2cd6e7cf1cf7d36ae3d1051d8845692a016232a7662b4b6a816663bd0a2a911c89198fac56e674dbca20df45bcbd7f2cbccbce311
diff --git a/net-news/newsboat/newsboat-2.12.ebuild b/net-news/newsboat/newsboat-2.12.ebuild
new file mode 100644
index 000000000000..c7cc7bf5863d
--- /dev/null
+++ b/net-news/newsboat/newsboat-2.12.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}"/${PN}-2.11-flags.patch
+)
+
+src_prepare() {
+ default
+
+ # use system catch
+ sed -i 's#"3rd-party/catch.hpp"#<catch/catch.hpp>#' test/*.{cpp,h} || 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 33b53c619552..c7cc7bf5863d 100644
--- a/net-news/newsboat/newsboat-9999.ebuild
+++ b/net-news/newsboat/newsboat-9999.ebuild
@@ -43,7 +43,7 @@ src_prepare() {
default
# use system catch
- sed -i 's#"3rd-party/catch.hpp"#<catch/catch.hpp>#' test/*.cpp || die
+ sed -i 's#"3rd-party/catch.hpp"#<catch/catch.hpp>#' test/*.{cpp,h} || die
rm 3rd-party/catch.hpp || die
}