diff options
-rw-r--r-- | sci-electronics/gtkwave/ChangeLog | 7 | ||||
-rw-r--r-- | sci-electronics/gtkwave/files/digest-gtkwave-3.0.23 | 6 | ||||
-rw-r--r-- | sci-electronics/gtkwave/gtkwave-3.0.23.ebuild | 105 |
3 files changed, 117 insertions, 1 deletions
diff --git a/sci-electronics/gtkwave/ChangeLog b/sci-electronics/gtkwave/ChangeLog index 98ce56ccbf63..34fbb9550f59 100644 --- a/sci-electronics/gtkwave/ChangeLog +++ b/sci-electronics/gtkwave/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-electronics/gtkwave # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-electronics/gtkwave/ChangeLog,v 1.25 2007/02/27 11:48:51 calchan Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/gtkwave/ChangeLog,v 1.26 2007/04/01 15:17:14 calchan Exp $ + +*gtkwave-3.0.23 (01 Apr 2007) + + 01 Apr 2007; Denis Dupeyron <calchan@gentoo.org> +gtkwave-3.0.23.ebuild: + Version bump. *gtkwave-3.0.22 (27 Feb 2007) diff --git a/sci-electronics/gtkwave/files/digest-gtkwave-3.0.23 b/sci-electronics/gtkwave/files/digest-gtkwave-3.0.23 new file mode 100644 index 000000000000..7b1fc4977dcd --- /dev/null +++ b/sci-electronics/gtkwave/files/digest-gtkwave-3.0.23 @@ -0,0 +1,6 @@ +MD5 28d9e9ee08ec55684ab62ddac3bc855a gtkwave-3.0.23.tar.gz 2506904 +RMD160 df44282200d87a3172ec9e0b8aaeeca06087dcb1 gtkwave-3.0.23.tar.gz 2506904 +SHA256 b67a32b50394790979853e6c79e76fbbe890c381642ebd39483a73692631fbd6 gtkwave-3.0.23.tar.gz 2506904 +MD5 c61b4077afd81dcaf8e5e2ad38950cf8 gtkwave-doc-3.0.23.tar.gz 1213018 +RMD160 8bf5d0ced3b437a54751d3413adf880d6ce7529e gtkwave-doc-3.0.23.tar.gz 1213018 +SHA256 e4b1110d8e9220f43d1fba5099feb046eec8f3f31bb96d5f9c40dc469f2d41fb gtkwave-doc-3.0.23.tar.gz 1213018 diff --git a/sci-electronics/gtkwave/gtkwave-3.0.23.ebuild b/sci-electronics/gtkwave/gtkwave-3.0.23.ebuild new file mode 100644 index 000000000000..0a242fb559d1 --- /dev/null +++ b/sci-electronics/gtkwave/gtkwave-3.0.23.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/gtkwave/gtkwave-3.0.23.ebuild,v 1.1 2007/04/01 15:17:14 calchan Exp $ + +DESCRIPTION="A wave viewer for LXT, LXT2, VZT, GHW and standard Verilog VCD/EVCD files" +HOMEPAGE="http://home.nc.rr.com/gtkwave/" +SRC_URI="http://home.nc.rr.com/gtkwave/${P}.tar.gz + doc? ( http://home.nc.rr.com/gtkwave/${PN}-doc-${PV}.tar.gz )" + +IUSE="doc examples" +LICENSE="GPL-2 MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" + +DEPEND=">=x11-libs/gtk+-2 + dev-util/pkgconfig" + +src_unpack() { + unpack ${A} + cd ${S} + + # Using sed below, because equivalent patch is much bigger + + # configure must not be interactive, force GTK2 + sed -i \ + -e 's:echo "Build GTKWave for GTK+-1.x or 2.x?:# Build for GTK2:' \ + -e 's:read X:X="2":' \ + configure \ + || die "sed failed" + + # Fix command substitution + sed -i \ + -e 's:`pkg-config gtk+-2.0 --libs`:$(shell pkg-config gtk+-2.0 --libs):' \ + -e 's:`pkg-config gtk+-2.0 --cflags`:$(shell pkg-config gtk+-2.0 --cflags):' \ + src/Makefile_GTK2.in \ + contrib/rtlbrowse/Makefile_GTK2.in \ + || die "sed failed" + + # Comply with DESTDIR + sed -i \ + -e 's:$(bindir):$(DESTDIR)/$(bindir):' \ + -e 's:$(mandir):$(DESTDIR)/$(mandir):' \ + Makefile.in \ + || die "sed failed" + + # CFLAGS fixes + sed -i \ + -e 's:CFLAGS = -O2:CFLAGS +=:' \ + src/Makefile_GTK2.in \ + */*/Makefile*.in \ + || die "sed failed" + sed -i \ + -e 's:=$(COPT): +=:' \ + contrib/pccts/*/*/Makefile.in \ + || die "sed failed" + sed -i \ + -e 's:= $(COPT):+=:' \ + contrib/pccts/*/Makefile.in \ + || die "sed failed" + + # LDFLAGS fixes + sed -i \ + -e 's:$(CFLAGS) $(OBJS):$(CFLAGS) $(LDFLAGS) $(OBJS):' \ + src/Makefile_GTK2.in \ + || die "sed failed" + sed -i \ + -e 's:LDFLAGS=:LDFLAGS+=:' \ + contrib/rtlbrowse/Makefile_GTK2.in \ + || die "sed failed" + sed -i \ + -e 's:$(CC) $(CFLAGS) -o:$(CC) $(CFLAGS) $(LDFLAGS) -o:' \ + contrib/pccts/*/Makefile.in \ + src/helpers/Makefile.in \ + || die "sed failed" + sed -i \ + -e 's:$(CC) -o:$(CC) $(LDFLAGS) -o:' \ + contrib/vertex/Makefile.in \ + contrib/pccts/sorcerer/Makefile.in \ + contrib/pccts/support/genmk/Makefile.in \ + || die "sed failed" + sed -i \ + -e 's:-o ghwdump:$(LDFLAGS) -o ghwdump:' \ + src/helpers/Makefile.in \ + || die "sed failed" +} + +src_compile() { + econf || die 'Configuration failed' + + # Bug #142871 + emake -j1 || die 'Compilation failed' +} + +src_install() { + emake DESTDIR=${D} install || die "Installation failed" + dodoc ANALOG_README.TXT CHANGELOG.TXT + if use doc ; then + insinto /usr/share/doc/${PF} + doins "${WORKDIR}/${PN}.pdf" || die "Failed to install documentation." + fi + if use examples ; then + insinto /usr/share/doc/${PF} + doins -r examples || die "Failed to install examples." + fi +} |