blob: cca4283abacd2bb02b415c30869e73de87a2a312 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-electronics/gtkwave/gtkwave-3.3.37.ebuild,v 1.1 2012/06/13 13:39:41 xmw Exp $
EAPI="4"
inherit fdo-mime
DESCRIPTION="A wave viewer for LXT, LXT2, VZT, GHW and standard Verilog VCD/EVCD files"
HOMEPAGE="http://gtkwave.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
IUSE="doc examples fasttree fatlines judy lzma packed tcl"
LICENSE="GPL-2 MIT"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
RDEPEND="dev-libs/glib:2
x11-libs/gtk+:2
x11-libs/pango
sys-libs/zlib
judy? ( dev-libs/judy )
tcl? ( dev-lang/tcl dev-lang/tk )
lzma? ( app-arch/xz-utils )"
DEPEND="${RDEPEND}
virtual/pkgconfig
dev-util/gperf"
src_prepare(){
# do not install doc and examples by default
sed -i -e 's/doc examples//' Makefile.in || die
}
src_configure(){
econf --disable-local-libz \
--disable-local-libbz2 \
--disable-mime-update \
--enable-largefile \
$(use_enable packed struct-pack) \
$(use_enable fatlines) \
$(use_enable tcl) \
$(use_enable lzma xz) \
$(use_enable fasttree) \
$(use_enable judy)
}
src_install() {
emake DESTDIR="${D}" install
dodoc ANALOG_README.TXT SYSTEMVERILOG_README.TXT CHANGELOG.TXT
if use doc ; then
insinto /usr/share/doc/${PF}
doins "doc/${PN}.odt"
fi
if use examples ; then
insinto /usr/share/doc/${PF}
doins -r examples
fi
}
pkg_postinst() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
}
|