/[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.9 - (hide annotations) (download)
Wed Jul 29 20:29:28 2009 UTC (10 years, 7 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Masked for removal in 30 days since 26 May 2009.

1 zmedico 1.8 # Copyright 1999-2009 Gentoo Foundation
2 robbat2 1.1 # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.9 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nam/nam-1.11.ebuild,v 1.8 2009/03/20 19:42:29 zmedico Exp $
4 robbat2 1.1
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 blubb 1.6 KEYWORDS="-amd64 ~ppc ~sparc ~x86"
16 robbat2 1.1 IUSE="debug"
17     need_tclver="8.4.4"
18     valid_tclver="${need_tclver}"
19     mytclver=""
20 pva 1.7 DEPEND="x11-libs/libXmu
21 robbat2 1.1 >=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     has_version ">=dev-lang/tcl-${i}" && mytclver=${i}
36     done
37     use debug && einfo "Using TCL ${mytclver}"
38     if [ -z "${mytclver}" ]; then
39     die "Unable to find a suitable version of TCL"
40     fi
41     }
42    
43     src_unpack() {
44     unpack ${MY_P}.tar.gz
45 vanquirius 1.5 EPATCH_OPTS="-d ${S} -p0" epatch "${DISTDIR}"/${P}.patch
46     # bug 137053
47     epatch "${FILESDIR}"/${PN}-1.11-gcc4.patch
48 robbat2 1.1 }
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