Gentoo Archives: gentoo-commits

From: Horea Christian <horea.christ@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/spm/
Date: Fri, 26 Oct 2018 13:23:54
Message-Id: 1540560044.71bb477f72cd934fcfbf7dfec0ecc6ce611abeb4.chymera@gentoo
1 commit: 71bb477f72cd934fcfbf7dfec0ecc6ce611abeb4
2 Author: Bernd Waibel <waebbl <AT> gmail <DOT> com>
3 AuthorDate: Sat Sep 15 07:30:36 2018 +0000
4 Commit: Horea Christian <horea.christ <AT> gmail <DOT> com>
5 CommitDate: Fri Oct 26 13:20:44 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=71bb477f
7
8 sci-biology/spm: fix Manifest having wrong filesize
9
10 * update to EAPI 7
11 * update SRC_URI to point to GitHub
12
13 Package-Manager: Portage-2.3.49, Repoman-2.3.10
14 Signed-off-by: Horea Christian <horea.christ <AT> yandex.com>
15
16 sci-biology/spm/spm-12_p6470.ebuild | 20 ++++++++++----------
17 1 file changed, 10 insertions(+), 10 deletions(-)
18
19 diff --git a/sci-biology/spm/spm-12_p6470.ebuild b/sci-biology/spm/spm-12_p6470.ebuild
20 index 4b03aa133..0f8e8ec54 100644
21 --- a/sci-biology/spm/spm-12_p6470.ebuild
22 +++ b/sci-biology/spm/spm-12_p6470.ebuild
23 @@ -1,15 +1,13 @@
24 -# Copyright 1999-2015 Gentoo Foundation
25 +# Copyright 1999-2018 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27
28 -EAPI=5
29 -
30 -inherit versionator
31 -
32 -MY_PV=$(get_major_version)
33 +EAPI=7
34
35 +MY_PV_MAJ=$(ver_cut 1)
36 +MY_PV_REL=$(ver_cut 3)
37 DESCRIPTION="Analysis of brain imaging data sequences for Octave or Matlab"
38 HOMEPAGE="http://www.fil.ion.ucl.ac.uk/spm/"
39 -SRC_URI="http://www.fil.ion.ucl.ac.uk/spm/download/restricted/eldorado/${PN}${MY_PV}.zip -> ${P}.zip"
40 +SRC_URI="https://github.com/${PN}/${PN}${MY_PV_MAJ}/archive/r${MY_PV_REL}.tar.gz -> ${P}.tar.gz"
41 LICENSE="GPL-2+"
42 SLOT="0"
43 KEYWORDS="~amd64"
44 @@ -19,18 +17,20 @@ DEPEND="${RDEPEND}
45 app-arch/unzip
46 "
47
48 -S="${WORKDIR}/${PN}${MY_PV}/src"
49 +MY_PN="${PN}${MY_PV_MAJ}-r${MY_PV_REL}"
50 +S="${WORKDIR}/${MY_PN}/src"
51
52 src_prepare() {
53 + default
54 emake distclean PLATFORM=octave
55 }
56
57 src_compile() {
58 - emake -j1 PLATFORM=octave
59 + emake PLATFORM=octave
60 }
61
62 src_install() {
63 emake install PLATFORM=octave
64 insinto "$(octave-config --m-site-dir)/${P}"
65 - doins -r "${WORKDIR}/${PN}${MY_PV}"/*
66 + doins -r "${WORKDIR}/${MY_PN}"/*
67 }