/[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.1 - (hide annotations) (download)
Mon Jun 13 09:23:49 2011 UTC (8 years, 4 months ago) by hwoarang
Branch: MAIN
Initial commit for gns3. Bug #213539. Thanks to Ján Bednár <jan.bednar@gmail.com> for the ebuilds and for becoming proxy maintainer

(Portage version: 2.1.9.49/cvs/Linux x86_64)

1 hwoarang 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: $
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="x11-libs/qt-gui:4
23     x11-libs/qt-svg: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