1 |
commit: 720da90372cf45e272f8c6f49532909e7e08103a |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 3 12:06:16 2013 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 3 12:06:16 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=720da903 |
7 |
|
8 |
sci-misc/elmer-front: Bump EAPI; fix DESCRIPTION; drop keywords from live ebuild; use correct phase functions; simplify configure; link against external metis |
9 |
|
10 |
Package-Manager: portage-2.2.7 |
11 |
|
12 |
--- |
13 |
sci-misc/elmer-front/ChangeLog | 14 ++++++ |
14 |
sci-misc/elmer-front/elmer-front-5.4.1-r1.ebuild | 56 ---------------------- |
15 |
sci-misc/elmer-front/elmer-front-6.0_p4651.ebuild | 44 +++++++++++++++++ |
16 |
sci-misc/elmer-front/elmer-front-9999.ebuild | 53 ++++++++++---------- |
17 |
.../elmer-front-6.0_p4651-out-of-source.patch | 30 ++++++++++++ |
18 |
.../files/elmer-front-6.0_p4651-tcltk8.6.patch | 55 +++++++++++++++++++++ |
19 |
.../files/elmer-front-6.0_p4651-underlinking.patch | 16 +++++++ |
20 |
sci-misc/elmer-front/metadata.xml | 5 ++ |
21 |
8 files changed, 189 insertions(+), 84 deletions(-) |
22 |
|
23 |
diff --git a/sci-misc/elmer-front/ChangeLog b/sci-misc/elmer-front/ChangeLog |
24 |
new file mode 100644 |
25 |
index 0000000..7186253 |
26 |
--- /dev/null |
27 |
+++ b/sci-misc/elmer-front/ChangeLog |
28 |
@@ -0,0 +1,14 @@ |
29 |
+# ChangeLog for sci-misc/elmer-front |
30 |
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
31 |
+# $Header: $ |
32 |
+ |
33 |
+*elmer-front-6.0_p4651 (03 Dec 2013) |
34 |
+ |
35 |
+ 03 Dec 2013; Justin Lecher <jlec@g.o> -elmer-front-5.4.1-r1.ebuild, |
36 |
+ +elmer-front-6.0_p4651.ebuild, elmer-front-9999.ebuild, |
37 |
+ +files/elmer-front-6.0_p4651-out-of-source.patch, |
38 |
+ +files/elmer-front-6.0_p4651-tcltk8.6.patch, |
39 |
+ +files/elmer-front-6.0_p4651-underlinking.patch, +metadata.xml: |
40 |
+ Bump EAPI; fix DESCRIPTION; drop keywords from live ebuild; use correct phase |
41 |
+ functions; simplify configure; link against external metis |
42 |
+ |
43 |
|
44 |
diff --git a/sci-misc/elmer-front/elmer-front-5.4.1-r1.ebuild b/sci-misc/elmer-front/elmer-front-5.4.1-r1.ebuild |
45 |
deleted file mode 100644 |
46 |
index b2b98f7..0000000 |
47 |
--- a/sci-misc/elmer-front/elmer-front-5.4.1-r1.ebuild |
48 |
+++ /dev/null |
49 |
@@ -1,56 +0,0 @@ |
50 |
-# Copyright 1999-2007 Gentoo Foundation |
51 |
-# Distributed under the terms of the GNU General Public License v2 |
52 |
-# $Header: $ |
53 |
- |
54 |
-EAPI="4" |
55 |
- |
56 |
-inherit autotools eutils |
57 |
- |
58 |
-ELMER_ROOT="elmerfem" |
59 |
-MY_PN=${PN/elmer-/} |
60 |
- |
61 |
-DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmer frontend" |
62 |
-HOMEPAGE="http://www.csc.fi/english/pages/elmer" |
63 |
-SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz" |
64 |
-RESTRICT="mirror" |
65 |
- |
66 |
-LICENSE="GPL-2" |
67 |
-SLOT="0" |
68 |
-KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
69 |
-IUSE="X debug" |
70 |
-DEPEND="=dev-lang/tcl-8.4* |
71 |
- =dev-lang/tk-8.4* |
72 |
- sci-libs/matc |
73 |
- sci-libs/elmer-eio |
74 |
- virtual/opengl" |
75 |
-RDEPEND="${DEPEND}" |
76 |
- |
77 |
-S="${WORKDIR}/${PV}/front" |
78 |
- |
79 |
-src_unpack() { |
80 |
- unpack ${A} |
81 |
- cd "${S}" |
82 |
- # configure must be executable |
83 |
- chmod +x configure |
84 |
- epatch ${FILESDIR}/elmer-front-Makefile-install.patch |
85 |
- eautoreconf |
86 |
-} |
87 |
- |
88 |
-src_compile() { |
89 |
- cd "${S}" |
90 |
- local myconf |
91 |
- export FC="gfortran" |
92 |
- export F77="gfortran" |
93 |
- myconf="${myconf} --with-eioc --with-matc --with-tcltk" |
94 |
- use debug && |
95 |
- myconf="${myconf} --with-debug" || |
96 |
- myconf="${myconf} --without-debug" |
97 |
- econf $myconf \ |
98 |
- $(use_with X x) \ |
99 |
- || die "econf failed" |
100 |
- emake || die "emake failed" |
101 |
-} |
102 |
- |
103 |
-src_install() { |
104 |
- emake DESTDIR="${D}" install || die "emake install failed" |
105 |
-} |
106 |
|
107 |
diff --git a/sci-misc/elmer-front/elmer-front-6.0_p4651.ebuild b/sci-misc/elmer-front/elmer-front-6.0_p4651.ebuild |
108 |
new file mode 100644 |
109 |
index 0000000..871d33b |
110 |
--- /dev/null |
111 |
+++ b/sci-misc/elmer-front/elmer-front-6.0_p4651.ebuild |
112 |
@@ -0,0 +1,44 @@ |
113 |
+# Copyright 1999-2013 Gentoo Foundation |
114 |
+# Distributed under the terms of the GNU General Public License v2 |
115 |
+# $Header: $ |
116 |
+ |
117 |
+EAPI=5 |
118 |
+ |
119 |
+AUTOTOOLS_AUTORECONF=true |
120 |
+ |
121 |
+inherit autotools-utils multilib |
122 |
+ |
123 |
+ELMER_ROOT="elmerfem" |
124 |
+MY_PN=${PN/elmer-/} |
125 |
+ |
126 |
+DESCRIPTION="Finite element programs, libraries, and visualization tools - elmer frontend" |
127 |
+HOMEPAGE="http://www.csc.fi/english/pages/elmer" |
128 |
+SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV%_p*}/${MY_PN}/?view=tar&pathrev=4651 -> ${P}.tar.gz" |
129 |
+ |
130 |
+LICENSE="GPL-2" |
131 |
+SLOT="0" |
132 |
+KEYWORDS="~amd64 ~x86" |
133 |
+IUSE="" |
134 |
+ |
135 |
+RDEPEND=" |
136 |
+ dev-lang/tcl |
137 |
+ dev-lang/tk |
138 |
+ sci-libs/matc |
139 |
+ sci-libs/elmer-eio |
140 |
+ virtual/opengl" |
141 |
+DEPEND="${RDEPEND}" |
142 |
+ |
143 |
+S="${WORKDIR}"/front/front |
144 |
+ |
145 |
+PATCHES=( |
146 |
+ "${FILESDIR}"/${P}-tcltk8.6.patch |
147 |
+ "${FILESDIR}"/${P}-underlinking.patch |
148 |
+ "${FILESDIR}"/${P}-out-of-source.patch |
149 |
+) |
150 |
+ |
151 |
+src_configure() { |
152 |
+ local myeconfargs=( |
153 |
+ --with-eioc --with-matc --with-tcltk --with-x |
154 |
+ ) |
155 |
+ autotools-utils_src_configure |
156 |
+} |
157 |
|
158 |
diff --git a/sci-misc/elmer-front/elmer-front-9999.ebuild b/sci-misc/elmer-front/elmer-front-9999.ebuild |
159 |
index 0548410..7754b8a 100644 |
160 |
--- a/sci-misc/elmer-front/elmer-front-9999.ebuild |
161 |
+++ b/sci-misc/elmer-front/elmer-front-9999.ebuild |
162 |
@@ -1,54 +1,51 @@ |
163 |
-# Copyright 1999-2007 Gentoo Foundation |
164 |
+# Copyright 1999-2013 Gentoo Foundation |
165 |
# Distributed under the terms of the GNU General Public License v2 |
166 |
# $Header: $ |
167 |
|
168 |
-EAPI="4" |
169 |
+EAPI=5 |
170 |
|
171 |
-inherit autotools eutils subversion |
172 |
+AUTOTOOLS_AUTORECONF=true |
173 |
+ |
174 |
+inherit autotools-utils multilib subversion |
175 |
|
176 |
ELMER_ROOT="elmerfem" |
177 |
MY_PN=${PN/elmer-/} |
178 |
|
179 |
-DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmer frontend" |
180 |
+DESCRIPTION="Finite element programs, libraries, and visualization tools - elmer frontend" |
181 |
HOMEPAGE="http://www.csc.fi/english/pages/elmer" |
182 |
-#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz" |
183 |
SRC_URI="" |
184 |
-RESTRICT="mirror" |
185 |
ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}" |
186 |
ESVN_PROJECT="${MY_PN}" |
187 |
|
188 |
LICENSE="GPL-2" |
189 |
SLOT="0" |
190 |
-KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
191 |
-IUSE="X debug" |
192 |
-DEPEND="dev-lang/tcl |
193 |
+KEYWORDS="" |
194 |
+IUSE="" |
195 |
+ |
196 |
+RDEPEND=" |
197 |
+ dev-lang/tcl |
198 |
dev-lang/tk |
199 |
sci-libs/matc |
200 |
sci-libs/elmer-eio |
201 |
virtual/opengl" |
202 |
-RDEPEND="${DEPEND}" |
203 |
+DEPEND="${RDEPEND}" |
204 |
+ |
205 |
+S="${WORKDIR}/front" |
206 |
|
207 |
-S="${WORKDIR}/${PV}/front" |
208 |
+PATCHES=( |
209 |
+ "${FILESDIR}"/${PN}-6.0_p4651-tcltk8.6.patch |
210 |
+ "${FILESDIR}"/${PN}-6.0_p4651-underlinking.patch |
211 |
+ "${FILESDIR}"/${PN}-6.0_p4651-out-of-source.patch |
212 |
+) |
213 |
|
214 |
src_prepare() { |
215 |
- #unpack ${A} |
216 |
- cd "${S}" |
217 |
- # configure must be executable |
218 |
- #chmod +x configure |
219 |
- epatch ${FILESDIR}/elmer-front-Makefile-install.patch |
220 |
- eautoreconf |
221 |
+ subversion_src_prepare |
222 |
+ autotools-utils_src_prepare |
223 |
} |
224 |
|
225 |
src_configure() { |
226 |
- cd "${S}" |
227 |
- local myconf |
228 |
- export FC="gfortran" |
229 |
- export F77="gfortran" |
230 |
- myconf="${myconf} --with-eioc --with-matc --with-tcltk" |
231 |
- use debug && |
232 |
- myconf="${myconf} --with-debug" || |
233 |
- myconf="${myconf} --without-debug" |
234 |
- econf $myconf \ |
235 |
- $(use_with X x) \ |
236 |
- || die "econf failed" |
237 |
+ local myeconfargs=( |
238 |
+ --with-eioc --with-matc --with-tcltk --with-x |
239 |
+ ) |
240 |
+ autotools-utils_src_configure |
241 |
} |
242 |
|
243 |
diff --git a/sci-misc/elmer-front/files/elmer-front-6.0_p4651-out-of-source.patch b/sci-misc/elmer-front/files/elmer-front-6.0_p4651-out-of-source.patch |
244 |
new file mode 100644 |
245 |
index 0000000..872c03f |
246 |
--- /dev/null |
247 |
+++ b/sci-misc/elmer-front/files/elmer-front-6.0_p4651-out-of-source.patch |
248 |
@@ -0,0 +1,30 @@ |
249 |
+ src/Makefile.am | 9 +++++---- |
250 |
+ 1 file changed, 5 insertions(+), 4 deletions(-) |
251 |
+ |
252 |
+diff --git a/src/Makefile.am b/src/Makefile.am |
253 |
+old mode 100755 |
254 |
+new mode 100644 |
255 |
+index 894a547..dc7c77b |
256 |
+--- a/src/Makefile.am |
257 |
++++ b/src/Makefile.am |
258 |
+@@ -87,15 +87,16 @@ endif |
259 |
+ ElmerFront_LDADD = -lX11 |
260 |
+ |
261 |
+ install-data-local: |
262 |
+- @echo "Installing tcl scripts to ${prefix}/share/elmerfront/tcl" |
263 |
++ @echo "Installing tcl scripts to ${DESTDIR}${prefix}/share/elmerfront/tcl" |
264 |
+ |
265 |
+ mkdir -p "$(DESTDIR)${prefix}/share/elmerfront/tcl" |
266 |
+- cp -r ./tcl/* "$(DESTDIR)${prefix}/share/elmerfront/tcl" |
267 |
++ cp -r "${srcdir}"/tcl/* "$(DESTDIR)${prefix}/share/elmerfront/tcl" |
268 |
++ cp -r "${builddir}"/tcl/* "$(DESTDIR)${prefix}/share/elmerfront/tcl" |
269 |
+ rm -rf `find $(DESTDIR)$(prefix)/share/elmerfront/tcl -name .svn` |
270 |
+ |
271 |
+- @echo "Installing *.edf *.rgb to ${prefix}/share/elmerfront/lib" |
272 |
++ @echo "Installing *.edf *.rgb to ${DESTDIR}${prefix}/share/elmerfront/lib" |
273 |
+ mkdir -p "$(DESTDIR)${prefix}/share/elmerfront/lib" |
274 |
+- cp -r ./lib/* "$(DESTDIR)${prefix}/share/elmerfront/lib" |
275 |
++ cp -r "${srcdir}"/lib/* "$(DESTDIR)${prefix}/share/elmerfront/lib" |
276 |
+ rm -rf `find $(DESTDIR)$(prefix)/share/elmerfront/lib -name .svn` |
277 |
+ |
278 |
+ |
279 |
|
280 |
diff --git a/sci-misc/elmer-front/files/elmer-front-6.0_p4651-tcltk8.6.patch b/sci-misc/elmer-front/files/elmer-front-6.0_p4651-tcltk8.6.patch |
281 |
new file mode 100644 |
282 |
index 0000000..7fa7605 |
283 |
--- /dev/null |
284 |
+++ b/sci-misc/elmer-front/files/elmer-front-6.0_p4651-tcltk8.6.patch |
285 |
@@ -0,0 +1,55 @@ |
286 |
+ src/ecif_userinterface_TCL.cpp | 18 +++++++++++++++++- |
287 |
+ 1 file changed, 17 insertions(+), 1 deletion(-) |
288 |
+ |
289 |
+diff --git a/src/ecif_userinterface_TCL.cpp b/src/ecif_userinterface_TCL.cpp |
290 |
+index 7f581a8..53e0432 100644 |
291 |
+--- a/src/ecif_userinterface_TCL.cpp |
292 |
++++ b/src/ecif_userinterface_TCL.cpp |
293 |
+@@ -622,7 +622,11 @@ UserInterface_TCL::createTclEnvironment(Hinst application) |
294 |
+ |
295 |
+ // *** Invoke application-specific initialization. |
296 |
+ if (My_Tcl_AppInit(interp) != TCL_OK) { |
297 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
298 |
+ WishPanic("My_Tcl_AppInit failed: %s\n", interp->result); |
299 |
++#else |
300 |
++ WishPanic("My_Tcl_AppInit failed: %s\n", Tcl_GetStringResult(interp)); |
301 |
++#endif |
302 |
+ } |
303 |
+ |
304 |
+ // Result value is the Tcl interpreter |
305 |
+@@ -4685,11 +4689,19 @@ UserInterface_TCL::sendCommandToGui(Tcl_Interp* interp, const char* cmd, const c |
306 |
+ Tcl_DStringFree( &dstring ); |
307 |
+ } |
308 |
+ |
309 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
310 |
+ if (interp->result[0] != '\0') { |
311 |
++#else |
312 |
++ if (Tcl_GetStringResult(interp)[0] != '\0') { |
313 |
++#endif |
314 |
+ |
315 |
+ char err_buf[256]; |
316 |
+ err_buf[255] = '\0'; |
317 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
318 |
+ strncpy(err_buf, interp->result, 255); |
319 |
++#else |
320 |
++ strncpy(err_buf, Tcl_GetStringResult(interp), 255); |
321 |
++#endif |
322 |
+ |
323 |
+ char cmd_buf[256]; |
324 |
+ cmd_buf[255] = '\0'; |
325 |
+@@ -5350,10 +5362,14 @@ UserInterface_TCL::start(int argc, char** argv) |
326 |
+ //--If we can't load the script (= start CONTROL-SIDE interpreter) |
327 |
+ if (code != TCL_OK) { |
328 |
+ |
329 |
+- char* p = (char *)Tcl_GetVar(theInterp, "errorInfo", glob_flag); |
330 |
++ const char* p = (const char *)Tcl_GetVar(theInterp, "errorInfo", glob_flag); |
331 |
+ |
332 |
+ if ((p == NULL) || (*p == '\0')) { |
333 |
++#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6 |
334 |
+ p = theInterp->result; |
335 |
++#else |
336 |
++ p = Tcl_GetStringResult(theInterp); |
337 |
++#endif |
338 |
+ } |
339 |
+ |
340 |
+ ((ofstream*)debugFile)->open("ElmerFront.log", ios::out); |
341 |
|
342 |
diff --git a/sci-misc/elmer-front/files/elmer-front-6.0_p4651-underlinking.patch b/sci-misc/elmer-front/files/elmer-front-6.0_p4651-underlinking.patch |
343 |
new file mode 100644 |
344 |
index 0000000..b370ed4 |
345 |
--- /dev/null |
346 |
+++ b/sci-misc/elmer-front/files/elmer-front-6.0_p4651-underlinking.patch |
347 |
@@ -0,0 +1,16 @@ |
348 |
+ src/Makefile.am | 2 ++ |
349 |
+ 1 file changed, 2 insertions(+) |
350 |
+ |
351 |
+diff --git a/src/Makefile.am b/src/Makefile.am |
352 |
+index 01e3e48..894a547 100755 |
353 |
+--- a/src/Makefile.am |
354 |
++++ b/src/Makefile.am |
355 |
+@@ -84,6 +84,8 @@ ElmerFront_SOURCES = $(COMMON_SRCS) |
356 |
+ |
357 |
+ endif |
358 |
+ |
359 |
++ElmerFront_LDADD = -lX11 |
360 |
++ |
361 |
+ install-data-local: |
362 |
+ @echo "Installing tcl scripts to ${prefix}/share/elmerfront/tcl" |
363 |
+ |
364 |
|
365 |
diff --git a/sci-misc/elmer-front/metadata.xml b/sci-misc/elmer-front/metadata.xml |
366 |
new file mode 100644 |
367 |
index 0000000..897aa2e |
368 |
--- /dev/null |
369 |
+++ b/sci-misc/elmer-front/metadata.xml |
370 |
@@ -0,0 +1,5 @@ |
371 |
+<?xml version="1.0" encoding="UTF-8"?> |
372 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
373 |
+<pkgmetadata> |
374 |
+ <herd>sci</herd> |
375 |
+</pkgmetadata> |