commit: 699ded99a805c8d2c23a144efeeacfeb3883b7bd Author: Lucas Mitrak <lucas <AT> lucasmitrak <DOT> com> AuthorDate: Fri Jun 11 14:07:28 2021 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> CommitDate: Fri Jun 11 14:51:11 2021 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=699ded99
sci-biology/dcm2niix: add version 1.0.20210317 * sci-biology/dcm2niix version 1.0.20210317 bump to latest This commit was tested in a docker image with dev-util/ebuildtester. This commit was written, tested, and submitted by Lucas Mitrak. Signed-off-by: Lucas Mitrak <lucas <AT> lucasmitrak.com> Closes: https://github.com/gentoo/sci/pull/1093 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> sci-biology/dcm2niix/dcm2niix-1.0.20210317.ebuild | 41 +++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/sci-biology/dcm2niix/dcm2niix-1.0.20210317.ebuild b/sci-biology/dcm2niix/dcm2niix-1.0.20210317.ebuild new file mode 100644 index 000000000..5ae682ea5 --- /dev/null +++ b/sci-biology/dcm2niix/dcm2niix-1.0.20210317.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake optfeature + +DESCRIPTION="DICOM to NIfTI converter" +HOMEPAGE="https://github.com/rordenlab/dcm2niix" +SRC_URI="https://github.com/rordenlab/dcm2niix/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +SLOT="0" +LICENSE="BSD" +KEYWORDS="~amd64 ~x86" +IUSE="static system-jpeg +jpeg-ls jpeg2k" + +DEPEND=" + system-jpeg? ( media-libs/libjpeg-turbo ) + jpeg2k? ( media-libs/openjpeg ) +" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-disable_find_git.patch +) + +src_configure() { + local mycmakeargs=( + -DUSE_STATIC_RUNTIME=$(usex static) + -DUSE_TURBOJPEG=$(usex system-jpeg) + -DUSE_JPEGLS=$(usex jpeg-ls) + -DUSE_OPENJPEG=$(usex jpeg2k) + ) + + cmake_src_configure +} + +pkg_postinst() { + optfeature "parallel gzip support" app-arch/pigz +}
