commit:     d94889dd200f7c2e018360dc982ffce12416247a
Author:     Duje Mihanović <duje.mihanovic <AT> skole <DOT> hr>
AuthorDate: Mon Sep 18 14:43:44 2023 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Sep 18 16:39:49 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d94889dd

app-mobilephone/heimdall: 2.0.2 version bump

Closes: https://bugs.gentoo.org/914090
Signed-off-by: Duje Mihanović <duje.mihanovic <AT> skole.hr>
Closes: https://github.com/gentoo/gentoo/pull/32904
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 app-mobilephone/heimdall/Manifest              |  1 +
 app-mobilephone/heimdall/heimdall-2.0.2.ebuild | 52 ++++++++++++++++++++++++++
 2 files changed, 53 insertions(+)

diff --git a/app-mobilephone/heimdall/Manifest 
b/app-mobilephone/heimdall/Manifest
index 3580a15056fb..e9a2e5b5577c 100644
--- a/app-mobilephone/heimdall/Manifest
+++ b/app-mobilephone/heimdall/Manifest
@@ -1 +1,2 @@
 DIST heimdall-2.0.1.tar.gz 83642 BLAKE2B 
29cd784a4ea4c25f9670d27c306ca95d60d7ad8a11175d2ee835a0cf1e7fc5eb179aa4e49c5e05e280ed5ce475a9e66e56b48444dd4b3b93ea8cb173e3d18060
 SHA512 
f6df4551702a7ad7688018d60569b8b94f20be4f78a9b4bf5f6e89396ed43cd7519617ef1f420b41bbfeec8b51ae636759a7b90443d3d5945cd8744b43e2d0ef
+DIST heimdall-2.0.2.tar.gz 83619 BLAKE2B 
783f94243730a53f25e8d6d95b4c0839d727a5290aed72948fa7e7a3f4217b3ef1cbfc5e3cd828642d0eb5e965b153097d9dfde11d6fcec2066364a444899f41
 SHA512 
62849bfe7550214dd774efea65169673fa916f9d204000f793d995aed9def95fcc895c8913cd648f2397ab7fd154257e0394b78c180ed60d043c75858bac7c0a

diff --git a/app-mobilephone/heimdall/heimdall-2.0.2.ebuild 
b/app-mobilephone/heimdall/heimdall-2.0.2.ebuild
new file mode 100644
index 000000000000..b1c61d9f7b06
--- /dev/null
+++ b/app-mobilephone/heimdall/heimdall-2.0.2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake udev
+
+if [[ ${PV} != 9999 ]]; then
+       SRC_URI="https://git.sr.ht/~grimler/Heimdall/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+       KEYWORDS="amd64 ~arm64"
+       S="${WORKDIR}/Heimdall-v${PV}"
+else
+       inherit git-r3
+       EGIT_REPO_URI="https://git.sr.ht/~grimler/Heimdall";
+fi
+
+DESCRIPTION="Tool suite used to flash firmware onto Samsung devices"
+HOMEPAGE="https://git.sr.ht/~grimler/Heimdall 
https://glassechidna.com.au/heimdall/ 
https://github.com/Benjamin-Dobell/Heimdall";
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="gui"
+
+RDEPEND="
+       sys-libs/zlib
+       virtual/libusb:1=
+       gui? (
+               dev-qt/qtcore:5
+               dev-qt/qtgui:5
+               dev-qt/qtwidgets:5
+       )"
+
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_configure() {
+       local mycmakeargs=(
+               -DDISABLE_FRONTEND=$(usex !gui)
+       )
+       cmake_src_configure
+}
+
+src_install() {
+       dobin "${BUILD_DIR}"/bin/heimdall
+       use gui && dobin "${BUILD_DIR}"/bin/heimdall-frontend
+       udev_dorules heimdall/60-heimdall.rules
+       dodoc README.md Linux/README
+}
+
+pkg_postinst() {
+       udev_reload
+}

Reply via email to