blob: 4a918d49d590a00752ad3358cc2df29a72a56863 (
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
67
68
69
70
71
72
73
74
75
76
77
78
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{13..14} )
inherit edo optfeature python-single-r1 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"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="
${PYTHON_DEPS}
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
python_doscript plugins/scripts/edbrowse-plugin-chrome
}
pkg_postinst() {
elog "Various plugins for ${PN} are also installed to handle many formats."
optfeature_header "They may require additional dependencies to function properly:"
optfeature "Google Chrome plugin" "dev-python/selenium"
optfeature "Microsoft Office files" "app-text/catdoc app-text/docx2txt"
optfeature "doc, docx, epub, markdown, rtf files" "app-text/pandoc"
optfeature "various media files" "media-video/mpv"
optfeature "pdf files" "app-text/poppler"
optfeature "audio files" "media-sound/mpg123 media-sound/sox"
}
|