/[gentoo-x86]/sci-electronics/gtkwave/gtkwave-3.0.28.ebuild
Gentoo

Contents of /sci-electronics/gtkwave/gtkwave-3.0.28.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Oct 20 22:50:35 2007 UTC (12 years, 3 months ago) by calchan
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump fixing bug #196437, thanks to Masaru Kimura.
(Portage version: 2.1.3.15)

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/gtkwave/gtkwave-3.0.28.ebuild,v 1.1 2007/04/30 21:23:06 calchan Exp $
4
5 DOC_VERSION="3.0.27"
6 DESCRIPTION="A wave viewer for LXT, LXT2, VZT, GHW and standard Verilog VCD/EVCD files"
7 HOMEPAGE="http://home.nc.rr.com/gtkwave/"
8 SRC_URI="http://home.nc.rr.com/gtkwave/${P}.tar.gz
9 doc? ( http://home.nc.rr.com/gtkwave/${PN}-doc-${DOC_VERSION}.tar.gz )"
10
11 IUSE="doc examples"
12 LICENSE="GPL-2 MIT"
13 SLOT="0"
14 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
15
16 DEPEND=">=x11-libs/gtk+-2
17 dev-util/pkgconfig"
18
19 src_unpack() {
20 unpack ${A}
21 cd ${S}
22
23 # Using sed below, because equivalent patch is much bigger
24
25 # configure must not be interactive, force GTK2
26 sed -i \
27 -e 's:echo "Build GTKWave for GTK+-1.x or 2.x?:# Build for GTK2:' \
28 -e 's:read X:X="2":' \
29 configure \
30 || die "sed 1 failed"
31
32 # Fix command substitution
33 sed -i \
34 -e 's:`pkg-config gtk+-2.0 --libs`:$(shell pkg-config gtk+-2.0 --libs):' \
35 -e 's:`pkg-config gtk+-2.0 --cflags`:$(shell pkg-config gtk+-2.0 --cflags):' \
36 src/Makefile_GTK2.in \
37 contrib/rtlbrowse/Makefile_GTK2.in \
38 || die "sed 2 failed"
39
40 # Comply with DESTDIR
41 sed -i \
42 -e 's:$(bindir):$(DESTDIR)/$(bindir):' \
43 -e 's:$(mandir):$(DESTDIR)/$(mandir):' \
44 Makefile.in \
45 || die "sed 3 failed"
46
47 # CFLAGS fixes
48 sed -i \
49 -e 's:CFLAGS = -O2:CFLAGS +=:' \
50 src/Makefile_GTK2.in \
51 */*/Makefile*.in \
52 || die "sed 4 failed"
53 sed -i \
54 -e 's:=$(COPT): +=:' \
55 contrib/pccts/*/*/Makefile.in \
56 || die "sed 5 failed"
57 sed -i \
58 -e 's:= $(COPT):+=:' \
59 contrib/pccts/*/Makefile.in \
60 || die "sed 6 failed"
61
62 # LDFLAGS fixes
63 sed -i \
64 -e 's:$(CFLAGS) $(OBJS):$(CFLAGS) $(LDFLAGS) $(OBJS):' \
65 src/Makefile_GTK2.in \
66 || die "sed 7 failed"
67 sed -i \
68 -e 's:LDFLAGS=:LDFLAGS+=:' \
69 contrib/rtlbrowse/Makefile_GTK2.in \
70 || die "sed 8 failed"
71 sed -i \
72 -e 's:$(CC) $(CFLAGS) -o:$(CC) $(CFLAGS) $(LDFLAGS) -o:' \
73 contrib/pccts/*/Makefile.in \
74 src/helpers/Makefile.in \
75 || die "sed 9 failed"
76 sed -i \
77 -e 's:$(CC) -o:$(CC) $(LDFLAGS) -o:' \
78 contrib/vermin/Makefile.in \
79 contrib/pccts/sorcerer/Makefile.in \
80 contrib/pccts/support/genmk/Makefile.in \
81 || die "sed 10 failed"
82 sed -i \
83 -e 's:-o ghwdump:$(LDFLAGS) -o ghwdump:' \
84 src/helpers/Makefile.in \
85 || die "sed 11 failed"
86 }
87
88 src_compile() {
89 econf || die 'Configuration failed'
90
91 # Bug #142871
92 emake -j1 || die 'Compilation failed'
93 }
94
95 src_install() {
96 emake DESTDIR=${D} install || die "Installation failed"
97 dodoc ANALOG_README.TXT CHANGELOG.TXT
98 if use doc ; then
99 insinto /usr/share/doc/${PF}
100 doins "${WORKDIR}/${PN}.pdf" || die "Failed to install documentation."
101 fi
102 if use examples ; then
103 insinto /usr/share/doc/${PF}
104 doins -r examples || die "Failed to install examples."
105 fi
106 }

  ViewVC Help
Powered by ViewVC 1.1.20