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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Apr 16 22:19:34 2014 UTC (5 years, 10 months ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +4 -4 lines
Fix LICENSE, add mirror and bindist restrictions, bug 465698.

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 9433907D693FB5B8!)

1 # Copyright 1999-2014 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-r1.ebuild,v 1.1 2010/10/12 15:32:45 xarthisius Exp $
4
5 inherit eutils toolchain-funcs
6
7 DESCRIPTION="Routines to generate and analyze graphs using different models for internetwork topology"
8 HOMEPAGE="http://www.cc.gatech.edu/fac/Ellen.Zegura/graphs.html
9 http://www.isi.edu/nsnam/ns/ns-topogen.html#gt-itm"
10 SRC_URI="http://www.cc.gatech.edu/fac/Ellen.Zegura/gt-itm/gt-itm.tar.gz
11 http://www.isi.edu/nsnam/dist/sgb2ns.tar.gz"
12
13 LICENSE="all-rights-reserved sgb2ns"
14 SLOT="0"
15 KEYWORDS="~x86 ~amd64"
16 RESTRICT="mirror bindist"
17
18 DEPEND="dev-util/sgb"
19 RDEPEND="${DEPEND}"
20
21 S="${WORKDIR}/${PN}"
22 S2="${WORKDIR}/sgb2ns"
23
24 src_unpack() {
25 unpack sgb2ns.tar.gz
26
27 mkdir "${S}"
28 cd "${S}"
29 unpack gt-itm.tar.gz
30
31 sed -r -e '/^[[:alnum:]]+\.o:/d' \
32 -e 's|LIBS = -lm -lgb.*|LIBS = -lm -lgb|' \
33 -e 's/\$\(CC\)/& \$\(LDFLAGS\)/g' \
34 -i "${S}"/src/Makefile || die
35 sed -r -e '/^SYS = -DSYSV/d' \
36 -e 's|LIBS = -lm -lgb.*|LIBS = -lm -lgb|' \
37 -e 's/\$\(CC\)/& \$\(LDFLAGS\)/g' \
38 -i ${S2}/Makefile || die
39
40 rm -f "${S}"/lib/*
41
42 find "${S}"/sample-graphs/ -perm +111 -type f -name 'Run*' \
43 | xargs -r -n1 sed -re 's|(\.\./)+bin/||g' -i || die
44
45 sed -e 's|sys/types.h|sys/param.h|' -i "${S}"/src/geog.c || die
46 sed -e '162 s/connected $/connected \\/' -i "${S}"/src/eval.c || die
47
48 # fix implicit function declarations
49 sed -e '/stdio.h/ a\#include <stdlib.h>' \
50 -i "${S2}/sgb2comns.c" "${S2}/sgb2hierns.c" || die
51 sed -e "s/<strings.h>/<string.h>/g" \
52 -i "${S2}/sgb2hierns.c" || die
53 epatch "${FILESDIR}"/${PN}-implicits.patch
54 }
55
56 src_compile() {
57 cd "${S}"/src
58 emake CFLAGS="${CFLAGS} -I../include" LDFLAGS="${LDFLAGS}" \
59 CC="$(tc-getCC)" || die
60
61 cd "${S2}"
62 emake CFLAGS="${CFLAGS} -I\$(IDIR) -L\$(LDIR)" LDFLAGS="${LDFLAGS}" \
63 CC="$(tc-getCC)" || die
64 }
65
66 src_install() {
67 dobin "${S}"/bin/* || die
68 dodoc "${S}"/README "${S}"/docs/* || die
69 cp -pPR "${S}"/sample-graphs "${D}"/usr/share/doc/${PF} || die
70
71 cd "${S2}"
72 dodoc *.tcl *.gb || die
73 newdoc README README.sgb2ns || die
74
75 }

  ViewVC Help
Powered by ViewVC 1.1.20