summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2016-08-19 14:23:28 -0400
committerTim Harder <radhermit@gentoo.org>2016-08-19 15:04:42 -0400
commitcd8276ada374b379fb0b77c85037586b6cb8a658 (patch)
tree609b9ced1236f0032ed376e70ba1ac79e42da803 /net-news
parentkde-apps: stabilise 16.04.3 on amd64/x86 (diff)
downloadgentoo-cd8276ada374b379fb0b77c85037586b6cb8a658.tar.gz
gentoo-cd8276ada374b379fb0b77c85037586b6cb8a658.tar.bz2
gentoo-cd8276ada374b379fb0b77c85037586b6cb8a658.zip
net-news/newsbeuter: add live ebuild
Diffstat (limited to 'net-news')
-rw-r--r--net-news/newsbeuter/newsbeuter-9999.ebuild70
1 files changed, 70 insertions, 0 deletions
diff --git a/net-news/newsbeuter/newsbeuter-9999.ebuild b/net-news/newsbeuter/newsbeuter-9999.ebuild
new file mode 100644
index 000000000000..4a73c2013e3f
--- /dev/null
+++ b/net-news/newsbeuter/newsbeuter-9999.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/akrennmair/newsbeuter.git"
+else
+ KEYWORDS="~amd64 ~ppc ~x86"
+ SRC_URI="http://www.newsbeuter.org/downloads/${P}.tar.gz"
+fi
+
+inherit toolchain-funcs
+
+DESCRIPTION="A RSS/Atom feed reader for the text console"
+HOMEPAGE="http://www.newsbeuter.org/index.html"
+
+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}
+ dev-lang/perl
+ virtual/pkgconfig
+ sys-devel/gettext
+ test? (
+ dev-libs/boost
+ sys-devel/bc
+ )
+"
+[[ ${PV} == 9999 ]] && DEPEND+=" app-text/asciidoc"
+
+# tests require network access
+RESTRICT="test"
+
+src_prepare() {
+ default
+ sed -i 's:-ggdb::' Makefile || die
+}
+
+src_configure() {
+ ./config.sh || die
+}
+
+src_compile() {
+ emake prefix="/usr" CXX="$(tc-getCXX)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)"
+ [[ ${PV} == 9999 ]] && emake doc
+}
+
+src_test() {
+ 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" PACKAGE="${PF}" install
+ dodoc AUTHORS CHANGES README.md TODO
+}