/[gentoo-x86]/net-misc/gns3/gns3-0.7.4.ebuild
Gentoo

Contents of /net-misc/gns3/gns3-0.7.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Mar 2 23:00:22 2013 UTC (6 years, 7 months ago) by hwoarang
Branch: MAIN
Changes since 1.1: +4 -4 lines
Move Qt dependencies to the new category

(Portage version: 2.1.11.52/cvs/Linux x86_64, signed Manifest commit with key C2BA7F3C!)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/gns3/gns3-0.7.4.ebuild,v 1.1 2011/06/13 09:23:49 hwoarang Exp $
4
5 EAPI="3"
6
7 PYTHON_DEPEND="2"
8
9 inherit distutils eutils python
10
11 MY_P=${P/gns/GNS}-src
12
13 DESCRIPTION="Graphical Network Simulator"
14 HOMEPAGE="http://www.gns3.net/"
15 SRC_URI="mirror://sourceforge/gns-3/${MY_P}.tar.bz2"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="~amd64 ~x86"
20 IUSE=""
21
22 DEPEND="dev-qt/qtgui:4
23 dev-qt/qtsvg:4
24 >=dev-python/PyQt4-4.6.1"
25 RDEPEND="${DEPEND}
26 >=app-emulation/dynamips-0.2.8_rc2"
27
28 S=${WORKDIR}/${MY_P}
29
30 pkg_setup() {
31 python_set_active_version 2
32 python_pkg_setup
33 }
34
35 src_prepare() {
36 epatch "${FILESDIR}/${P}_set_dynamips_path.patch" \
37 "${FILESDIR}/${P}_set_qemu_path.patch"
38 python_convert_shebangs -r 2 .
39 distutils_src_prepare
40 }
41
42 src_install() {
43 distutils_src_install
44
45 insinto /usr/libexec/${PN}
46 doins "${S}/qemuwrapper/qemuwrapper.py" \
47 || die "Failed to install qemuwrapper.py"
48 doins "${S}/qemuwrapper/pemubin.py" \
49 || die "Failed to install pemubin.py"
50 doicon "${FILESDIR}/${PN}.xpm" \
51 || die "Failed to install ${PN}.xpm"
52 make_desktop_entry "${PN}" "GNS3" "/usr/share/pixmaps/${PN}.xpm" "Utility;Emulator" \
53 || die "make_desktop_entry failed"
54 doman docs/man/${PN}.1 \
55 || die "Installing man pages failed"
56 }

  ViewVC Help
Powered by ViewVC 1.1.20