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/matc/files/, sci-libs/matc/
Date: Tue, 03 Dec 2013 14:53:17
Message-Id: 1386060344.8acff37f38cdd18556e8e407434f31057240b5da.jlec@gentoo
1 commit: 8acff37f38cdd18556e8e407434f31057240b5da
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 3 08:45:44 2013 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 3 08:45:44 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=8acff37f
7
8 sci-libs/matc: 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/matc/ChangeLog | 12 ++++++
14 sci-libs/matc/files/matc-5.4.1-shared.patch | 32 ++++++++++++++++
15 sci-libs/matc/matc-5.4.1-r1.ebuild | 56 ----------------------------
16 sci-libs/matc/matc-5.4.1.ebuild | 45 ++++++++++++++++++++++
17 sci-libs/matc/matc-9999.ebuild | 58 +++++++++++++----------------
18 sci-libs/matc/metadata.xml | 5 +++
19 6 files changed, 119 insertions(+), 89 deletions(-)
20
21 diff --git a/sci-libs/matc/ChangeLog b/sci-libs/matc/ChangeLog
22 new file mode 100644
23 index 0000000..57a9966
24 --- /dev/null
25 +++ b/sci-libs/matc/ChangeLog
26 @@ -0,0 +1,12 @@
27 +# ChangeLog for sci-libs/matc
28 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: $
30 +
31 +*matc-5.4.1 (03 Dec 2013)
32 +
33 + 03 Dec 2013; Justin Lecher <jlec@g.o> +matc-5.4.1.ebuild,
34 + -matc-5.4.1-r1.ebuild, matc-9999.ebuild, +files/matc-5.4.1-shared.patch,
35 + +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/matc/files/matc-5.4.1-shared.patch b/sci-libs/matc/files/matc-5.4.1-shared.patch
41 new file mode 100644
42 index 0000000..a2287da
43 --- /dev/null
44 +++ b/sci-libs/matc/files/matc-5.4.1-shared.patch
45 @@ -0,0 +1,32 @@
46 + configure.in | 2 +-
47 + src/Makefile.am | 6 +++---
48 + 2 files changed, 4 insertions(+), 4 deletions(-)
49 +
50 +diff --git a/configure.in b/configure.in
51 +index 3e5cd27..1d8b065 100755
52 +--- a/configure.in
53 ++++ b/configure.in
54 +@@ -4,7 +4,7 @@ dnl TODO: get fortran name mangling sceme and use it in the fortran api (spfortr
55 + dnl using the convenience macros provided by automake
56 +
57 + AC_INIT(src/eig.c)
58 +-
59 ++LT_INIT
60 + AC_CANONICAL_HOST
61 + AC_CANONICAL_TARGET
62 +
63 +diff --git a/src/Makefile.am b/src/Makefile.am
64 +index 2e39c11..e10a91d 100755
65 +--- a/src/Makefile.am
66 ++++ b/src/Makefile.am
67 +@@ -45,7 +45,7 @@ matc_SOURCES = main.c
68 +
69 + endif
70 +
71 +-matc_LDADD = libmatc.a
72 ++matc_LDADD = libmatc.la
73 +
74 +-lib_LIBRARIES = libmatc.a
75 +-libmatc_a_SOURCES = $(COMMON_SRCS)
76 ++lib_LTLIBRARIES = libmatc.la
77 ++libmatc_la_SOURCES = $(COMMON_SRCS)
78
79 diff --git a/sci-libs/matc/matc-5.4.1-r1.ebuild b/sci-libs/matc/matc-5.4.1-r1.ebuild
80 deleted file mode 100644
81 index 1af24ac..0000000
82 --- a/sci-libs/matc/matc-5.4.1-r1.ebuild
83 +++ /dev/null
84 @@ -1,56 +0,0 @@
85 -# Copyright 1999-2007 Gentoo Foundation
86 -# Distributed under the terms of the GNU General Public License v2
87 -# $Header: $
88 -
89 -EAPI="4"
90 -
91 -inherit autotools eutils
92 -
93 -ELMER_ROOT="elmerfem"
94 -MY_PN=${PN/elmer-/}
95 -
96 -DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, math C lib"
97 -HOMEPAGE="http://www.csc.fi/english/pages/elmer"
98 -SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz
99 -doc? ( http://www.nic.funet.fi/pub/sci/physics/elmer/doc/MATCManual.pdf )"
100 -RESTRICT="mirror"
101 -
102 -LICENSE="GPL-2"
103 -SLOT="0"
104 -KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
105 -IUSE="doc debug"
106 -DEPEND="sys-libs/ncurses
107 - sys-libs/readline
108 - sys-libs/glibc"
109 -
110 -RDEPEND="${DEPEND}"
111 -
112 -S="${WORKDIR}/${PV}/matc"
113 -
114 -src_unpack() {
115 - #unpack ${ELMER_ROOT}/${PV}.tar.gz
116 - unpack ${PV}.tar.gz
117 - cd "${S}"
118 - # we have to make configure executable. SVN snapshot...
119 - chmod +x configure
120 - eautoreconf
121 -}
122 -
123 -src_compile() {
124 - cd "${S}"
125 - local myconf
126 - export FC="gfortran"
127 - export F77="gfortran"
128 - use debug &&
129 - myconf="${myconf} --with-debug" ||
130 - myconf="${myconf} --without-debug"
131 - econf $myconf || die "econf failed"
132 - emake || die "emake failed"
133 -}
134 -
135 -
136 -src_install() {
137 - insinto /usr/share/doc/${PF}
138 - use doc && doins ${DISTDIR}/MATCManual.pdf
139 - emake DESTDIR="${D}" install || die "emake install failed"
140 -}
141
142 diff --git a/sci-libs/matc/matc-5.4.1.ebuild b/sci-libs/matc/matc-5.4.1.ebuild
143 new file mode 100644
144 index 0000000..077ea63
145 --- /dev/null
146 +++ b/sci-libs/matc/matc-5.4.1.ebuild
147 @@ -0,0 +1,45 @@
148 +# Copyright 1999-2013 Gentoo Foundation
149 +# Distributed under the terms of the GNU General Public License v2
150 +# $Header: $
151 +
152 +EAPI=5
153 +
154 +AUTOTOOLS_AUTORECONF=true
155 +
156 +inherit autotools-utils
157 +
158 +ELMER_ROOT="elmerfem"
159 +MY_PN=${PN/elmer-/}
160 +
161 +DESCRIPTION="Finite element programs, libraries, and visualization tools - math C library"
162 +HOMEPAGE="http://www.csc.fi/english/pages/elmer"
163 +SRC_URI="
164 + http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz
165 + doc? ( http://www.nic.funet.fi/pub/sci/physics/elmer/doc/MATCManual.pdf )"
166 +
167 +LICENSE="LGPL-2.1"
168 +SLOT="0"
169 +KEYWORDS="~amd64 ~x86"
170 +IUSE="doc debug static-libs"
171 +
172 +RDEPEND="
173 + sys-libs/ncurses
174 + sys-libs/readline"
175 +DEPEND="${RDEPEND}"
176 +
177 +S="${WORKDIR}"/${PN}
178 +
179 +PATCHES=( "${FILESDIR}"/${P}-shared.patch )
180 +
181 +src_configure() {
182 + local myeconfargs=(
183 + --enable-shared
184 + $(use_with debug)
185 + )
186 + autotools-utils_src_configure
187 +}
188 +
189 +src_install() {
190 + use doc && DOCS=( "${DISTDIR}"/MATCManual.pdf )
191 + autotools-utils_src_install
192 +}
193
194 diff --git a/sci-libs/matc/matc-9999.ebuild b/sci-libs/matc/matc-9999.ebuild
195 index 4868fb1..265e19a 100644
196 --- a/sci-libs/matc/matc-9999.ebuild
197 +++ b/sci-libs/matc/matc-9999.ebuild
198 @@ -1,58 +1,50 @@
199 -# Copyright 1999-2007 Gentoo Foundation
200 +# Copyright 1999-2013 Gentoo Foundation
201 # Distributed under the terms of the GNU General Public License v2
202 # $Header: $
203
204 -EAPI="4"
205 +EAPI=5
206
207 -inherit autotools eutils subversion
208 +AUTOTOOLS_AUTORECONF=true
209 +
210 +inherit autotools-utils subversion
211
212 ELMER_ROOT="elmerfem"
213 MY_PN=${PN/elmer-/}
214
215 -DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, math C lib"
216 +DESCRIPTION="Finite element programs, libraries, and visualization tools - math C library"
217 HOMEPAGE="http://www.csc.fi/english/pages/elmer"
218 -#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz
219 -#doc? ( http://www.nic.funet.fi/pub/sci/physics/elmer/doc/MATCManual.pdf )"
220 SRC_URI="doc? ( http://www.nic.funet.fi/pub/sci/physics/elmer/doc/MATCManual.pdf )"
221 -RESTRICT="mirror"
222 ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}"
223 ESVN_PROJECT="${MY_PN}"
224
225 -LICENSE="GPL-2"
226 +LICENSE="LGPL-2.1"
227 SLOT="0"
228 -KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
229 -IUSE="doc debug"
230 -DEPEND="sys-libs/ncurses
231 - sys-libs/readline
232 - sys-libs/glibc"
233 +KEYWORDS=""
234 +IUSE="doc debug static-libs"
235 +
236 +RDEPEND="
237 + sys-libs/ncurses
238 + sys-libs/readline"
239 +DEPEND="${RDEPEND}"
240
241 -RDEPEND="${DEPEND}"
242 +S="${WORKDIR}"/${PN}
243
244 -S="${WORKDIR}/${PV}/matc"
245 +PATCHES=( "${FILESDIR}"/${PN}-5.4.1-shared.patch )
246
247 src_prepare() {
248 - #unpack ${ELMER_ROOT}/${PV}.tar.gz
249 - #unpack ${PV}.tar.gz
250 - cd "${S}"
251 - # we have to make configure executable. SVN snapshot...
252 - #chmod +x configure
253 - eautoreconf
254 + subversion_src_prepare
255 + autotools-utils_src_prepare
256 }
257
258 src_configure() {
259 - cd "${S}"
260 - local myconf
261 - export FC="gfortran"
262 - export F77="gfortran"
263 - use debug &&
264 - myconf="${myconf} --with-debug" ||
265 - myconf="${myconf} --without-debug"
266 - econf $myconf || die "econf failed"
267 + local myeconfargs=(
268 + --enable-shared
269 + $(use_with debug)
270 + )
271 + autotools-utils_src_configure
272 }
273
274 -
275 src_install() {
276 - insinto /usr/share/doc/${PF}
277 - use doc && doins ${DISTDIR}/MATCManual.pdf
278 - emake DESTDIR="${D}" install || die "emake install failed"
279 + use doc && DOCS=( "${DISTDIR}"/MATCManual.pdf )
280 + autotools-utils_src_install
281 }
282
283 diff --git a/sci-libs/matc/metadata.xml b/sci-libs/matc/metadata.xml
284 new file mode 100644
285 index 0000000..897aa2e
286 --- /dev/null
287 +++ b/sci-libs/matc/metadata.xml
288 @@ -0,0 +1,5 @@
289 +<?xml version="1.0" encoding="UTF-8"?>
290 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
291 +<pkgmetadata>
292 + <herd>sci</herd>
293 +</pkgmetadata>