blob: 272d49f5fade50132b16515f68176c79442f7526 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nam/nam-1.11-r1.ebuild,v 1.2 2007/07/22 07:54:23 pva Exp $
inherit eutils
DESCRIPTION="Network Simulator GUI for NS"
HOMEPAGE="http://www.isi.edu/nsnam/nam"
MY_P="${PN}-src-${PV}"
SRC_URI_BASE="http://www.isi.edu/nsnam/dist/"
SRC_URI="${SRC_URI_BASE}/${MY_P}.tar.gz
${SRC_URI_BASE}/${P}.patch"
LICENSE="BSD"
SLOT="0"
KEYWORDS="-amd64 ~ppc ~sparc ~x86"
IUSE="debug"
DEPEND="x11-libs/libXmu
>=dev-lang/tcl-8.4.4
>=dev-lang/tk-8.4.4
>=dev-tcltk/otcl-1.0.8a
>=dev-tcltk/tclcl-1.0.13b
debug? ( dev-tcltk/tcl-debug )"
RDEPEND=">=net-analyzer/ns-2.27
${DEPEND}"
src_unpack() {
unpack ${MY_P}.tar.gz
EPATCH_OPTS="-d ${S} -p0" epatch "${DISTDIR}"/${P}.patch
# bug 137053
epatch "${FILESDIR}"/${PN}-1.11-gcc4.patch
}
src_compile() {
local tclver=$(best_version ">=dev-lang/tcl-8.4.4")
einfo "Using ${tclver}"
local tkver=$(best_version ">=dev-lang/tk-8.4.4")
einfo "Using ${tkver}"
econf \
--mandir=/usr/share/man \
--enable-release \
--with-tcl-ver=${tclver:13} \
--with-tk-ver=${tkver:12} \
$(use_enable debug) \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
dodir /usr/bin
emake DESTDIR="${D}" install || die "emake install failed"
doman nam.1
dohtml CHANGES.html TODO.html
dodoc FILES VERSION README
for i in iecdemos edu ex; do
docinto ${i}
dodoc ${i}/*
done
}
|