Gentoo Archives: gentoo-commits

From: Thomas Kahle <tom111@×××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-mathematics/Macaulay2/
Date: Tue, 29 Apr 2014 06:17:43
Message-Id: 1398752226.ccd96d132a618c8d16664d39ead557a3ec3365db.tom111@gentoo
1 commit: ccd96d132a618c8d16664d39ead557a3ec3365db
2 Author: Thomas Kahle <thomas.kahle <AT> ovgu <DOT> de>
3 AuthorDate: Tue Apr 29 06:17:06 2014 +0000
4 Commit: Thomas Kahle <tom111 <AT> gmx <DOT> de>
5 CommitDate: Tue Apr 29 06:17:06 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=ccd96d13
7
8 Fix live ebuild
9
10 Package-Manager: portage-2.2.8-r1
11
12 ---
13 sci-mathematics/Macaulay2/ChangeLog | 5 ++++-
14 sci-mathematics/Macaulay2/Macaulay2-9999.ebuild | 23 ++++++++++++-----------
15 2 files changed, 16 insertions(+), 12 deletions(-)
16
17 diff --git a/sci-mathematics/Macaulay2/ChangeLog b/sci-mathematics/Macaulay2/ChangeLog
18 index b012ef2..59afbfd 100644
19 --- a/sci-mathematics/Macaulay2/ChangeLog
20 +++ b/sci-mathematics/Macaulay2/ChangeLog
21 @@ -1,7 +1,10 @@
22 # ChangeLog for sci-mathematics/Macaulay2
23 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
24 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
25 # $Header: $
26
27 + 29 Apr 2014; Thomas Kahle <tomka@g.o> Macaulay2-9999.ebuild:
28 + Fix live ebuild
29 +
30 04 Dec 2013; Justin Lecher <jlec@g.o> Macaulay2-9999.ebuild:
31 Bump EAPI to 5; Bump to python-single-r1 eclass
32
33
34 diff --git a/sci-mathematics/Macaulay2/Macaulay2-9999.ebuild b/sci-mathematics/Macaulay2/Macaulay2-9999.ebuild
35 index 7c39878..b3a6e7f 100644
36 --- a/sci-mathematics/Macaulay2/Macaulay2-9999.ebuild
37 +++ b/sci-mathematics/Macaulay2/Macaulay2-9999.ebuild
38 @@ -17,16 +17,16 @@ HOMEPAGE="http://www.math.uiuc.edu/Macaulay2/"
39 SRC_URI="
40 ftp://www.mathematik.uni-kl.de/pub/Math/Singular/Libfac/${LIBFAC}.tar.gz
41 ftp://www.mathematik.uni-kl.de/pub/Math/Singular/Factory/factory-gftables.tar.gz
42 - http://www.math.uiuc.edu/Macaulay2/Downloads/OtherSourceCode/trunk/${FACTORY}.tar.gz
43 - http://www.math.uiuc.edu/Macaulay2/Extra/gtest-1.6.0.tar.gz
44 - http://www.mathematik.uni-osnabrueck.de/normaliz/Normaliz2.8/Normaliz2.8.zip"
45 + ftp://www.mathematik.uni-kl.de/pub/Math/Singular/Factory/${FACTORY}.tar.gz
46 + http://www.math.uiuc.edu/Macaulay2/Downloads/OtherSourceCode/trunk/gtest-1.7.0.tar.gz"
47 +# http://www.mathematik.uni-osnabrueck.de/normaliz/Normaliz2.8/Normaliz2.8.zip"
48 # Need normaliz for an up to date normaliz.m2
49 EGIT_REPO_URI="git://github.com/Macaulay2/M2.git"
50
51 SLOT="0"
52 LICENSE="GPL-2"
53 KEYWORDS=""
54 -IUSE="debug emacs optimization"
55 +IUSE="debug emacs +optimization"
56
57 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
58
59 @@ -68,12 +68,13 @@ S="${WORKDIR}/${PN}-${PV}/"
60 RESTRICT="mirror"
61
62 src_unpack (){
63 - unpack "Normaliz2.8.zip"
64 + # unpack "Normaliz2.8.zip"
65 git-r3_src_unpack
66 # Undo one level of directory until git allows to checkout
67 # subdirectories
68 mv "${S}"/M2/* "${S}" || die
69 - rmdir "${S}"/M2 || die
70 + # Need to get rid of this now because install wants this location later
71 + rm -r "${S}/M2" || die
72 }
73
74 pkg_setup () {
75 @@ -85,9 +86,9 @@ pkg_setup () {
76
77 src_prepare() {
78 # Put updated Normaliz.m2 in place
79 - cp "${WORKDIR}/Normaliz2.8/Macaulay2/Normaliz.m2" \
80 - "${S}/Macaulay2/packages" || die
81 - dos2unix "${S}/Macaulay2/packages/Normaliz.m2" || die
82 + # cp "${WORKDIR}/Normaliz2.8/Macaulay2/Normaliz.m2" \
83 + # "${S}/Macaulay2/packages" || die
84 + # dos2unix "${S}/Macaulay2/packages/Normaliz.m2" || die
85
86 # Patching .m2 files to look for external programs in
87 # /usr/bin
88 @@ -98,7 +99,6 @@ src_prepare() {
89
90 # Factory, and libfac are statically linked libraries which (in this flavor) are not used by any
91 # other program. We build them internally and don't install them
92 - mkdir "${S}/BUILD/tarfiles" || die "Creation of directory failed"
93 cp "${DISTDIR}/${FACTORY}.tar.gz" "${S}/BUILD/tarfiles/" \
94 || die "copy failed"
95 cp "${DISTDIR}/factory-gftables.tar.gz" "${S}/BUILD/tarfiles/" \
96 @@ -108,7 +108,7 @@ src_prepare() {
97 # Macaulay2 developers want that gtest is built internally because
98 # the documentation says it may fail if build with options not the
99 # same as the tested program.
100 - cp "${DISTDIR}/gtest-1.6.0.tar.gz" "${S}/BUILD/tarfiles/" \
101 + cp "${DISTDIR}/gtest-1.7.0.tar.gz" "${S}/BUILD/tarfiles/" \
102 || die "copy failed"
103
104 eautoreconf
105 @@ -126,6 +126,7 @@ src_configure (){
106 --prefix="${D}/usr" \
107 --disable-encap \
108 --disable-strip \
109 + --with-issue=Gentoo \
110 $(use_enable optimization optimize) \
111 $(use_enable debug) \
112 --enable-build-libraries="factory libfac" \