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: Sat, 26 Feb 2011 06:51:32
Message-Id: f25808fc0d5097d0181544289eb38af6d00447a3.tom111@gentoo
1 commit: f25808fc0d5097d0181544289eb38af6d00447a3
2 Author: Thomas Kahle <tomka <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 26 06:52:13 2011 +0000
4 Commit: Thomas Kahle <tom111 <AT> gmx <DOT> de>
5 CommitDate: Sat Feb 26 06:52:34 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=f25808fc
7
8 Live ebuild updated
9
10 (Portage version: 2.1.9.41/git/Linux i686, signed Manifest commit with key 0x914769A1)
11
12 ---
13 sci-mathematics/Macaulay2/ChangeLog | 5 ++-
14 sci-mathematics/Macaulay2/Macaulay2-9999.ebuild | 36 +++++++---------------
15 2 files changed, 16 insertions(+), 25 deletions(-)
16
17 diff --git a/sci-mathematics/Macaulay2/ChangeLog b/sci-mathematics/Macaulay2/ChangeLog
18 index 107a4ca..1e0b146 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-2010 Gentoo Foundation; Distributed under the GPL v2
24 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
25 # $Header: $
26
27 + 26 Feb 2011; Thomas Kahle <tomka@g.o> Macaulay2-9999.ebuild:
28 + Live ebuild updated
29 +
30 12 Nov 2010; Thomas Kahle <tomka@g.o>
31 -files/1.4_pre-paths-of-external-programs.patch,
32 -Macaulay2-1.3.1-r3.ebuild, -Macaulay2-1.4_pre.ebuild,
33
34 diff --git a/sci-mathematics/Macaulay2/Macaulay2-9999.ebuild b/sci-mathematics/Macaulay2/Macaulay2-9999.ebuild
35 index 80ce6b0..3798d86 100644
36 --- a/sci-mathematics/Macaulay2/Macaulay2-9999.ebuild
37 +++ b/sci-mathematics/Macaulay2/Macaulay2-9999.ebuild
38 @@ -1,10 +1,10 @@
39 -# Copyright 1999-2010 Gentoo Foundation
40 +# Copyright 1999-2011 Gentoo Foundation
41 # Distributed under the terms of the GNU General Public License v2
42 # $Header: $
43
44 EAPI="2"
45
46 -inherit autotools elisp-common eutils subversion
47 +inherit autotools elisp-common eutils flag-o-matic subversion
48
49 IUSE="emacs optimization"
50
51 @@ -53,6 +53,7 @@ RESTRICT="mirror"
52
53 pkg_setup () {
54 tc-export CC CPP CXX
55 + append-cppflags "-I/usr/include/frobby"
56 }
57
58 src_prepare() {
59 @@ -60,31 +61,19 @@ src_prepare() {
60 # /usr/bin
61 epatch "${FILESDIR}"/${PV}-paths-of-external-programs.patch
62
63 - # This is now a configure option:
64 -# if ! use optimization ; then
65 -# epatch "${FILESDIR}"/respect-CFLAGS.patch
66 -# fi
67 -
68 -## fixed in trunk as of 09/28/10
69 -# # The Posets-Package refers to a non-existent Graphs package.
70 -# # We dump it for now.
71 -# rm "${S}"/Macaulay2/packages/Posets.m2
72 -# sed -i "/ Posets/d" "${S}"/configure.ac
73 -# sed -i "/Posets/d" "${S}"/Macaulay2/packages/Macaulay2Doc/changes.m2
74 -
75 # Fixing make warnings about unavailable jobserver:
76 sed -i "s/\$(MAKE)/+ \$(MAKE)/g" "${S}"/distributions/Makefile.in
77
78 - # Factory, and libfac are statically linked libraries which (in this flavor)
79 - # are not used by any other program. We build them internally and don't install them
80 - # Permission was granted to tomka by bicatali on IRC.
81 - # Macaulay 2 in this version insists on a snapshot of boehm-gc that is not available elsewhere
82 - # We will let it build its internal version for now.
83 + # Factory, and libfac are statically linked libraries which (in this flavor) are not used by any
84 + # other program. We build them internally and don't install them
85 mkdir "${S}/BUILD/tarfiles" || die "Creation of directory failed"
86 cp "${DISTDIR}/factory-3-1-1.tar.gz" "${S}/BUILD/tarfiles/" \
87 || die "copy failed"
88 cp "${DISTDIR}/libfac-3-1-1.tar.gz" "${S}/BUILD/tarfiles/" \
89 || die "copy failed"
90 + # Macaulay 2 in this version insists on a snapshot of boehm-gc that is not available elsewhere
91 + # We will let it build its internal version until >=boehm-gc-7.2_alpha5 is in in tree. Note:
92 + # The resulting QA warning is known.
93 cp "${DISTDIR}/gc-7.2alpha5-2010-09-03.tar.gz" "${S}/BUILD/tarfiles/" \
94 || die "copy failed"
95
96 @@ -92,19 +81,18 @@ src_prepare() {
97 }
98
99 src_configure (){
100 -
101 # Recommended in bug #268064 Possibly unecessary
102 # but should not hurt anybody.
103 if ! use emacs; then
104 tags="ctags"
105 fi
106
107 - CPPFLAGS="-I/usr/include/frobby" \
108 - ./configure --prefix="${D}/usr" \
109 + # configure instead of econf to enable install with --prefix
110 + ./configure --prefix="${D}/usr" \
111 --disable-encap \
112 --disable-strip \
113 $(use_enable optimization optimize) \
114 - --enable-build-libraries="factory libfac" \
115 + --enable-build-libraries="factory gc libfac" \
116 --with-unbuilt-programs="4ti2 gfan normaliz nauty cddplus lrslib" \
117 || die "failed to configure Macaulay"
118 }
119 @@ -129,7 +117,6 @@ src_install () {
120
121 # Remove emacs files and install them in the
122 # correct place if use emacs
123 -
124 rm -rf "${D}"/usr/share/emacs/site-lisp
125 if use emacs; then
126 cd "${S}/Macaulay2/emacs"
127 @@ -146,6 +133,7 @@ pkg_postinst() {
128 elog "in order to set it to F12 (or choose a different one)."
129 fi
130 }
131 +
132 pkg_postrm() {
133 use emacs && elisp-site-regen
134 }