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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20