1 |
commit: 699ded99a805c8d2c23a144efeeacfeb3883b7bd |
2 |
Author: Lucas Mitrak <lucas <AT> lucasmitrak <DOT> com> |
3 |
AuthorDate: Fri Jun 11 14:07:28 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 11 14:51:11 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=699ded99 |
7 |
|
8 |
sci-biology/dcm2niix: add version 1.0.20210317 |
9 |
|
10 |
* sci-biology/dcm2niix version 1.0.20210317 bump to latest |
11 |
|
12 |
This commit was tested in a docker image with dev-util/ebuildtester. |
13 |
This commit was written, tested, and submitted by Lucas Mitrak. |
14 |
|
15 |
Signed-off-by: Lucas Mitrak <lucas <AT> lucasmitrak.com> |
16 |
Closes: https://github.com/gentoo/sci/pull/1093 |
17 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
18 |
|
19 |
sci-biology/dcm2niix/dcm2niix-1.0.20210317.ebuild | 41 +++++++++++++++++++++++ |
20 |
1 file changed, 41 insertions(+) |
21 |
|
22 |
diff --git a/sci-biology/dcm2niix/dcm2niix-1.0.20210317.ebuild b/sci-biology/dcm2niix/dcm2niix-1.0.20210317.ebuild |
23 |
new file mode 100644 |
24 |
index 000000000..5ae682ea5 |
25 |
--- /dev/null |
26 |
+++ b/sci-biology/dcm2niix/dcm2niix-1.0.20210317.ebuild |
27 |
@@ -0,0 +1,41 @@ |
28 |
+# Copyright 1999-2021 Gentoo Authors |
29 |
+# Distributed under the terms of the GNU General Public License v2 |
30 |
+ |
31 |
+EAPI=7 |
32 |
+ |
33 |
+inherit cmake optfeature |
34 |
+ |
35 |
+DESCRIPTION="DICOM to NIfTI converter" |
36 |
+HOMEPAGE="https://github.com/rordenlab/dcm2niix" |
37 |
+SRC_URI="https://github.com/rordenlab/dcm2niix/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
38 |
+ |
39 |
+SLOT="0" |
40 |
+LICENSE="BSD" |
41 |
+KEYWORDS="~amd64 ~x86" |
42 |
+IUSE="static system-jpeg +jpeg-ls jpeg2k" |
43 |
+ |
44 |
+DEPEND=" |
45 |
+ system-jpeg? ( media-libs/libjpeg-turbo ) |
46 |
+ jpeg2k? ( media-libs/openjpeg ) |
47 |
+" |
48 |
+RDEPEND="${DEPEND}" |
49 |
+BDEPEND="virtual/pkgconfig" |
50 |
+ |
51 |
+PATCHES=( |
52 |
+ "${FILESDIR}"/${PN}-disable_find_git.patch |
53 |
+) |
54 |
+ |
55 |
+src_configure() { |
56 |
+ local mycmakeargs=( |
57 |
+ -DUSE_STATIC_RUNTIME=$(usex static) |
58 |
+ -DUSE_TURBOJPEG=$(usex system-jpeg) |
59 |
+ -DUSE_JPEGLS=$(usex jpeg-ls) |
60 |
+ -DUSE_OPENJPEG=$(usex jpeg2k) |
61 |
+ ) |
62 |
+ |
63 |
+ cmake_src_configure |
64 |
+} |
65 |
+ |
66 |
+pkg_postinst() { |
67 |
+ optfeature "parallel gzip support" app-arch/pigz |
68 |
+} |