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

Contents of /app-emulation/dynamips/dynamips-0.2.8_rc3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat May 5 02:58:28 2012 UTC (2 years, 7 months ago) by pva
Branch: MAIN
Changes since 1.1: +3 -3 lines
Update HOMEPAGE.

(Portage version: 2.1.10.44/cvs/Linux x86_64)

1 # Copyright 1999-2012 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_rc3.ebuild,v 1.1 2011/05/17 09:22:37 chainsaw Exp $
4
5 EAPI=3
6 inherit base
7
8 MY_P="${P/_rc/-RC}-community"
9 MY_PV="${PV/_rc/-RC}-community"
10
11 DESCRIPTION="Cisco 7200/3600 Simulator"
12 HOMEPAGE="http://www.gns3.net/dynamips/"
13 SRC_URI="mirror://sourceforge/project/gns-3/Dynamips/${MY_PV}/${MY_P}.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT=0
17 KEYWORDS="~amd64 ~x86"
18 IUSE=""
19 DEPEND="dev-libs/elfutils
20 net-libs/libpcap"
21 RDEPEND="${DEPEND}"
22
23 S="${WORKDIR}/${MY_P}"
24 PATCHES=(
25 "${FILESDIR}/${P}-makefile.patch"
26 )
27
28 src_prepare() {
29 base_src_prepare
30 if use amd64; then
31 ebegin "Adjusting Makefiles for AMD64"
32 sed -i \
33 -e 's:DYNAMIPS_ARCH?=nojit:DYNAMIPS_ARCH?=amd64:g' \
34 Makefile || die "Failed to optimise for AMD64; stage 1"
35 sed -i \
36 -e 's:DYNAMIPS_ARCH?=nojit:DYNAMIPS_ARCH?=amd64:g' \
37 stable/Makefile || die "Failed to optimise for AMD64; stage 2"
38 eend $?
39 elif use x86; then
40 ebegin "Adjusting Makefiles for X86"
41 sed -i \
42 -e 's:DYNAMIPS_ARCH?=nojit:DYNAMIPS_ARCH?=x86:g' \
43 Makefile || die "Failed to optimise for X86; stage 1"
44 sed -i \
45 -e 's:DYNAMIPS_ARCH?=nojit:DYNAMIPS_ARCH?=x86:g' \
46 stable/Makefile || die "Failed to optimise for X86; stage 2"
47 eend $?
48 fi
49 }
50
51 src_install () {
52 newbin dynamips.stable dynamips \
53 || die "Installing main binary failed"
54 dobin stable/nvram_export \
55 || die "Installing support binaries failed"
56 doman dynamips.1 hypervisor_mode.7 nvram_export.1 \
57 || die "Installing man pages failed"
58 dodoc TODO README README.community README.hypervisor \
59 || die "Installing docs failed"
60 }

  ViewVC Help
Powered by ViewVC 1.1.20