From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D89FB15800F for ; Fri, 17 Feb 2023 20:14:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C7DC6E07C9; Fri, 17 Feb 2023 20:14:52 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B0E50E07C9 for ; Fri, 17 Feb 2023 20:14:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E64EB340FE4 for ; Fri, 17 Feb 2023 20:14:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 08A2E8A7 for ; Fri, 17 Feb 2023 20:14:50 +0000 (UTC) From: "Horea Christian" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Horea Christian" Message-ID: <1676664866.636d6e9b37345f339947eb1897673c8a93aaead4.chymera@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-visualization/mricrogl/ X-VCS-Repository: proj/sci X-VCS-Files: sci-visualization/mricrogl/mricrogl-1.2.20211007-r1.ebuild sci-visualization/mricrogl/mricrogl-1.2.20211007.ebuild sci-visualization/mricrogl/mricrogl-1.2.20220720-r1.ebuild sci-visualization/mricrogl/mricrogl-1.2.20220720.ebuild X-VCS-Directories: sci-visualization/mricrogl/ X-VCS-Committer: chymera X-VCS-Committer-Name: Horea Christian X-VCS-Revision: 636d6e9b37345f339947eb1897673c8a93aaead4 X-VCS-Branch: master Date: Fri, 17 Feb 2023 20:14:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bb0f3808-f0c2-4bb1-b4b0-9f67ddb7f244 X-Archives-Hash: 9816b37edd1d6e08956712a907215b13 commit: 636d6e9b37345f339947eb1897673c8a93aaead4 Author: Horea Christian chymera eu> AuthorDate: Fri Feb 17 20:14:26 2023 +0000 Commit: Horea Christian gmail com> CommitDate: Fri Feb 17 20:14:26 2023 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=636d6e9b sci-visualization/mricrogl: revbumps for deps and icon cache Signed-off-by: Horea Christian chymera.eu> ...1007.ebuild => mricrogl-1.2.20211007-r1.ebuild} | 32 ++++++++++++++++++---- ...0720.ebuild => mricrogl-1.2.20220720-r1.ebuild} | 32 ++++++++++++++++++---- 2 files changed, 54 insertions(+), 10 deletions(-) diff --git a/sci-visualization/mricrogl/mricrogl-1.2.20211007.ebuild b/sci-visualization/mricrogl/mricrogl-1.2.20211007-r1.ebuild similarity index 51% rename from sci-visualization/mricrogl/mricrogl-1.2.20211007.ebuild rename to sci-visualization/mricrogl/mricrogl-1.2.20211007-r1.ebuild index 5a3ddea14..da8e446cf 100644 --- a/sci-visualization/mricrogl/mricrogl-1.2.20211007.ebuild +++ b/sci-visualization/mricrogl/mricrogl-1.2.20211007-r1.ebuild @@ -4,7 +4,7 @@ EAPI=8 MY_PN="MRIcroGL" -inherit desktop +inherit desktop xdg-utils DESCRIPTION="A simple medical imaging visualization tool" HOMEPAGE="https://github.com/neurolabusc/MRIcroGL" @@ -15,20 +15,27 @@ SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="dicom python" -RDEPEND="dicom? ( sci-biology/dcm2niix )" +BDEPEND="dev-lang/lazarus" DEPEND=" dev-lang/fpc - dev-lang/lazarus + x11-misc/appmenu-gtk-module[gtk2] " +RDEPEND="dicom? ( sci-biology/dcm2niix )" S="${WORKDIR}/${MY_PN}-${PV}" src_compile() { # Allegedly the Debian recipe contains some sort of Python support, wasn't able to test. if use python; then - lazbuild -B --lazarusdir="/usr/share/lazarus/" --pcp="system-lazarus-config" MRIcroGL_Debian.lpi || die + lazbuild -B \ + --lazarusdir="/usr/share/lazarus/" \ + --pcp="system-lazarus-config" \ + MRIcroGL_Debian.lpi || die else - lazbuild -B --lazarusdir="/usr/share/lazarus/" --pcp="system-lazarus-config" MRIcroGL_NoPython.lpi || die + lazbuild -B \ + --lazarusdir="/usr/share/lazarus/" \ + --pcp="system-lazarus-config" \ + MRIcroGL_NoPython.lpi || die fi } @@ -42,3 +49,18 @@ src_install() { make_desktop_entry MRIcroGL MRIcroGL /usr/share/icons/hicolor/scalable/apps/mricrogl.svg popd } + +pkg_postinst(){ + xdg_icon_cache_update + + ewarn "This package might exhibit nondeterministic lag at startup manifesting as a blank" + ewarn "window, which can either be closed (e.g. Alt+F4) manually leading to the actual" + ewarn "interface being launched, or will close itself after 10-20s and start the proper GUI" + ewarn "For more details on this look up: https://github.com/rordenlab/MRIcroGL/issues/49" +} + +pkg_postrm() { + xdg_icon_cache_update + xdg_mimeinfo_database_update + xdg_desktop_database_update +} diff --git a/sci-visualization/mricrogl/mricrogl-1.2.20220720.ebuild b/sci-visualization/mricrogl/mricrogl-1.2.20220720-r1.ebuild similarity index 51% rename from sci-visualization/mricrogl/mricrogl-1.2.20220720.ebuild rename to sci-visualization/mricrogl/mricrogl-1.2.20220720-r1.ebuild index 5a3ddea14..da8e446cf 100644 --- a/sci-visualization/mricrogl/mricrogl-1.2.20220720.ebuild +++ b/sci-visualization/mricrogl/mricrogl-1.2.20220720-r1.ebuild @@ -4,7 +4,7 @@ EAPI=8 MY_PN="MRIcroGL" -inherit desktop +inherit desktop xdg-utils DESCRIPTION="A simple medical imaging visualization tool" HOMEPAGE="https://github.com/neurolabusc/MRIcroGL" @@ -15,20 +15,27 @@ SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="dicom python" -RDEPEND="dicom? ( sci-biology/dcm2niix )" +BDEPEND="dev-lang/lazarus" DEPEND=" dev-lang/fpc - dev-lang/lazarus + x11-misc/appmenu-gtk-module[gtk2] " +RDEPEND="dicom? ( sci-biology/dcm2niix )" S="${WORKDIR}/${MY_PN}-${PV}" src_compile() { # Allegedly the Debian recipe contains some sort of Python support, wasn't able to test. if use python; then - lazbuild -B --lazarusdir="/usr/share/lazarus/" --pcp="system-lazarus-config" MRIcroGL_Debian.lpi || die + lazbuild -B \ + --lazarusdir="/usr/share/lazarus/" \ + --pcp="system-lazarus-config" \ + MRIcroGL_Debian.lpi || die else - lazbuild -B --lazarusdir="/usr/share/lazarus/" --pcp="system-lazarus-config" MRIcroGL_NoPython.lpi || die + lazbuild -B \ + --lazarusdir="/usr/share/lazarus/" \ + --pcp="system-lazarus-config" \ + MRIcroGL_NoPython.lpi || die fi } @@ -42,3 +49,18 @@ src_install() { make_desktop_entry MRIcroGL MRIcroGL /usr/share/icons/hicolor/scalable/apps/mricrogl.svg popd } + +pkg_postinst(){ + xdg_icon_cache_update + + ewarn "This package might exhibit nondeterministic lag at startup manifesting as a blank" + ewarn "window, which can either be closed (e.g. Alt+F4) manually leading to the actual" + ewarn "interface being launched, or will close itself after 10-20s and start the proper GUI" + ewarn "For more details on this look up: https://github.com/rordenlab/MRIcroGL/issues/49" +} + +pkg_postrm() { + xdg_icon_cache_update + xdg_mimeinfo_database_update + xdg_desktop_database_update +}