/[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.6 - (hide annotations) (download)
Sun Oct 8 15:56:26 2006 UTC (13 years, 4 months ago) by blubb
Branch: MAIN
Changes since 1.5: +2 -2 lines
marking -amd64; this is not 64bit save at all, doesn't even compile with gcc4; bug 149880
(Portage version: 2.1.2_pre2-r3)

1 pva 1.4 # Copyright 1999-2006 Gentoo Foundation
2 robbat2 1.1 # Distributed under the terms of the GNU General Public License v2
3 blubb 1.6 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nam/nam-1.11.ebuild,v 1.5 2006/08/01 23:24:39 vanquirius 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.4 DEPEND="|| ( x11-libs/libXmu virtual/x11 )
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     # 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 vanquirius 1.5 EPATCH_OPTS="-d ${S} -p0" epatch "${DISTDIR}"/${P}.patch
48     # bug 137053
49     epatch "${FILESDIR}"/${PN}-1.11-gcc4.patch
50 robbat2 1.1 }
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