blob: 98748ddb116f79161f5caf5f176a7dea99d1e7e5 (
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
|
# Copyright 2020-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit edo out-of-source qmake-utils xdg
DESCRIPTION="Visual cross-platform gemini browser"
HOMEPAGE="https://github.com/MasterQ32/kristall"
if [ "${PV}" == "9999" ]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/MasterQ32/${PN}.git"
else
SRC_URI="https://github.com/MasterQ32/${PN}/archive/V${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="GPL-3"
SLOT="0"
RDEPEND="
app-text/cmark:=
dev-libs/gumbo
dev-libs/openssl:=
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtmultimedia:5[widgets]
dev-qt/qtnetwork:5[ssl]
dev-qt/qtwidgets:5
media-libs/libglvnd
"
DEPEND="${RDEPEND}"
src_prepare() {
default
sed 's/$(shell cd $$PWD; git describe --tags)/'${PV}'/' \
-i src/kristall.pro || die
}
my_src_configure() {
eqmake5 "${S}"/src/kristall.pro CONFIG+="external-cmark external-gumbo-parser"
}
my_src_compile() {
emake
cp kristall "${S}" || die
}
src_compile() {
out-of-source_src_compile
cd doc || die
edo sh gen-man.sh
}
src_install() {
emake -o kristall DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
einstalldocs
}
|