blob: 4333ae550c71546186057e3fe901af5e07ee0fbf (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-visualization/pyxplot/pyxplot-0.8.2.ebuild,v 1.1 2010/08/24 20:45:49 bicatali Exp $
EAPI="2"
PYTHON_DEPEND="2"
inherit eutils python flag-o-matic
DESCRIPTION="Gnuplot like graphing program publication-quality figures"
HOMEPAGE="http://www.pyxplot.org.uk/"
SRC_URI="http://www.pyxplot.org.uk/src/${PN}_${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="virtual/latex-base
sci-libs/cfitsio
sci-libs/fftw:3.0
>=sci-libs/gsl-1.10
sci-libs/scipy
media-libs/libpng
dev-libs/libxml2
app-text/gv
|| ( media-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] )"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
epatch "${FILESDIR}"/${P}-flags.patch
# upstream: does not work with -O1 and above
replace-flags -O? -O0
sed -i \
-e 's:/local:/:' \
-e "s:/lib/:/$(get_libdir)/:" \
-e "s:\${USRDIR}/share/${PN}:/$(python_get_sitedir)/${PN}:" \
-e "s:/doc/${PN}:/doc/${PF}:" \
Makefile.skel || die "sed Makefile.skel failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc README AUTHORS ChangeLog
}
|