blob: 4ec38067ad372f8a9fdf211a62933d9e8709a6fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cnet/cnet-2.0.10.ebuild,v 1.3 2007/04/07 04:21:08 vapier Exp $
inherit eutils
DESCRIPTION="Network simulation tool"
SRC_URI="http://www.csse.uwa.edu.au/cnet/${P}.tgz"
HOMEPAGE="http://www.csse.uwa.edu.au/cnet"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
DEPEND=">=dev-lang/tk-8.3.4
dev-libs/elfutils"
#RDEPEND=""
# unpacking the source
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-2.0.10-gentoo.patch
sed -i.orig -e "s/^CFLAGS.*/CFLAGS=${CFLAGS}/" "${S}"/src/Makefile.linux
}
src_install() {
# these directories aren't created during the make install
# process, so we'll need to make them beforehand, or else
# we'll have nowhere to put the files
mkdir -p "${D}"/usr/{bin,lib,share}
mkdir -p "${D}"/usr/share/man/man1
# install with make now
make PREFIX="${D}"/usr install || die
#install examples
docinto EXAMPLES
dodoc EXAMPLES/*
}
|