# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="GNS3 is a graphical network simulator that allows you design complex network topologies and to launch simulations on them" HOMEPAGE="http://www.gns3.net/" SRC_URI="http://heanet.dl.sourceforge.net/sourceforge/gns-3/${P}-src.tar.gz" LICENSE="GPL" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=">=dev-lang/python-2.5.1-r5 >=dev-python/PyQt4-4.3.3 >=x11-libs/qt-4.3.2-r1 >=dev-python/sip-4.5" RDEPEND="${DEPEND} >=app-emulation/dynamips-0.28_rc2" src_unpack() { unpack ${A} cd "${S}" sed -i \ -e 's/not hasattr(sys, "version_info")/1/' \ setup.py || die "sed in setup.py failed" } src_install() { dodir /opt/gns3 cp -R "${S}/src" "${D}/opt/gns3/src" || die "Install failed!" cp -R "${S}/gns3" "${D}/opt/gns3/gns3" || die "Install failed!" cp -R "${S}/setup.py" "${D}/opt/gns3/setup.py" || die "Install failed!" dodoc README LICENSE CHANGELOG AUTHORS docs/* echo "#!/bin/bash" > ${S}/gns3.sh echo "cd /opt/gns3 ; ./gns3" >> ${S}/gns3.sh dobin gns3.sh }