blob: e078f8bad0aa7beee603a67166e387694d447cbd (
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
63
64
65
66
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit edo toolchain-funcs
DESCRIPTION="Combination editor, browser, and mail client that is 100% text based"
HOMEPAGE="https://edbrowse.org"
SRC_URI="https://github.com/edbrowse/edbrowse/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2+ curl MIT CC0-1.0"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
dev-db/unixODBC
dev-libs/libpcre2:=
dev-libs/openssl:=
dev-libs/quickjs-ng
net-misc/curl
sys-libs/readline:=
"
DEPEND="${RDEPEND}"
BDEPEND="
dev-lang/perl
virtual/pkgconfig
"
PATCHES=(
# adapt makefile for shared quickjs-ng
"${FILESDIR}"/${PN}-3.8.17-quickjs-ng.patch
)
src_compile() {
tc-export CC PKG_CONFIG
emake STRIP=
}
src_test() {
# create an empty config file
CONFIG_FILE="${HOME}/.ebrc"
touch "${CONFIG_FILE}" || die
# basic test
echo -e "b ${S}/doc/usersguide.html\n1,3p\nqt" | edo ./src/edbrowse -c "${CONFIG_FILE}" -d3 -e
}
src_install() {
local myemakeargs=(
DESTDIR="${D}"
PREFIX="${EPREFIX}"/usr
DOCDIR="${ED}/usr/share/doc/${PF}/html"
FILESDIR="${ED}"/usr/share/edbrowse
)
emake "${myemakeargs[@]}" install
local DOCS=( CHANGES README.md lang/ebrc-* )
einstalldocs
newman doc/man-edbrowse-debian.1 edbrowse.1
}
pkg_postinst() {
einfo "Various plugins for ${PN} are also installed to handle many formats."
einfo "They may require additional dependencies to function properly."
}
|