/[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.7 - (show annotations) (download)
Sun Jul 22 07:54:23 2007 UTC (12 years, 7 months ago) by pva
Branch: MAIN
Changes since 1.6: +3 -3 lines
Removed virtual/x11 dependency.
(Portage version: 2.1.3_rc8)

1 # Copyright 1999-2007 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.ebuild,v 1.6 2006/10/08 15:56:26 blubb 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="-amd64 ~ppc ~sparc ~x86"
16 IUSE="debug"
17 need_tclver="8.4.4"
18 valid_tclver="${need_tclver}"
19 mytclver=""
20 DEPEND="x11-libs/libXmu
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 # bug 137053
49 epatch "${FILESDIR}"/${PN}-1.11-gcc4.patch
50 }
51
52 src_compile() {
53 local myconf
54 findtclver ${valid_tclver}
55 myconf="${myconf} --with-tcl-ver=${mytclver} --with-tk-ver=${mytclver}"
56
57 econf ${myconf} \
58 --mandir=/usr/share/man \
59 --enable-stl \
60 --enable-release \
61 || die "./configure failed"
62 emake || die
63 }
64
65 src_install() {
66 dodir /usr/bin
67 emake DESTDIR="${D}" install || die
68 doman nam.1
69 dohtml CHANGES.html TODO.html
70 dodoc FILES VERSION INSTALL.WIN32 README
71 docinto iecdemos ; dodoc iecdemos/*
72 docinto edu ; dodoc edu/*
73 docinto examples ; dodoc ex/*
74 }

  ViewVC Help
Powered by ViewVC 1.1.20