Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/elmer-hutiter/, sci-libs/elmer-hutiter/files/
Date: Tue, 03 Dec 2013 14:53:13
Message-Id: 1386058896.e962f32ed979ded871322bbcba8f10de0710bc93.jlec@gentoo
1 commit: e962f32ed979ded871322bbcba8f10de0710bc93
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 3 08:21:36 2013 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 3 08:21:36 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=e962f32e
7
8 sci-libs/elmer-hutiter: Bump EAPI; fix license; fix DESCRIPTION; drop keywords from live ebuild; use correct phase functions; simplify configure; build shared libraries
9
10 Package-Manager: portage-2.2.7
11
12 ---
13 sci-libs/elmer-hutiter/ChangeLog | 12 +++++
14 .../elmer-hutiter/elmer-hutiter-5.4.1-r1.ebuild | 53 ---------------------
15 sci-libs/elmer-hutiter/elmer-hutiter-5.4.1.ebuild | 38 +++++++++++++++
16 sci-libs/elmer-hutiter/elmer-hutiter-9999.ebuild | 54 +++++++++-------------
17 .../files/elmer-hutiter-5.4.1-shared.patch | 33 +++++++++++++
18 sci-libs/elmer-hutiter/metadata.xml | 5 ++
19 6 files changed, 111 insertions(+), 84 deletions(-)
20
21 diff --git a/sci-libs/elmer-hutiter/ChangeLog b/sci-libs/elmer-hutiter/ChangeLog
22 new file mode 100644
23 index 0000000..ae14a71
24 --- /dev/null
25 +++ b/sci-libs/elmer-hutiter/ChangeLog
26 @@ -0,0 +1,12 @@
27 +# ChangeLog for sci-libs/elmer-hutiter
28 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: $
30 +
31 +*elmer-hutiter-5.4.1 (03 Dec 2013)
32 +
33 + 03 Dec 2013; Justin Lecher <jlec@g.o> +elmer-hutiter-5.4.1.ebuild,
34 + -elmer-hutiter-5.4.1-r1.ebuild, elmer-hutiter-9999.ebuild,
35 + +files/elmer-hutiter-5.4.1-shared.patch, +metadata.xml:
36 + Bump EAPI; fix license; fix DESCRIPTION; drop keywords from live ebuild; use
37 + correct phase functions; simplify configure; build shared libraries
38 +
39
40 diff --git a/sci-libs/elmer-hutiter/elmer-hutiter-5.4.1-r1.ebuild b/sci-libs/elmer-hutiter/elmer-hutiter-5.4.1-r1.ebuild
41 deleted file mode 100644
42 index c9be1bc..0000000
43 --- a/sci-libs/elmer-hutiter/elmer-hutiter-5.4.1-r1.ebuild
44 +++ /dev/null
45 @@ -1,53 +0,0 @@
46 -# Copyright 1999-2007 Gentoo Foundation
47 -# Distributed under the terms of the GNU General Public License v2
48 -# $Header: $
49 -
50 -EAPI="4"
51 -
52 -inherit autotools eutils
53 -
54 -ELMER_ROOT="elmerfem"
55 -MY_PN=${PN/elmer-/}
56 -
57 -DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, hutiter library"
58 -HOMEPAGE="http://www.csc.fi/english/pages/elmer"
59 -SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
60 -RESTRICT="mirror"
61 -ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/"
62 -ESVN_PROJECT="${MY_PN}"
63 -
64 -LICENSE="GPL-2"
65 -SLOT="0"
66 -KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
67 -IUSE="debug"
68 -DEPEND="sys-libs/glibc
69 - virtual/blas"
70 -RDEPEND="${DEPEND}"
71 -
72 -S="${WORKDIR}/${PV}/hutiter"
73 -
74 -src_unpack() {
75 - unpack ${A}
76 - cd "${S}"
77 - # configure must be executable
78 - chmod +x configure
79 - eautoreconf
80 -}
81 -
82 -src_compile() {
83 - cd "${S}"
84 - local myconf
85 - export FC="gfortran"
86 - export F77="gfortran"
87 - myconf="$myconf --with-blas"
88 - use debug &&
89 - myconf="${myconf} --with-debug" ||
90 - myconf="${myconf} --without-debug"
91 - econf $myconf || die "econf failed"
92 - emake || die "emake failed"
93 -}
94 -
95 -
96 -src_install() {
97 - emake DESTDIR="${D}" install || die "emake install failed"
98 -}
99
100 diff --git a/sci-libs/elmer-hutiter/elmer-hutiter-5.4.1.ebuild b/sci-libs/elmer-hutiter/elmer-hutiter-5.4.1.ebuild
101 new file mode 100644
102 index 0000000..fbf90d4
103 --- /dev/null
104 +++ b/sci-libs/elmer-hutiter/elmer-hutiter-5.4.1.ebuild
105 @@ -0,0 +1,38 @@
106 +# Copyright 1999-2013 Gentoo Foundation
107 +# Distributed under the terms of the GNU General Public License v2
108 +# $Header: $
109 +
110 +EAPI=5
111 +
112 +AUTOTOOLS_AUTORECONF=true
113 +
114 +inherit autotools-utils toolchain-funcs
115 +
116 +ELMER_ROOT="elmerfem"
117 +MY_PN=${PN/elmer-/}
118 +
119 +DESCRIPTION="Finite element programs, libraries, and visualization tools - hutiter library"
120 +HOMEPAGE="http://www.csc.fi/english/pages/elmer"
121 +SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
122 +
123 +LICENSE="LGPL-2.1"
124 +SLOT="0"
125 +KEYWORDS="~amd64 ~x86"
126 +IUSE="debug static-libs"
127 +
128 +RDEPEND="virtual/blas"
129 +DEPEND="${RDEPEND}
130 + virtual/pkgconfig"
131 +
132 +S="${WORKDIR}"/hutiter
133 +
134 +PATCHES=( "${FILESDIR}"/${P}-shared.patch )
135 +
136 +src_configure() {
137 + local myeconfargs=(
138 + --enable-shared
139 + $(use_with debug) \
140 + --with-blas="$($(tc-getPKG_CONFIG) --libs blas)"
141 + )
142 + autotools-utils_src_configure
143 +}
144
145 diff --git a/sci-libs/elmer-hutiter/elmer-hutiter-9999.ebuild b/sci-libs/elmer-hutiter/elmer-hutiter-9999.ebuild
146 index d0f90b9..17125e1 100644
147 --- a/sci-libs/elmer-hutiter/elmer-hutiter-9999.ebuild
148 +++ b/sci-libs/elmer-hutiter/elmer-hutiter-9999.ebuild
149 @@ -1,48 +1,40 @@
150 -# Copyright 1999-2007 Gentoo Foundation
151 +# Copyright 1999-2013 Gentoo Foundation
152 # Distributed under the terms of the GNU General Public License v2
153 # $Header: $
154
155 -EAPI="4"
156 +EAPI=5
157
158 -inherit autotools eutils subversion
159 +AUTOTOOLS_AUTORECONF=true
160 +
161 +inherit autotools-utils toolchain-funcs subversion
162
163 ELMER_ROOT="elmerfem"
164 MY_PN=${PN/elmer-/}
165
166 -DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, hutiter library"
167 +DESCRIPTION="Finite element programs, libraries, and visualization tools - hutiter library"
168 HOMEPAGE="http://www.csc.fi/english/pages/elmer"
169 -#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
170 SRC_URI=""
171 -RESTRICT="mirror"
172 ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}"
173 ESVN_PROJECT="${MY_PN}"
174
175 -LICENSE="GPL-2"
176 +LICENSE="LGPL-2.1"
177 SLOT="0"
178 -KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
179 -IUSE="debug"
180 -DEPEND="sys-libs/glibc
181 - virtual/blas"
182 -RDEPEND="${DEPEND}"
183 -
184 -S="${WORKDIR}/${PV}/hutiter"
185 -
186 -src_prepare() {
187 - #unpack ${A}
188 - cd "${S}"
189 - # configure must be executable
190 - #chmod +x configure
191 - eautoreconf
192 -}
193 +KEYWORDS=""
194 +IUSE="debug static-libs"
195 +
196 +RDEPEND="virtual/blas"
197 +DEPEND="${RDEPEND}
198 + virtual/pkgconfig"
199 +
200 +S="${WORKDIR}"/hutiter
201 +
202 +PATCHES=( "${FILESDIR}"/${PN}-5.4.1-shared.patch )
203
204 src_configure() {
205 - cd "${S}"
206 - local myconf
207 - export FC="gfortran"
208 - export F77="gfortran"
209 - myconf="$myconf --with-blas"
210 - use debug &&
211 - myconf="${myconf} --with-debug" ||
212 - myconf="${myconf} --without-debug"
213 - econf $myconf || die "econf failed"
214 + local myeconfargs=(
215 + --enable-shared
216 + $(use_with debug) \
217 + --with-blas="$($(tc-getPKG_CONFIG) --libs blas)"
218 + )
219 + autotools-utils_src_configure
220 }
221
222 diff --git a/sci-libs/elmer-hutiter/files/elmer-hutiter-5.4.1-shared.patch b/sci-libs/elmer-hutiter/files/elmer-hutiter-5.4.1-shared.patch
223 new file mode 100644
224 index 0000000..cc7e0cd
225 --- /dev/null
226 +++ b/sci-libs/elmer-hutiter/files/elmer-hutiter-5.4.1-shared.patch
227 @@ -0,0 +1,33 @@
228 + src/Makefile.am | 5 +++--
229 + 1 file changed, 3 insertions(+), 2 deletions(-)
230 +
231 +diff --git a/src/Makefile.am b/src/Makefile.am
232 +index bdfb73f..8800d1a 100755
233 +--- a/src/Makefile.am
234 ++++ b/src/Makefile.am
235 +@@ -49,8 +49,9 @@ COMMON_SRCS = \
236 +
237 +
238 +
239 +-lib_LIBRARIES = libhuti.a
240 +-libhuti_a_SOURCES = $(COMMON_SRCS)
241 ++lib_LTLIBRARIES = libhuti.la
242 ++libhuti_la_SOURCES = $(COMMON_SRCS)
243 ++libhuti_la_LIBADD =
244 +
245 + #################################################################################
246 + # If sources are missing generate them with the preprocessor.
247 + configure.in | 2 +-
248 + 1 file changed, 1 insertion(+), 1 deletion(-)
249 +
250 +diff --git a/configure.in b/configure.in
251 +index 5b25b28..7356ca4 100755
252 +--- a/configure.in
253 ++++ b/configure.in
254 +@@ -1,5 +1,5 @@
255 + AC_INIT(src/huti_cg.src)
256 +-
257 ++LT_INIT
258 + dnl AC_PREREQ(2.59c)
259 +
260 + AC_CANONICAL_HOST
261
262 diff --git a/sci-libs/elmer-hutiter/metadata.xml b/sci-libs/elmer-hutiter/metadata.xml
263 new file mode 100644
264 index 0000000..897aa2e
265 --- /dev/null
266 +++ b/sci-libs/elmer-hutiter/metadata.xml
267 @@ -0,0 +1,5 @@
268 +<?xml version="1.0" encoding="UTF-8"?>
269 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
270 +<pkgmetadata>
271 + <herd>sci</herd>
272 +</pkgmetadata>