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

Contents of /net-analyzer/nam/nam-1.10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Wed Jul 29 20:29:28 2009 UTC (10 years, 6 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +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.10.ebuild,v 1.10 2009/03/20 20:16:04 jmbsvicetto Exp $
4
5 DESCRIPTION="Network Simulator GUI for NS"
6 HOMEPAGE="http://www.isi.edu/nsnam/${PN}/"
7 SRC_URI="http://www.isi.edu/nsnam/dist/${PN}-src-${PV}.tar.gz"
8 LICENSE="BSD"
9 SLOT="0"
10 KEYWORDS="~x86 ~sparc"
11 IUSE="debug"
12 need_tclver="8.4.4"
13 valid_tclver="${need_tclver}"
14 mytclver=""
15 DEPEND="x11-libs/libXmu
16 >=dev-lang/tcl-${need_tclver}
17 >=dev-lang/tk-${need_tclver}
18 >=dev-tcltk/otcl-1.0.8a
19 >=dev-tcltk/tclcl-1.0.13b
20 dev-tcltk/tcl-debug"
21 RDEPEND=">=net-analyzer/ns-2.27
22 ${DEPEND}"
23
24 findtclver() {
25 # input should always be in INCREASING order
26 local ACCEPTVER="8.3 8.4"
27 [ -n "$*" ] && ACCEPTVER="$*"
28 for i in ${ACCEPTVER}; do
29 use debug && einfo "Testing TCL ${i}"
30 has_version ">=dev-lang/tcl-${i}" && mytclver=${i}
31 done
32 use debug && einfo "Using TCL ${mytclver}"
33 if [ -z "${mytclver}" ]; then
34 die "Unable to find a suitable version of TCL"
35 fi
36 }
37
38 src_compile() {
39 local myconf
40 findtclver ${valid_tclver}
41 myconf="${myconf} --with-tcl-ver=${mytclver} --with-tk-ver=${mytclver}"
42
43 econf ${myconf} \
44 --mandir=/usr/share/man \
45 --enable-stl \
46 --enable-release \
47 || die "./configure failed"
48 emake || die
49 }
50
51 src_install() {
52 dodir /usr/bin
53 make DESTDIR="${D}" install || die
54 dohtml CHANGES.html TODO.html
55 dodoc FILES VERSION INSTALL.WIN32 README
56 cp -ra ex "${D}/usr/share/doc/${PF}/examples"
57 cp -ra iecdemos edu "${D}/usr/share/doc/${PF}"
58 doman nam.1
59 }

  ViewVC Help
Powered by ViewVC 1.1.20