1
0
mirror of synced 2024-12-22 04:40:17 +01:00

sci-biology/afni: new ebuild for CMake install

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Horea Christian <chr@chymera.eu>
This commit is contained in:
Horea Christian 2021-01-09 02:08:27 -05:00
parent d29b4061b7
commit 3652e78148
No known key found for this signature in database
GPG Key ID: EAA9223EE3BB378A
4 changed files with 127 additions and 0 deletions

View File

@ -0,0 +1,4 @@
*afni-9999 (09 Jan 2021)
09 Jan 2021; <chymera@gentoo.org> +afni-9999.ebuild, +metadata.xml:
sci-biology/afni: new ebuild for CMake install

View File

@ -0,0 +1,3 @@
DIST 5eae81ba1e87ef3553df3b6ba585f12dc81a0030.tar.gz 107702 SHA256 a89e657385cfc5c7631bf34d21282f3720bf243337c99d42db99332f408f4fcd SHA512 c87712c0f334e025d29d1372ddbd7299b8d5378f7ef7dc09941a10f2f9c75ad9350fe8ceb6e0f6197a5f1c27ab79e03fdfb28a97582e860c6e667b29e9b75459 WHIRLPOOL ad303ee73431054ac97f49a544280bbc847f62b0e8b9fb9d0702197fa80856fd560b03606988ef3a875e43f0a56d92b55f8fbcc333079273266900443d1b768f
DIST 65f801b9c2f1f15f4de4a19d45e6595c25765632.tar.gz 435886 SHA256 80cbfdfb24f8848de652a062be4f5c271d7858d643af4a939b6815306194144b SHA512 be03cdc6cf17fd9ff74c5ecc1f6b2132121bb4b7973a731da334af2a8428d1f0dbbf7b94b2511d1ff7e515b8cc4cf3316d62b189566fb6ffc88c6146eebd48ff WHIRLPOOL 4a3d8154ffa0500c27af2a4ccb60d0eb79ee661918023bd3dee223272e7aee1d360637f99e31414ffac105291fbc80d1f1a4b0c42b2d9fcf4a3c2c976d1ce37e
DIST 962155a01f5a1b87bd64e3e3d880b4dbc2347ac7.tar.gz 881944 SHA256 6aa544799dafaa07c976d137088828262957e0ff5bd2bc6b856ba771c8944299 SHA512 47c1888758020bcf881e7a4933eec1716118c671ac1a9bb4f4637a9634f7fd5c3b5bfa4da7fa001c2bc6abd0f2469583c1275c398836b5c77cb870507c8e7df2 WHIRLPOOL a076721deb6cf206e05df37d10acdef2522be51b1889557319e60ccf8d0b89ba2030ec7f9297bd218c651d2875c661eec1f672d944cca8f3c46989b761201210

View File

@ -0,0 +1,104 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
#CMAKE_MAKEFILE_GENERATOR="emake"
PYTHON_COMPAT=( python3_{6..8} )
inherit cmake distutils-r1 git-r3 multilib
GTS_HASH="962155a01f5a1b87bd64e3e3d880b4dbc2347ac7"
NIFTI_HASH="65f801b9c2f1f15f4de4a19d45e6595c25765632"
GIFTI_HASH="5eae81ba1e87ef3553df3b6ba585f12dc81a0030"
DESCRIPTION="Advanced Normalitazion Tools for neuroimaging"
HOMEPAGE="http://stnava.github.io/ANTs/"
SRC_URI="
https://github.com/leej3/gts/archive/${GTS_HASH}.tar.gz
https://github.com/NIFTI-Imaging/nifti_clib/archive/${NIFTI_HASH}.tar.gz
https://github.com/NIFTI-Imaging/gifti_clib/archive/${GIFTI_HASH}.tar.gz
"
EGIT_REPO_URI="https://github.com/afni/afni.git"
SLOT="0"
LICENSE="GPL-3+"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-libs/glib:2
dev-libs/libf2c
dev-libs/expat
dev-util/ninja
media-libs/freeglut
media-libs/glu
media-libs/netpbm
media-libs/qhull
media-video/mpeg-tools
sci-libs/gsl
sys-devel/llvm:*
sys-libs/libomp
dev-libs/libpthread-stubs
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:
#sci-libs/gts
#Update jpeg-compat to virtual/jpeg:0
# look for xmhtlm
src_prepare() {
tar xf "${DISTDIR}/${GTS_HASH}.tar.gz" || die
tar xf "${DISTDIR}/${NIFTI_HASH}.tar.gz" || die
tar xf "${DISTDIR}/${GIFTI_HASH}.tar.gz" || die
cmake_src_prepare
default
}
src_configure() {
#LDFLAGS="-L${S}/${LIBDIR} ${LDFLAGS}" econf --enable-progpath="${EPREFIX}/usr/bin"
export CFLAGS="-pthread ${CFLAGS}"
#export LDFLAGS="-lpthread ${LDFLAGS}"
#-CC="$(tc-getCC)"
local mycmakeargs=(
-GNinja
-DCOMP_BINARIES=ON
-DUSE_SYSTEM_NIFTI=OFF
-DUSE_SYSTEM_GIFTI=OFF
-DUSE_SYSTEM_XMHTML=OFF
-DUSE_SYSTEM_GTS=OFF
-DFETCHCONTENT_SOURCE_DIR_GTS="${WORKDIR}/${P}/gts-${GTS_HASH}"
-DFETCHCONTENT_SOURCE_DIR_NIFTI_CLIB="${WORKDIR}/${P}/nifti_clib-${NIFTI_HASH}"
-DFETCHCONTENT_SOURCE_DIR_GIFTI_CLIB="${WORKDIR}/${P}/gifti_clib-${GIFTI_HASH}"
-DCOMP_GUI=ON
-DCOMP_PLUGINS=ON
-DUSE_OMP=ON
-DCOMP_PYTHON=OFF
)
tc-export CC
cmake_src_configure
}
#/work/afni-9999/nifti_clib-65f801b9c2f1f15f4de4a19d45e6595c25765632
#src_install() {
# BUILD_DIR="${WORKDIR}/${P}_build/ANTS-build"
# cmake_src_install
# cd "${S}/Scripts" || die "scripts dir not found"
# dobin *.sh
# dodir /usr/$(get_libdir)/ants
# insinto "/usr/$(get_libdir)/ants"
# doins *
# doenvd "${FILESDIR}"/99ants
#}

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>gentoo@chymera.eu</email>
<name>Horea Christian</name>
</maintainer>
<maintainer type="project">
<email>sci@gentoo.org</email>
<name>Gentoo Science Project</name>
</maintainer>
<longdescription>
Analysis of Functional NeuroImages (AFNI) is an open-source environment for processing and displaying
functional MRI data—a technique for mapping human brain activity.
</longdescription>
</pkgmetadata>