diff --git a/net-misc/meganz-sdk/meganz-sdk-9999.ebuild b/net-misc/meganz-sdk/meganz-sdk-9999.ebuild index e951766..fc4e932 100644 --- a/net-misc/meganz-sdk/meganz-sdk-9999.ebuild +++ b/net-misc/meganz-sdk/meganz-sdk-9999.ebuild @@ -1,107 +1,120 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 + +inherit cmake flag-o-matic -inherit flag-o-matic qmake-utils autotools db-use -if [[ -z ${PV%%*9999} ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/${PN%-*}/${PN#*-}.git" -else - SRC_URI="https://github.com/meganz/sdk/archive/v${PV}d.tar.gz -> ${P}.tar.gz" - S="${WORKDIR}/sdk-${PV}d" - RESTRICT="primaryuri" - KEYWORDS="~amd64 ~x86" -fi DESCRIPTION="MEGA C++ SDK" HOMEPAGE="https://github.com/meganz/sdk" -LICENSE="BSD-2" -SLOT="0/30701" -IUSE="examples ffmpeg freeimage fuse hardened inotify libuv mediainfo qt raw +sqlite test" -REQUIRED_USE=" - examples? ( sqlite ) - fuse? ( examples ) -" -# tests require a working mega.nz account and login details provided via $MEGA_EMAIL and $MEGA_PWD -RESTRICT+=" test" +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/meganz/sdk.git" +else + SRC_URI="https://github.com/meganz/sdk/archive/v${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/sdk-${PV}" + KEYWORDS="~amd64" +fi +LICENSE="BSD-2" +SLOT="0/${PV}" +IUSE="examples ffmpeg freeimage fuse libuv mediainfo qt test" + +RESTRICT="!test? ( test )" + +#