diff --git a/dev-python/lief/lief-0.9.0.ebuild b/dev-python/lief/lief-0.9.0-r1.ebuild similarity index 62% rename from dev-python/lief/lief-0.9.0.ebuild rename to dev-python/lief/lief-0.9.0-r1.ebuild index 3dcc634f4..9b2b43b87 100644 --- a/dev-python/lief/lief-0.9.0.ebuild +++ b/dev-python/lief/lief-0.9.0-r1.ebuild @@ -9,8 +9,8 @@ inherit distutils-r1 DESCRIPTION="Library to instrument executable formats" HOMEPAGE="https://lief.quarkslab.com/" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip - https://github.com/lief-project/LIEF/releases/download/0.9.0/lief-0.9.0-py2.7-linux.egg - https://github.com/lief-project/LIEF/releases/download/0.9.0/lief-0.9.0-py3.6-linux.egg" + https://github.com/lief-project/LIEF/releases/download/${PV}/${P}-py2.7-linux.egg + https://github.com/lief-project/LIEF/releases/download/${PV}/${P}-py3.6-linux.egg" LICENSE="Apache-2.0" SLOT="0" @@ -22,6 +22,13 @@ RDEPEND="" DEPEND="${RDEPEND} dev-python/setuptools[${PYTHON_USEDEP}]" +src_prepare() { + #copy symlinks to homedir for offline installation + cp -s "${DISTDIR}"/${P}-py2.7-linux.egg "${HOME}" + cp -s "${DISTDIR}"/${P}-py3.6-linux.egg "${HOME}" + default +} + src_install() { distutils-r1_src_install dobin ${FILESDIR}/lief_inject.py