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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Mar 5 10:43:00 2007 UTC (7 years, 9 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
removed matplotlib-0.87.4.ebuild and patches, obsolete and incompatibles with newer numpy.
(Portage version: 2.1.2-r9)

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.4.ebuild,v 1.2 2006/11/29 01:01:55 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 tk"
12 SLOT="0"
13 KEYWORDS="~amd64 ~ppc ~x86"
14 LICENSE="PYTHON"
15
16 DEPEND="virtual/python
17 || (
18 >=dev-python/numeric-23
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-2.2 )
26 dev-python/pytz
27 dev-python/python-dateutil"
28
29
30 pkg_setup() {
31 if use tk; 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 tk && echo 1 || echo 0)/" \
46 setup.py
47
48 epatch ${FILESDIR}/${PN}-0.87.4-fix-bad-win32-detect.patch
49 }
50
51 src_install() {
52 distutils_src_install
53
54 if use doc ; then
55 insinto /usr/share/doc/${PF}/examples
56 doins examples/*.py examples/README
57 insinto /usr/share/doc/${PF}/examples/data
58 doins examples/data/*.dat
59 fi
60 }

  ViewVC Help
Powered by ViewVC 1.1.20