commit: ca73ecf31bb85b7a3a976df75fbdbec29627ff12
Author: Horea Christian <chr <AT> chymera <DOT> eu>
AuthorDate: Thu Apr 2 04:10:47 2020 +0000
Commit: Horea Christian <horea.christ <AT> gmail <DOT> com>
CommitDate: Thu Apr 2 04:10:47 2020 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=ca73ecf3
sci-biology/bruker2nifti: new package
Python Bruker ParaVision to NIfTI converter
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Horea Christian <chr <AT> chymera.eu>
sci-biology/bruker2nifti/bruker2nifti-1.0.4.ebuild | 31 ++++++++++++++++++++++
sci-biology/bruker2nifti/metadata.xml | 16 +++++++++++
2 files changed, 47 insertions(+)
diff --git a/sci-biology/bruker2nifti/bruker2nifti-1.0.4.ebuild
b/sci-biology/bruker2nifti/bruker2nifti-1.0.4.ebuild
new file mode 100644
index 000000000..2297139a2
--- /dev/null
+++ b/sci-biology/bruker2nifti/bruker2nifti-1.0.4.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7} )
+
+inherit distutils-r1
+
+DESCRIPTION="Medical image converter, from raw Bruker ParaVision to NIfTI"
+HOMEPAGE="https://github.com/SebastianoF/bruker2nifti"
+SRC_URI="https://github.com/SebastianoF/bruker2nifti/archive/v${PV}.tar.gz ->
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ dev-python/numpy[${PYTHON_USEDEP}]
+ sci-libs/nibabel[${PYTHON_USEDEP}]
+ "
+
+#S="${WORKDIR}/Bru2Nii-${PV}"
+
+python_prepare_all() {
+ sed -i -e
"s/packages=find_packages()/packages=find_packages(exclude=('test',))/g"\
+ setup.py || die
+ distutils-r1_python_prepare_all
+}
+
+distutils_enable_tests pytest
diff --git a/sci-biology/bruker2nifti/metadata.xml
b/sci-biology/bruker2nifti/metadata.xml
new file mode 100644
index 000000000..d67826b4d
--- /dev/null
+++ b/sci-biology/bruker2nifti/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>[email protected]</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ Bruker2nifti is an open source medical image format converter
from
+ raw Bruker ParaVision to NifTi, without any intermediate step
through
+ the DICOM standard format.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">SebastianoF/bruker2nifti</remote-id>
+ </upstream>
+</pkgmetadata>