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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Jul 16 13:39:58 2006 UTC (8 years, 2 months ago) by liquidx
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
version bump. (#136429)
(Portage version: 2.1-r1)
 (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.85.ebuild,v 1.4 2006/02/07 00:33:31 liquidx 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 )
21 >=media-libs/freetype-2.1.7
22 media-libs/libpng
23 sys-libs/zlib
24 gtk? ( >=dev-python/pygtk-1.99.16 )
25 dev-python/pytz
26 dev-python/python-dateutil"
27
28
29 pkg_setup() {
30 if use tcltk; then
31 python_tkinter_exists
32 fi
33 }
34
35 src_unpack() {
36 unpack ${A}
37 cd "${S}"
38
39 # disable autodetection, rely on USE instead
40 epatch "${FILESDIR}/${P}-no-autodetect.patch"
41 sed -i \
42 -e "/^BUILD_GTK/s/'auto'/$(use gtk && echo 1 || echo 0)/" \
43 -e "/^BUILD_WX/s/'auto'/0/" \
44 -e "/^BUILD_TK/s/'auto'/$(use tcltk && echo 1 || echo 0)/" \
45 setup.py
46 }
47
48 src_install() {
49 distutils_src_install
50
51 if use doc ; then
52 insinto /usr/share/doc/${PF}/examples
53 doins examples/*.py examples/README
54 insinto /usr/share/doc/${PF}/examples/data
55 doins examples/data/*.dat
56 fi
57 }

  ViewVC Help
Powered by ViewVC 1.1.20