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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (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.1: +1 -1 lines
FILE REMOVED
Dropped old versions. Removed unnecessary inherit python.
(Portage version: 2.1.3_rc5)

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

  ViewVC Help
Powered by ViewVC 1.1.20