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: Wed, 29 May 2024 08:33:27 +0000 (UTC)	[thread overview]
Message-ID: <1716971489.6d9b772f10ed51682604e5c1cb6f9c278a5c6c72.chymera@gentoo> (raw)

commit:     6d9b772f10ed51682604e5c1cb6f9c278a5c6c72
Author:     Horea Christian <chr <AT> chymera <DOT> eu>
AuthorDate: Wed May 29 08:31:29 2024 +0000
Commit:     Horea Christian <horea.christ <AT> gmail <DOT> com>
CommitDate: Wed May 29 08:31:29 2024 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=6d9b772f

sci-biology/afni: correct version annotation

Signed-off-by: Horea Christian <chr <AT> chymera.eu>

 sci-biology/afni/afni-24.0.08-r3.ebuild | 125 ++++++++++++++++++++++++++++++++
 1 file changed, 125 insertions(+)

diff --git a/sci-biology/afni/afni-24.0.08-r3.ebuild b/sci-biology/afni/afni-24.0.08-r3.ebuild
new file mode 100644
index 000000000..12d6c8f87
--- /dev/null
+++ b/sci-biology/afni/afni-24.0.08-r3.ebuild
@@ -0,0 +1,125 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+
+DISTUTILS_USE_PEP517=setuptools
+inherit cmake distutils-r1 toolchain-funcs
+
+GTS_HASH="962155a01f5a1b87bd64e3e3d880b4dbc2347ac7"
+NIFTI_HASH="da476fd27f46098f37f5c9c4c1baee01e559572c"
+GIFTI_HASH="d3e873d8539d9b469daf7db04093da1d7e73d4f7"
+
+DESCRIPTION="Analysis of Functional Neuroimages by NIMH"
+HOMEPAGE="https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/"
+SRC_URI="
+	https://github.com/afni/afni/archive/refs/tags/AFNI_${PV}.tar.gz -> ${P}.gh.tar.gz
+	https://github.com/NIFTI-Imaging/nifti_clib/archive/${NIFTI_HASH}.tar.gz -> nifti-${NIFTI_HASH}.tar.gz
+	https://github.com/NIFTI-Imaging/gifti_clib/archive/${GIFTI_HASH}.tar.gz -> gifti-${GIFTI_HASH}.tar.gz
+	"
+
+S="${WORKDIR}/afni-AFNI_${PV}"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test whirlgif"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	dev-build/ninja
+	dev-libs/expat
+	dev-libs/glib:2
+	dev-libs/libf2c
+	media-libs/freeglut
+	media-libs/glu
+	media-libs/netpbm
+	media-libs/qhull
+	media-video/mpeg-tools
+	sci-biology/afni-datasets
+	sci-libs/gsl
+	sci-libs/gts
+	sys-devel/llvm:*
+	sys-libs/libomp
+	virtual/jpeg-compat:62
+	x11-libs/libGLw
+	x11-libs/libXft
+	x11-libs/libXi
+	x11-libs/libXmu
+	x11-libs/libXpm
+	x11-libs/libXt
+	x11-libs/motif[-static-libs]
+	"
+DEPEND="
+	${RDEPEND}
+	app-shells/tcsh
+	"
+# Prospectively:
+#Update jpeg-compat to virtual/jpeg:0
+# look for xmhtlm
+
+	#tar xf "${DISTDIR}/${GTS_HASH}.tar.gz" || die
+src_prepare() {
+	tar xf "${DISTDIR}/nifti-${NIFTI_HASH}.tar.gz" || die
+	tar xf "${DISTDIR}/gifti-${GIFTI_HASH}.tar.gz" || die
+	cmake_src_prepare
+	default
+	}
+
+src_configure() {
+	if use !whirlgif; then
+		eapply "${FILESDIR}/${PN}-24.0.04-whirlgif.patch"
+	fi
+	# Fix AFNI version, no better way seemed to work
+	sed -i -e "s/GIT_REPO_VERSION \"99\.99\.99\"/GIT_REPO_VERSION ${PV}/g" cmake/get_git_repo_version.cmake
+	export CFLAGS="-pthread ${CFLAGS}"
+	local mycmakeargs=(
+		-DLIBDIR=/usr/$(get_libdir)
+		-DNIFTI_INSTALL_LIBRARY_DIR=/usr/$(get_libdir)
+		-DGIFTI_INSTALL_LIBRARY_DIR=/usr/$(get_libdir)
+		-DGIFTI_INSTALL_LIB_DIR=/usr/$(get_libdir)
+		-DAFNI_INSTALL_LIBRARY_DIR=/usr/$(get_libdir)
+		-DCMAKE_INSTALL_LIBDIR=/usr/$(get_libdir)
+		-DCOMP_COREBINARIES=ON
+		-DUSE_SYSTEM_NIFTI=OFF
+		-DUSE_SYSTEM_GIFTI=OFF
+		-DUSE_SYSTEM_XMHTML=OFF
+		-DUSE_SYSTEM_GTS=ON
+		-DFETCHCONTENT_SOURCE_DIR_NIFTI_CLIB="${WORKDIR}/nifti_clib-${NIFTI_HASH}"
+		-DFETCHCONTENT_SOURCE_DIR_GIFTI_CLIB="${WORKDIR}/gifti_clib-${GIFTI_HASH}"
+		-DCOMP_GUI=ON
+		-DCOMP_PLUGINS=ON
+		-DUSE_OMP=ON
+		-DCOMP_PYTHON=OFF
+		-DUSE_SYSTEM_F2C=ON
+	)
+	tc-export CC
+	cmake_src_configure
+}
+
+src_compile() {
+	cmake_src_compile
+	pushd src/python_scripts
+		distutils-r1_src_compile
+	popd
+}
+
+src_install() {
+	cmake_src_install
+	pushd src/python_scripts
+		distutils-r1_src_install
+	popd
+	cd "${D}"
+	rm usr/bin/mpeg_encode
+	doenvd "${FILESDIR}/97afni"
+}
+
+pkg_postinst() {
+	echo
+	einfo "Please run the following commands if you"
+	einfo "intend to use afni binaries from an existing shell:"
+	einfo "source /etc/profile"
+	echo
+}


             reply	other threads:[~2024-05-29  8:33 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-29  8:33 Horea Christian [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-12-12 11:57 [gentoo-commits] proj/sci:master commit in: sci-biology/afni/ Paul Zander
2024-05-30 21:55 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-06-19 16:01 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=1716971489.6d9b772f10ed51682604e5c1cb6f9c278a5c6c72.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