sci-biology/afni: Python support unfinished
This commit is contained in:
parent
7fb5150b64
commit
e987d06dce
@ -1,7 +0,0 @@
|
|||||||
11 Jan 2021; <chymera@gentoo.org> afni-9999.ebuild:
|
|
||||||
sci-biology/afni: no keywords for live ebuild
|
|
||||||
|
|
||||||
*afni-9999 (09 Jan 2021)
|
|
||||||
|
|
||||||
09 Jan 2021; <chymera@gentoo.org> +afni-9999.ebuild, +metadata.xml:
|
|
||||||
sci-biology/afni: new ebuild for CMake install
|
|
@ -4,9 +4,9 @@
|
|||||||
EAPI=7
|
EAPI=7
|
||||||
|
|
||||||
#CMAKE_MAKEFILE_GENERATOR="emake"
|
#CMAKE_MAKEFILE_GENERATOR="emake"
|
||||||
PYTHON_COMPAT=( python3_{6..8} )
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
|
||||||
inherit cmake distutils-r1 git-r3 multilib
|
inherit cmake distutils-r1 git-r3 multilib ninja-utils
|
||||||
|
|
||||||
GTS_HASH="962155a01f5a1b87bd64e3e3d880b4dbc2347ac7"
|
GTS_HASH="962155a01f5a1b87bd64e3e3d880b4dbc2347ac7"
|
||||||
NIFTI_HASH="65f801b9c2f1f15f4de4a19d45e6595c25765632"
|
NIFTI_HASH="65f801b9c2f1f15f4de4a19d45e6595c25765632"
|
||||||
@ -19,7 +19,8 @@ SRC_URI="
|
|||||||
https://github.com/NIFTI-Imaging/nifti_clib/archive/${NIFTI_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
|
https://github.com/NIFTI-Imaging/gifti_clib/archive/${GIFTI_HASH}.tar.gz
|
||||||
"
|
"
|
||||||
EGIT_REPO_URI="https://github.com/afni/afni.git"
|
EGIT_REPO_URI="https://github.com/leej3/afni.git"
|
||||||
|
EGIT_BRANCH="make_some_build_fixes_for_gentoo_packaging"
|
||||||
|
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
LICENSE="GPL-3+"
|
LICENSE="GPL-3+"
|
||||||
@ -70,11 +71,17 @@ src_prepare() {
|
|||||||
src_configure() {
|
src_configure() {
|
||||||
#LDFLAGS="-L${S}/${LIBDIR} ${LDFLAGS}" econf --enable-progpath="${EPREFIX}/usr/bin"
|
#LDFLAGS="-L${S}/${LIBDIR} ${LDFLAGS}" econf --enable-progpath="${EPREFIX}/usr/bin"
|
||||||
export CFLAGS="-pthread ${CFLAGS}"
|
export CFLAGS="-pthread ${CFLAGS}"
|
||||||
|
export GIT_REPO_VERSION=3.0.1.1
|
||||||
#export LDFLAGS="-lpthread ${LDFLAGS}"
|
#export LDFLAGS="-lpthread ${LDFLAGS}"
|
||||||
#-CC="$(tc-getCC)"
|
#-CC="$(tc-getCC)"
|
||||||
local mycmakeargs=(
|
local mycmakeargs=(
|
||||||
-GNinja
|
-GNinja
|
||||||
-DCOMP_BINARIES=ON
|
-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_NIFTI=OFF
|
||||||
-DUSE_SYSTEM_GIFTI=OFF
|
-DUSE_SYSTEM_GIFTI=OFF
|
||||||
-DUSE_SYSTEM_XMHTML=OFF
|
-DUSE_SYSTEM_XMHTML=OFF
|
||||||
@ -86,19 +93,31 @@ src_configure() {
|
|||||||
-DCOMP_PLUGINS=ON
|
-DCOMP_PLUGINS=ON
|
||||||
-DUSE_OMP=ON
|
-DUSE_OMP=ON
|
||||||
-DCOMP_PYTHON=OFF
|
-DCOMP_PYTHON=OFF
|
||||||
|
-DPython_FIND_VIRTUALENV=STANDARD
|
||||||
|
-DPython_FIND_STRATEGY=LOCATION
|
||||||
)
|
)
|
||||||
tc-export CC
|
tc-export CC
|
||||||
cmake_src_configure
|
cmake_src_configure
|
||||||
}
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
cd ../afni-9999_build
|
||||||
|
pwd
|
||||||
|
ls -la
|
||||||
|
eninja || die
|
||||||
|
}
|
||||||
|
|
||||||
#/work/afni-9999/nifti_clib-65f801b9c2f1f15f4de4a19d45e6595c25765632
|
#/work/afni-9999/nifti_clib-65f801b9c2f1f15f4de4a19d45e6595c25765632
|
||||||
|
|
||||||
#src_install() {
|
src_install() {
|
||||||
# BUILD_DIR="${WORKDIR}/${P}_build/ANTS-build"
|
cd ../afni-9999_build
|
||||||
# cmake_src_install
|
DESTDIR=${D} eninja install
|
||||||
# cd "${S}/Scripts" || die "scripts dir not found"
|
#BUILD_DIR="${WORKDIR}/${P}_build/ANTS-build"
|
||||||
# dobin *.sh
|
#cmake_src_install
|
||||||
# dodir /usr/$(get_libdir)/ants
|
#cd "${S}/Scripts" || die "scripts dir not found"
|
||||||
# insinto "/usr/$(get_libdir)/ants"
|
#dobin *.sh
|
||||||
# doins *
|
#dodir /usr/$(get_libdir)/ants
|
||||||
# doenvd "${FILESDIR}"/99ants
|
#insinto "/usr/$(get_libdir)/ants"
|
||||||
#}
|
#doins *
|
||||||
|
#doenvd "${FILESDIR}"/99ants
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user