1 |
anant 07/10/01 10:45:46 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ns-2.31.ebuild |
5 |
Log: |
6 |
Bump to 2.31 |
7 |
(Portage version: 2.1.3.9) |
8 |
|
9 |
Revision Changes Path |
10 |
1.26 net-analyzer/ns/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/ns/ChangeLog?rev=1.26&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/ns/ChangeLog?rev=1.26&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/ns/ChangeLog?r1=1.25&r2=1.26 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/ns/ChangeLog,v |
19 |
retrieving revision 1.25 |
20 |
retrieving revision 1.26 |
21 |
diff -u -r1.25 -r1.26 |
22 |
--- ChangeLog 26 Jul 2007 13:34:36 -0000 1.25 |
23 |
+++ ChangeLog 1 Oct 2007 10:45:45 -0000 1.26 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for net-analyzer/ns |
26 |
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ns/ChangeLog,v 1.25 2007/07/26 13:34:36 anant Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ns/ChangeLog,v 1.26 2007/10/01 10:45:45 anant Exp $ |
29 |
+ |
30 |
+*ns-2.31 (01 Oct 2007) |
31 |
+ |
32 |
+ 01 Oct 2007; Anant Narayanan <anant@g.o> +ns-2.31.ebuild: |
33 |
+ Bump to 2.31 |
34 |
|
35 |
26 Jul 2007; Anant Narayanan <anant@g.o> metadata.xml: |
36 |
Add myself to metadata. |
37 |
|
38 |
|
39 |
|
40 |
1.1 net-analyzer/ns/ns-2.31.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/ns/ns-2.31.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/ns/ns-2.31.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: ns-2.31.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2007 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ns/ns-2.31.ebuild,v 1.1 2007/10/01 10:45:45 anant Exp $ |
50 |
|
51 |
inherit eutils toolchain-funcs flag-o-matic |
52 |
|
53 |
DESCRIPTION="Network Simulator" |
54 |
HOMEPAGE="http://www.isi.edu/nsnam/ns/" |
55 |
SRC_URI="http://downloads.sourceforge.net/nsnam/${PN}-src-${PV}.tar.gz" |
56 |
|
57 |
LICENSE="BSD as-is" |
58 |
SLOT="0" |
59 |
KEYWORDS="~ppc ~sparc ~x86 ~amd64" |
60 |
IUSE="doc debug" |
61 |
|
62 |
RDEPEND=">=dev-lang/tcl-8.4.5 |
63 |
>=dev-lang/tk-8.4.5 |
64 |
>=dev-tcltk/otcl-1.11 |
65 |
>=dev-tcltk/tclcl-1.17 |
66 |
virtual/libpcap |
67 |
debug? ( =dev-lang/perl-5* |
68 |
>=sci-visualization/xgraph-12.1 |
69 |
>=dev-libs/dmalloc-4.8.2 |
70 |
>=dev-tcltk/tcl-debug-2.0 )" |
71 |
DEPEND="${RDEPEND} |
72 |
doc? ( virtual/tetex |
73 |
virtual/ghostscript |
74 |
dev-tex/latex2html )" |
75 |
|
76 |
src_unpack() { |
77 |
unpack ${A} |
78 |
cd ${S} |
79 |
sed '/$(CC)/s!-g!$(CFLAGS)!g' ${S}/indep-utils/model-gen/Makefile |
80 |
} |
81 |
|
82 |
src_compile() { |
83 |
local myconf |
84 |
local mytclver="" |
85 |
local i |
86 |
|
87 |
tc-export CC CXX |
88 |
|
89 |
# correctness is more important than speed |
90 |
replace-flags -Os -O2 |
91 |
replace-flags -O3 -O2 |
92 |
|
93 |
use debug \ |
94 |
&& myconf="${myconf} --with-tcldebug=/usr/lib/tcldbg2.0" \ |
95 |
|| myconf="${myconf} --with-tcldebug=no" |
96 |
myconf="${myconf} $(use_with debug dmalloc)" |
97 |
|
98 |
for i in 8.4 ; do |
99 |
einfo "Testing TCL ${i}" |
100 |
has_version "=dev-lang/tcl-${i}*" && mytclver=${i} |
101 |
[ "${#mytclver}" -gt 2 ] && break |
102 |
done |
103 |
einfo "Using TCL ${mytclver}" |
104 |
myconf="${myconf} --with-tcl-ver=${mytclver} --with-tk-ver=${mytclver}" |
105 |
|
106 |
econf \ |
107 |
${myconf} \ |
108 |
--mandir=/usr/share/man \ |
109 |
--enable-stl \ |
110 |
--enable-release || die "./configure failed" |
111 |
emake CCOPT="${CFLAGS}" || die |
112 |
|
113 |
cd ${S}/indep-utils/dosdbell |
114 |
emake DFLAGS="${CFLAGS}" || die |
115 |
cd ${S}/indep-utils/dosreduce |
116 |
${CC} ${CFLAGS} dosreduce.c -o dosreduce |
117 |
cd ${S}/indep-utils/propagation |
118 |
${CXX} ${CXXFLAGS} threshold.cc -o threshold |
119 |
cd ${S}/indep-utils/model-gen |
120 |
emake CFLAGS="${CFLAGS}" || die |
121 |
|
122 |
if useq doc; then |
123 |
einfo "Generating extra docs" |
124 |
cd ${S}/doc |
125 |
yes '' | emake all |
126 |
fi |
127 |
} |
128 |
|
129 |
src_install() { |
130 |
dodir /usr/bin /usr/share/man/man1 /usr/share/doc/${PF} /usr/share/ns |
131 |
make DESTDIR="${D}" MANDEST=/usr/share/man install \ |
132 |
|| die "make install failed" |
133 |
dobin nse |
134 |
|
135 |
dodoc BASE-VERSION COPYRIGHTS FILES HOWTO-CONTRIBUTE README VERSION |
136 |
dohtml CHANGES.html TODO.html |
137 |
|
138 |
cd "${S}" |
139 |
insinto /usr/share/ns |
140 |
doins -r tcl |
141 |
|
142 |
cd "${S}/indep-utils/dosdbell" |
143 |
dobin dosdbell dosdbellasim |
144 |
newdoc README README.dosdbell |
145 |
cd "${S}/indep-utils/dosreduce" |
146 |
dobin dosreduce |
147 |
newdoc README README.dosreduce |
148 |
cd "${S}/indep-utils/cmu-scen-gen" |
149 |
dobin cbrgen.tcl |
150 |
newdoc README README.cbrgen |
151 |
cd "${S}/indep-utils/propagation" |
152 |
dobin threshold |
153 |
cd "${S}/indep-utils/model-gen" |
154 |
dobin http_connect http_active |
155 |
|
156 |
if use doc; then |
157 |
cd ${S}/doc |
158 |
docinto doc |
159 |
dodoc everything.dvi everything.ps.gz everything.html everything.pdf |
160 |
docinto model-gen |
161 |
cd ${S}/indep-utils/model-gen |
162 |
dodoc * |
163 |
fi |
164 |
} |
165 |
|
166 |
src_test() { |
167 |
einfo "Warning, these tests will take upwards of 45 minutes." |
168 |
einfo "Additionally, as shipped, a number of tests may fail." |
169 |
einfo "We log to 'validate.run', which you should compare against" |
170 |
einfo "the shipped 'validate.out' to evaluate success." |
171 |
einfo "At the time of assembling this ebuild, these test suites failed:" |
172 |
einfo "srm smac-multihop hier-routing algo-routing mcast vc" |
173 |
einfo "session mixmode webcache mcache plm wireless-tdma" |
174 |
./validate 2>&1 | tee ${S}/validate.run |
175 |
} |
176 |
|
177 |
|
178 |
|
179 |
-- |
180 |
gentoo-commits@g.o mailing list |