summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2004-01-20 23:14:40 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2004-01-20 23:14:40 +0000
commitec2fc4cbb013ab1ef26c1f05a229c81bc2463823 (patch)
treed8e395fa43cd3eb918b8c5c6a65a8520071355c3 /net-analyzer/ns
parentinitial import (diff)
downloadhistorical-ec2fc4cbb013ab1ef26c1f05a229c81bc2463823.tar.gz
historical-ec2fc4cbb013ab1ef26c1f05a229c81bc2463823.tar.bz2
historical-ec2fc4cbb013ab1ef26c1f05a229c81bc2463823.zip
make it install the tutorials and all tcl files
Diffstat (limited to 'net-analyzer/ns')
-rw-r--r--net-analyzer/ns/ChangeLog7
-rw-r--r--net-analyzer/ns/Manifest6
-rw-r--r--net-analyzer/ns/files/digest-ns-2.26-r11
-rw-r--r--net-analyzer/ns/ns-2.26-r1.ebuild71
4 files changed, 82 insertions, 3 deletions
diff --git a/net-analyzer/ns/ChangeLog b/net-analyzer/ns/ChangeLog
index c66cb2463534..8f8302d8d4ab 100644
--- a/net-analyzer/ns/ChangeLog
+++ b/net-analyzer/ns/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-analyzer/ns
# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ns/ChangeLog,v 1.2 2004/01/15 05:40:22 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ns/ChangeLog,v 1.3 2004/01/20 23:14:40 robbat2 Exp $
+
+*ns-2.26-r1 (20 Jan 2004)
+
+ 20 Jan 2004; Robin H. Johnson <robbat2@gentoo.org> ns-2.26-r1.ebuild:
+ make it install the tutorials and all tcl files
*ns-2.26 (11 Jan 2004)
diff --git a/net-analyzer/ns/Manifest b/net-analyzer/ns/Manifest
index 775a528921b5..56eaae58dde5 100644
--- a/net-analyzer/ns/Manifest
+++ b/net-analyzer/ns/Manifest
@@ -1,3 +1,5 @@
+MD5 8274586336fd5e66c5a9b1a4b786c8b8 ns-2.26-r1.ebuild 2070
+MD5 34efa95fa7271e9b0215b9b152a0fd24 ns-2.26.ebuild 1981
+MD5 ca69a1db0e8e17b24bace8ba95e7385c ChangeLog 589
+MD5 e50216b9efeff43a6e4ccadbc249ab44 files/digest-ns-2.26-r1 65
MD5 e50216b9efeff43a6e4ccadbc249ab44 files/digest-ns-2.26 65
-MD5 36e7a8b53a3b488bdcb92c7a298c9d86 ns-2.26.ebuild 1982
-MD5 7c68591ad6344f945798613d5d5620c6 ChangeLog 439
diff --git a/net-analyzer/ns/files/digest-ns-2.26-r1 b/net-analyzer/ns/files/digest-ns-2.26-r1
new file mode 100644
index 000000000000..ae75367cf458
--- /dev/null
+++ b/net-analyzer/ns/files/digest-ns-2.26-r1
@@ -0,0 +1 @@
+MD5 c75aa2047fa3e13ed2a43881c50e4c65 ns-src-2.26.tar.gz 41592248
diff --git a/net-analyzer/ns/ns-2.26-r1.ebuild b/net-analyzer/ns/ns-2.26-r1.ebuild
new file mode 100644
index 000000000000..2e3246d1979b
--- /dev/null
+++ b/net-analyzer/ns/ns-2.26-r1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ns/ns-2.26-r1.ebuild,v 1.1 2004/01/20 23:14:40 robbat2 Exp $
+
+DESCRIPTION="Network Simulator"
+HOMEPAGE="http://www.isi.edu/nsnam/ns/"
+SRC_URI="http://www.isi.edu/nsnam/dist/${PN}-src-${PV}.tar.gz"
+LICENSE="BSD as-is"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="doc debug"
+DEPEND_COMMON=">=dev-lang/tcl-8.3.2
+ >=dev-lang/tk-8.3.2
+ >=dev-tcltk/otcl-1.0.8a
+ >=dev-tcltk/tclcl-1.0.13b
+ net-libs/libpcap
+ debug? ( =dev-lang/perl-5* >=media-gfx/xgraph-12.1 >=dev-libs/dmalloc-4.8.2 >=dev-tcltk/tcl-debug-2.0 )"
+DEPEND="doc? ( app-text/tetex app-text/ghostscript dev-tex/latex2html ) ${DEPEND_COMMON}"
+# for later
+#RDEPEND=">=net-analyzer/nam-1.9 ${DEPEND_COMMON}"
+
+S=${WORKDIR}/${P}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ grep -ri 'tcl\.result[[:space:]]*()' * -l | \
+ xargs -r -n1 sed -e 's|tcl\.result[[:space:]]*()|(char*)tcl.result()|' -i
+}
+
+src_compile() {
+ local myconf
+ use debug && myconf="${myconf} --with-tcldebug=/usr/lib/tcldbg2.0" || myconf="${myconf} --with-tcldebug=no"
+ myconf="${myconf} `use_with debug dmalloc`"
+ local mytclver=""
+ for i in 8.4 8.3; do
+ einfo "Testing TCL ${i}"
+ has_version "=dev-lang/tcl-${i}*" && mytclver=${i}
+ [ "${#mytclver}" -gt 2 ] && break
+ done
+ einfo "Using TCL ${mytclver}"
+ myconf="${myconf} --with-tcl-ver=${mytclver} --with-tk-ver=${mytclver}"
+
+ econf \
+ ${myconf} \
+ --mandir=/usr/share/man \
+ --enable-stl \
+ --enable-release || die "./configure failed"
+ emake CCOPT="${CFLAGS}" || die
+}
+
+src_install() {
+ dodir /usr/bin
+ dodir /usr/share/man/man1
+ make DESTDIR=${D} MANDEST=/usr/share/man install || die
+ dobin nse
+
+ dodoc BASE-VERSION COPYRIGHTS FILES HOWTO-CONTRIBUTE README VERSION
+ dohtml CHANGES.html TODO.html
+
+ if use doc; then
+ einfo "Generating extra docs"
+ cd doc
+ docinto doc
+ emake all
+ dodoc everything.dvi everything.ps.gz everything.html everything.pdf
+ fi
+
+ cp -ra ${S}/ns-tutorial ${D}/usr/share/doc/${PF}
+ cp -ra ${S}/tcl ${D}/usr/share/ns
+}