1 |
commit: 43c2b626dd412374d7cf5d9c0bffe4b438d1139d |
2 |
Author: Jens-Malte Gottfried <jmgottfried <AT> web <DOT> de> |
3 |
AuthorDate: Thu Mar 1 17:07:58 2012 +0000 |
4 |
Commit: Jens-Malte Gottfried <jmg <AT> godefridus <DOT> de> |
5 |
CommitDate: Thu Mar 1 17:07:58 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=43c2b626 |
7 |
|
8 |
added new petsc 3.2-p6 ebuild |
9 |
|
10 |
--- |
11 |
sci-mathematics/petsc/ChangeLog | 7 +++++ |
12 |
.../petsc/files/petsc-3.1_p8-configure-pic.patch | 11 ------- |
13 |
.../petsc/files/petsc-configure-pic.patch | 4 +- |
14 |
sci-mathematics/petsc/petsc-3.1_p8-r1.ebuild | 2 +- |
15 |
...{petsc-3.1_p8-r1.ebuild => petsc-3.2_p6.ebuild} | 29 +++++++++---------- |
16 |
5 files changed, 24 insertions(+), 29 deletions(-) |
17 |
|
18 |
diff --git a/sci-mathematics/petsc/ChangeLog b/sci-mathematics/petsc/ChangeLog |
19 |
index 7826fc6..3a12aab 100644 |
20 |
--- a/sci-mathematics/petsc/ChangeLog |
21 |
+++ b/sci-mathematics/petsc/ChangeLog |
22 |
@@ -2,6 +2,13 @@ |
23 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
24 |
# $Header: $ |
25 |
|
26 |
+*petsc-3.2_p6 (01 Mar 2012) |
27 |
+ |
28 |
+ 01 Mar 2012; Jens-Malte Gottfried <jmgottfried@×××.de> |
29 |
+ petsc-3.1_p8-r1.ebuild, -files/petsc-3.1_p8-configure-pic.patch, |
30 |
+ +petsc-3.2_p6.ebuild, files/petsc-configure-pic.patch: |
31 |
+ added new petsc 3.2-p6 ebuild |
32 |
+ |
33 |
23 Jan 2012; Sébastien Fabbro <bicatali@g.o> -petsc-3.1_p4.ebuild, |
34 |
-petsc-3.1_p5-r2.ebuild, -petsc-3.1_p7.ebuild, -petsc-3.1_p8.ebuild, |
35 |
petsc-3.1_p8-r1.ebuild: |
36 |
|
37 |
diff --git a/sci-mathematics/petsc/files/petsc-3.1_p8-configure-pic.patch b/sci-mathematics/petsc/files/petsc-3.1_p8-configure-pic.patch |
38 |
deleted file mode 100644 |
39 |
index bbfdae1..0000000 |
40 |
--- a/sci-mathematics/petsc/files/petsc-3.1_p8-configure-pic.patch |
41 |
+++ /dev/null |
42 |
@@ -1,11 +0,0 @@ |
43 |
---- config/BuildSystem/config/setCompilers.py.old 2010-09-07 21:41:32.693103846 +0200 |
44 |
-+++ config/BuildSystem/config/setCompilers.py 2010-09-07 21:41:45.322093881 +0200 |
45 |
-@@ -875,7 +875,7 @@ |
46 |
- languages.append('FC') |
47 |
- for language in languages: |
48 |
- self.pushLanguage(language) |
49 |
-- for testFlag in ['-PIC', '-fPIC', '-KPIC','-qpic']: |
50 |
-+ for testFlag in ['-fPIC', '-PIC', '-KPIC', '-qpic']: |
51 |
- try: |
52 |
- self.framework.logPrint('Trying '+language+' compiler flag '+testFlag) |
53 |
- if not self.checkLinkerFlag(testFlag): |
54 |
|
55 |
diff --git a/sci-mathematics/petsc/files/petsc-configure-pic.patch b/sci-mathematics/petsc/files/petsc-configure-pic.patch |
56 |
index 51e1132..bbfdae1 100644 |
57 |
--- a/sci-mathematics/petsc/files/petsc-configure-pic.patch |
58 |
+++ b/sci-mathematics/petsc/files/petsc-configure-pic.patch |
59 |
@@ -4,8 +4,8 @@ |
60 |
languages.append('FC') |
61 |
for language in languages: |
62 |
self.pushLanguage(language) |
63 |
-- for testFlag in ['-PIC', '-fPIC', '-KPIC']: |
64 |
-+ for testFlag in ['-fPIC', '-PIC', '-KPIC']: |
65 |
+- for testFlag in ['-PIC', '-fPIC', '-KPIC','-qpic']: |
66 |
++ for testFlag in ['-fPIC', '-PIC', '-KPIC', '-qpic']: |
67 |
try: |
68 |
self.framework.logPrint('Trying '+language+' compiler flag '+testFlag) |
69 |
if not self.checkLinkerFlag(testFlag): |
70 |
|
71 |
diff --git a/sci-mathematics/petsc/petsc-3.1_p8-r1.ebuild b/sci-mathematics/petsc/petsc-3.1_p8-r1.ebuild |
72 |
index ddd7a4c..5de7a82 100644 |
73 |
--- a/sci-mathematics/petsc/petsc-3.1_p8-r1.ebuild |
74 |
+++ b/sci-mathematics/petsc/petsc-3.1_p8-r1.ebuild |
75 |
@@ -37,7 +37,7 @@ if use hypre; then |
76 |
fi |
77 |
|
78 |
src_prepare(){ |
79 |
- epatch "${FILESDIR}/${P}-configure-pic.patch" |
80 |
+ epatch "${FILESDIR}/${PN}-configure-pic.patch" |
81 |
epatch "${FILESDIR}/${PN}-disable-rpath.patch" |
82 |
} |
83 |
|
84 |
|
85 |
diff --git a/sci-mathematics/petsc/petsc-3.1_p8-r1.ebuild b/sci-mathematics/petsc/petsc-3.2_p6.ebuild |
86 |
similarity index 88% |
87 |
copy from sci-mathematics/petsc/petsc-3.1_p8-r1.ebuild |
88 |
copy to sci-mathematics/petsc/petsc-3.2_p6.ebuild |
89 |
index ddd7a4c..178b6bc 100644 |
90 |
--- a/sci-mathematics/petsc/petsc-3.1_p8-r1.ebuild |
91 |
+++ b/sci-mathematics/petsc/petsc-3.2_p6.ebuild |
92 |
@@ -27,7 +27,9 @@ RDEPEND="mpi? ( virtual/mpi[cxx?,fortran?] ) |
93 |
" |
94 |
|
95 |
DEPEND="${RDEPEND} |
96 |
- sys-devel/gcc[-nocxx,fortran?]" |
97 |
+ sys-devel/gcc[-nocxx,fortran?] |
98 |
+ dev-util/cmake |
99 |
+" |
100 |
|
101 |
S="${WORKDIR}/${MY_P}" |
102 |
|
103 |
@@ -37,7 +39,7 @@ if use hypre; then |
104 |
fi |
105 |
|
106 |
src_prepare(){ |
107 |
- epatch "${FILESDIR}/${P}-configure-pic.patch" |
108 |
+ epatch "${FILESDIR}/${PN}-configure-pic.patch" |
109 |
epatch "${FILESDIR}/${PN}-disable-rpath.patch" |
110 |
} |
111 |
|
112 |
@@ -64,14 +66,15 @@ src_configure(){ |
113 |
myconf[19]="--with-petsc-arch=${PETSC_ARCH}" |
114 |
myconf[20]="--with-precision=double" |
115 |
myconf[21]="--with-gnu-compilers=1" |
116 |
+ myconf[22]="--with-cmake=/usr/bin/cmake" |
117 |
use amd64 \ |
118 |
- && myconf[22]="--with-64-bit-pointers=1" \ |
119 |
- || myconf[22]="--with-64-bit-pointers=0" |
120 |
+ && myconf[23]="--with-64-bit-pointers=1" \ |
121 |
+ || myconf[23]="--with-64-bit-pointers=0" |
122 |
use cxx \ |
123 |
- && myconf[23]="--with-c-support=1" |
124 |
+ && myconf[24]="--with-c-support=1" |
125 |
use amd64 \ |
126 |
- && myconf[24]="--with-64-bit-indices=1" \ |
127 |
- || myconf[24]="--with-64-bit-indices=0" |
128 |
+ && myconf[25]="--with-64-bit-indices=1" \ |
129 |
+ || myconf[25]="--with-64-bit-indices=0" |
130 |
|
131 |
if use mpi; then |
132 |
myconf[30]="--with-cc=/usr/bin/mpicc" |
133 |
@@ -90,8 +93,8 @@ src_configure(){ |
134 |
&& myconf[40]="--with-X=1" \ |
135 |
|| myconf[40]="--with-X=0" |
136 |
use static-libs \ |
137 |
- && myconf[41]="--with-shared=0" \ |
138 |
- || myconf[41]="--with-shared=1" |
139 |
+ && myconf[41]="--with-shared-libraries=0" \ |
140 |
+ || myconf[41]="--with-shared-libraries=1" |
141 |
use fortran \ |
142 |
&& myconf[43]="--with-fortran=1" \ |
143 |
|| myconf[43]="--with-fortran=0" |
144 |
@@ -106,7 +109,7 @@ src_configure(){ |
145 |
|
146 |
if use hypre; then |
147 |
# hypre cannot handle 64 bit indices, therefore disabled |
148 |
- myconf[24]="--with-64-bit-indices=0" |
149 |
+ myconf[25]="--with-64-bit-indices=0" |
150 |
myconf[52]="--with-hypre=1" |
151 |
myconf[53]="--with-hypre-include=/usr/include/hypre" |
152 |
use static-libs \ |
153 |
@@ -118,7 +121,7 @@ src_configure(){ |
154 |
|
155 |
if use metis; then |
156 |
# parmetis cannot handle 64 bit indices, therefore disabled |
157 |
- myconf[24]="--with-64-bit-indices=0" |
158 |
+ myconf[25]="--with-64-bit-indices=0" |
159 |
myconf[61]="--with-parmetis=1" |
160 |
myconf[62]="--with-parmetis-include=/usr/include/parmetis" |
161 |
myconf[63]="--with-parmetis-lib=/usr/$(get_libdir)/libparmetis.so" |
162 |
@@ -194,8 +197,4 @@ pkg_postinst() { |
163 |
elog "The petsc ebuild is still under development." |
164 |
elog "Help us improve the ebuild in:" |
165 |
elog "http://bugs.gentoo.org/show_bug.cgi?id=53386" |
166 |
- elog "This ebuild is known to have parallel build issues, " |
167 |
- elog "hopefully resolved by upstream soon." |
168 |
- elog "Another problem is that you can break this package by" |
169 |
- elog "switching your mpi implementation without rebuild petsc." |
170 |
} |