1 |
idella4 14/08/01 03:25:26 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ipython-2.1.0.ebuild |
5 |
Log: |
6 |
major version bump: extensive re-write; add py3.4 support, drop keywords arm ia64 ppc ppc64 (which will be requested for re-addition), re-write of doc build, test phase, patch by cel1, thanks to cel1 for cross testing, fixes Bug 507410 |
7 |
|
8 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D) |
9 |
|
10 |
Revision Changes Path |
11 |
1.139 dev-python/ipython/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/ipython/ChangeLog?rev=1.139&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/ipython/ChangeLog?rev=1.139&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/ipython/ChangeLog?r1=1.138&r2=1.139 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/ipython/ChangeLog,v |
20 |
retrieving revision 1.138 |
21 |
retrieving revision 1.139 |
22 |
diff -u -r1.138 -r1.139 |
23 |
--- ChangeLog 6 Jul 2014 12:44:54 -0000 1.138 |
24 |
+++ ChangeLog 1 Aug 2014 03:25:26 -0000 1.139 |
25 |
@@ -1,6 +1,15 @@ |
26 |
# ChangeLog for dev-python/ipython |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/ipython/ChangeLog,v 1.138 2014/07/06 12:44:54 mgorny Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/ipython/ChangeLog,v 1.139 2014/08/01 03:25:26 idella4 Exp $ |
30 |
+ |
31 |
+*ipython-2.1.0 (01 Aug 2014) |
32 |
+ |
33 |
+ 01 Aug 2014; Ian Delaney <idella4@g.o> |
34 |
+ +files/2.1.0-disable-tests.patch, +ipython-2.1.0.ebuild: |
35 |
+ major version bump: extensive re-write; add py3.4 support, drop keywords arm |
36 |
+ ia64 ppc ppc64 (which will be requested for re-addition), re-write of doc |
37 |
+ build, test phase, patch by cel1, thanks to cel1 for cross testing, fixes Bug |
38 |
+ 507410 |
39 |
|
40 |
06 Jul 2014; Michał Górny <mgorny@g.o> ipython-0.12-r1.ebuild, |
41 |
ipython-0.13.2.ebuild, ipython-1.0.0.ebuild, ipython-1.1.0-r1.ebuild, |
42 |
|
43 |
|
44 |
|
45 |
1.1 dev-python/ipython/ipython-2.1.0.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/ipython/ipython-2.1.0.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/ipython/ipython-2.1.0.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: ipython-2.1.0.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2014 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/ipython/ipython-2.1.0.ebuild,v 1.1 2014/08/01 03:25:26 idella4 Exp $ |
55 |
|
56 |
EAPI=5 |
57 |
|
58 |
PYTHON_COMPAT=( python{2_7,3_3,3_4} ) |
59 |
PYTHON_REQ_USE='readline,sqlite' |
60 |
|
61 |
inherit distutils-r1 elisp-common virtualx |
62 |
|
63 |
DESCRIPTION="Advanced interactive shell for Python" |
64 |
HOMEPAGE="http://ipython.org/" |
65 |
SRC_URI="https://github.com/${PN}/${PN}/releases/download/rel-${PV}/${P}.tar.gz" |
66 |
|
67 |
LICENSE="BSD" |
68 |
SLOT="0" |
69 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
70 |
IUSE="doc examples matplotlib mongodb notebook nbconvert octave qt4 +smp test wxwidgets" |
71 |
|
72 |
PY2_USEDEP=$(python_gen_usedep python2_7) |
73 |
gen_python_deps() { |
74 |
local flag |
75 |
for flag in $(python_gen_useflags '*'); do |
76 |
echo "${flag}? ( ${1}[${flag}(-)] )" |
77 |
done |
78 |
} |
79 |
|
80 |
CDEPEND=" |
81 |
dev-python/decorator[${PYTHON_USEDEP}] |
82 |
dev-python/pexpect[${PYTHON_USEDEP}] |
83 |
dev-python/setuptools[${PYTHON_USEDEP}] |
84 |
dev-python/simplegeneric[${PYTHON_USEDEP}] |
85 |
dev-python/pyparsing[${PYTHON_USEDEP}] |
86 |
matplotlib? ( dev-python/matplotlib[${PYTHON_USEDEP}] ) |
87 |
mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] ) |
88 |
octave? ( dev-python/oct2py[${PYTHON_USEDEP}] ) |
89 |
smp? ( dev-python/pyzmq[${PYTHON_USEDEP}] ) |
90 |
wxwidgets? ( dev-python/wxpython[${PY2_USEDEP}] )" |
91 |
RDEPEND="${CDEPEND} |
92 |
notebook? ( |
93 |
>=www-servers/tornado-2.1[${PYTHON_USEDEP}] |
94 |
dev-python/pygments[${PYTHON_USEDEP}] |
95 |
dev-python/pyzmq[${PYTHON_USEDEP}] |
96 |
dev-libs/mathjax |
97 |
$(gen_python_deps dev-python/jinja) |
98 |
) |
99 |
nbconvert? ( |
100 |
app-text/pandoc |
101 |
dev-python/pygments[${PYTHON_USEDEP}] |
102 |
dev-python/sphinx[${PYTHON_USEDEP}] |
103 |
$(gen_python_deps dev-python/jinja) |
104 |
) |
105 |
qt4? ( || ( dev-python/PyQt4[${PYTHON_USEDEP}] dev-python/pyside[${PYTHON_USEDEP}] ) |
106 |
dev-python/pygments[${PYTHON_USEDEP}] |
107 |
dev-python/pyzmq[${PYTHON_USEDEP}] )" |
108 |
DEPEND="${CDEPEND} |
109 |
test? ( dev-python/nose[${PYTHON_USEDEP}] |
110 |
dev-python/oct2py[${PYTHON_USEDEP}] |
111 |
dev-python/mock[${PYTHON_USEDEP}] |
112 |
net-libs/nodejs )" |
113 |
|
114 |
PY2_REQUSE="$(python_gen_useflags python2_7)" |
115 |
REQUIRED_USE=" |
116 |
wxwidgets? ( ${PY2_REQUSE} )" |
117 |
|
118 |
DISTUTILS_IN_SOURCE_BUILD=1 |
119 |
|
120 |
PATCHES=( "${FILESDIR}"/2.1.0-disable-tests.patch ) |
121 |
|
122 |
python_prepare_all() { |
123 |
# fix for gentoo python scripts |
124 |
sed -i \ |
125 |
-e "/ipython_cmd/s/ipython3/ipython/g" \ |
126 |
IPython/terminal/console/tests/test_console.py \ |
127 |
IPython/testing/tools.py || die |
128 |
|
129 |
sed -i \ |
130 |
-e "s/find_scripts(True, suffix='3')/find_scripts(True)/" \ |
131 |
setup.py || die |
132 |
|
133 |
# fix gentoo installation directory for documentation |
134 |
sed -i \ |
135 |
-e "/docdirbase = pjoin/s/ipython/${PF}/" \ |
136 |
-e "/pjoin(docdirbase,'manual')/s/manual/html/" \ |
137 |
setupbase.py || die "sed failed" |
138 |
|
139 |
if ! use doc; then |
140 |
sed -i \ |
141 |
-e "/(pjoin(docdirbase, 'extensions'), igridhelpfiles),/d" \ |
142 |
-e 's/ + manual_files//' \ |
143 |
setupbase.py || die |
144 |
fi |
145 |
|
146 |
if ! use examples; then |
147 |
sed -i \ |
148 |
-e 's/+ example_files//' \ |
149 |
setupbase.py || die |
150 |
fi |
151 |
|
152 |
if use doc; then |
153 |
# Prevent un-needed download during build |
154 |
sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die |
155 |
fi |
156 |
|
157 |
distutils-r1_python_prepare_all |
158 |
} |
159 |
|
160 |
python_compile_all() { |
161 |
use doc && emake -C docs html |
162 |
} |
163 |
|
164 |
src_test() { |
165 |
# virtualx has trouble with parallel runs. |
166 |
local DISTUTILS_NO_PARALLEL_BUILD=1 |
167 |
distutils-r1_src_test |
168 |
} |
169 |
|
170 |
python_test() { |
171 |
distutils_install_for_testing |
172 |
local fail |
173 |
run_tests() { |
174 |
# Run tests (-v for more verbosity). |
175 |
PYTHONPATH="${PYTHONPATH}:$(pwd)" |
176 |
pushd ${TEST_DIR} > /dev/null |
177 |
"${PYTHON}" -c "import IPython; IPython.test()" || fail=1 |
178 |
popd > /dev/null |
179 |
} |
180 |
|
181 |
VIRTUALX_COMMAND=run_tests virtualmake |
182 |
} |
183 |
|
184 |
python_install() { |
185 |
distutils-r1_python_install |
186 |
ln -snf "${EPREFIX}"/usr/share/mathjax \ |
187 |
"${D}$(python_get_sitedir)"/IPython/html/static/mathjax || die |
188 |
|
189 |
# Create ipythonX.Y symlinks. |
190 |
# TODO: |
191 |
# 1. do we want them for pypy? |
192 |
# 2. handle it in the eclass instead (use _python_ln_rel). |
193 |
if [[ ${EPYTHON} == python* ]]; then |
194 |
dosym ../lib/python-exec/${EPYTHON}/ipython \ |
195 |
/usr/bin/ipython${EPYTHON#python} |
196 |
fi |
197 |
} |
198 |
|
199 |
python_install_all() { |
200 |
use doc && local HTML_DOCS=( docs/build/html/. ) |
201 |
distutils-r1_python_install_all |
202 |
} |