You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-electronics/gwave/gwave-20090213-r1.ebuild

58 lines
1.4 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-electronics/gwave/gwave-20090213-r1.ebuild,v 1.5 2013/03/12 08:36:06 tomjbe Exp $
EAPI="2"
inherit autotools eutils fdo-mime gnome2-utils
MY_PN="gwave2"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Analog waveform viewer for SPICE-like simulations"
LICENSE="GPL-2"
HOMEPAGE="http://gwave.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
KEYWORDS="amd64 ppc x86"
IUSE="gnuplot plotutils"
SLOT="0"
DEPEND="=dev-scheme/guile-1.8*[networking]
=dev-scheme/guile-gnome-platform-2.16*"
RDEPEND="${DEPEND}
sci-electronics/electronics-menu
gnuplot? ( sci-visualization/gnuplot )
plotutils? ( media-libs/plotutils )"
S="${WORKDIR}/${MY_P}"
src_prepare() {
epatch "${FILESDIR}"/${P}-as-needed.patch
eautoreconf
}
src_install() {
emake DESTDIR="${D}" install || die "Installation failed"
dodoc AUTHORS NEWS README TODO || die "Installation of documentation failed"
newicon icons/wave-drag-ok.xpm gwave.xpm
make_desktop_entry gwave "Gwave" gwave "Electronics"
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
gnome2_icon_cache_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
gnome2_icon_cache_update
}