/[gentoo-x86]/sci-misc/gt-itm/gt-itm-19961004.ebuild
Gentoo

Contents of /sci-misc/gt-itm/gt-itm-19961004.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Oct 12 15:32:45 2010 UTC (9 years, 4 months ago) by xarthisius
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Respect LDFLAGS wrt bug 339742. Thanks to Diego for the report. Respect CC, fix implicits, add missing dies. Drop old. Add explicit RDEPEND. Shorten description.

(Portage version: 2.2_rc90/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-misc/gt-itm/gt-itm-19961004.ebuild,v 1.3 2009/09/28 22:00:09 robbat2 Exp $
4
5 DESCRIPTION="A collection of routines to generate and analyze graphs using a wide variety of models for internetwork topology"
6 HOMEPAGE="http://www.cc.gatech.edu/fac/Ellen.Zegura/graphs.html
7 http://www.isi.edu/nsnam/ns/ns-topogen.html#gt-itm"
8 SRC_URI="http://www.cc.gatech.edu/fac/Ellen.Zegura/gt-itm/gt-itm.tar.gz
9 http://www.isi.edu/nsnam/dist/sgb2ns.tar.gz"
10
11 LICENSE="as-is BSD"
12 SLOT="0"
13 KEYWORDS="~x86 ~amd64"
14 IUSE=""
15
16 DEPEND="dev-util/sgb"
17 S="${WORKDIR}/${PN}"
18 S2="${WORKDIR}/sgb2ns"
19
20 src_unpack() {
21 unpack sgb2ns.tar.gz
22
23 mkdir "${S}"
24 cd "${S}"
25 unpack gt-itm.tar.gz
26
27 sed -r -e '/^[[:alnum:]]+\.o:/d' -e 's|LIBS = -lm -lgb.*|LIBS = -lm -lgb|' -i "${S}"/src/Makefile
28 sed -r -e '/^SYS = -DSYSV/d' -e 's|LIBS = -lm -lgb.*|LIBS = -lm -lgb|' -i ${S2}/Makefile || die
29
30 rm -f "${S}"/lib/*
31
32 find "${S}"/sample-graphs/ -perm +111 -type f -name 'Run*' \
33 | xargs -r -n1 sed -re 's|(\.\./)+bin/||g' -i || die
34
35 sed -e 's|sys/types.h|sys/param.h|' -i "${S}"/src/geog.c
36 sed -e '162 s/connected $/connected \\/' -i "${S}"/src/eval.c
37 }
38
39 src_compile() {
40 cd "${S}"/src
41 emake CFLAGS="${CFLAGS} -I../include" || die
42
43 cd "${S2}"
44 emake CFLAGS="${CFLAGS} -I\$(IDIR) -L\$(LDIR)" || die
45 }
46
47 src_install() {
48 dobin "${S}"/bin/*
49 dodoc "${S}"/README "${S}"/docs/*
50 cp -pPR "${S}"/sample-graphs "${D}"/usr/share/doc/${PF}
51
52 cd "${S2}"
53 dodoc *.tcl *.gb
54 newdoc README README.sgb2ns
55
56 }

  ViewVC Help
Powered by ViewVC 1.1.20