mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 23:52:59 -04:00
As per the devmanual, ${DEPEND} has been moved from ${BDEPEND}, because
> BDEPEND specifies dependencies applicable to CBUILD, i.e. programs that
> need to be executed during the build, e.g. virtual/pkgconfig. DEPEND
> specifies dependencies for CHOST, i.e. packages that need to be found on
> built system, e.g. libraries and headers.
On top of that, a proper ${RDEPEND} has also been set, as it didn't
contain the necessary dependencies, which was found by Agostino Sarubbo
Closes: https://bugs.gentoo.org/975673
Signed-off-by: ingenarel (NeoJesus) <ingenarel_neojesus@disroot.org>
46 lines
841 B
Bash
46 lines
841 B
Bash
# Copyright 2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DESCRIPTION="TUI web browser; supports CSS, images, JavaScript, and multiple web protocols"
|
|
HOMEPAGE="https://chawan.net"
|
|
|
|
if [[ "${PV}" == 9999 ]]; then
|
|
inherit git-r3
|
|
EGIT_REPO_URI="https://git.sr.ht/~bptato/${PN}"
|
|
else
|
|
SRC_URI="https://git.sr.ht/~bptato/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
S="${WORKDIR}/${PN}-v${PV}"
|
|
KEYWORDS="~amd64"
|
|
fi
|
|
|
|
LICENSE="Unlicense"
|
|
|
|
SLOT="0"
|
|
|
|
IUSE="lto"
|
|
|
|
DEPEND="
|
|
app-arch/brotli
|
|
dev-libs/openssl
|
|
net-libs/libssh2
|
|
"
|
|
BDEPEND="
|
|
dev-lang/nim
|
|
virtual/pkgconfig
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/makefile-491b4231.patch"
|
|
)
|
|
|
|
src_prepare(){
|
|
default
|
|
if use lto; then
|
|
sed -i -E 's|^FLAGS\s+\+=.+|& -d:lto|' Makefile ||
|
|
die "Trying to sed the Makefile for lto failed!"
|
|
fi
|
|
}
|