From 636d6e9b37345f339947eb1897673c8a93aaead4 Mon Sep 17 00:00:00 2001 From: Horea Christian Date: Fri, 17 Feb 2023 15:14:26 -0500 Subject: sci-visualization/mricrogl: revbumps for deps and icon cache Signed-off-by: Horea Christian --- .../mricrogl/mricrogl-1.2.20211007-r1.ebuild | 66 ++++++++++++++++++++++ .../mricrogl/mricrogl-1.2.20211007.ebuild | 44 --------------- .../mricrogl/mricrogl-1.2.20220720-r1.ebuild | 66 ++++++++++++++++++++++ .../mricrogl/mricrogl-1.2.20220720.ebuild | 44 --------------- 4 files changed, 132 insertions(+), 88 deletions(-) create mode 100644 sci-visualization/mricrogl/mricrogl-1.2.20211007-r1.ebuild delete mode 100644 sci-visualization/mricrogl/mricrogl-1.2.20211007.ebuild create mode 100644 sci-visualization/mricrogl/mricrogl-1.2.20220720-r1.ebuild delete mode 100644 sci-visualization/mricrogl/mricrogl-1.2.20220720.ebuild (limited to 'sci-visualization/mricrogl') diff --git a/sci-visualization/mricrogl/mricrogl-1.2.20211007-r1.ebuild b/sci-visualization/mricrogl/mricrogl-1.2.20211007-r1.ebuild new file mode 100644 index 000000000..da8e446cf --- /dev/null +++ b/sci-visualization/mricrogl/mricrogl-1.2.20211007-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="MRIcroGL" +inherit desktop xdg-utils + +DESCRIPTION="A simple medical imaging visualization tool" +HOMEPAGE="https://github.com/neurolabusc/MRIcroGL" +SRC_URI="https://github.com/rordenlab/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="dicom python" + +BDEPEND="dev-lang/lazarus" +DEPEND=" + dev-lang/fpc + 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 + else + lazbuild -B \ + --lazarusdir="/usr/share/lazarus/" \ + --pcp="system-lazarus-config" \ + MRIcroGL_NoPython.lpi || die + fi +} + +src_install() { + dobin MRIcroGL + + pushd Resources > /dev/null + insinto /usr/share/MRIcroGL + doins -r lut matcap Roboto.* script shader + doicon -s scalable mricrogl.svg + 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.20211007.ebuild b/sci-visualization/mricrogl/mricrogl-1.2.20211007.ebuild deleted file mode 100644 index 5a3ddea14..000000000 --- a/sci-visualization/mricrogl/mricrogl-1.2.20211007.ebuild +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -MY_PN="MRIcroGL" -inherit desktop - -DESCRIPTION="A simple medical imaging visualization tool" -HOMEPAGE="https://github.com/neurolabusc/MRIcroGL" -SRC_URI="https://github.com/rordenlab/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="dicom python" - -RDEPEND="dicom? ( sci-biology/dcm2niix )" -DEPEND=" - dev-lang/fpc - dev-lang/lazarus - " - -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 - else - lazbuild -B --lazarusdir="/usr/share/lazarus/" --pcp="system-lazarus-config" MRIcroGL_NoPython.lpi || die - fi -} - -src_install() { - dobin MRIcroGL - - pushd Resources > /dev/null - insinto /usr/share/MRIcroGL - doins -r lut matcap Roboto.* script shader - doicon -s scalable mricrogl.svg - make_desktop_entry MRIcroGL MRIcroGL /usr/share/icons/hicolor/scalable/apps/mricrogl.svg - popd -} diff --git a/sci-visualization/mricrogl/mricrogl-1.2.20220720-r1.ebuild b/sci-visualization/mricrogl/mricrogl-1.2.20220720-r1.ebuild new file mode 100644 index 000000000..da8e446cf --- /dev/null +++ b/sci-visualization/mricrogl/mricrogl-1.2.20220720-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="MRIcroGL" +inherit desktop xdg-utils + +DESCRIPTION="A simple medical imaging visualization tool" +HOMEPAGE="https://github.com/neurolabusc/MRIcroGL" +SRC_URI="https://github.com/rordenlab/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="dicom python" + +BDEPEND="dev-lang/lazarus" +DEPEND=" + dev-lang/fpc + 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 + else + lazbuild -B \ + --lazarusdir="/usr/share/lazarus/" \ + --pcp="system-lazarus-config" \ + MRIcroGL_NoPython.lpi || die + fi +} + +src_install() { + dobin MRIcroGL + + pushd Resources > /dev/null + insinto /usr/share/MRIcroGL + doins -r lut matcap Roboto.* script shader + doicon -s scalable mricrogl.svg + 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.ebuild deleted file mode 100644 index 5a3ddea14..000000000 --- a/sci-visualization/mricrogl/mricrogl-1.2.20220720.ebuild +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -MY_PN="MRIcroGL" -inherit desktop - -DESCRIPTION="A simple medical imaging visualization tool" -HOMEPAGE="https://github.com/neurolabusc/MRIcroGL" -SRC_URI="https://github.com/rordenlab/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="dicom python" - -RDEPEND="dicom? ( sci-biology/dcm2niix )" -DEPEND=" - dev-lang/fpc - dev-lang/lazarus - " - -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 - else - lazbuild -B --lazarusdir="/usr/share/lazarus/" --pcp="system-lazarus-config" MRIcroGL_NoPython.lpi || die - fi -} - -src_install() { - dobin MRIcroGL - - pushd Resources > /dev/null - insinto /usr/share/MRIcroGL - doins -r lut matcap Roboto.* script shader - doicon -s scalable mricrogl.svg - make_desktop_entry MRIcroGL MRIcroGL /usr/share/icons/hicolor/scalable/apps/mricrogl.svg - popd -} -- cgit v1.2.3-65-gdbad