| 1 |
jlec |
1.1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
|
|
# $Header: /var/cvsroot/gentoo-x86/sci-visualization/pyxplot/pyxplot-0.8.4.ebuild,v 1.4 2012/05/04 08:07:00 jdhore Exp $
|
| 4 |
|
|
|
| 5 |
|
|
EAPI=4
|
| 6 |
|
|
|
| 7 |
|
|
PYTHON_DEPEND="2"
|
| 8 |
|
|
|
| 9 |
|
|
inherit multilib python
|
| 10 |
|
|
|
| 11 |
|
|
DESCRIPTION="Gnuplot like graphing program publication-quality figures"
|
| 12 |
|
|
HOMEPAGE="http://www.pyxplot.org.uk/"
|
| 13 |
|
|
SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}.tar.gz"
|
| 14 |
|
|
|
| 15 |
|
|
LICENSE="GPL-2"
|
| 16 |
|
|
SLOT="0"
|
| 17 |
|
|
KEYWORDS="~amd64 ~x86"
|
| 18 |
|
|
IUSE=""
|
| 19 |
|
|
|
| 20 |
|
|
RDEPEND="
|
| 21 |
|
|
app-text/gv
|
| 22 |
|
|
dev-libs/libxml2:2
|
| 23 |
|
|
media-libs/libpng
|
| 24 |
|
|
sci-libs/cfitsio
|
| 25 |
|
|
sci-libs/fftw:3.0
|
| 26 |
|
|
sci-libs/gsl
|
| 27 |
|
|
sci-libs/scipy
|
| 28 |
|
|
virtual/latex-base
|
| 29 |
|
|
|| ( media-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] )"
|
| 30 |
|
|
DEPEND="${RDEPEND}
|
| 31 |
|
|
virtual/pkgconfig"
|
| 32 |
|
|
|
| 33 |
|
|
pkg_setup() {
|
| 34 |
|
|
python_set_active_version 2
|
| 35 |
|
|
python_pkg_setup
|
| 36 |
|
|
}
|
| 37 |
|
|
|
| 38 |
|
|
src_prepare() {
|
| 39 |
|
|
sed \
|
| 40 |
|
|
-e 's:/local:/:' \
|
| 41 |
|
|
-e "s:/lib/:/$(get_libdir)/:" \
|
| 42 |
|
|
-e "s:\${USRDIR}/share/${PN}:/$(python_get_sitedir)/${PN}:" \
|
| 43 |
|
|
-e "s:/doc/${PN}:/doc/${PF}:" \
|
| 44 |
|
|
-i Makefile.skel || die "sed Makefile.skel failed"
|
| 45 |
|
|
sed -i -e 's/-ltermcap//' configure || die
|
| 46 |
|
|
}
|