blob: e7509735f633dbf9ccb886a43a0d77d7c88df2b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-biggles/python-biggles-1.6.4-r1.ebuild,v 1.5 2008/03/10 15:20:30 beandog Exp $
inherit distutils eutils
MY_P=${P/python/python2}
S=${WORKDIR}/${MY_P}
DESCRIPTION="A Python module for creating publication-quality 2D scientific plots."
SRC_URI="mirror://sourceforge/biggles/${MY_P}.tar.gz"
HOMEPAGE="http://biggles.sourceforge.net/"
DEPEND="~media-libs/plotutils-2.4.1
dev-python/numpy
x11-libs/libSM
x11-libs/libXext"
RDEPEND="${DEPEND}"
IUSE=""
SLOT="0"
KEYWORDS="amd64 ~ia64 x86"
LICENSE="GPL-2"
PYTHON_MODNAME=biggles
pkg_setup() {
if ! built_with_use media-libs/plotutils X ; then
eerror "${P} needs media-libs/plotutils built with"
eerror "USE=\"X\", please rebuild it with X enabled"
eerror "and emerge ${P} again."
die "media-libs/plotutils built without USE=\"X\""
fi
}
src_unpack() {
distutils_src_unpack
epatch "${FILESDIR}/${P}-numpy.patch"
}
src_install() {
distutils_src_install
dodir /usr/share/doc/${PF}/examples
cp -r examples/* "${D}/usr/share/doc/${PF}/examples"
}
pkg_postinst() {
ewarn "This version uses numpy instead of the numeric module."
ewarn "If this causes any unforeseen problems please file a bug on"
ewarn "http://bugs.gentoo.org."
}
|