diff options
Diffstat (limited to 'sci-visualization/quickplot/quickplot-0.8.5.ebuild')
-rw-r--r-- | sci-visualization/quickplot/quickplot-0.8.5.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/sci-visualization/quickplot/quickplot-0.8.5.ebuild b/sci-visualization/quickplot/quickplot-0.8.5.ebuild new file mode 100644 index 000000000000..6d5f8c984ad5 --- /dev/null +++ b/sci-visualization/quickplot/quickplot-0.8.5.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/quickplot/quickplot-0.8.5.ebuild,v 1.1 2006/01/29 20:16:16 cryos Exp $ + +inherit eutils + +DESCRIPTION="A fast interactive 2D plotter." +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" +HOMEPAGE="http://quickplot.sourceforge.net/" + +IUSE="sndfile" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="amd64 ~ppc x86" + +RDEPEND=">=dev-cpp/gtkmm-2.4.5 + sndfile? ( >=media-libs/libsndfile-1.0.5 )" + +DEPEND="${RDEPEND} + >=dev-util/pkgconfig-0.15" + +src_unpack() { + unpack ${A} + cd ${S} + # Some files have been moved around to more appropriate locations + sed -i -e 's|quickplot_icon.png|/usr/share/pixmaps/quickplot.png|' \ + index.html.in + sed -i -e 's|href="ChangeLog"|href="../ChangeLog.gz"|' index.html.in + sed -i -e 's|href="COPYING"|href="/usr/portage/licenses/GPL-2"|' \ + about.html.in +} + +src_compile() { + econf `use_with sndfile libsndfile` || die "econf step failed." + emake htmldir=/usr/share/doc/${PF}/html || die "emake step failed." +} + +src_install () { + make install DESTDIR=${D} htmldir=/usr/share/doc/${PF}/html \ + || die "make install step failed." + dodoc AUTHORS ChangeLog README README.devel TODO + # Remove COPYING as it is specified in LICENCE. Move other stuff. + cd ${D}/usr/share/doc/${PF}/html + rm COPYING quickplot_icon.png ChangeLog + mv ${D}/usr/share/pixmaps/quickplot_icon.png \ + ${D}/usr/share/pixmaps/quickplot.png + make_desktop_entry 'quickplot --no-pipe' Quickplot quickplot.png Graphics + mv ${D}/usr/share/applications/quickplot\ --no-pipe.desktop \ + ${D}/usr/share/applications/quickplot.desktop +} |