1
0
mirror of synced 2024-05-29 16:58:21 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Horea Christian
6245c12184 Using python eclass functions 2024-01-16 13:47:49 -05:00
Horea Christian
7cf8171302 Trying to actually use the eclass functions 2024-01-16 13:05:23 -05:00

View File

@ -79,12 +79,12 @@ src_configure() {
fi fi
export CFLAGS="-pthread ${CFLAGS}" export CFLAGS="-pthread ${CFLAGS}"
export GIT_REPO_VERSION=3.0.1.1 export GIT_REPO_VERSION=3.0.1.1
export DO_NOT_USE_PIP=true
#export LDFLAGS="-lpthread ${LDFLAGS}" #export LDFLAGS="-lpthread ${LDFLAGS}"
#-CC="$(tc-getCC)" #-CC="$(tc-getCC)"
#-DFETCHCONTENT_SOURCE_DIR_GTS="${WORKDIR}/${P}/gts-${GTS_HASH}" #-DFETCHCONTENT_SOURCE_DIR_GTS="${WORKDIR}/${P}/gts-${GTS_HASH}"
#-DUSE_SYSTEM_GTS=OFF #-DUSE_SYSTEM_GTS=OFF
local mycmakeargs=( local mycmakeargs=(
-GNinja
-DLIBDIR=/usr/$(get_libdir) -DLIBDIR=/usr/$(get_libdir)
-DNIFTI_INSTALL_LIBRARY_DIR=/usr/$(get_libdir) -DNIFTI_INSTALL_LIBRARY_DIR=/usr/$(get_libdir)
-DGIFTI_INSTALL_LIBRARY_DIR=/usr/$(get_libdir) -DGIFTI_INSTALL_LIBRARY_DIR=/usr/$(get_libdir)
@ -101,20 +101,25 @@ src_configure() {
-DCOMP_GUI=ON -DCOMP_GUI=ON
-DCOMP_PLUGINS=ON -DCOMP_PLUGINS=ON
-DUSE_OMP=ON -DUSE_OMP=ON
-DCOMP_PYTHON=OFF #-DCOMP_PYTHON=OFF
#-DCOMP_PYTHON=ON -DCOMP_PYTHON=ON
-DPython_FIND_VIRTUALENV=STANDARD #-DSTANDARD_PYTHON_INSTALL=OFF
-DPython_FIND_STRATEGY=LOCATION #-DPython_FIND_VIRTUALENV=STANDARD
#-DPython_FIND_STRATEGY=LOCATION
-DUSE_SYSTEM_F2C=ON -DUSE_SYSTEM_F2C=ON
) )
#-DBUILD_SHARED_LIBS=OFF #-DBUILD_SHARED_LIBS=OFF
tc-export CC tc-export CC
cmake_src_configure python_foreach_impl cmake_src_configure
python_foreach_impl python_optimize
} }
src_compile() { src_compile() {
cd ../afni-9999_build python_foreach_impl cmake_src_compile
eninja || die #cmake_src_compile
#cd ../afni-9999_build
#default
#eninja || die
} }
#/work/afni-9999/nifti_clib-65f801b9c2f1f15f4de4a19d45e6595c25765632 #/work/afni-9999/nifti_clib-65f801b9c2f1f15f4de4a19d45e6595c25765632
@ -125,5 +130,8 @@ src_install() {
# File collision, upstream confirmation here: # File collision, upstream confirmation here:
# https://github.com/afni/afni/issues/558#issuecomment-1887693900 # https://github.com/afni/afni/issues/558#issuecomment-1887693900
cd ${D} cd ${D}
pwd
ls -lah
#exit
rm usr/bin/mpeg_encode rm usr/bin/mpeg_encode
} }