/[gentoo-x86]/net-analyzer/nam/nam-1.11-r1.ebuild
Gentoo

Contents of /net-analyzer/nam/nam-1.11-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Jul 29 20:29:28 2009 UTC (10 years, 5 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Masked for removal in 30 days since 26 May 2009.

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nam/nam-1.11-r1.ebuild,v 1.4 2009/03/20 20:16:04 jmbsvicetto Exp $
4
5 inherit eutils versionator
6
7 DESCRIPTION="Network Simulator GUI for NS"
8 HOMEPAGE="http://www.isi.edu/nsnam/nam"
9 MY_P="${PN}-src-${PV}"
10 SRC_URI_BASE="http://www.isi.edu/nsnam/dist/"
11 SRC_URI="${SRC_URI_BASE}/${MY_P}.tar.gz
12 ${SRC_URI_BASE}/${P}.patch"
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="-amd64 ~ppc ~sparc ~x86"
16 IUSE="debug"
17 DEPEND="x11-libs/libXmu
18 >=dev-lang/tcl-8.4.4
19 >=dev-lang/tk-8.4.4
20 >=dev-tcltk/otcl-1.0.8a
21 >=dev-tcltk/tclcl-1.0.13b
22 debug? ( dev-tcltk/tcl-debug )"
23 RDEPEND=">=net-analyzer/ns-2.27
24 ${DEPEND}"
25
26 src_unpack() {
27 unpack ${MY_P}.tar.gz
28 EPATCH_OPTS="-d ${S} -p0" epatch "${DISTDIR}"/${P}.patch
29 # bug 137053
30 epatch "${FILESDIR}"/${PN}-1.11-gcc4.patch
31 }
32
33 src_compile() {
34 local tclver=$(best_version ">=dev-lang/tcl-8.4.4")
35 einfo "Using ${tclver}"
36 tclver=$(get_version_component_range 1-3 "${tclver:13}")
37
38 local tkver=$(best_version ">=dev-lang/tk-8.4.4")
39 einfo "Using ${tkver}"
40 tkver=$(get_version_component_range 1-3 "${tkver:12}")
41
42 econf \
43 --mandir=/usr/share/man \
44 --enable-release \
45 --with-tcl-ver=${tclver} \
46 --with-tk-ver=${tkver} \
47 $(use_enable debug) \
48 || die "econf failed"
49
50 emake || die "emake failed"
51 }
52
53 src_install() {
54 dodir /usr/bin
55 emake DESTDIR="${D}" install || die "emake install failed"
56
57 doman nam.1
58
59 dohtml CHANGES.html TODO.html
60 dodoc FILES VERSION README
61 for i in iecdemos edu ex; do
62 docinto ${i}
63 dodoc ${i}/*
64 done
65 }

  ViewVC Help
Powered by ViewVC 1.1.20