www-apps/rdrview - 0.1.5 (parona-overlay)

Search

Package Information

Description:
Firefox Reader View as a command line tool
Homepage:
https://github.com/eafer/rdrview
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
0.1.5 8 ~amd64 0
View Raw Ebuild
# Copyright 2023-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit flag-o-matic toolchain-funcs

DESCRIPTION="Firefox Reader View as a command line tool"
HOMEPAGE="https://github.com/eafer/rdrview"
SRC_URI="https://github.com/eafer/rdrview/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"

IUSE="test"
#RESTRICT="!test? ( test )"
RESTRICT="test" # broken tests

RDEPEND="
	dev-libs/libxml2:=
	net-misc/curl
	sys-libs/libseccomp
	www-client/lynx
"
DEPEND="${RDEPEND}"
BDEPEND="
	test? (
		app-text/htmltidy
		www-client/links
	)
"

src_prepare() {
	default

	sed -i -e '/require_tool valgrind/d' tests/check || die
}

src_configure() {
	append-cppflags -DNDEBUG
}

src_compile() {
	emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
}

src_test() {
	pushd tests > /dev/null || die
	./check || die
	popd > /dev/null || die
}

src_install() {
	emake DESTDIR="${ED}" PREFIX="/usr" install
}

USE Flags

Dependencies

DEPEND

	dev-libs/libxml2:=
	net-misc/curl
	sys-libs/libseccomp
	www-client/lynx

RDEPEND

	dev-libs/libxml2:=
	net-misc/curl
	sys-libs/libseccomp
	www-client/lynx

BDEPEND

	test? (
		app-text/htmltidy
		www-client/links
	)

Manifest for 0.1.5

Type File Size Source URLs
DIST rdrview-0.1.5.tar.gz 4685705 bytes https://github.com/eafer/rdrview/archive/refs/tags/v0.1.5.tar.gz