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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Oct 15 16:10:11 2006 UTC (13 years, 3 months ago) by calchan
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Removed old versions.
(Portage version: 2.1.2_pre3-r1)
 (Unsigned Manifest commit)

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

  ViewVC Help
Powered by ViewVC 1.1.20