summaryrefslogtreecommitdiff
blob: 71657030579216c73b1ca107cf116dc6b6553515 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/kst/kst-1.7.0-r1.ebuild,v 1.2 2009/11/07 00:33:35 ssuominen Exp $

EAPI="1"

ARTS_REQUIRED="never"

inherit kde flag-o-matic

DESCRIPTION="A plotting and data viewing program for KDE."
HOMEPAGE="http://kst.kde.org/"
SRC_URI="mirror://kde/stable/apps/KDE3.x/scientific/${P}.tar.gz"
LICENSE="GPL-2"

SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE=""

DEPEND="sys-libs/readline
	sci-libs/gsl
	>=sci-libs/netcdf-3.6.1-r1"
RDEPEND="${DEPEND}"

need-kde 3.5

PATCHES=(
	"${FILESDIR}/kst-1.7.0-desktop-file.diff"
	"${FILESDIR}/kst-1.7.0-system-kjs.diff"
	)

src_unpack() {
	kde_src_unpack
	rm -f "${S}"/configure
	sed -e "s:KJSE_SUBDIR=js:KJSE_SUBDIR=:" -i kst/src/extensions/Makefile.am
	# automagic dependency, ensure internel lib isn't used by mistake
	echo "FAIL FOR GOOD" > "${S}"/kst/src/extensions/js/kjsembed/global.cpp
}