blob: 4a5a6a947283f5582b18accc6aabf17039ce794a (
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools toolchain-funcs virtualx xdg-utils
DESCRIPTION="Lean FLTK based web browser"
HOMEPAGE="https://dillo-browser.github.io/"
if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/dillo-browser/dillo.git"
else
SRC_URI="https://github.com/dillo-browser/dillo/releases/download/v${PV}/${P}.tar.bz2"
KEYWORDS="~amd64 ~x86"
PATCHES=(
"${FILESDIR}/dillo-3.2.0-mbedtls-3.patch"
)
fi
LICENSE="GPL-3"
SLOT="0"
IUSE="debug doc +gif +jpeg mbedtls +png +ssl +openssl +xembed"
REQUIRED_USE="
ssl? ( || ( openssl mbedtls ) )
"
RDEPEND="
=x11-libs/fltk-1.3*:1=
virtual/zlib:=
x11-libs/libX11
jpeg? ( media-libs/libjpeg-turbo:= )
png? ( >=media-libs/libpng-1.2:= )
ssl? (
mbedtls? ( net-libs/mbedtls:3= )
openssl? ( dev-libs/openssl:= )
)
"
DEPEND="${RDEPEND}"
BDEPEND="
doc? (
app-text/doxygen[dot]
app-text/texlive
)
test? (
media-fonts/dejavu
media-gfx/imagemagick[X]
x11-apps/xwd
x11-apps/xwininfo
x11-base/xorg-server[xvfb]
)
"
DOCS="AUTHORS ChangeLog README NEWS doc/*.txt doc/README"
src_prepare() {
default
eautoreconf
}
src_configure() {
local myeconfargs=(
$(use_enable debug rtfl)
$(use_enable gif)
$(use_enable jpeg)
$(use_enable mbedtls)
$(use_enable openssl)
$(use_enable png)
$(use_enable ssl tls)
$(use_enable xembed)
--enable-ipv6
)
if [[ ${PV} == *9999* ]]; then
myeconfargs+=(
--enable-svg # Vendored nanosvg dep, no point in disabling
)
fi
use mbedtls && myeconfargs+=(
--with-mbedtls-inc="${ESYSROOT}/usr/include/mbedtls3"
)
use test && myeconfargs+=( --enable-html-tests=yes )
econf "${myeconfargs[@]}"
}
src_compile() {
emake AR="$(tc-getAR)"
if use doc; then
doxygen Doxyfile || die
fi
}
src_test() {
# Prepare test framework (#942051)
local test_dir="${WORKDIR}/build-test"
emake DESTDIR="${test_dir}" install
mkdir -p "${HOME}/.dillo/" || die
# dillo expects dpid binary in homedir
cp "${test_dir}"/etc/dillo/* dpid/dpid "${HOME}/.dillo/" || die
sed -e "s|[@]libdir[@]|${test_dir}/usr/$(get_libdir)|;s|[@]EXEEXT[@]||g" \
dpid/dpidrc.in > "${HOME}/.dillo/dpidrc" || die
# The test suite consistently fails with -jN in portage
DILLOBIN="${test_dir}/usr/bin/dillo" virtx emake -j1 check
}
src_install() {
default
use doc && dodoc -r html
}
pkg_postinst() {
xdg_desktop_database_update
xdg_icon_cache_update
}
pkg_postrm() {
xdg_desktop_database_update
xdg_icon_cache_update
}
|