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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Feb 27 05:12:09 2005 UTC (14 years, 11 months ago) by robbat2
Branch: MAIN
Bug #82771, version bump.
(Portage version: 2.0.51.16)

1 # Copyright 1999-2005 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.5 2005/02/13 22:27:04 robbat2 Exp $
4
5 inherit eutils
6
7 DESCRIPTION="Network Simulator GUI for NS"
8 HOMEPAGE="http://www.isi.edu/nsnam/${PN}/"
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="~x86 ~sparc"
16 IUSE="debug"
17 need_tclver="8.4.4"
18 valid_tclver="${need_tclver}"
19 mytclver=""
20 DEPEND="virtual/x11
21 >=dev-lang/tcl-${need_tclver}
22 >=dev-lang/tk-${need_tclver}
23 >=dev-tcltk/otcl-1.0.8a
24 >=dev-tcltk/tclcl-1.0.13b
25 dev-tcltk/tcl-debug"
26 RDEPEND=">=net-analyzer/ns-2.27
27 ${DEPEND}"
28
29 findtclver() {
30 # input should always be in INCREASING order
31 local ACCEPTVER="8.3 8.4"
32 [ -n "$*" ] && ACCEPTVER="$*"
33 for i in ${ACCEPTVER}; do
34 use debug && einfo "Testing TCL ${i}"
35 # we support being more specific
36 [ "$(#i)" = "3" ] && i="${i}*"
37 has_version ">=dev-lang/tcl-${i}" && mytclver=${i}
38 done
39 use debug && einfo "Using TCL ${mytclver}"
40 if [ -z "${mytclver}" ]; then
41 die "Unable to find a suitable version of TCL"
42 fi
43 }
44
45 src_unpack() {
46 unpack ${MY_P}.tar.gz
47 EPATCH_OPTS="-d ${S} -p0" epatch ${DISTDIR}/${P}.patch
48 }
49
50 src_compile() {
51 local myconf
52 findtclver ${valid_tclver}
53 myconf="${myconf} --with-tcl-ver=${mytclver} --with-tk-ver=${mytclver}"
54
55 econf ${myconf} \
56 --mandir=/usr/share/man \
57 --enable-stl \
58 --enable-release \
59 || die "./configure failed"
60 emake || die
61 }
62
63 src_install() {
64 dodir /usr/bin
65 emake DESTDIR="${D}" install || die
66 doman nam.1
67 dohtml CHANGES.html TODO.html
68 dodoc FILES VERSION INSTALL.WIN32 README
69 docinto iecdemos ; dodoc iecdemos/*
70 docinto edu ; dodoc edu/*
71 docinto examples ; dodoc ex/*
72 }

  ViewVC Help
Powered by ViewVC 1.1.20