1 |
commit: cda66a1a4d2ab6c0cc57c15d9090eb1c59080dd0 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 3 13:34:02 2013 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 3 13:34:02 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=cda66a1a |
7 |
|
8 |
sci-misc/elmer-meshgen2d: Bump EAPI; fix DESCRIPTION; drop keywords from live ebuild; use correct phase functions; simplify configure |
9 |
|
10 |
Package-Manager: portage-2.2.7 |
11 |
|
12 |
--- |
13 |
sci-misc/elmer-meshgen2d/ChangeLog | 13 ++++++ |
14 |
.../elmer-meshgen2d-5.4.1-r1.ebuild | 49 ---------------------- |
15 |
.../elmer-meshgen2d-6.0_p4651.ebuild | 34 +++++++++++++++ |
16 |
.../elmer-meshgen2d/elmer-meshgen2d-9999.ebuild | 41 ++++++++---------- |
17 |
.../files/elmer-meshgen2d-6.0_p4651-oof.patch | 17 ++++++++ |
18 |
sci-misc/elmer-meshgen2d/metadata.xml | 5 +++ |
19 |
6 files changed, 87 insertions(+), 72 deletions(-) |
20 |
|
21 |
diff --git a/sci-misc/elmer-meshgen2d/ChangeLog b/sci-misc/elmer-meshgen2d/ChangeLog |
22 |
new file mode 100644 |
23 |
index 0000000..e50c27e |
24 |
--- /dev/null |
25 |
+++ b/sci-misc/elmer-meshgen2d/ChangeLog |
26 |
@@ -0,0 +1,13 @@ |
27 |
+# ChangeLog for sci-misc/elmer-meshgen2d |
28 |
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: $ |
30 |
+ |
31 |
+*elmer-meshgen2d-6.0_p4651 (03 Dec 2013) |
32 |
+ |
33 |
+ 03 Dec 2013; Justin Lecher <jlec@g.o> |
34 |
+ -elmer-meshgen2d-5.4.1-r1.ebuild, +elmer-meshgen2d-6.0_p4651.ebuild, |
35 |
+ elmer-meshgen2d-9999.ebuild, +files/elmer-meshgen2d-6.0_p4651-oof.patch, |
36 |
+ +metadata.xml: |
37 |
+ Bump EAPI; fix DESCRIPTION; drop keywords from live ebuild; use correct phase |
38 |
+ functions; simplify configure |
39 |
+ |
40 |
|
41 |
diff --git a/sci-misc/elmer-meshgen2d/elmer-meshgen2d-5.4.1-r1.ebuild b/sci-misc/elmer-meshgen2d/elmer-meshgen2d-5.4.1-r1.ebuild |
42 |
deleted file mode 100644 |
43 |
index 66f7210..0000000 |
44 |
--- a/sci-misc/elmer-meshgen2d/elmer-meshgen2d-5.4.1-r1.ebuild |
45 |
+++ /dev/null |
46 |
@@ -1,49 +0,0 @@ |
47 |
-# Copyright 1999-2007 Gentoo Foundation |
48 |
-# Distributed under the terms of the GNU General Public License v2 |
49 |
-# $Header: $ |
50 |
- |
51 |
-EAPI="4" |
52 |
- |
53 |
-inherit autotools eutils |
54 |
- |
55 |
-ELMER_ROOT="elmerfem" |
56 |
-MY_PN=${PN/elmer-/} |
57 |
- |
58 |
-DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, meshgen2d" |
59 |
-HOMEPAGE="http://www.csc.fi/english/pages/elmer" |
60 |
-SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz" |
61 |
-RESTRICT="mirror" |
62 |
- |
63 |
-LICENSE="GPL-2" |
64 |
-SLOT="0" |
65 |
-KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
66 |
-IUSE="debug" |
67 |
-DEPEND="sys-libs/glibc" |
68 |
-RDEPEND="${DEPEND}" |
69 |
- |
70 |
-S="${WORKDIR}/${PV}/meshgen2d" |
71 |
- |
72 |
-src_unpack() { |
73 |
- unpack ${A} |
74 |
- cd "${S}" |
75 |
- # configure must be executable |
76 |
- chmod +x configure |
77 |
- eautoreconf |
78 |
-} |
79 |
- |
80 |
-src_compile() { |
81 |
- cd "${S}" |
82 |
- local myconf |
83 |
- export FC="gfortran" |
84 |
- export F77="gfortran" |
85 |
- use debug && |
86 |
- myconf="${myconf} --with-debug" || |
87 |
- myconf="${myconf} --without-debug" |
88 |
- econf $myconf || die "econf failed" |
89 |
- emake || die "emake failed" |
90 |
-} |
91 |
- |
92 |
- |
93 |
-src_install() { |
94 |
- emake DESTDIR="${D}" install || die "emake install failed" |
95 |
-} |
96 |
|
97 |
diff --git a/sci-misc/elmer-meshgen2d/elmer-meshgen2d-6.0_p4651.ebuild b/sci-misc/elmer-meshgen2d/elmer-meshgen2d-6.0_p4651.ebuild |
98 |
new file mode 100644 |
99 |
index 0000000..e8ec49e |
100 |
--- /dev/null |
101 |
+++ b/sci-misc/elmer-meshgen2d/elmer-meshgen2d-6.0_p4651.ebuild |
102 |
@@ -0,0 +1,34 @@ |
103 |
+# Copyright 1999-2013 Gentoo Foundation |
104 |
+# Distributed under the terms of the GNU General Public License v2 |
105 |
+# $Header: $ |
106 |
+ |
107 |
+EAPI=5 |
108 |
+ |
109 |
+AUTOTOOLS_AUTORECONF=true |
110 |
+ |
111 |
+inherit autotools-utils |
112 |
+ |
113 |
+ELMER_ROOT="elmerfem" |
114 |
+MY_PN=${PN/elmer-/} |
115 |
+ |
116 |
+DESCRIPTION="Finite element programs, libraries, and visualization tools - meshgen2d" |
117 |
+HOMEPAGE="http://www.csc.fi/english/pages/elmer" |
118 |
+SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV%_p*}/${MY_PN}/?view=tar&pathrev=4651 -> ${P}.tar.gz" |
119 |
+ |
120 |
+LICENSE="GPL-2" |
121 |
+SLOT="0" |
122 |
+KEYWORDS="~amd64 ~x86" |
123 |
+IUSE="debug" |
124 |
+ |
125 |
+S="${WORKDIR}/meshgen2d" |
126 |
+ |
127 |
+PATCHES=( |
128 |
+ "${FILESDIR}"/${P}-oof.patch |
129 |
+) |
130 |
+ |
131 |
+src_configure() { |
132 |
+ local myeconfargs=( |
133 |
+ $(use_with debug) |
134 |
+ ) |
135 |
+ autotools-utils_src_configure |
136 |
+} |
137 |
|
138 |
diff --git a/sci-misc/elmer-meshgen2d/elmer-meshgen2d-9999.ebuild b/sci-misc/elmer-meshgen2d/elmer-meshgen2d-9999.ebuild |
139 |
index fafab98..e2cd948 100644 |
140 |
--- a/sci-misc/elmer-meshgen2d/elmer-meshgen2d-9999.ebuild |
141 |
+++ b/sci-misc/elmer-meshgen2d/elmer-meshgen2d-9999.ebuild |
142 |
@@ -1,46 +1,41 @@ |
143 |
-# Copyright 1999-2007 Gentoo Foundation |
144 |
+# Copyright 1999-2013 Gentoo Foundation |
145 |
# Distributed under the terms of the GNU General Public License v2 |
146 |
# $Header: $ |
147 |
|
148 |
-EAPI="4" |
149 |
+EAPI=5 |
150 |
|
151 |
-inherit autotools eutils subversion |
152 |
+AUTOTOOLS_AUTORECONF=true |
153 |
+ |
154 |
+inherit autotools-utils subversion |
155 |
|
156 |
ELMER_ROOT="elmerfem" |
157 |
MY_PN=${PN/elmer-/} |
158 |
|
159 |
-DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, meshgen2d" |
160 |
+DESCRIPTION="Finite element programs, libraries, and visualization tools - meshgen2d" |
161 |
HOMEPAGE="http://www.csc.fi/english/pages/elmer" |
162 |
-#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz" |
163 |
SRC_URI="" |
164 |
-RESTRICT="mirror" |
165 |
ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}" |
166 |
ESVN_PROJECT="${MY_PN}" |
167 |
|
168 |
LICENSE="GPL-2" |
169 |
SLOT="0" |
170 |
-KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
171 |
+KEYWORDS="~amd64 ~x86" |
172 |
IUSE="debug" |
173 |
-DEPEND="sys-libs/glibc" |
174 |
-RDEPEND="${DEPEND}" |
175 |
|
176 |
-S="${WORKDIR}/${PV}/meshgen2d" |
177 |
+S="${WORKDIR}/meshgen2d" |
178 |
+ |
179 |
+PATCHES=( |
180 |
+ "${FILESDIR}"/${PN}-6.0_p4651-oof.patch |
181 |
+) |
182 |
|
183 |
src_prepare() { |
184 |
- #unpack ${A} |
185 |
- cd "${S}" |
186 |
- # configure must be executable |
187 |
- #chmod +x configure |
188 |
- eautoreconf |
189 |
+ subversion_src_prepare |
190 |
+ autotools-utils_src_prepare |
191 |
} |
192 |
|
193 |
src_configure() { |
194 |
- cd "${S}" |
195 |
- local myconf |
196 |
- export FC="gfortran" |
197 |
- export F77="gfortran" |
198 |
- use debug && |
199 |
- myconf="${myconf} --with-debug" || |
200 |
- myconf="${myconf} --without-debug" |
201 |
- econf $myconf || die "econf failed" |
202 |
+ local myeconfargs=( |
203 |
+ $(use_with debug) |
204 |
+ ) |
205 |
+ autotools-utils_src_configure |
206 |
} |
207 |
|
208 |
diff --git a/sci-misc/elmer-meshgen2d/files/elmer-meshgen2d-6.0_p4651-oof.patch b/sci-misc/elmer-meshgen2d/files/elmer-meshgen2d-6.0_p4651-oof.patch |
209 |
new file mode 100644 |
210 |
index 0000000..49ab506 |
211 |
--- /dev/null |
212 |
+++ b/sci-misc/elmer-meshgen2d/files/elmer-meshgen2d-6.0_p4651-oof.patch |
213 |
@@ -0,0 +1,17 @@ |
214 |
+ src/Makefile.am | 3 ++- |
215 |
+ 1 file changed, 2 insertions(+), 1 deletion(-) |
216 |
+ |
217 |
+diff --git a/src/Makefile.am b/src/Makefile.am |
218 |
+index d33d999..8111609 100755 |
219 |
+--- a/src/Makefile.am |
220 |
++++ b/src/Makefile.am |
221 |
+@@ -2,7 +2,8 @@ |
222 |
+ SUBDIRS=include |
223 |
+ |
224 |
+ INCLUDES = \ |
225 |
+- -I./include |
226 |
++ -I$(srcdir)/include \ |
227 |
++ -I$(builddir)/include |
228 |
+ |
229 |
+ bin_PROGRAMS = ElmerMesh2D Mesh2D |
230 |
+ |
231 |
|
232 |
diff --git a/sci-misc/elmer-meshgen2d/metadata.xml b/sci-misc/elmer-meshgen2d/metadata.xml |
233 |
new file mode 100644 |
234 |
index 0000000..897aa2e |
235 |
--- /dev/null |
236 |
+++ b/sci-misc/elmer-meshgen2d/metadata.xml |
237 |
@@ -0,0 +1,5 @@ |
238 |
+<?xml version="1.0" encoding="UTF-8"?> |
239 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
240 |
+<pkgmetadata> |
241 |
+ <herd>sci</herd> |
242 |
+</pkgmetadata> |