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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Nov 29 01:02:05 2006 UTC (8 years ago) by marienz
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump (bug #147466) that works with python 2.5 (bug #148278). Use the tk instead of tcltk USE flag (bug #17808).
(Portage version: 2.1.2_rc2-r2)
 (Signed Manifest commit)

1 # Copyright 1999-2006 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.87.2.ebuild,v 1.1 2006/04/04 23:26:52 marienz Exp $
4
5 inherit distutils python
6
7 DESCRIPTION="matplotlib is a pure python plotting library designed to bring publication quality plotting to python with a syntax familiar to matlab users."
8 HOMEPAGE="http://matplotlib.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
10
11 IUSE="doc gtk tcltk"
12 SLOT="0"
13 KEYWORDS="~amd64 ~ppc ~x86"
14 LICENSE="PYTHON"
15
16 DEPEND="virtual/python
17 || (
18 >=dev-python/numeric-22
19 dev-python/numarray
20 dev-python/numpy
21 )
22 >=media-libs/freetype-2.1.7
23 media-libs/libpng
24 sys-libs/zlib
25 gtk? ( >=dev-python/pygtk-1.99.16 )
26 dev-python/pytz
27 dev-python/python-dateutil"
28
29
30 pkg_setup() {
31 if use tcltk; then
32 python_tkinter_exists
33 fi
34 }
35
36 src_unpack() {
37 unpack ${A}
38 cd "${S}"
39
40 # disable autodetection, rely on USE instead
41 epatch "${FILESDIR}/${PN}-0.86.2-no-autodetect.patch"
42 sed -i \
43 -e "/^BUILD_GTK/s/'auto'/$(use gtk && echo 1 || echo 0)/" \
44 -e "/^BUILD_WX/s/'auto'/0/" \
45 -e "/^BUILD_TK/s/'auto'/$(use tcltk && echo 1 || echo 0)/" \
46 setup.py
47 }
48
49 src_install() {
50 distutils_src_install
51
52 if use doc ; then
53 insinto /usr/share/doc/${PF}/examples
54 doins examples/*.py examples/README
55 insinto /usr/share/doc/${PF}/examples/data
56 doins examples/data/*.dat
57 fi
58 }

  ViewVC Help
Powered by ViewVC 1.1.20