commit:     cdfe003acbda7e49273fde41daac188fa4db98e9
Author:     Horea Christian <chr <AT> chymera <DOT> eu>
AuthorDate: Wed Apr  1 21:29:50 2020 +0000
Commit:     Horea Christian <horea.christ <AT> gmail <DOT> com>
CommitDate: Wed Apr  1 21:29:50 2020 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=cdfe003a

sci-visualization/mricrogl: version bump 1.2.20200331

And DICOM support via USE flag

Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Horea Christian <chr <AT> chymera.eu>

 sci-visualization/mricrogl/metadata.xml            |  3 ++
 .../mricrogl/mricrogl-1.2.20200331.ebuild          | 49 ++++++++++++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/sci-visualization/mricrogl/metadata.xml 
b/sci-visualization/mricrogl/metadata.xml
index bfe2f032f..076b1ca19 100644
--- a/sci-visualization/mricrogl/metadata.xml
+++ b/sci-visualization/mricrogl/metadata.xml
@@ -11,6 +11,9 @@
                interactive rendering. It includes scripts to show you some of
                the many effects.
        </longdescription>
+       <use>
+               <flag name="dicom">Adds limited read support for the DICOM 
imaging format.</flag>
+       </use>
        <upstream>
                <remote-id type="github">neurolabusc/MRIcroGL</remote-id>
        </upstream>

diff --git a/sci-visualization/mricrogl/mricrogl-1.2.20200331.ebuild 
b/sci-visualization/mricrogl/mricrogl-1.2.20200331.ebuild
new file mode 100644
index 000000000..3422a84e8
--- /dev/null
+++ b/sci-visualization/mricrogl/mricrogl-1.2.20200331.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit eutils desktop
+
+DEMOS_HASH="d07815f31093f28b47731f87f3f5ba5543f12d11"
+PY4LAZ_HASH="8dc41685b547f0982755b90115d9a43a2d2b358c"
+
+DESCRIPTION="A simple medical imaging visualization tool"
+HOMEPAGE="https://github.com/neurolabusc/MRIcroGL";
+SRC_URI="
+       https://github.com/rordenlab/MRIcroGL12/archive/v${PV}.tar.gz -> 
${P}.tar.gz
+       https://github.com/neurolabusc/Metal-Demos/archive/${DEMOS_HASH}.tar.gz 
-> Metal-Demos-${DEMOS_HASH}.tar.gz
+       python? ( 
https://github.com/Alexey-T/Python-for-Lazarus/archive/${PY4LAZ_HASH}.tar.gz -> 
Python-for-Lazarus-${P4LAZ_HASH}.tar.gz )
+       "
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="dicom python"
+
+RDEPEND="dicom? ( sci-biology/dcm2niix )"
+DEPEND="dev-lang/fpc
+       >=dev-lang/lazarus-1.6.2"
+
+S="${WORKDIR}/MRIcroGL12-${PV}"
+
+src_compile() {
+       sed -i -e "s:Metal-Demos/common:Metal-Demos-${DEMOS_HASH}/common:g" 
MRIcroGL_NoPython.lpi || die
+       if use python; then
+               lazbuild -build-ide= --add-package lazopenglcontext 
./Python-for-Lazarus-${PY4LAZ}/python4lazarus/python4lazarus_package.lpk || die
+       else
+               lazbuild --verbose-pkgsearch lazopenglcontext
+       fi
+       lazbuild -B --lazarusdir="/usr/share/lazarus/" 
--pcp="system-lazarus-config" MRIcroGL_NoPython.lpi || die
+}
+
+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
+}

Reply via email to