# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the WTFPL # $Header: $ EAPI=5 PYTHON_COMPAT=( python2_7 ) inherit python-single-r1 eutils DESCRIPTION="Bittorrent client for I2P" HOMEPAGE="http://bob.i2p/Robert.html" SRC_URI="Robert-${PV}-STABLE.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="" RDEPEND="${DEPEND}" RESTRICT="fetch strip" S="${WORKDIR}/${PN}-src/src" pkg_nofetch() { einfo "Please download Robert from" einfo "http://bob.i2p/Robert.html" einfo "and put the file in ${DISTDIR}" einfo einfo "Note that you will" einfo "a) need I2P up and working before you can actually download/use Robert" einfo "b) need to download Robert via torrent, for example with I2P's built-in client Snark." einfo } src_install() { mkdir -p "${D}/usr/bin" PREFIX="/usr" INSTALL="${D}/usr" ./install } pkg_preinst() { sed -e "s#${D}##g" -i "${D}/usr/bin/Robert" }