net-news/newsboat: version bump to 2.12

This commit is contained in:
Tim Harder
2018-06-27 19:27:47 -04:00
parent 9adb360763
commit d2decb139f
3 changed files with 75 additions and 1 deletions

View File

@@ -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

View File

@@ -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
}

View File

@@ -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
}