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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Wed Apr 11 06:25:42 2007 UTC (12 years, 9 months ago) by calchan
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Post-stabilization cleanup.
(Portage version: 2.1.2.3)

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.5.ebuild,v 1.6 2007/01/28 14:06:59 calchan Exp $
4
5 inherit eutils
6
7 DESCRIPTION="A wave viewer for LXT, LXT2, VZT, GHW and standard Verilog VCD/EVCD files"
8 HOMEPAGE="http://home.nc.rr.com/gtkwave/"
9 SRC_URI="mirror://gentoo/${P}.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 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 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 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 failed"
53 sed -i \
54 -e 's:=$(COPT): +=:' \
55 contrib/pccts/*/*/Makefile.in \
56 || die "sed failed"
57 sed -i \
58 -e 's:= $(COPT):+=:' \
59 contrib/pccts/*/Makefile.in \
60 || die "sed failed"
61
62 # LDFLAGS fixes
63 sed -i \
64 -e 's:$(CFLAGS) $(OBJS):$(CFLAGS) $(LDFLAGS) $(OBJS):' \
65 src/Makefile_GTK2.in \
66 || die "sed failed"
67 sed -i \
68 -e 's:LDFLAGS=:LDFLAGS+=:' \
69 contrib/rtlbrowse/Makefile_GTK2.in \
70 || die "sed 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 failed"
76 sed -i \
77 -e 's:$(CC) -o:$(CC) $(LDFLAGS) -o:' \
78 contrib/vertex/Makefile.in \
79 contrib/pccts/sorcerer/Makefile.in \
80 contrib/pccts/support/genmk/Makefile.in \
81 || die "sed failed"
82 sed -i \
83 -e 's:-o ghwdump:$(LDFLAGS) -o ghwdump:' \
84 src/helpers/Makefile.in \
85 || die "sed failed"
86 }
87
88 src_compile() {
89 econf || die 'econf failed!'
90
91 # Bug #142871
92 emake -j1 || die 'emake failed!'
93 }
94
95 src_install() {
96 make DESTDIR=${D} install || die
97 dodoc ANALOG_README.TXT CHANGELOG.TXT
98 if use doc ; then
99 dohtml doc/LXT_Explained.html
100 insinto /usr/share/doc/${PF}
101 doins doc/gtkwave.pdf
102 fi
103 if use examples ; then
104 insinto /usr/share/${PF}
105 doins -r examples
106 fi
107 }

  ViewVC Help
Powered by ViewVC 1.1.20