blob: a029f1a438128d03da9e54e4a75acf67cdcbf176 (
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
56
57
58
59
60
61
62
|
# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
VERIFY_SIG_METHOD="signify"
inherit optfeature toolchain-funcs verify-sig
DESCRIPTION="w3m-like browser for Gemini"
HOMEPAGE="https://www.telescope-browser.org/"
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}
app-misc/editor-wrapper
net-mail/mailbase
"
BDEPEND="
app-alternatives/yacc
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-default-editor="${EPREFIX}"/usr/libexec/editor
--with-libbsd
--without-libimsg
)
econf "${econf_args[@]}"
}
pkg_postinst() {
optfeature "file opener support" x11-misc/xdg-utils
}
|