1 |
commit: 9c3493015edd58f073ee3d0493753721a04a7d6b |
2 |
Author: Horea Christian <horea.christ <AT> yandex <DOT> com> |
3 |
AuthorDate: Sat Mar 2 18:05:25 2019 +0000 |
4 |
Commit: Horea Christian <horea.christ <AT> gmail <DOT> com> |
5 |
CommitDate: Sat Mar 2 18:07:33 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=9c349301 |
7 |
|
8 |
sci-biology/afni: version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
11 |
Signed-off-by: Horea Christian <horea.christ <AT> yandex.com> |
12 |
|
13 |
profiles/package.mask | 1 + |
14 |
sci-biology/afni/afni-19.0.21.ebuild | 68 ++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 69 insertions(+) |
16 |
|
17 |
diff --git a/profiles/package.mask b/profiles/package.mask |
18 |
index 25cd51884..9f3e2465b 100644 |
19 |
--- a/profiles/package.mask |
20 |
+++ b/profiles/package.mask |
21 |
@@ -39,6 +39,7 @@ sci-biology/samri |
22 |
# or more generally unbundling. Masked until unbundling |
23 |
# efforts ( https://github.com/afni/afni/pull/60 ) come to |
24 |
# fruition. |
25 |
+=sci-biology/afni-19.0.21 |
26 |
=sci-biology/afni-18.1.04 |
27 |
|
28 |
# Sebastien Fabbro <bicatali@g.o> (23 Aug 2011) |
29 |
|
30 |
diff --git a/sci-biology/afni/afni-19.0.21.ebuild b/sci-biology/afni/afni-19.0.21.ebuild |
31 |
new file mode 100644 |
32 |
index 000000000..104015772 |
33 |
--- /dev/null |
34 |
+++ b/sci-biology/afni/afni-19.0.21.ebuild |
35 |
@@ -0,0 +1,68 @@ |
36 |
+# Copyright 1999-2019 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=7 |
40 |
+ |
41 |
+inherit eutils multilib pax-utils toolchain-funcs |
42 |
+ |
43 |
+DESCRIPTION="An open-source environment for processing and displaying functional MRI data" |
44 |
+HOMEPAGE="http://afni.nimh.nih.gov/" |
45 |
+SRC_URI="https://github.com/afni/afni/archive/AFNI_${PV}.tar.gz -> ${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="GPL-3+" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+IUSE="" |
51 |
+ |
52 |
+RDEPEND="dev-libs/expat |
53 |
+ media-libs/netpbm |
54 |
+ media-libs/qhull |
55 |
+ media-video/mpeg-tools |
56 |
+ sci-libs/gsl |
57 |
+ sys-devel/llvm:* |
58 |
+ virtual/jpeg:0 |
59 |
+ x11-libs/libGLw |
60 |
+ x11-libs/libXft |
61 |
+ x11-libs/libXi |
62 |
+ x11-libs/libXpm |
63 |
+ x11-libs/motif[-static-libs]" |
64 |
+ |
65 |
+# x11-libs/motif[static-libs] breaks the build. |
66 |
+# See upstream discussion |
67 |
+# http://afni.nimh.nih.gov/afni/community/board/read.php?1,85348,85348#msg-85348 |
68 |
+ |
69 |
+DEPEND="${RDEPEND} |
70 |
+ app-shells/tcsh" |
71 |
+ |
72 |
+S="${WORKDIR}/${PN}-AFNI_${PV}/src" |
73 |
+BUILD="linux_fedora_19_64" |
74 |
+BIN_CONFLICTS=(qdelaunay whirlgif djpeg cjpeg qhull rbox count mpeg_encode) |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ find -type f -exec sed -i -e "s/-lXp //g" {} + |
78 |
+ cp other_builds/Makefile.${BUILD} Makefile || die "Could not copy Makefile" |
79 |
+ sed -e "s~CC = /usr/bin/gcc -O2 -m64~CC = $(tc-getCC) \$(CFLAGS)~" \ |
80 |
+ -e "s~CCMIN = /usr/bin/gcc -m64~CCMIN = $(tc-getCC) \$(CFLAGS)~" \ |
81 |
+ -e "s~LD = /usr/bin/gcc~LD = $(tc-getCC)~" \ |
82 |
+ -e "s~AR = /usr/bin/ar~AR = $(tc-getAR)~" \ |
83 |
+ -e "s~RANLIB = /usr/bin/ranlib~RANLIB = $(tc-getRANLIB)~" \ |
84 |
+ -i Makefile || die "Could not edit Makefile" |
85 |
+ # they provide somewhat problematic makefiles :( |
86 |
+ sed -e "s~ifeq ($(CC),gcc)~ifeq (1,1)~"\ |
87 |
+ -i SUMA/SUMA_Makefile || die "Could not edit SUMA/SUMA_Makefile" |
88 |
+ # upstream checks if $CC is EXACTLY gcc, else sets variables for Mac |
89 |
+ find "${S}" -iname "*Makefile*" | xargs sed -e "s~/usr/~${EROOT}/usr/~g;" -i |
90 |
+ eapply_user |
91 |
+} |
92 |
+ |
93 |
+src_compile() { |
94 |
+ emake -j1 all plugins suma_exec |
95 |
+} |
96 |
+ |
97 |
+src_install() { |
98 |
+ emake INSTALLDIR="${ED}/usr/bin" -j1 install install_plugins |
99 |
+ emake INSTALLDIR="${ED}/usr/$(get_libdir)" -j1 install_lib |
100 |
+ for CONFLICT in ${BIN_CONFLICTS[@]}; do |
101 |
+ rm "${ED}/usr/bin/${CONFLICT}" |
102 |
+ done |
103 |
+} |