/[gentoo-x86]/media-gfx/kst/kst-2.0.0.ebuild
Gentoo

Contents of /media-gfx/kst/kst-2.0.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Sep 13 16:37:23 2010 UTC (3 years, 7 months ago) by ayoy
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Moving media-gfx/kst to sci-visualization/kst

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/kst/kst-2.0.0.ebuild,v 1.1 2010/09/13 16:27:48 ayoy Exp $
4
5 EAPI=2
6
7 inherit qt4-r2 multilib
8
9 MY_PN="${PN/k/K}"
10
11 DESCRIPTION="Fast real-time large-dataset viewing and plotting tool for KDE4"
12 HOMEPAGE="http://kst.kde.org/"
13 SRC_URI="mirror://sourceforge/project/${PN}/${MY_PN}%20${PV}/${P}.tar.gz"
14
15 LICENSE="GPL-2 LGPL-2 FDL-1.2"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="debug"
19
20 DEPEND="x11-libs/qt-gui:4[debug?]
21 x11-libs/qt-opengl:4[debug?]
22 x11-libs/qt-qt3support:4[debug?]
23 x11-libs/qt-svg:4[debug?]
24 x11-libs/qt-xmlpatterns:4[debug?]
25 sci-libs/gsl
26 sci-libs/cfitsio
27 sci-libs/getdata"
28 RDEPEND="${DEPEND}"
29
30 PATCHES=( "${FILESDIR}/${PN}-cfitsio-includes.patch" )
31
32 src_prepare() {
33 qt4-r2_src_prepare
34 sed -e "s:\(INSTALL_DIR/\)lib:\1$(get_libdir):" \
35 -i src/libkst/libkst.pro src/libkstapp/libkstapp.pro \
36 src/libkstmath/libkstmath.pro || die "sed libdir failed"
37
38 sed -e "s:\(INSTALL_DIR/\)plugin:\1$(get_libdir)/kst/plugins:" \
39 -i dataobjectplugin.pri datasourceplugin.pri src/widgets/widgets.pro \
40 || die "sed plugins install path failed"
41
42 sed -e "s!QLibraryInfo::location(QLibraryInfo::PluginsPath)!\"/usr/$(get_libdir)/kst/plugins\"!" \
43 -i src/libkst/datasource.cpp src/libkstmath/dataobject.cpp \
44 || die "sed plugins search path failed"
45
46 # libkstwidgets is a Qt Designer plugin but they link against it (!!!)
47 # so either we keep it in plugins dir and set the rpath, or move to
48 # lib dir and add a SONAME. Currently the first solution is in use.
49 sed -e "s!\(QMAKE_RPATHDIR += \).*!\1/usr/$(get_libdir)/kst/plugins!" \
50 -i kst.pri src/d2asc/d2asc.pro src/d2d/d2d.pro \
51 || die "sed rpath failed"
52 }
53
54 src_configure() {
55 export INSTALL_LIBDIR="$(get_libdir)"
56 eqmake4
57 }
58
59 src_install() {
60 qt4-r2_src_install
61 doicon src/images/${PN}.png
62 make_desktop_entry "${PN}2" ${PN} ${PN} \
63 "Qt;Graphics;DataVisualization" || die "make_desktop_entry failed"
64 dodoc AUTHORS ChangeLog NEWS README RELEASE.NOTES || die "dodoc failed"
65 }

  ViewVC Help
Powered by ViewVC 1.1.20