commit:     ca09ec606fd5db936b56b589a1724bc8c86c4061
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat May 31 11:20:18 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Jun  2 15:14:04 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca09ec60

sci-electronics/pulseview: add github snapshot facilities

Bug: https://bugs.gentoo.org/948044
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 sci-electronics/pulseview/pulseview-9999.ebuild | 30 ++++++++++++-------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/sci-electronics/pulseview/pulseview-9999.ebuild 
b/sci-electronics/pulseview/pulseview-9999.ebuild
index 80e69f8085ed..929e0bb4b944 100644
--- a/sci-electronics/pulseview/pulseview-9999.ebuild
+++ b/sci-electronics/pulseview/pulseview-9999.ebuild
@@ -3,21 +3,31 @@
 
 EAPI=8
 
-inherit cmake xdg-utils
+inherit cmake xdg
 
-if [[ ${PV} == *9999* ]]; then
+case ${PV} in
+*9999*)
        EGIT_REPO_URI="https://github.com/sigrokproject/${PN}.git";
        inherit git-r3
-else
+       ;;
+*_p*)
+       COMMIT="e2fe9dfb91c7de85c410922ee9268c3f526bcc54"
+       
SRC_URI="https://github.com/sigrokproject/${PN}/archive/${COMMIT}.tar.gz -> 
${PN}-${COMMIT:0:7}.tar.gz"
+       S="${WORKDIR}"/${PN}-${COMMIT}
+       ;;
+*)
        SRC_URI="https://sigrok.org/download/source/${PN}/${P}.tar.gz";
-       KEYWORDS="~amd64 ~x86"
-fi
+       ;;
+esac
 
 DESCRIPTION="Qt based logic analyzer GUI for sigrok"
 HOMEPAGE="https://sigrok.org/wiki/PulseView";
 
 LICENSE="GPL-3"
 SLOT="0"
+if [[ ${PV} != *9999* ]]; then
+       KEYWORDS="~amd64 ~x86"
+fi
 IUSE="+decode static"
 
 RDEPEND="
@@ -53,13 +63,3 @@ src_configure() {
        )
        cmake_src_configure
 }
-
-pkg_postinst() {
-       xdg_icon_cache_update
-       xdg_desktop_database_update
-}
-
-pkg_postrm() {
-       xdg_icon_cache_update
-       xdg_desktop_database_update
-}

Reply via email to