diff options
author | Andrey Grozin <grozin@gentoo.org> | 2008-09-02 09:13:34 +0000 |
---|---|---|
committer | Andrey Grozin <grozin@gentoo.org> | 2008-09-02 09:13:34 +0000 |
commit | e2b73136cba9b64346e55c3ac7c1af6a7f7c3ea9 (patch) | |
tree | 3554268a9b858db5913fd79344df02f1e406970b | |
parent | Fixed bug number for scigraphica removals (diff) | |
download | gentoo-2-e2b73136cba9b64346e55c3ac7c1af6a7f7c3ea9.tar.gz gentoo-2-e2b73136cba9b64346e55c3ac7c1af6a7f7c3ea9.tar.bz2 gentoo-2-e2b73136cba9b64346e55c3ac7c1af6a7f7c3ea9.zip |
Initial import. Based on the ebuild in sunrise, bug #192785. Thanks to Thomas Pani, Thomas Sachau.
(Portage version: 2.2_rc8/cvs/Linux 2.6.25-tuxonice-r1 i686)
-rw-r--r-- | dev-python/sympy/ChangeLog | 11 | ||||
-rw-r--r-- | dev-python/sympy/Manifest | 5 | ||||
-rw-r--r-- | dev-python/sympy/files/sympy-0.6.2-sphinx.patch | 43 | ||||
-rw-r--r-- | dev-python/sympy/metadata.xml | 16 | ||||
-rw-r--r-- | dev-python/sympy/sympy-0.6.2.ebuild | 91 |
5 files changed, 166 insertions, 0 deletions
diff --git a/dev-python/sympy/ChangeLog b/dev-python/sympy/ChangeLog new file mode 100644 index 000000000000..51ffa46ffb74 --- /dev/null +++ b/dev-python/sympy/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-python/sympy +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/sympy/ChangeLog,v 1.1 2008/09/02 09:13:33 grozin Exp $ + +*sympy-0.6.2 (02 Sep 2008) + + 02 Sep 2008; Andrey Grozin <grozin@gentoo.org> + +files/sympy-0.6.2-sphinx.patch, +metadata.xml, +sympy-0.6.2.ebuild: + Initial import. Based on the ebuild in sunrise, bug #192785. Thanks to + Thomas Pani, Thomas Sachau. + diff --git a/dev-python/sympy/Manifest b/dev-python/sympy/Manifest new file mode 100644 index 000000000000..03837aef570b --- /dev/null +++ b/dev-python/sympy/Manifest @@ -0,0 +1,5 @@ +AUX sympy-0.6.2-sphinx.patch 1270 RMD160 e97d06ff40b4cec5fae450f6b3d0b762d52d8876 SHA1 97872deee573a13d196de9b7740d47143dc1cc5a SHA256 80b437cc064765b3c3ae9534efa253bc553fdff3d892eb037de8d1acd2e1f361 +DIST sympy-0.6.2.tar.gz 1937727 RMD160 434166093d507ed4ac05d3a8c824315c51523003 SHA1 70b14afd0a83d2b239104ea50adda57644b4ec41 SHA256 b84d4a8c0e92557a7ee553797e2d653ac941616494250ee82fdfecbe31b0b490 +EBUILD sympy-0.6.2.ebuild 2218 RMD160 b9229a63e5a7e1356a8f99e3f45953684470920c SHA1 3356e29ee7d8cabbf9b52642f7457b02faef5c24 SHA256 ecc642137e7094ef66b3addb93c0d7919e4f1a7bb4d5e3a92f94a9438f8f2e79 +MISC ChangeLog 369 RMD160 c34bf8bd470e5fdf4e4ffa616268ee5f72b9cac9 SHA1 5b6d11758124ce21619fa2c8c1b95804a6e2c02e SHA256 0dbe33cc0e6228fcd09f1d6bf406e16afb7592c320657ce3865fcd41c3d8ddd0 +MISC metadata.xml 633 RMD160 1e2a9802af567bd541d0ad500ec400b9203460c4 SHA1 9e0d449759a132552a9e8d1c10ab9271db8e1191 SHA256 0ffbbb6a597b7ef6a01e51d3cea66de7ec0b600b6b34b8f2c8fdf4f30ce53612 diff --git a/dev-python/sympy/files/sympy-0.6.2-sphinx.patch b/dev-python/sympy/files/sympy-0.6.2-sphinx.patch new file mode 100644 index 000000000000..db6ed3c0ec2d --- /dev/null +++ b/dev-python/sympy/files/sympy-0.6.2-sphinx.patch @@ -0,0 +1,43 @@ +diff -r -U2 sympy-0.6.2.orig/doc/Makefile sympy-0.6.2/doc/Makefile +--- sympy-0.6.2.orig/doc/Makefile 2008-08-17 22:00:24.000000000 +0700 ++++ sympy-0.6.2/doc/Makefile 2008-08-29 00:09:11.000000000 +0700 +@@ -1,11 +1,8 @@ + # Makefile for Sphinx documentation + # +-RST2HTML = rst2html ++RST2HTML = rst2html.py + + # You can set these variables from the command line. + SPHINXOPTS = +-SPHINXVER = 0.4.1 +-SPHINXBUILDpy = sphinx/Sphinx-$(SPHINXVER)/sphinx-build.py +-SPHINXBUILD = PYTHONPATH=.. python $(SPHINXBUILDpy) + PAPER = + +@@ -31,11 +28,5 @@ + -rm -rf sphinx + +-$(SPHINXBUILDpy): +- rm -rf sphinx +- mkdir sphinx +- cd sphinx; wget http://pypi.python.org/packages/source/S/Sphinx/Sphinx-$(SPHINXVER).tar.gz; +- cd sphinx; tar xzf Sphinx-$(SPHINXVER).tar.gz +- +-html: $(SPHINXBUILDpy) spt-printable ++html: spt-printable + mkdir -p src/.static + mkdir -p _build/html _build/doctrees +@@ -52,5 +43,5 @@ + $(RST2HTML) src/sympy-patches-tutorial.txt > _build/html/spt-printable.html + +-htmlapi: $(SPHINXBUILDpy) ++htmlapi: + mkdir -p api/.static + mkdir -p api/modules +@@ -77,5 +68,5 @@ + ".hhp project file in _build/htmlhelp." + +-latex: $(SPHINXBUILDpy) ++latex: + mkdir -p _build/latex _build/doctrees + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex diff --git a/dev-python/sympy/metadata.xml b/dev-python/sympy/metadata.xml new file mode 100644 index 000000000000..b385a0021d35 --- /dev/null +++ b/dev-python/sympy/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>sci-mathematics</herd> + <maintainer> + <email>grozin@gentoo.org</email> + <name>Andrey Grozin</name> + </maintainer> + <longdescription>Computer algebra system (CAS) in Python</longdescription> + <use> + <flag name='ipython'>Add support for <pkg>dev-python/ipython</pkg></flag> + <flag name='imaging'>Add support for <pkg>dev-python/imaging</pkg></flag> + <flag name='mathml'>Add support for mathml</flag> + <flag name='texmacs'>Add support for <pkg>app-office/texmacs</pkg></flag> + </use> +</pkgmetadata> diff --git a/dev-python/sympy/sympy-0.6.2.ebuild b/dev-python/sympy/sympy-0.6.2.ebuild new file mode 100644 index 000000000000..70a80ef62e3d --- /dev/null +++ b/dev-python/sympy/sympy-0.6.2.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/sympy/sympy-0.6.2.ebuild,v 1.1 2008/09/02 09:13:33 grozin Exp $ + +NEED_PYTHON=2.4 +inherit distutils + +DESCRIPTION="Computer algebra system (CAS) in Python" +HOMEPAGE="http://code.google.com/p/sympy/" +SRC_URI="http://sympy.googlecode.com/files/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples gtk imaging ipython latex mathml opengl pdf png test texmacs" + +RDEPEND="mathml? ( dev-libs/libxml2 + dev-libs/libxslt + gtk? ( x11-libs/gtkmathview ) ) + latex? ( virtual/latex-base + png? ( app-text/dvipng ) + pdf? ( virtual/ghostscript ) ) + texmacs? ( app-office/texmacs ) + ipython? ( dev-python/ipython ) + opengl? ( dev-python/pyopengl ) + imaging? ( dev-python/imaging ) + || ( dev-python/ctypes >=dev-lang/python-2.5 ) + >=dev-python/pexpect-2.0" +DEPEND="doc? ( dev-python/sphinx ) + test? ( >=dev-python/py-0.9.0 )" + +pkg_setup() { + if use mathml; then + if ! built_with_use dev-libs/libxml2 python; then + eerror "dev-libs/libxml2 has to be compiled with 'python' USE-flag." + die "Needed USE-flag for dev-libs/libxml2 not found." + fi + + if ! built_with_use dev-libs/libxslt python; then + eerror "dev-libs/libxslt has to be compiled with 'python' USE-flag." + die "Needed USE-flag for dev-libs/libxslt not found." + fi + + if use gtk && ! built_with_use x11-libs/gtkmathview gtk; then + eerror "x11-libs/gtkmathview has to be compiled with 'gtk' USE-flag." + die "Needed USE-flag for x11-libs/gtkmathview not found." + fi + fi +} + +src_unpack() { + distutils_src_unpack + + # use local sphinx + epatch "${FILESDIR}"/${P}-sphinx.patch +} + +src_compile() { + distutils_src_compile + + if use doc; then + cd doc + PYTHONPATH=.. emake SPHINXBUILD=sphinx-build html \ + || die "emake html failed" + cd .. + fi +} + +src_test() { + PYTHONPATH=build/lib/ "${python}" setup.py test || die "Unit tests failed!" +} + +src_install() { + distutils_src_install + + if use doc; then + dohtml -r doc/_build/html/* + fi + + if use examples; then + insinto /usr/share/doc/${P} + doins -r examples + fi + + if use texmacs; then + exeinto /usr/libexec/TeXmacs/bin/ + doexe data/TeXmacs/bin/tm_sympy + insinto /usr/share/TeXmacs/plugins/sympy/ + doins -r data/TeXmacs/progs + fi +} |