blob: 33d209019e402179f35754ba0d7b0b6975ba873e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
VERIFY_SIG_METHOD="signify"
inherit toolchain-funcs verify-sig
DESCRIPTION="w3m-like browser for Gemini"
HOMEPAGE="https://telescope.omarpolo.com"
SRC_URI="https://ftp.omarpolo.com/${P}.tar.gz
verify-sig? ( https://ftp.omarpolo.com/${P}.tar.gz.sha256.sig )"
LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="unicode"
DEPEND="
dev-libs/libbsd
dev-libs/libgrapheme:=
dev-libs/libretls:=
sys-libs/ncurses:=
"
RDEPEND="${DEPEND}"
BDEPEND="
app-alternatives/yacc
virtual/pkgconfig
verify-sig? ( sec-keys/signify-keys-telescope:$(ver_cut 1-2) )
"
VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/signify-keys/${PN}-$(ver_cut 1-2).pub"
src_unpack() {
if use verify-sig; then
# Too many levels of symbolic links
cp "${DISTDIR}"/${P}.tar.gz{,.sha256.sig} "${WORKDIR}" || die
cd "${WORKDIR}" || die
verify-sig_verify_signed_checksums \
${P}.tar.gz.sha256.sig sha256 ${P}.tar.gz
fi
default
}
src_configure() {
tc-export_build_env BUILD_CC
local econf_args=(
HOSTCC="${BUILD_CC}"
HOSTCFLAGS="${BUILD_CFLAGS}"
--with-libbsd
--without-libimsg
)
econf "${econf_args[@]}"
}
|