blob: 38056d393231ad80362b8132bbbcee18b4a12129 (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/kst/kst-2.0.0_beta2-r1.ebuild,v 1.3 2010/02/10 08:13:59 tove Exp $
EAPI=2
inherit qt4-r2 multilib
MY_PV="${PV/_/-}"
MY_P="${PN}-${MY_PV}"
DESCRIPTION="Fast real-time large-dataset viewing and plotting tool for KDE4"
HOMEPAGE="http://kst.kde.org/"
SRC_URI="mirror://kde/unstable/apps/KDE4.x/scientific/${MY_P}.tar.gz"
LICENSE="GPL-2 LGPL-2 FDL-1.2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug"
DEPEND="x11-libs/qt-gui:4[debug?]
x11-libs/qt-opengl:4[debug?]
x11-libs/qt-qt3support:4[debug?]
x11-libs/qt-svg:4[debug?]
x11-libs/qt-xmlpatterns:4[debug?]
sci-libs/gsl
sci-libs/cfitsio"
RDEPEND="${DEPEND}"
PATCHES=( "${FILESDIR}/${PN}-cfitsio-includes.patch" )
S="${WORKDIR}/${PN}"
src_prepare() {
qt4-r2_src_prepare
sed -e "s:\(INSTALL_DIR/\)lib:\1$(get_libdir):" \
-i src/libkst/libkst.pro src/libkstapp/libkstapp.pro \
src/libkstmath/libkstmath.pro || die "sed libdir failed"
sed -e "s:\(INSTALL_DIR/\)plugin:\1$(get_libdir)/kst/plugins:" \
-i dataobjectplugin.pri datasourceplugin.pri src/widgets/widgets.pro \
|| die "sed plugins install path failed"
sed -e "s!QLibraryInfo::location(QLibraryInfo::PluginsPath)!\"/usr/$(get_libdir)/kst/plugins\"!" \
-i src/libkst/datasource.cpp src/libkstmath/dataobject.cpp \
|| die "sed plugins search path failed"
# libkstwidgets is a Qt Designer plugin but they link against it (!!!)
# so either we keep it in plugins dir and set the rpath, or move to
# lib dir and add a SONAME. Currently the first solution is in use.
sed -e "s!\(QMAKE_RPATHDIR += \).*!\1/usr/$(get_libdir)/kst/plugins!" \
-i kst.pri src/d2asc/d2asc.pro src/d2d/d2d.pro \
|| die "sed rpath failed"
}
src_configure() {
export INSTDIR="${D}/usr"
eqmake4
}
src_install() {
emake install || die "emake install failed"
doicon src/images/${PN}.png
make_desktop_entry ${PN} ${PN} ${PN} \
"Qt;Graphics;DataVisualization" || die "make_desktop_entry failed"
dodoc AUTHORS ChangeLog NEWS PORTINGTODO README RELEASE.NOTES || die "dodoc failed"
}
|