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