diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2004-06-07 22:11:29 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2004-06-07 22:11:29 +0000 |
commit | f06faa0da8618db38d168dae7560120859ae5021 (patch) | |
tree | fa5df0d3f1c90772fba33d5cb18ff2fbc74cdf15 /net-analyzer/ns | |
parent | Fix use invocation (diff) | |
download | historical-f06faa0da8618db38d168dae7560120859ae5021.tar.gz historical-f06faa0da8618db38d168dae7560120859ae5021.tar.bz2 historical-f06faa0da8618db38d168dae7560120859ae5021.zip |
remove unnecessary variables and function; tidy
Diffstat (limited to 'net-analyzer/ns')
-rw-r--r-- | net-analyzer/ns/ChangeLog | 5 | ||||
-rw-r--r-- | net-analyzer/ns/Manifest | 4 | ||||
-rw-r--r-- | net-analyzer/ns/ns-2.27-r1.ebuild | 63 |
3 files changed, 31 insertions, 41 deletions
diff --git a/net-analyzer/ns/ChangeLog b/net-analyzer/ns/ChangeLog index 99504ffc84e4..1d4cd533e4c8 100644 --- a/net-analyzer/ns/ChangeLog +++ b/net-analyzer/ns/ChangeLog @@ -1,6 +1,9 @@ # 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.7 2004/06/07 22:06:27 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ns/ChangeLog,v 1.8 2004/06/07 22:11:29 mr_bones_ Exp $ + + 07 Jun 2004; Michael Sterrett <mr_bones_@gentoo.org> ns-2.27-r1.ebuild: + remove unnecessary variables and function; tidy 07 Jun 2004; Michael Sterrett <mr_bones_@gentoo.org> ns-2.26-r1.ebuild, ns-2.26.ebuild, ns-2.27.ebuild: diff --git a/net-analyzer/ns/Manifest b/net-analyzer/ns/Manifest index 8c21b4b622d6..29072ceef1c7 100644 --- a/net-analyzer/ns/Manifest +++ b/net-analyzer/ns/Manifest @@ -1,3 +1,3 @@ -MD5 468bc42feab0a60a52d39a047f19e094 ChangeLog 1184 -MD5 df142fb3d84a857d19f9b2126eaad8b9 ns-2.27-r1.ebuild 2910 +MD5 f0c9ba913cf63fa6620c50831973a897 ChangeLog 1309 +MD5 71576957fd064048e2ae260d63b752d2 ns-2.27-r1.ebuild 2434 MD5 cbd46edc227114c8538b564b0bdf1ae6 files/digest-ns-2.27-r1 65 diff --git a/net-analyzer/ns/ns-2.27-r1.ebuild b/net-analyzer/ns/ns-2.27-r1.ebuild index c074cd2a3bb4..1f8b4cd07e4e 100644 --- a/net-analyzer/ns/ns-2.27-r1.ebuild +++ b/net-analyzer/ns/ns-2.27-r1.ebuild @@ -1,48 +1,35 @@ # 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.27-r1.ebuild,v 1.2 2004/05/17 16:09:49 usata Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ns/ns-2.27-r1.ebuild,v 1.3 2004/06/07 22:11:29 mr_bones_ 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" -need_tclver="8.4.4" -valid_tclver="${need_tclver}" -mytclver="" -DEPEND_COMMON=">=dev-lang/tcl-${need_tclver} - >=dev-lang/tk-${need_tclver} + +DEPEND_COMMON=">=dev-lang/tcl-8.4.4 + >=dev-lang/tk-8.4.4 >=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? ( virtual/tetex virtual/ghostscript dev-tex/latex2html ) ${DEPEND_COMMON}" RDEPEND="${DEPEND_COMMON}" -S=${WORKDIR}/${P} - -findtclver() { - # input should always be in INCREASING order - local ACCEPTVER="8.3 8.4" - [ -n "$*" ] && ACCEPTVER="$*" - for i in ${ACCEPTVER}; do - use debug && einfo "Testing TCL ${i}" - # we support being more specific - [ "$(#i)" = "3" ] && i="${i}*" - has_version ">=dev-lang/tcl-${i}" && mytclver=${i} - done - use debug && einfo "Using TCL ${mytclver}" - if [ -z "${mytclver}" ]; then - die "Unable to find a suitable version of TCL" - fi -} 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="" + local i + + use debug \ + && myconf="${myconf} --with-tcldebug=/usr/lib/tcldbg2.0" \ + || myconf="${myconf} --with-tcldebug=no" + myconf="${myconf} $(use_with debug dmalloc)" + for i in 8.4 8.3; do einfo "Testing TCL ${i}" has_version "=dev-lang/tcl-${i}*" && mytclver=${i} @@ -52,10 +39,10 @@ src_compile() { myconf="${myconf} --with-tcl-ver=${mytclver} --with-tk-ver=${mytclver}" econf \ - ${myconf} \ - --mandir=/usr/share/man \ - --enable-stl \ - --enable-release || die "./configure failed" + ${myconf} \ + --mandir=/usr/share/man \ + --enable-stl \ + --enable-release || die "./configure failed" emake CCOPT="${CFLAGS}" || die cd ${S}/indep-utils/dosdbell @@ -67,27 +54,27 @@ src_compile() { } src_install() { - dodir /usr/bin - dodir /usr/share/man/man1 - make DESTDIR=${D} MANDEST=/usr/share/man install || die + dodir /usr/bin /usr/share/man/man1 + make DESTDIR="${D}" MANDEST=/usr/share/man install \ + || die "make install failed" dobin nse dodoc BASE-VERSION COPYRIGHTS FILES HOWTO-CONTRIBUTE README VERSION dohtml CHANGES.html TODO.html - cp -ra ${S}/ns-tutorial ${D}/usr/share/doc/${PF} - cp -ra ${S}/tcl ${D}/usr/share/ns + cp -ra "${S}/ns-tutorial" "${D}/usr/share/doc/${PF}" + cp -ra "${S}/tcl" "${D}/usr/share/ns" - cd ${S}/indep-utils/dosdbell + cd "${S}/indep-utils/dosdbell" dobin dosdbell dosdbellasim newdoc README README.dosdbell - cd ${S}/indep-utils/dosreduce + cd "${S}/indep-utils/dosreduce" dobin dosreduce newdoc README README.dosreduce - cd ${S}/indep-utils/cmu-scen-gen + cd "${S}/indep-utils/cmu-scen-gen" dobin cbrgen.tcl newdoc README README.cbrgen - cd ${S}/indep-utils/propagation + cd "${S}/indep-utils/propagation" dobin threshold if use doc; then |