Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/afni/, sci-biology/afni/files/
Date: Fri, 01 Apr 2022 09:07:02
Message-Id: 1648803938.34f54dc027e97c6df729cede84253f6555e6c45e.andrewammerlaan@gentoo
1 commit: 34f54dc027e97c6df729cede84253f6555e6c45e
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 1 09:05:26 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 1 09:05:38 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=34f54dc0
7
8 sci-biology/afni: add 22.0.21, drop 22.0.03
9
10 Restore patch dropping py2.7 dep
11
12 TODO: make build system respect *FLAGS
13 TODO: Switch to cmake? This is non-trivial because the
14 cmake build system wants to fetch deps from the internet
15
16 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
17
18 .../afni/{afni-22.0.03.ebuild => afni-22.0.21.ebuild} | 19 +++++++++++++------
19 sci-biology/afni/files/afni-22.0.21-python.patch | 13 +++++++++++++
20 2 files changed, 26 insertions(+), 6 deletions(-)
21
22 diff --git a/sci-biology/afni/afni-22.0.03.ebuild b/sci-biology/afni/afni-22.0.21.ebuild
23 similarity index 91%
24 rename from sci-biology/afni/afni-22.0.03.ebuild
25 rename to sci-biology/afni/afni-22.0.21.ebuild
26 index 9e831b018..5a015dafc 100644
27 --- a/sci-biology/afni/afni-22.0.03.ebuild
28 +++ b/sci-biology/afni/afni-22.0.21.ebuild
29 @@ -8,14 +8,16 @@ inherit toolchain-funcs
30 DESCRIPTION="An open-source environment for processing and displaying functional MRI data"
31 HOMEPAGE="http://afni.nimh.nih.gov/"
32 SRC_URI="https://github.com/afni/afni/archive/AFNI_${PV}.tar.gz -> ${P}.tar.gz"
33 +S="${WORKDIR}/${PN}-AFNI_${PV}/src"
34
35 LICENSE="GPL-3+"
36 SLOT="0"
37 -# fully broken due to upstream cmake migration
38 -KEYWORDS=""
39 -IUSE=""
40 +KEYWORDS="~amd64"
41
42 -RDEPEND="dev-libs/expat
43 +RDEPEND="
44 + dev-libs/libf2c
45 + dev-libs/expat
46 + media-libs/freeglut
47 media-libs/glu
48 media-libs/netpbm
49 media-libs/qhull
50 @@ -31,9 +33,14 @@ RDEPEND="dev-libs/expat
51 "
52
53 DEPEND="${RDEPEND}
54 - app-shells/tcsh"
55 + app-shells/tcsh
56 +"
57 +
58 +PATCHES=(
59 + # Drop python2.7 dependency
60 + "${FILESDIR}/${P}-python.patch"
61 +)
62
63 -S="${WORKDIR}/${PN}-AFNI_${PV}/src"
64 BUILD="linux_fedora_19_64"
65 BIN_CONFLICTS=(qdelaunay whirlgif djpeg cjpeg qhull rbox count)
66
67
68 diff --git a/sci-biology/afni/files/afni-22.0.21-python.patch b/sci-biology/afni/files/afni-22.0.21-python.patch
69 new file mode 100644
70 index 000000000..f31cc051b
71 --- /dev/null
72 +++ b/sci-biology/afni/files/afni-22.0.21-python.patch
73 @@ -0,0 +1,13 @@
74 +diff --git a/other_builds/Makefile.linux_fedora_19_64 b/other_builds/Makefile.linux_fedora_19_64
75 +index ebaa9d5..1471081 100644
76 +--- a/other_builds/Makefile.linux_fedora_19_64
77 ++++ b/other_builds/Makefile.linux_fedora_19_64
78 +@@ -11,8 +11,6 @@ LGIFTI = -lexpat
79 +
80 + # ------------------------------
81 + # python from C
82 +-IPYTHON = -DSELENIUM_READY -I/usr/include/python2.7
83 +-LDPYTHON = -lpython2.7
84 +
85 + # ----------------------------------------------------------------------
86 + # X configuration