net-news/newsraft: synchronise live-ebuild

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
Haelwenn (lanodan) Monnier
2025-11-29 15:27:08 +01:00
parent df84de8f90
commit b915dcef5d

View File

@@ -1,18 +1,18 @@
# Copyright 2023-2024 Gentoo Authors
# Copyright 2023-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
inherit toolchain-funcs xdg-utils
DESCRIPTION="A lightweight feed reader with ncurses user interface inspired by Newsboat."
HOMEPAGE="https://codeberg.org/grisha/newsraft"
HOMEPAGE="https://codeberg.org/newsraft/newsraft"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://codeberg.org/grisha/newsraft.git"
EGIT_REPO_URI="https://codeberg.org/newsraft/newsraft.git"
else
SRC_URI="https://codeberg.org/grisha/newsraft/archive/${P}.tar.gz"
SRC_URI="https://codeberg.org/newsraft/newsraft/archive/${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/${PN}"
fi
@@ -24,9 +24,7 @@ DEPEND="
dev-db/sqlite:3
dev-libs/expat
dev-libs/gumbo:=
dev-libs/yajl:=
net-misc/curl
sys-libs/ncurses:=
"
RDEPEND="${DEPEND}"
BDEPEND="
@@ -34,16 +32,26 @@ BDEPEND="
virtual/pkgconfig
"
src_compile() {
tc-getCC
emake CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
src_prepare() {
default
sed -i -e '/CC *=/s;=;?=;' makefile || die
}
src_test() {
emake CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" check
src_compile(){
tc-export CC
emake LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}"
}
src_install() {
emake PREFIX="/usr" DESTDIR="${D}" install
einstalldocs
}
pkg_postinst() {
xdg_icon_cache_update
}
pkg_postrm() {
xdg_icon_cache_update
}