/[gentoo-x86]/dev-python/matplotlib/matplotlib-0.90.0.ebuild
Gentoo

Contents of /dev-python/matplotlib/matplotlib-0.90.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Tue Jun 26 12:23:56 2007 UTC (7 years, 1 month ago) by lucass
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Dropped old versions. Removed unnecessary inherit python.
(Portage version: 2.1.3_rc5)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/matplotlib-0.90.0.ebuild,v 1.4 2007/05/28 15:40:49 bicatali Exp $
4
5 NEED_PYTHON=2.3
6
7 inherit distutils python
8
9 DOC_PV=0.90.0
10
11 DESCRIPTION="Pure python plotting library with matlab like syntax"
12 HOMEPAGE="http://matplotlib.sourceforge.net/"
13 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
14 doc? ( http://matplotlib.sourceforge.net/users_guide_${DOC_PV}.pdf )"
15
16 IUSE="doc examples gtk tk"
17 SLOT="0"
18 KEYWORDS="~amd64 ~ppc ~x86"
19 LICENSE="PYTHON"
20
21 DEPEND="|| (
22 >=dev-python/numpy-1.0
23 dev-python/numarray
24 >=dev-python/numeric-23
25 )
26 !<dev-python/numpy-1.0
27 >=media-libs/freetype-2.1.7
28 media-libs/libpng
29 sys-libs/zlib
30 gtk? ( >=dev-python/pygtk-2.2 )
31 dev-python/pytz
32 dev-python/python-dateutil
33 media-fonts/ttf-bitstream-vera"
34
35 DOCS="INTERACTIVE API_CHANGES NUMARRAY_ISSUES"
36
37 pkg_setup() {
38 use tk && python_tkinter_exists
39 }
40
41 src_unpack() {
42 unpack ${A}
43
44 cd "${S}"
45
46 # disable autodetection (use flags) and install data files
47 epatch "${FILESDIR}/${P}-setup.patch"
48
49 # fix default paths for init files (depend on previous patch)
50 epatch "${FILESDIR}/${P}-init.patch"
51
52 sed -i \
53 -e "/^BUILD_GTK/s/'auto'/$(use gtk && echo 1 || echo 0)/g" \
54 -e "/^BUILD_WX/s/'auto'/0/g" \
55 -e "/^BUILD_TK/s/'auto'/$(use tk && echo 1 || echo 0)/g" \
56 setup.py || die "sed failed"
57
58 # cleaning and remove vera fonts (they are now a dependency)
59 chmod 644 images/*.svg
60 find -name .cvsignore | xargs rm -rf
61 rm -f fonts/ttf/Vera*.ttf
62
63 # default to gtk backend if both gtk and tk are selected
64 if use gtk; then
65 sed -i \
66 -e "s/^#rc\['backend'\] = GTKAgg/rc\['backend'\] = 'GTKAgg'/" \
67 setup.py || die "sed backend failed"
68 fi
69 }
70
71 src_install() {
72 distutils_src_install --install-data=usr/share
73
74 insinto /etc
75 doins matplotlibrc
76
77 insinto /usr/share/doc/${PF}
78 use doc && doins "${DISTDIR}"/users_guide_${DOC_PV}.pdf
79 use examples && doins -r examples
80 }

  ViewVC Help
Powered by ViewVC 1.1.20