commit: 8520f56b7eddefdedeedb45cbd7426979036ebd9 Author: Horea Christian <chr <AT> chymera <DOT> eu> AuthorDate: Fri Feb 17 04:54:53 2023 +0000 Commit: Horea Christian <horea.christ <AT> gmail <DOT> com> CommitDate: Fri Feb 17 04:54:53 2023 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=8520f56b
sci-visualization/mricrogl: add 1.2.20220720 Signed-off-by: Horea Christian <chr <AT> chymera.eu> .../mricrogl/mricrogl-1.2.20220720.ebuild | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/sci-visualization/mricrogl/mricrogl-1.2.20220720.ebuild b/sci-visualization/mricrogl/mricrogl-1.2.20220720.ebuild new file mode 100644 index 000000000..5a3ddea14 --- /dev/null +++ b/sci-visualization/mricrogl/mricrogl-1.2.20220720.ebuild @@ -0,0 +1,44 @@ +# 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 +}
