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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Jun 5 23:32:50 2010 UTC (3 years, 10 months ago) by ayoy
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Fixed desktop file and removed mistakenly added RESTRICT=mirror (kudos to Samuli again).
(Portage version: 2.2_rc67/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20