Line
Link Here
|
0 |
-- matplotlib-1.1.1.ebuild 2012-11-06 12:01:12.000000000 +0100 |
0 |
++ matplotlib-1.2.0.ebuild 2012-11-23 20:28:25.669251311 +0100 |
Lines 5-15
Link Here
|
5 |
EAPI="3" |
5 |
EAPI="3" |
6 |
|
6 |
|
7 |
# python eclass bloat |
7 |
# python eclass bloat |
8 |
PYTHON_DEPEND="2" |
8 |
PYTHON_DEPEND="2:2.6 3" |
9 |
PYTHON_USE_WITH="tk" |
9 |
PYTHON_USE_WITH="tk" |
10 |
PYTHON_USE_WITH_OPT="tk" |
10 |
PYTHON_USE_WITH_OPT="tk" |
11 |
SUPPORT_PYTHON_ABIS="1" |
11 |
SUPPORT_PYTHON_ABIS="1" |
12 |
RESTRICT_PYTHON_ABIS="3* *-jython 2.7-pypy-*" |
12 |
RESTRICT_PYTHON_ABIS="*-jython 2.7-pypy-*" |
13 |
PYTHON_CFLAGS=("2.* + -fno-strict-aliasing") |
13 |
PYTHON_CFLAGS=("2.* + -fno-strict-aliasing") |
14 |
PYTHON_CXXFLAGS=("2.* + -fno-strict-aliasing") |
14 |
PYTHON_CXXFLAGS=("2.* + -fno-strict-aliasing") |
15 |
PYTHON_MODNAME="matplotlib mpl_toolkits pylab.py" |
15 |
PYTHON_MODNAME="matplotlib mpl_toolkits pylab.py" |
Lines 35-40
Link Here
|
35 |
CDEPEND="dev-python/numpy |
35 |
CDEPEND="dev-python/numpy |
36 |
dev-python/python-dateutil |
36 |
dev-python/python-dateutil |
37 |
dev-python/pytz |
37 |
dev-python/pytz |
|
|
38 |
dev-python/six |
39 |
media-fonts/stix-fonts |
38 |
media-libs/freetype:2 |
40 |
media-libs/freetype:2 |
39 |
media-libs/libpng |
41 |
media-libs/libpng |
40 |
gtk? ( dev-python/pygtk ) |
42 |
gtk? ( dev-python/pygtk ) |
Lines 84-95
Link Here
|
84 |
} |
86 |
} |
85 |
|
87 |
|
86 |
src_prepare() { |
88 |
src_prepare() { |
87 |
epatch "${FILESDIR}"/${P}-ft-refcount.patch |
89 |
epatch "${FILESDIR}"/${P}-gtk.patch |
88 |
# create setup.cfg (see setup.cfg.template for any changes) |
90 |
# create setup.cfg (see setup.cfg.template for any changes) |
89 |
cat > setup.cfg <<-EOF |
91 |
cat > setup.cfg <<-EOF |
90 |
[provide_packages] |
92 |
[provide_packages] |
91 |
pytz = False |
93 |
pytz = False |
92 |
dateutil = False |
94 |
dateutil = False |
|
|
95 |
six = False |
93 |
[gui_support] |
96 |
[gui_support] |
94 |
$(use_setup cairo) |
97 |
$(use_setup cairo) |
95 |
$(use_setup fltk) |
98 |
$(use_setup fltk) |
Lines 101-114
Link Here
|
101 |
|
104 |
|
102 |
# avoid checks needing a X display |
105 |
# avoid checks needing a X display |
103 |
sed -i \ |
106 |
sed -i \ |
104 |
-e "s/check_for_gtk()/$(use gtk && echo True || echo False)/" \ |
|
|
105 |
-e "s/check_for_tk()/$(use tk && echo True || echo False)/" \ |
107 |
-e "s/check_for_tk()/$(use tk && echo True || echo False)/" \ |
106 |
setup.py || die "sed setup.py failed" |
108 |
setup.py || die "sed setup.py failed" |
107 |
|
109 |
|
108 |
# remove internal copies of pyparsing |
110 |
# remove internal copies of pyparsing |
109 |
rm lib/matplotlib/pyparsing.py || die |
111 |
rm lib/matplotlib/pyparsing{_py2,_py3}.py || die |
110 |
sed -i \ |
112 |
sed -i \ |
111 |
-e 's/matplotlib.pyparsing/pyparsing/g' \ |
113 |
-e 's/matplotlib.pyparsing_py[23]/pyparsing/g' \ |
112 |
lib/matplotlib/{mathtext,fontconfig_pattern}.py \ |
114 |
lib/matplotlib/{mathtext,fontconfig_pattern}.py \ |
113 |
|| die "sed pyparsing failed" |
115 |
|| die "sed pyparsing failed" |
114 |
distutils_src_prepare |
116 |
distutils_src_prepare |
Lines 145-150
Link Here
|
145 |
} |
147 |
} |
146 |
|
148 |
|
147 |
src_install() { |
149 |
src_install() { |
|
|
150 |
# remove fonts bundles except some computer modern ones |
151 |
rm -f lib/matplotlib/mpl-data/fonts/ttf/{Vera*,STIX*,*.TXT} || die |
152 |
rm -rf lib/matplotlib/mpl-data/fonts/{afm,pdfcorefonts} || die |
148 |
distutils_src_install |
153 |
distutils_src_install |
149 |
if use doc; then |
154 |
if use doc; then |
150 |
insinto /usr/share/doc/${PF} |
155 |
insinto /usr/share/doc/${PF} |