2021-07-07 18:20:27 +02:00
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
2020-04-17 15:53:39 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
inherit cmake
|
|
|
|
|
2020-04-19 20:49:44 +02:00
|
|
|
DESCRIPTION="Unofficial downloader for GOG content."
|
2020-04-17 15:53:39 +02:00
|
|
|
HOMEPAGE="https://sites.google.com/site/gogdownloader/"
|
|
|
|
SRC_URI="https://sites.google.com/site/gogdownloader/${P}.tar.gz"
|
|
|
|
LICENSE="WTFPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE="gui portage"
|
|
|
|
|
|
|
|
RDEPEND=">=app-crypt/rhash-1.3.3-r2:0=
|
|
|
|
dev-cpp/htmlcxx:0=
|
|
|
|
dev-libs/boost:0=
|
|
|
|
>=dev-libs/jsoncpp-1.7:0=
|
|
|
|
dev-libs/tinyxml2:0=
|
|
|
|
>=net-misc/curl-7.32:0=[ssl]
|
2020-04-18 20:01:09 +02:00
|
|
|
gui? ( dev-qt/qtwebengine:5=[widgets] )
|
2020-04-23 13:47:20 +02:00
|
|
|
portage? ( app-shells/bash:0
|
2020-04-18 20:01:09 +02:00
|
|
|
sys-apps/coreutils
|
|
|
|
app-arch/xz-utils
|
|
|
|
app-arch/tar
|
|
|
|
sys-apps/sed
|
|
|
|
)"
|
2020-04-17 15:53:39 +02:00
|
|
|
|
|
|
|
DEPEND="${RDEPEND}"
|
|
|
|
|
|
|
|
BDEPEND="sys-apps/help2man
|
|
|
|
virtual/pkgconfig"
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local mycmakeargs=(
|
|
|
|
-DUSE_QT_GUI=$(usex gui)
|
|
|
|
)
|
|
|
|
if use portage; then
|
2020-04-21 04:46:29 +02:00
|
|
|
patch -p1 < "${FILESDIR}/0001-recycle-cookies-and-tokens.patch"
|
2020-04-17 15:53:39 +02:00
|
|
|
fi
|
|
|
|
cmake_src_configure
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
cmake_src_install
|
|
|
|
gunzip "${ED}"/usr/share/man/man1/${PN}.1.gz || die
|
2020-04-18 20:01:09 +02:00
|
|
|
if use portage; then
|
2020-04-21 04:46:29 +02:00
|
|
|
dobin "${FILESDIR}/export_gog_to_portage"
|
2020-04-18 20:01:09 +02:00
|
|
|
fi
|
2020-04-17 15:53:39 +02:00
|
|
|
}
|