/[gentoo-x86]/sci-electronics/gwave/gwave-20070514.ebuild
Gentoo

Contents of /sci-electronics/gwave/gwave-20070514.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Nov 14 13:40:53 2009 UTC (11 years ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
QA: Drop old masked version since newer is around.
(Portage version: 2.2_rc49/cvs/Linux x86_64)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-electronics/gwave/gwave-20070514.ebuild,v 1.4 2007/11/25 17:03:02 calchan Exp $
4
5 MY_P="${PN}2-${PV}"
6 DESCRIPTION="Analog waveform viewer for SPICE-like simulations"
7 LICENSE="GPL-2"
8 HOMEPAGE="http://www.geda.seul.org/tools/gwave/"
9 SRC_URI="http://www.telltronics.org/pub/gwave/${MY_P}.tar.gz"
10
11 KEYWORDS="~ppc ~x86"
12 IUSE="gnuplot plotutils"
13 SLOT="0"
14
15 DEPEND="=dev-scheme/guile-1.8*
16 =x11-libs/guile-gtk-2*
17 dev-scheme/guile-gnome-platform"
18 RDEPEND="${DEPEND}
19 gnuplot? ( sci-visualization/gnuplot )
20 plotutils? ( media-libs/plotutils )"
21
22 S="${WORKDIR}/${MY_P}"
23
24 src_unpack() {
25 unpack ${A}
26 cd "${S}"
27
28 # Fix what seems to be an unintentional newline in the sources from upstream
29 sed -i -e '/readline "-l$/N;s/\n//' configure || die "sed failed"
30
31 # --as-needed fixes
32 sed -i -e 's/$(LINK) \($(.*_LDFLAGS)\) \($(.*_OBJECTS) $(.*_LDADD) $(LIBS)\)/$(LINK) \2 \1/' spicefile/Makefile.in || die "sed failed"
33 sed -i -e 's/_LDADD = @GTK_LIBS@/_LDADD = @GTK_LIBS@ -lX11/' remote/Makefile.in || die "sed failed"
34 }
35
36 src_compile() {
37 econf --disable-dependency-tracking || die "Configuration failed"
38 emake || die "Compilation failed"
39 }
40
41 src_install() {
42 emake DESTDIR="${D}" install || die "Installation failed"
43 rm -f doc/Makefile* *.1 || die "Removing doc/Makefile failed"
44 dodoc AUTHORS NEWS README TODO || die "Installation of documentation failed"
45 }

  ViewVC Help
Powered by ViewVC 1.1.20