mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-05-01 05:08:10 -07:00
dev-python/sympy: bump to 1.0
Bug: 577668 Package-Manager: portage-2.2.28
This commit is contained in:
parent
4028a024b1
commit
90027a0055
@ -1 +1,2 @@
|
||||
DIST sympy-0.7.6.1.tar.gz 6431571 SHA256 1fc272b51091aabe7d07f1bf9f0a47f3e28657fb2bec52bf3ef0e8f159f5f564 SHA512 18877abd3c530418e4f4942cbb0a03140dc81e5a1004720c472fb97cf8eaa41acca59765f6278715ea88bcd0cd07ad5952863a0d1b6e6d00994d257e8c0a6574 WHIRLPOOL b0c0c74e7865c91585d1a2c8510fe328b8e697dec02bd17aaa446ef6e089b9cf2ca5b4f58b6b59febccf142384b907e1bd47451e22fa305843bd883355801226
|
||||
DIST sympy-1.0.tar.gz 4281528 SHA256 3eacd210d839e4db911d216a9258a3ac6f936992f66db211e22767983297ffae SHA512 977db6e9bc6a5918cceb255981a57e85e7060c0922aefd2968b004d25d704e25a5cb5bbe09eb387e8695581e23e2825d9c40310068fe25ece7e9c23037a21f39 WHIRLPOOL df02cc8603c23f621226f28b4f0555e765f145d968869058ed9420fedd3c6d6d0f095ee14fa864cd505455f245e5adf10794fc3b1392fb5a331ed5dc506b988b
|
||||
|
||||
10
dev-python/sympy/files/sympy-1.0-doc-makefile.patch
Normal file
10
dev-python/sympy/files/sympy-1.0-doc-makefile.patch
Normal file
@ -0,0 +1,10 @@
|
||||
diff -r -U2 sympy-1.0.orig/doc/Makefile sympy-1.0/doc/Makefile
|
||||
--- sympy-1.0.orig/doc/Makefile 2016-03-08 19:38:39.000000000 +0100
|
||||
+++ sympy-1.0/doc/Makefile 2016-03-18 20:04:36.393615499 +0100
|
||||
@@ -118,5 +118,5 @@
|
||||
pdflatex -output-directory=_build/cheatsheet cheatsheet/cheatsheet.tex
|
||||
|
||||
-_build/cheatsheet/cheatsheet.pdf: cheatsheet/combinatoric_cheatsheet.tex
|
||||
+_build/cheatsheet/combinatoric_cheatsheet.pdf: cheatsheet/combinatoric_cheatsheet.tex
|
||||
mkdir -p _build/cheatsheet
|
||||
pdflatex -output-directory=_build/cheatsheet cheatsheet/combinatoric_cheatsheet.tex
|
||||
96
dev-python/sympy/sympy-1.0.ebuild
Normal file
96
dev-python/sympy/sympy-1.0.ebuild
Normal file
@ -0,0 +1,96 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||
|
||||
inherit distutils-r1 eutils virtualx
|
||||
|
||||
DESCRIPTION="Computer Algebra System in pure Python"
|
||||
HOMEPAGE="http://sympy.org"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-macos"
|
||||
IUSE="doc examples gtk imaging ipython latex mathml opengl pdf png pyglet test texmacs theano"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
||||
doc? ( || ( $(python_gen_useflags 'python2*') ) )"
|
||||
|
||||
RDEPEND="dev-python/mpmath[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '>=dev-python/pexpect-2.0[${PYTHON_USEDEP}]' python2_7)
|
||||
imaging? ( dev-python/pillow[${PYTHON_USEDEP}] )
|
||||
ipython? ( dev-python/ipython[${PYTHON_USEDEP}] )
|
||||
latex? (
|
||||
virtual/latex-base
|
||||
dev-texlive/texlive-fontsextra
|
||||
png? ( app-text/dvipng )
|
||||
pdf? ( app-text/ghostscript-gpl )
|
||||
)
|
||||
mathml? (
|
||||
dev-libs/libxml2:2[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep 'dev-libs/libxslt[${PYTHON_USEDEP}]' python2_7)
|
||||
gtk? ( x11-libs/gtkmathview[gtk] )
|
||||
)
|
||||
opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] )
|
||||
pyglet? ( $(python_gen_cond_dep 'dev-python/pyglet[${PYTHON_USEDEP}]' python2_7) )
|
||||
texmacs? ( app-office/texmacs )
|
||||
theano? ( $(python_gen_cond_dep 'dev-python/theano[${PYTHON_USEDEP}]' python2_7) )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? ( ${RDEPEND} dev-python/pytest[${PYTHON_USEDEP}] )"
|
||||
|
||||
pkg_setup() {
|
||||
use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' )
|
||||
}
|
||||
|
||||
python_prepare_all() {
|
||||
epatch "${FILESDIR}"/${P}-doc-makefile.patch
|
||||
epatch "${FILESDIR}"/${PN}-0.7.6.1-zeta.patch
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
PYTHONPATH="." distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
if use doc; then
|
||||
export XDG_CONFIG_HOME="${T}/config-dir"
|
||||
mkdir "${XDG_CONFIG_HOME}" || die
|
||||
chmod 0700 "${XDG_CONFIG_HOME}" || die
|
||||
emake -j1 -C doc html info man cheatsheet
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
virtx "${PYTHON}" setup.py test
|
||||
}
|
||||
|
||||
python_install() {
|
||||
PYTHONPATH="." distutils-r1_python_install
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local DOCS=( AUTHORS README.rst )
|
||||
if use doc; then
|
||||
DOCS+=( doc/_build/cheatsheet/cheatsheet.pdf \
|
||||
doc/_build/cheatsheet/combinatoric_cheatsheet.pdf )
|
||||
local HTML_DOCS=( doc/_build/html/. )
|
||||
doinfo doc/_build/texinfo/${PN}.info
|
||||
fi
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
distutils-r1_python_install_all
|
||||
|
||||
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
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user