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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Mon Sep 13 16:27:48 2010 UTC (9 years, 10 months ago) by ayoy
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump, removing betas. Support for dirfile plugin through sci-libs/getdata. Thanks to Matěj Laitl <strohel@gmail.com> for updating the ebuild (bug #335019).

(Portage version: 2.2_rc81/cvs/Linux x86_64)

1 ayoy 1.1 # Copyright 1999-2010 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ayoy 1.2 # $Header: /var/cvsroot/gentoo-x86/media-gfx/kst/kst-2.0.0_beta5-r1.ebuild,v 1.1 2010/06/05 23:32:50 ayoy Exp $
4 ayoy 1.1
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     S="${WORKDIR}/${MY_PN}-2.0-beta5"
34    
35     src_prepare() {
36     qt4-r2_src_prepare
37     sed -e "s:\(INSTALL_DIR/\)lib:\1$(get_libdir):" \
38     -i src/libkst/libkst.pro src/libkstapp/libkstapp.pro \
39     src/libkstmath/libkstmath.pro || die "sed libdir failed"
40    
41     sed -e "s:\(INSTALL_DIR/\)plugin:\1$(get_libdir)/kst/plugins:" \
42     -i dataobjectplugin.pri datasourceplugin.pri src/widgets/widgets.pro \
43     || die "sed plugins install path failed"
44    
45     sed -e "s!QLibraryInfo::location(QLibraryInfo::PluginsPath)!\"/usr/$(get_libdir)/kst/plugins\"!" \
46     -i src/libkst/datasource.cpp src/libkstmath/dataobject.cpp \
47     || die "sed plugins search path failed"
48    
49     # libkstwidgets is a Qt Designer plugin but they link against it (!!!)
50     # so either we keep it in plugins dir and set the rpath, or move to
51     # lib dir and add a SONAME. Currently the first solution is in use.
52     sed -e "s!\(QMAKE_RPATHDIR += \).*!\1/usr/$(get_libdir)/kst/plugins!" \
53     -i kst.pri src/d2asc/d2asc.pro src/d2d/d2d.pro \
54     || die "sed rpath failed"
55     }
56    
57     src_configure() {
58     export INSTALL_LIBDIR="$(get_libdir)"
59     eqmake4
60     }
61    
62     src_install() {
63     qt4-r2_src_install
64     doicon src/images/${PN}.png
65     make_desktop_entry "${PN}2" ${PN} ${PN} \
66     "Qt;Graphics;DataVisualization" || die "make_desktop_entry failed"
67     dodoc AUTHORS ChangeLog NEWS README RELEASE.NOTES || die "dodoc failed"
68     }

  ViewVC Help
Powered by ViewVC 1.1.20