/[gentoo-x86]/app-emulation/dynamips/dynamips-0.2.8_rc2-r1.ebuild
Gentoo

Contents of /app-emulation/dynamips/dynamips-0.2.8_rc2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Oct 17 12:58:02 2010 UTC (4 years, 2 months ago) by chainsaw
Branch: MAIN
Instill LDFLAGS respect into upstream Makefile. Closes bug #338169 by Diego Elio "Flameeyes" Pettenò.

(Portage version: 2.1.9.19/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-emulation/dynamips/dynamips-0.2.8_rc2.ebuild,v 1.2 2009/08/25 15:34:13 armin76 Exp $
4
5 inherit eutils
6
7 MY_P="${P/_rc/-RC}"
8
9 DESCRIPTION="Cisco 7200/3600 Simulator"
10 HOMEPAGE="http://www.ipflow.utc.fr/index.php/Cisco_7200_Simulator"
11 SRC_URI="http://www.ipflow.utc.fr/${PN}/${MY_P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT=0
15 KEYWORDS="~amd64 ~x86"
16 IUSE=""
17 DEPEND="dev-libs/elfutils
18 net-libs/libpcap"
19 RDEPEND="${DEPEND}"
20
21 S="${WORKDIR}/${MY_P}"
22
23 src_unpack() {
24 unpack ${A}
25 cd "${S}"
26 epatch "${FILESDIR}/${P}-makefile.patch"
27
28 if use amd64; then
29 sed -i \
30 -e 's:DYNAMIPS_ARCH?=nojit:DYNAMIPS_ARCH?=amd64:g' \
31 Makefile || die "Failed to optimise for AMD64"
32 elif use amd64; then
33 sed -i \
34 -e 's:DYNAMIPS_ARCH?=nojit:DYNAMIPS_ARCH?=x86:g' \
35 Makefile || die "Failed to optimise for X86"
36 fi
37 }
38
39 src_install () {
40 dobin dynamips nvram_export \
41 || die "Installing binaries failed"
42 doman dynamips.1 hypervisor_mode.7 nvram_export.1 \
43 || die "Installing man pages failed"
44 dodoc ChangeLog TODO README README.hypervisor \
45 || die "Installing docs failed"
46 }

  ViewVC Help
Powered by ViewVC 1.1.20