From: | "Sebastien Fabbro (bicatali)" <bicatali@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-python/pyamg: metadata.xml ChangeLog pyamg-2.0.0.ebuild |
Date: | Tue, 26 Jul 2011 19:09:35 |
Message-Id: | 20110726190917.570622004B@flycatcher.gentoo.org |
1 | bicatali 11/07/26 19:09:17 |
2 | |
3 | Added: metadata.xml ChangeLog pyamg-2.0.0.ebuild |
4 | Log: |
5 | Initial import to the main tree. Fixed tests, added doc. |
6 | |
7 | (Portage version: 2.1.10.7/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-python/pyamg/metadata.xml |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyamg/metadata.xml?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyamg/metadata.xml?rev=1.1&content-type=text/plain |
14 | |
15 | Index: metadata.xml |
16 | =================================================================== |
17 | <?xml version="1.0" encoding="UTF-8"?> |
18 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
19 | <pkgmetadata> |
20 | <herd>sci</herd> |
21 | <longdescription lang="en"> |
22 | AMG is a multilevel technique for solving large-scale linear systems |
23 | with optimal or near-optimal efficiency. Unlike geometric multigrid, |
24 | AMG requires little or no geometric information about the underlying |
25 | problem and develops a sequence of coarser grids directly from the |
26 | input matrix. This feature is especially important for problems |
27 | discretized on unstructured meshes and irregular grids. |
28 | PyAMG features implementations of: |
29 | * Ruge-Stuben (RS) or Classical AMG |
30 | * AMG based on Smoothed Aggregation (SA) |
31 | and experimental support for: |
32 | * Adaptive Smoothed Aggregation (αSA) |
33 | * Compatible Relaxation (CR) |
34 | The predominant portion of PyAMG is written in Python with a smaller |
35 | amount of supporting C++ code for performance critical operations. |
36 | </longdescription> |
37 | </pkgmetadata> |
38 | |
39 | |
40 | |
41 | 1.1 dev-python/pyamg/ChangeLog |
42 | |
43 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyamg/ChangeLog?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyamg/ChangeLog?rev=1.1&content-type=text/plain |
45 | |
46 | Index: ChangeLog |
47 | =================================================================== |
48 | # ChangeLog for dev-python/pyamg |
49 | # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
50 | # $Header: /var/cvsroot/gentoo-x86/dev-python/pyamg/ChangeLog,v 1.1 2011/07/26 19:09:17 bicatali Exp $ |
51 | |
52 | 26 Jul 2011; Sébastien Fabbro <bicatali@g.o> +pyamg-2.0.0.ebuild, |
53 | +metadata.xml: |
54 | Initial import to the main tree. Fixed tests, added doc. |
55 | |
56 | *pyamg-2.0.0 (21 Mar 2011) |
57 | |
58 | 21 Mar 2011; Nico Schlömer <nico.schloemer@×××××.com> |
59 | +pyamg-2.0.0.ebuild: |
60 | bumped to 2.0.0 |
61 | |
62 | *pyamg-1.0.0 (13 Dec 2010) |
63 | |
64 | 13 December 2010; Nico Schlömer <nico.schloemer@×××××.com> |
65 | +metadata.xml, +pyamg-1.0.0.ebuild: |
66 | Initial import. |
67 | |
68 | |
69 | |
70 | 1.1 dev-python/pyamg/pyamg-2.0.0.ebuild |
71 | |
72 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyamg/pyamg-2.0.0.ebuild?rev=1.1&view=markup |
73 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyamg/pyamg-2.0.0.ebuild?rev=1.1&content-type=text/plain |
74 | |
75 | Index: pyamg-2.0.0.ebuild |
76 | =================================================================== |
77 | # Copyright 1999-2011 Gentoo Foundation |
78 | # Distributed under the terms of the GNU General Public License v2 |
79 | # $Header: /var/cvsroot/gentoo-x86/dev-python/pyamg/pyamg-2.0.0.ebuild,v 1.1 2011/07/26 19:09:17 bicatali Exp $ |
80 | |
81 | EAPI=3 |
82 | PYTHON_DEPEND="*" |
83 | SUPPORT_PYTHON_ABIS="1" |
84 | RESTRICT_PYTHON_ABIS="3.*" |
85 | |
86 | inherit distutils |
87 | |
88 | DESCRIPTION="Algebraic multigrid solvers in Python" |
89 | HOMEPAGE="http://code.google.com/p/pyamg/" |
90 | SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz" |
91 | |
92 | LICENSE="BSD" |
93 | SLOT="0" |
94 | KEYWORDS="~x86 ~amd64" |
95 | IUSE="doc test" |
96 | |
97 | RESTRICT="test" # quite buggy |
98 | |
99 | RDEPEND="sci-libs/scipy" |
100 | DEPEND="${RDEPEND} |
101 | doc? ( dev-python/sphinx ) |
102 | test? ( dev-python/nose )" |
103 | |
104 | src_compile() { |
105 | distutils_src_compile |
106 | if use doc; then |
107 | cd "${S}/Docs" |
108 | PYTHONPATH=$(ls -d "${S}"/build-$(PYTHON -f --ABI)/lib*) emake html |
109 | fi |
110 | } |
111 | |
112 | src_test() { |
113 | testing() { |
114 | "$(PYTHON)" setup.py \ |
115 | build -b "build-${PYTHON_ABI}" \ |
116 | install --home="${S}/test-${PYTHON_ABI}" |
117 | pushd "${S}/test-${PYTHON_ABI}/lib/python" > /dev/null |
118 | PYTHONPATH=. "$(PYTHON)" -c "import pyamg; pyamg.test()" 2>&1 | tee test.log |
119 | grep -Eq "^(ERROR|FAIL):" test.log && return 1 |
120 | popd > /dev/null |
121 | rm -fr test-${PYTHON_ABI} |
122 | } |
123 | python_execute_function testing |
124 | } |
125 | |
126 | src_install() { |
127 | distutils_src_install |
128 | use doc && dohtml -r Docs/build/html/* |
129 | } |