/[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.4 - (hide annotations) (download)
Fri Dec 6 10:33:45 2013 UTC (5 years, 10 months ago) by pinkbyte
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Drop old versions

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42)

1 hwoarang 1.2 # Copyright 1999-2013 Gentoo Foundation
2 hwoarang 1.1 # Distributed under the terms of the GNU General Public License v2
3 pinkbyte 1.4 # $Header: /var/cvsroot/gentoo-x86/net-misc/gns3/gns3-0.7.4.ebuild,v 1.3 2013/07/13 13:13:18 pinkbyte Exp $
4 hwoarang 1.1
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 hwoarang 1.2 DEPEND="dev-qt/qtgui:4
23     dev-qt/qtsvg:4
24 pinkbyte 1.3 >=dev-python/PyQt4-4.6.1[X,svg]"
25 hwoarang 1.1 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