mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-news/newsboat: add 2.42
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
DIST newsboat-2.41-docs.tar.xz 70476 BLAKE2B db2f64f8070ed5a50cc5c252fe85e3ccd1cb8e69629bfd43b022589448cce48a2786a2d0203898aa4249221db587ac0006265600eb014737cf81a8b59902f46c SHA512 07f9919cd4ef7836d4fad7adbb275f506ec37172f71b9302d63b2a53f1484f8af9e9da0a767567038ace09a1fb43be856876c45a7620fe169c2f1eeb56d32c59
|
||||
DIST newsboat-2.41.tar.xz 822496 BLAKE2B b2433d50b9dbabda97e4ba53153c9a8e615e61b6b649b58576133025ef3a9c3e7a88e0f3e28a8fef17a0d31c51cb24023e4c81443549c6b2f6251a8ce61c3bb2 SHA512 397e574885becb12149d4a7774d9e48d70d9fa568d9cf91ac1bf494203d2b0a51208a80bbe90a4a195c38f499b23a5abdde405d2240cea49c09e3533d563667f
|
||||
DIST newsboat-2.42-docs.tar.xz 71552 BLAKE2B 0dbc8d88ccfbeea96b7c20635095898b8c80ea87b42517a1d5fa4fe774c4df76719db188e4b61af4b73c3876b436146b40f80731887cd986f699b438bbd5fd7c SHA512 50d44021676f1994df2b4bdea3672b7f57dce412be112bb2acd7001ee4c7e20b5ea708ebc6ed9ec93e1ece3194cc1066bf910f0e44cbe94f19aef381d88f1422
|
||||
DIST newsboat-2.42.tar.xz 821016 BLAKE2B b76f58dd83ef80489eb8136719da6eab75d36646bb99efe0b7bbb670725e939b91f68244e495a6185402be855a4db2d15defa31eb765b2d6c00af3bb9ee1724c SHA512 f134022ab9ee178821b333f9cd94d1eba73f3f7e11dddb019b9211f02b5ddb84afb3dd09ed9d8718a7229eab8c935f9f3f9eca4bc79407090a7c2a4a415f3d6a
|
||||
DIST newsboat-r2.41-crates.tar.xz 30332348 BLAKE2B 30c1c534a7fbb5bb2966b1d7bf7a1dc321d40001323d6598eefc90d45453310a69294b44172b62a21081e990f2123ae26e69a7792eda075c3420733290241db0 SHA512 9d732caab73ac61a571ba24868c281696ec22cf5f8fbe89eb5539d632f754c7ac7d4496f92cada4b4a8cb21991cd75dee699a89f5cf0cf242b6005b08a716a5c
|
||||
DIST newsboat-r2.42-crates.tar.xz 28567552 BLAKE2B a057b98cc6cbc9ddcf3ca0f562cc59679919dcf1986eca65a3901be8e5d7ed46aaf2ba804198a44b71c4535850193c91747b30fa21f9bab9ad58b3fded5415c1 SHA512 f781c7b40435a053112a7a8d5434648d010786e9f30df56139ebe346763bbb280392b26aced13e7bb90cd8605212d4516e9477fad847fcf45ce54f0e650add80
|
||||
|
||||
98
net-news/newsboat/newsboat-2.42.ebuild
Normal file
98
net-news/newsboat/newsboat-2.42.ebuild
Normal file
@@ -0,0 +1,98 @@
|
||||
# Copyright 2017-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
CRATES=" "
|
||||
RUST_MIN_VER="1.85.0"
|
||||
|
||||
inherit cargo flag-o-matic toolchain-funcs xdg
|
||||
|
||||
DESCRIPTION="An RSS/Atom feed reader for text terminals"
|
||||
HOMEPAGE="https://newsboat.org/ https://github.com/newsboat/newsboat"
|
||||
SRC_URI="https://newsboat.org/releases/${PV}/${P}.tar.xz"
|
||||
SRC_URI+=" https://github.com/gentoo-crate-dist/${PN}/releases/download/r${PV}/${PN}-r${PV}-crates.tar.xz"
|
||||
SRC_URI+=" !doc? ( https://dev.gentoo.org/~arthurzam/distfiles/net-news/${PN}/${P}-docs.tar.xz )"
|
||||
|
||||
LICENSE="Apache-2.0 Boost-1.0 CC-BY-4.0 MIT"
|
||||
# Dependent crate licenses
|
||||
LICENSE+=" Apache-2.0 CC0-1.0 MIT Unicode-3.0 ZLIB"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=dev-db/sqlite-3.5:3
|
||||
>=dev-libs/json-c-0.11:=
|
||||
>=dev-libs/stfl-0.21
|
||||
>=net-misc/curl-7.32.0[ssl]
|
||||
dev-libs/libxml2:=
|
||||
sys-libs/ncurses:=[unicode(+)]
|
||||
"
|
||||
# Depend on new enough OpenSSL/GnuTLS libs to avoid providing header files of
|
||||
# curl's default SSL backend in DEPEND. SSL libs are only called through
|
||||
# libcurl, so don't depend on any slot.
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
|| (
|
||||
>=dev-libs/openssl-1.1.0:*
|
||||
>=net-libs/gnutls-2.11.0:*
|
||||
net-libs/mbedtls:*
|
||||
net-libs/rustls-ffi:*
|
||||
)
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
virtual/zlib:=
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/awk
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
doc? ( dev-ruby/asciidoctor )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i Makefile \
|
||||
-e "/WARNFLAGS=/s/-Werror//" \
|
||||
-e "/BARE_CXXFLAGS=/s/-O2 -ggdb//" || die
|
||||
|
||||
# Avoid running `curl-config` which does not work when cross-compiling.
|
||||
# Don't define the HAVE_{OPENSSL,GCRYPT} macros, since they only guard code
|
||||
# for older lib versions.
|
||||
sed -i config.sh -e "s/^check_ssl_implementation$//g" || die
|
||||
|
||||
if use !doc; then
|
||||
sed -i Makefile -e "s#^doc: .*#doc: doc/example-config#" || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# bug #877657
|
||||
tc-is-gcc && filter-lto
|
||||
|
||||
# Set up CXXFLAGS_FOR_BUILD among other (standard) env vars.
|
||||
tc-export_build_env AR {BUILD_,}CXX PKG_CONFIG RANLIB
|
||||
export CXX_FOR_BUILD="${BUILD_CXX}"
|
||||
emake config
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
}
|
||||
|
||||
src_test() {
|
||||
export TMPDIR="${T}"
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" prefix="${EPREFIX}/usr" docdir="${EPREFIX}/usr/share/doc/${PF}" install
|
||||
|
||||
if use doc && [[ ${DOC_DIST} = 1 ]]; then # used by the maintainer to create the docs tarball
|
||||
local -x XZ_OPTS="-T0 -9e"
|
||||
local TAR_FLAGS=( --mtime=1970-01-01 --sort=name --owner=portage --group=portage )
|
||||
cd "${WORKDIR}" || die
|
||||
tar "${TAR_FLAGS[@]}" -cJf "${D}/${P}-docs.tar.xz" ${P}/doc/{*.1,xhtml/*.html} || die
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user