blob: 8951170083863cba9b9fa0a21090aa1ee3fedbe7 (
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
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/gns3/gns3-0.8.2.ebuild,v 1.1 2012/05/10 21:35:07 hwoarang Exp $
EAPI="3"
PYTHON_DEPEND="2"
inherit distutils eutils
MY_P=${P/gns/GNS}-src
DESCRIPTION="Graphical Network Simulator"
HOMEPAGE="http://www.gns3.net/"
SRC_URI="mirror://sourceforge/gns-3/GNS3/${PV}/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
PYTHON_MODNAME="GNS3"
DEPEND="x11-libs/qt-gui:4
x11-libs/qt-svg:4
>=dev-python/PyQt4-4.6.1"
RDEPEND="${DEPEND}
>=app-emulation/dynamips-0.2.8_rc2"
S=${WORKDIR}/${MY_P}
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
# Fix illegal install path; /usr/local
epatch "${FILESDIR}"/${P}_install_path.patch
python_convert_shebangs -r 2 .
distutils_src_prepare
}
src_install() {
distutils_src_install
doicon "${FILESDIR}/${PN}.xpm" \
|| die "Failed to install ${PN}.xpm"
make_desktop_entry "${PN}" "GNS3" "/usr/share/pixmaps/${PN}.xpm" "Utility;Emulator" \
|| die "make_desktop_entry failed"
doman docs/man/${PN}.1 \
|| die "Installing man pages failed"
}
|