Gentoo Archives: gentoo-commits

From: "Andrey Grozin (grozin)" <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/sympy: metadata.xml Manifest sympy-0.6.2.ebuild ChangeLog
Date: Tue, 02 Sep 2008 09:13:37
Message-Id: E1KaRx8-0007Bc-DH@stork.gentoo.org
1 grozin 08/09/02 09:13:34
2
3 Added: metadata.xml Manifest sympy-0.6.2.ebuild ChangeLog
4 Log:
5 Initial import. Based on the ebuild in sunrise, bug #192785. Thanks to Thomas Pani, Thomas Sachau.
6 (Portage version: 2.2_rc8/cvs/Linux 2.6.25-tuxonice-r1 i686)
7
8 Revision Changes Path
9 1.1 dev-python/sympy/metadata.xml
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/sympy/metadata.xml?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/sympy/metadata.xml?rev=1.1&content-type=text/plain
13
14 Index: metadata.xml
15 ===================================================================
16 <?xml version="1.0" encoding="UTF-8"?>
17 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
18 <pkgmetadata>
19 <herd>sci-mathematics</herd>
20 <maintainer>
21 <email>grozin@g.o</email>
22 <name>Andrey Grozin</name>
23 </maintainer>
24 <longdescription>Computer algebra system (CAS) in Python</longdescription>
25 <use>
26 <flag name='ipython'>Add support for <pkg>dev-python/ipython</pkg></flag>
27 <flag name='imaging'>Add support for <pkg>dev-python/imaging</pkg></flag>
28 <flag name='mathml'>Add support for mathml</flag>
29 <flag name='texmacs'>Add support for <pkg>app-office/texmacs</pkg></flag>
30 </use>
31 </pkgmetadata>
32
33
34
35 1.1 dev-python/sympy/Manifest
36
37 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/sympy/Manifest?rev=1.1&view=markup
38 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/sympy/Manifest?rev=1.1&content-type=text/plain
39
40 Index: Manifest
41 ===================================================================
42 AUX sympy-0.6.2-sphinx.patch 1270 RMD160 e97d06ff40b4cec5fae450f6b3d0b762d52d8876 SHA1 97872deee573a13d196de9b7740d47143dc1cc5a SHA256 80b437cc064765b3c3ae9534efa253bc553fdff3d892eb037de8d1acd2e1f361
43 DIST sympy-0.6.2.tar.gz 1937727 RMD160 434166093d507ed4ac05d3a8c824315c51523003 SHA1 70b14afd0a83d2b239104ea50adda57644b4ec41 SHA256 b84d4a8c0e92557a7ee553797e2d653ac941616494250ee82fdfecbe31b0b490
44 EBUILD sympy-0.6.2.ebuild 2218 RMD160 b9229a63e5a7e1356a8f99e3f45953684470920c SHA1 3356e29ee7d8cabbf9b52642f7457b02faef5c24 SHA256 ecc642137e7094ef66b3addb93c0d7919e4f1a7bb4d5e3a92f94a9438f8f2e79
45 MISC ChangeLog 369 RMD160 c34bf8bd470e5fdf4e4ffa616268ee5f72b9cac9 SHA1 5b6d11758124ce21619fa2c8c1b95804a6e2c02e SHA256 0dbe33cc0e6228fcd09f1d6bf406e16afb7592c320657ce3865fcd41c3d8ddd0
46 MISC metadata.xml 633 RMD160 1e2a9802af567bd541d0ad500ec400b9203460c4 SHA1 9e0d449759a132552a9e8d1c10ab9271db8e1191 SHA256 0ffbbb6a597b7ef6a01e51d3cea66de7ec0b600b6b34b8f2c8fdf4f30ce53612
47
48
49
50 1.1 dev-python/sympy/sympy-0.6.2.ebuild
51
52 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/sympy/sympy-0.6.2.ebuild?rev=1.1&view=markup
53 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/sympy/sympy-0.6.2.ebuild?rev=1.1&content-type=text/plain
54
55 Index: sympy-0.6.2.ebuild
56 ===================================================================
57 # Copyright 1999-2008 Gentoo Foundation
58 # Distributed under the terms of the GNU General Public License v2
59 # $Header: /var/cvsroot/gentoo-x86/dev-python/sympy/sympy-0.6.2.ebuild,v 1.1 2008/09/02 09:13:33 grozin Exp $
60
61 NEED_PYTHON=2.4
62 inherit distutils
63
64 DESCRIPTION="Computer algebra system (CAS) in Python"
65 HOMEPAGE="http://code.google.com/p/sympy/"
66 SRC_URI="http://sympy.googlecode.com/files/${P}.tar.gz"
67
68 LICENSE="BSD"
69 SLOT="0"
70 KEYWORDS="~amd64 ~x86"
71 IUSE="doc examples gtk imaging ipython latex mathml opengl pdf png test texmacs"
72
73 RDEPEND="mathml? ( dev-libs/libxml2
74 dev-libs/libxslt
75 gtk? ( x11-libs/gtkmathview ) )
76 latex? ( virtual/latex-base
77 png? ( app-text/dvipng )
78 pdf? ( virtual/ghostscript ) )
79 texmacs? ( app-office/texmacs )
80 ipython? ( dev-python/ipython )
81 opengl? ( dev-python/pyopengl )
82 imaging? ( dev-python/imaging )
83 || ( dev-python/ctypes >=dev-lang/python-2.5 )
84 >=dev-python/pexpect-2.0"
85 DEPEND="doc? ( dev-python/sphinx )
86 test? ( >=dev-python/py-0.9.0 )"
87
88 pkg_setup() {
89 if use mathml; then
90 if ! built_with_use dev-libs/libxml2 python; then
91 eerror "dev-libs/libxml2 has to be compiled with 'python' USE-flag."
92 die "Needed USE-flag for dev-libs/libxml2 not found."
93 fi
94
95 if ! built_with_use dev-libs/libxslt python; then
96 eerror "dev-libs/libxslt has to be compiled with 'python' USE-flag."
97 die "Needed USE-flag for dev-libs/libxslt not found."
98 fi
99
100 if use gtk && ! built_with_use x11-libs/gtkmathview gtk; then
101 eerror "x11-libs/gtkmathview has to be compiled with 'gtk' USE-flag."
102 die "Needed USE-flag for x11-libs/gtkmathview not found."
103 fi
104 fi
105 }
106
107 src_unpack() {
108 distutils_src_unpack
109
110 # use local sphinx
111 epatch "${FILESDIR}"/${P}-sphinx.patch
112 }
113
114 src_compile() {
115 distutils_src_compile
116
117 if use doc; then
118 cd doc
119 PYTHONPATH=.. emake SPHINXBUILD=sphinx-build html \
120 || die "emake html failed"
121 cd ..
122 fi
123 }
124
125 src_test() {
126 PYTHONPATH=build/lib/ "${python}" setup.py test || die "Unit tests failed!"
127 }
128
129 src_install() {
130 distutils_src_install
131
132 if use doc; then
133 dohtml -r doc/_build/html/*
134 fi
135
136 if use examples; then
137 insinto /usr/share/doc/${P}
138 doins -r examples
139 fi
140
141 if use texmacs; then
142 exeinto /usr/libexec/TeXmacs/bin/
143 doexe data/TeXmacs/bin/tm_sympy
144 insinto /usr/share/TeXmacs/plugins/sympy/
145 doins -r data/TeXmacs/progs
146 fi
147 }
148
149
150
151 1.1 dev-python/sympy/ChangeLog
152
153 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/sympy/ChangeLog?rev=1.1&view=markup
154 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/sympy/ChangeLog?rev=1.1&content-type=text/plain
155
156 Index: ChangeLog
157 ===================================================================
158 # ChangeLog for dev-python/sympy
159 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
160 # $Header: /var/cvsroot/gentoo-x86/dev-python/sympy/ChangeLog,v 1.1 2008/09/02 09:13:33 grozin Exp $
161
162 *sympy-0.6.2 (02 Sep 2008)
163
164 02 Sep 2008; Andrey Grozin <grozin@g.o>
165 +files/sympy-0.6.2-sphinx.patch, +metadata.xml, +sympy-0.6.2.ebuild:
166 Initial import. Based on the ebuild in sunrise, bug #192785. Thanks to
167 Thomas Pani, Thomas Sachau.