sci-biology/afni: migrated to Gentoo Science
https://gitweb.gentoo.org/proj/sci.git/commit/?id=b3db3a9c0d4b6e6a7c24003a12eef93e4a79c73d
This commit is contained in:
parent
73774dee9a
commit
c04c12d96f
@ -1,6 +0,0 @@
|
|||||||
*afni-19.3.12 (25 Nov 2019)
|
|
||||||
*afni-9999 (25 Nov 2019)
|
|
||||||
|
|
||||||
25 Nov 2019; <chymera@gentoo.org> +afni-19.3.12.ebuild, +afni-9999.ebuild,
|
|
||||||
+metadata.xml:
|
|
||||||
sci-biology/afni: afni version bump ahead of Gentoo Science
|
|
@ -1 +0,0 @@
|
|||||||
DIST afni-19.3.12.tar.gz 42337320 SHA256 c2181e365f319f62f292f85562fdffde47cea39028941bd66d5cac0675744c27 SHA512 c4f9303312a89a6e87285646f58223df40b07329cf155bf251a48e8e63302988f103a97363d0666ddd8e9f62f762cf0c219bfc995265b4fe1f1ff5f782025371 WHIRLPOOL cda9340a465051653f0bb6f82d1a0da282dba24ddd159c87b1b54b198dd9208486c11fd8c67367c9e94d8b4042f0298556b222fb1a54074eae1cf054cf5fc9eb
|
|
@ -1,72 +0,0 @@
|
|||||||
# Copyright 1999-2019 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit eutils multilib pax-utils toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="An open-source environment for processing and displaying functional MRI data"
|
|
||||||
HOMEPAGE="http://afni.nimh.nih.gov/"
|
|
||||||
SRC_URI="https://github.com/afni/afni/archive/AFNI_${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-3+"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RDEPEND="dev-libs/expat
|
|
||||||
media-libs/glu
|
|
||||||
media-libs/netpbm
|
|
||||||
media-libs/qhull
|
|
||||||
media-video/mpeg-tools
|
|
||||||
sci-libs/gsl
|
|
||||||
sys-devel/llvm:*
|
|
||||||
virtual/jpeg:0
|
|
||||||
x11-libs/libGLw
|
|
||||||
x11-libs/libXft
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXpm
|
|
||||||
x11-libs/motif[-static-libs]"
|
|
||||||
|
|
||||||
# x11-libs/motif[static-libs] breaks the build.
|
|
||||||
# See upstream discussion
|
|
||||||
# http://afni.nimh.nih.gov/afni/community/board/read.php?1,85348,85348#msg-85348
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
app-shells/tcsh"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${PN}-AFNI_${PV}/src"
|
|
||||||
BUILD="linux_fedora_19_64"
|
|
||||||
BIN_CONFLICTS=(qdelaunay whirlgif djpeg cjpeg qhull rbox count mpeg_encode)
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
find -type f -exec sed -i -e "s/-lXp //g" {} +
|
|
||||||
cp other_builds/Makefile.${BUILD} Makefile || die "Could not copy Makefile"
|
|
||||||
# Unbundle imcat
|
|
||||||
sed -e "s/ imcat / /g" \
|
|
||||||
-i Makefile.INCLUDE || die "Could not edit includes files."
|
|
||||||
sed -e "s~CC = /usr/bin/gcc -O2 -m64~CC = $(tc-getCC) \$(CFLAGS)~" \
|
|
||||||
-e "s~CCMIN = /usr/bin/gcc -m64~CCMIN = $(tc-getCC) \$(CFLAGS)~" \
|
|
||||||
-e "s~LD = /usr/bin/gcc~LD = $(tc-getCC)~" \
|
|
||||||
-e "s~AR = /usr/bin/ar~AR = $(tc-getAR)~" \
|
|
||||||
-e "s~RANLIB = /usr/bin/ranlib~RANLIB = $(tc-getRANLIB)~" \
|
|
||||||
-i Makefile || die "Could not edit Makefile"
|
|
||||||
# they provide somewhat problematic makefiles :(
|
|
||||||
sed -e "s~ifeq ($(CC),gcc)~ifeq (1,1)~"\
|
|
||||||
-i SUMA/SUMA_Makefile || die "Could not edit SUMA/SUMA_Makefile"
|
|
||||||
# upstream checks if $CC is EXACTLY gcc, else sets variables for Mac
|
|
||||||
find "${S}" -iname "*Makefile*" | xargs sed -e "s~/usr/~${EROOT}/usr/~g;" -i
|
|
||||||
eapply_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake -j1 all plugins suma_exec
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake INSTALLDIR="${ED}/usr/bin" -j1 install install_plugins
|
|
||||||
emake INSTALLDIR="${ED}/usr/$(get_libdir)" -j1 install_lib
|
|
||||||
for CONFLICT in ${BIN_CONFLICTS[@]}; do
|
|
||||||
rm "${ED}/usr/bin/${CONFLICT}"
|
|
||||||
done
|
|
||||||
}
|
|
@ -1,70 +0,0 @@
|
|||||||
# Copyright 1999-2019 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit eutils multilib pax-utils git-r3 toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="An open-source environment for processing and displaying functional MRI data"
|
|
||||||
HOMEPAGE="http://afni.nimh.nih.gov/"
|
|
||||||
SRC_URI=""
|
|
||||||
EGIT_REPO_URI="https://github.com/AFNI/AFNI"
|
|
||||||
|
|
||||||
LICENSE="GPL-3+"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS=""
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RDEPEND="dev-libs/expat
|
|
||||||
media-libs/glu
|
|
||||||
media-libs/netpbm
|
|
||||||
media-libs/qhull
|
|
||||||
media-video/mpeg-tools
|
|
||||||
sci-libs/gsl
|
|
||||||
sys-devel/llvm:*
|
|
||||||
virtual/jpeg:0
|
|
||||||
x11-libs/libGLw
|
|
||||||
x11-libs/libXft
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXpm
|
|
||||||
x11-libs/motif[-static-libs]"
|
|
||||||
|
|
||||||
# x11-libs/motif[static-libs] breaks the build.
|
|
||||||
# See upstream discussion
|
|
||||||
# http://afni.nimh.nih.gov/afni/community/board/read.php?1,85348,85348#msg-85348
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
app-shells/tcsh"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${P}/src"
|
|
||||||
BUILD="linux_fedora_19_64"
|
|
||||||
BIN_CONFLICTS=(qdelaunay whirlgif djpeg cjpeg qhull rbox count mpeg_encode)
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
find -type f -exec sed -i -e "s/-lXp //g" {} +
|
|
||||||
cp other_builds/Makefile.${BUILD} Makefile || die "Could not copy Makefile"
|
|
||||||
sed -e "s~CC = /usr/bin/gcc -O2 -m64~CC = $(tc-getCC) \$(CFLAGS)~" \
|
|
||||||
-e "s~CCMIN = /usr/bin/gcc -m64~CCMIN = $(tc-getCC) \$(CFLAGS)~" \
|
|
||||||
-e "s~LD = /usr/bin/gcc~LD = $(tc-getCC)~" \
|
|
||||||
-e "s~AR = /usr/bin/ar~AR = $(tc-getAR)~" \
|
|
||||||
-e "s~RANLIB = /usr/bin/ranlib~RANLIB = $(tc-getRANLIB)~" \
|
|
||||||
-i Makefile || die "Could not edit Makefile"
|
|
||||||
# they provide somewhat problematic makefiles :(
|
|
||||||
sed -e "s~ifeq ($(CC),gcc)~ifeq (1,1)~"\
|
|
||||||
-i SUMA/SUMA_Makefile || die "Could not edit SUMA/SUMA_Makefile"
|
|
||||||
# upstream checks if $CC is EXACTLY gcc, else sets variables for Mac
|
|
||||||
find "${S}" -iname "*Makefile*" | xargs sed -e "s~/usr/~${EROOT}/usr/~g;" -i
|
|
||||||
eapply_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake -j1 all plugins suma_exec
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake INSTALLDIR="${ED}/usr/bin" -j1 install install_plugins
|
|
||||||
emake INSTALLDIR="${ED}/usr/$(get_libdir)" -j1 install_lib
|
|
||||||
for CONFLICT in ${BIN_CONFLICTS[@]}; do
|
|
||||||
rm "${ED}/usr/bin/${CONFLICT}"
|
|
||||||
done
|
|
||||||
}
|
|
@ -1,16 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>chr@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>
|
|
Loading…
x
Reference in New Issue
Block a user