public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Horea Christian" <horea.christ@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/afni/
Date: Fri, 19 Jun 2020 16:01:43 +0000 (UTC)	[thread overview]
Message-ID: <1592582489.644434c14f22d95edcf230733955076ecab0cf31.chymera@gentoo> (raw)

commit:     644434c14f22d95edcf230733955076ecab0cf31
Author:     Horea Christian <chr <AT> chymera <DOT> eu>
AuthorDate: Fri Jun 19 16:01:29 2020 +0000
Commit:     Horea Christian <horea.christ <AT> gmail <DOT> com>
CommitDate: Fri Jun 19 16:01:29 2020 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=644434c1

sci-biology/afni: version bump 20.1.16

Package-Manager: Portage-2.3.101, Repoman-2.3.22
Signed-off-by: Horea Christian <chr <AT> chymera.eu>

 sci-biology/afni/afni-20.1.16.ebuild | 72 ++++++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)

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
+}


             reply	other threads:[~2020-06-19 16:01 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-19 16:01 Horea Christian [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-05-30 21:55 [gentoo-commits] proj/sci:master commit in: sci-biology/afni/ Horea Christian
2024-05-29  8:33 Horea Christian
2024-05-24 13:52 Horea Christian
2024-03-22 21:34 Horea Christian
2022-04-03  8:11 Horea Christian
2022-04-01 15:41 Horea Christian
2022-04-01  8:22 Horea Christian
2021-01-03  3:46 Horea Christian
2021-01-03  3:46 Horea Christian
2020-01-16 18:28 Horea Christian
2019-11-25 18:30 Horea Christian
2019-04-25  8:50 Horea Christian
2018-06-26  1:16 Horea Christian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1592582489.644434c14f22d95edcf230733955076ecab0cf31.chymera@gentoo \
    --to=horea.christ@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox