# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 PYTHON_COMPAT=( python2_7 ) inherit distutils-r1 eutils DESCRIPTION="Mininet network emulator" HOMEPAGE="http://www.mininet.org" SRC_URI="https://github.com/mininet/mininet/archive/${PV}.tar.gz" #EGIT_REPO_URI="git://github.com/mininet/mininet.git" RESTRICT="mirror" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="test doc tools" DEPEND="net-misc/openvswitch dev-libs/libcgroup dev-python/setuptools doc? ( sys-apps/help2man )" RDEPEND="${DEPEND} sys-process/procps net-misc/netkit-telnetd tools? ( net-misc/socat sys-process/psmisc net-misc/iperf x11-terms/xterm sys-apps/ethtool )" src_prepare() { distutils-r1_src_prepare epatch "${FILESDIR}/${P}-modify-sys-mount.patch" } src_compile() { distutils-r1_src_compile if use doc; then # Skip this for now, it needs xtab.sty which I can't find in any ebuild # also needs these packages: # app-doc/doxygen # dev-texlive/texlive-fontsrecommended # dev-texlive/texlive-latex # dev-tex/floatflt # dev-tex/xcolor # #make doc make mn.1 make mnexec.1 fi make mnexec } src_install() { distutils-r1_src_install use doc && dodoc dobin mnexec doins mnexec }