blob: 8e8825bc686510950266852f07d3722d7ce5e51c (
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
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Unofficial GOG.com downloader for Linux"
HOMEPAGE="https://sites.google.com/site/gogdownloader/"
SRC_URI="https://github.com/Sude-/${PN}/releases/download/v${PV}/${P}.tar.gz"
LICENSE="WTFPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gui qt6"
RDEPEND="
>=app-crypt/rhash-1.3.3-r2:0=
app-text/htmltidy:=
dev-libs/boost:=[zlib]
>=dev-libs/jsoncpp-1.7:0=
dev-libs/tinyxml2:0=
>=net-misc/curl-7.55:0=[ssl]
gui? (
!qt6? (
dev-qt/qtcore:5
dev-qt/qtnetwork:5
dev-qt/qtwebengine:5[widgets]
dev-qt/qtwidgets:5
)
qt6? (
dev-qt/qtbase:6[network,widgets]
dev-qt/qtwebengine:6[widgets]
)
)
"
DEPEND="
${RDEPEND}
"
BDEPEND="
virtual/pkgconfig
"
src_configure() {
local mycmakeargs=(
-DUSE_QT_GUI=$(usex gui)
)
use gui && mycmakeargs+=(
-DCMAKE_DISABLE_FIND_PACKAGE_Qt6=$(usex !qt6)
)
cmake_src_configure
}
src_install() {
cmake_src_install
gunzip "${ED}"/usr/share/man/man1/${PN}.1.gz || die
}
|