New afni CMake attempts
This commit is contained in:
parent
280484499b
commit
bb1f37f0f5
@ -1,3 +1,5 @@
|
|||||||
DIST 5eae81ba1e87ef3553df3b6ba585f12dc81a0030.tar.gz 107702 BLAKE2B fba90e459c586abe46dd9a921420650e518d622464395e29e78d427bb1cd498156a0f8430bb5096c3648fe506e2dbc47ef66c7cf4a5faa599b296a29d07e74ef SHA512 c87712c0f334e025d29d1372ddbd7299b8d5378f7ef7dc09941a10f2f9c75ad9350fe8ceb6e0f6197a5f1c27ab79e03fdfb28a97582e860c6e667b29e9b75459
|
DIST 5eae81ba1e87ef3553df3b6ba585f12dc81a0030.tar.gz 107702 BLAKE2B fba90e459c586abe46dd9a921420650e518d622464395e29e78d427bb1cd498156a0f8430bb5096c3648fe506e2dbc47ef66c7cf4a5faa599b296a29d07e74ef SHA512 c87712c0f334e025d29d1372ddbd7299b8d5378f7ef7dc09941a10f2f9c75ad9350fe8ceb6e0f6197a5f1c27ab79e03fdfb28a97582e860c6e667b29e9b75459
|
||||||
DIST 65f801b9c2f1f15f4de4a19d45e6595c25765632.tar.gz 435886 BLAKE2B 3fdad348d7fa3c86f3d9edac060aed365d88bf43b3252156e2a548901d3f14436a6ba4dccfeb83e1452d51124ac42d854f86f3e25ca675ebbeb54fa331a5921b SHA512 be03cdc6cf17fd9ff74c5ecc1f6b2132121bb4b7973a731da334af2a8428d1f0dbbf7b94b2511d1ff7e515b8cc4cf3316d62b189566fb6ffc88c6146eebd48ff
|
DIST 65f801b9c2f1f15f4de4a19d45e6595c25765632.tar.gz 435886 BLAKE2B 3fdad348d7fa3c86f3d9edac060aed365d88bf43b3252156e2a548901d3f14436a6ba4dccfeb83e1452d51124ac42d854f86f3e25ca675ebbeb54fa331a5921b SHA512 be03cdc6cf17fd9ff74c5ecc1f6b2132121bb4b7973a731da334af2a8428d1f0dbbf7b94b2511d1ff7e515b8cc4cf3316d62b189566fb6ffc88c6146eebd48ff
|
||||||
DIST 962155a01f5a1b87bd64e3e3d880b4dbc2347ac7.tar.gz 881944 BLAKE2B 48faf04e90ba0256f7773d0d1c1f35223d5a89fddc90eb363b25034015f0d75cabd58029947a9690a1071a5004a59fefc786b91626d5ecc5b1ca60d95097f2a6 SHA512 47c1888758020bcf881e7a4933eec1716118c671ac1a9bb4f4637a9634f7fd5c3b5bfa4da7fa001c2bc6abd0f2469583c1275c398836b5c77cb870507c8e7df2
|
DIST 962155a01f5a1b87bd64e3e3d880b4dbc2347ac7.tar.gz 881944 BLAKE2B 48faf04e90ba0256f7773d0d1c1f35223d5a89fddc90eb363b25034015f0d75cabd58029947a9690a1071a5004a59fefc786b91626d5ecc5b1ca60d95097f2a6 SHA512 47c1888758020bcf881e7a4933eec1716118c671ac1a9bb4f4637a9634f7fd5c3b5bfa4da7fa001c2bc6abd0f2469583c1275c398836b5c77cb870507c8e7df2
|
||||||
|
DIST d3e873d8539d9b469daf7db04093da1d7e73d4f7.tar.gz 107745 BLAKE2B b8162fe08446d5c934762e8dce051e93c8c90fd574dca55757988ccc45be20bfdd07b7a401ef6c536afbe097e6bc05fd3b7f09c4404af4fad4e21fbada7109de SHA512 c458074c6976245cffc48c1e1e57811ec3c0cc5959345bdbc8d674eed6c8a8f93e9f9762bf3acce7142e004dc37930d14bed8cfb97c5b7e92b3f39598da924e2
|
||||||
|
DIST da476fd27f46098f37f5c9c4c1baee01e559572c.tar.gz 451578 BLAKE2B 6bb92ae3ab48dba435b067f7ec0b6d417658ee1a46efe05070bf18fd6d46b8339eaffd09c2fea4971d2685f211496a700b36c255ffb164994636e535b64fe4f5 SHA512 df92345ed580e8bf0579f2ea3ed55a4c4c678a0fe3bfad1e62379e5bf16961272bb2d3e7fda89b96b503cda51c1bf2fb8eb74adba6aad9c73b6830d7d884d1f5
|
||||||
|
123
sci-biology/afni/afni-23.3.13_p20231212.ebuild
Normal file
123
sci-biology/afni/afni-23.3.13_p20231212.ebuild
Normal file
@ -0,0 +1,123 @@
|
|||||||
|
# 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_{10..11} )
|
||||||
|
|
||||||
|
inherit cmake distutils-r1 git-r3 multilib ninja-utils
|
||||||
|
|
||||||
|
GTS_HASH="962155a01f5a1b87bd64e3e3d880b4dbc2347ac7"
|
||||||
|
NIFTI_HASH="da476fd27f46098f37f5c9c4c1baee01e559572c"
|
||||||
|
GIFTI_HASH="d3e873d8539d9b469daf7db04093da1d7e73d4f7"
|
||||||
|
EGIT_COMMI="88c61486b22e3d4a68463f5f0d1030ed19b00bd2"
|
||||||
|
|
||||||
|
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"
|
||||||
|
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 GIT_REPO_VERSION=3.0.1.1
|
||||||
|
#export LDFLAGS="-lpthread ${LDFLAGS}"
|
||||||
|
#-CC="$(tc-getCC)"
|
||||||
|
local mycmakeargs=(
|
||||||
|
-GNinja
|
||||||
|
-DLIBDIR=/usr/$(get_libdir)
|
||||||
|
-DNIFTI_INSTALL_LIBRARY_DIR=/usr/$(get_libdir)
|
||||||
|
-DGIFTI_INSTALL_LIBRARY_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=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
|
||||||
|
-DPython_FIND_VIRTUALENV=STANDARD
|
||||||
|
-DPython_FIND_STRATEGY=LOCATION
|
||||||
|
)
|
||||||
|
tc-export CC
|
||||||
|
cmake_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
cd ../afni-9999_build
|
||||||
|
pwd
|
||||||
|
ls -la
|
||||||
|
eninja || die
|
||||||
|
}
|
||||||
|
|
||||||
|
#/work/afni-9999/nifti_clib-65f801b9c2f1f15f4de4a19d45e6595c25765632
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cd ../afni-9999_build
|
||||||
|
DESTDIR=${D} eninja 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
|
||||||
|
}
|
@ -4,7 +4,7 @@
|
|||||||
EAPI=7
|
EAPI=7
|
||||||
|
|
||||||
#CMAKE_MAKEFILE_GENERATOR="emake"
|
#CMAKE_MAKEFILE_GENERATOR="emake"
|
||||||
PYTHON_COMPAT=( python3_{8..10} )
|
PYTHON_COMPAT=( python3_{10..11} )
|
||||||
|
|
||||||
inherit cmake distutils-r1 git-r3 multilib ninja-utils
|
inherit cmake distutils-r1 git-r3 multilib ninja-utils
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user