diff options
author | Horea Christian <chr@chymera.eu> | 2020-06-19 12:01:29 -0400 |
---|---|---|
committer | Horea Christian <chr@chymera.eu> | 2020-06-19 12:01:29 -0400 |
commit | 644434c14f22d95edcf230733955076ecab0cf31 (patch) | |
tree | ed436a10e69bd0e3859202aca6a951559a365398 | |
parent | sci-biology/fsl: dropped deprecated versions (diff) | |
download | sci-644434c14f22d95edcf230733955076ecab0cf31.tar.gz sci-644434c14f22d95edcf230733955076ecab0cf31.tar.bz2 sci-644434c14f22d95edcf230733955076ecab0cf31.zip |
sci-biology/afni: version bump 20.1.16
Package-Manager: Portage-2.3.101, Repoman-2.3.22
Signed-off-by: Horea Christian <chr@chymera.eu>
-rw-r--r-- | sci-biology/afni/Manifest | 1 | ||||
-rw-r--r-- | sci-biology/afni/afni-20.1.16.ebuild | 72 |
2 files changed, 73 insertions, 0 deletions
diff --git a/sci-biology/afni/Manifest b/sci-biology/afni/Manifest index bce4f277c..30824931e 100644 --- a/sci-biology/afni/Manifest +++ b/sci-biology/afni/Manifest @@ -1 +1,2 @@ DIST afni-19.3.12.tar.gz 42337320 BLAKE2B f8f3347e38b7c4b3d720c3c49d5bc50f1057b1d3945e6a33b8415e84e7e539577e5eb351cfc61c53269b6a465619f900b9edcb25830ea056a53f54beb683b0ad SHA512 c4f9303312a89a6e87285646f58223df40b07329cf155bf251a48e8e63302988f103a97363d0666ddd8e9f62f762cf0c219bfc995265b4fe1f1ff5f782025371 +DIST afni-20.1.16.tar.gz 43355499 BLAKE2B ad7750e64dd9f4c2ca7e5c67bd99faeb8595a41d8a16192e77202f3d307e912083affc11dcbb5da3530079b9e3cf3c2b6b470050f57d5d7af2bb35cc2322772f SHA512 e6fdb8baea6165865bae5bb186375bd65e862564c48470523a8fe026a12f00715fd21bd852bd77c4077ea444a97642c4c3d2ca8060640ba5ddd57bd7883901a6 diff --git a/sci-biology/afni/afni-20.1.16.ebuild b/sci-biology/afni/afni-20.1.16.ebuild new file mode 100644 index 000000000..4953408d6 --- /dev/null +++ b/sci-biology/afni/afni-20.1.16.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit eutils multilib pax-utils toolchain-funcs + +DESCRIPTION="An open-source environment for processing and displaying functional MRI data" +HOMEPAGE="http://afni.nimh.nih.gov/" +SRC_URI="https://github.com/afni/afni/archive/AFNI_${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-libs/expat + media-libs/glu + media-libs/netpbm + media-libs/qhull + media-video/mpeg-tools + sci-libs/gsl + sys-devel/llvm:* + virtual/jpeg:0 + x11-libs/libGLw + x11-libs/libXft + x11-libs/libXi + x11-libs/libXpm + x11-libs/motif[-static-libs]" + +# x11-libs/motif[static-libs] breaks the build. +# See upstream discussion +# http://afni.nimh.nih.gov/afni/community/board/read.php?1,85348,85348#msg-85348 + +DEPEND="${RDEPEND} + app-shells/tcsh" + +S="${WORKDIR}/${PN}-AFNI_${PV}/src" +BUILD="linux_fedora_19_64" +BIN_CONFLICTS=(qdelaunay whirlgif djpeg cjpeg qhull rbox count mpeg_encode) + +src_prepare() { + find -type f -exec sed -i -e "s/-lXp //g" {} + + cp other_builds/Makefile.${BUILD} Makefile || die "Could not copy Makefile" + # Unbundle imcat + sed -e "s/ imcat / /g" \ + -i Makefile.INCLUDE || die "Could not edit includes files." + sed -e "s~CC = /usr/bin/gcc -O2 -m64~CC = $(tc-getCC) \$(CFLAGS)~" \ + -e "s~CCMIN = /usr/bin/gcc -m64~CCMIN = $(tc-getCC) \$(CFLAGS)~" \ + -e "s~LD = /usr/bin/gcc~LD = $(tc-getCC)~" \ + -e "s~AR = /usr/bin/ar~AR = $(tc-getAR)~" \ + -e "s~RANLIB = /usr/bin/ranlib~RANLIB = $(tc-getRANLIB)~" \ + -i Makefile || die "Could not edit Makefile" + # they provide somewhat problematic makefiles :( + sed -e "s~ifeq ($(CC),gcc)~ifeq (1,1)~"\ + -i SUMA/SUMA_Makefile || die "Could not edit SUMA/SUMA_Makefile" + # upstream checks if $CC is EXACTLY gcc, else sets variables for Mac + find "${S}" -iname "*Makefile*" | xargs sed -e "s~/usr/~${EROOT}/usr/~g;" -i + eapply_user +} + +src_compile() { + emake -j1 all plugins suma_exec +} + +src_install() { + emake INSTALLDIR="${ED}/usr/bin" -j1 install install_plugins + emake INSTALLDIR="${ED}/usr/$(get_libdir)" install_lib + for CONFLICT in ${BIN_CONFLICTS[@]}; do + rm "${ED}/usr/bin/${CONFLICT}" + done +} |