Permalink
Browse files

lief: copy eggs to homedir for offline installation

  • Loading branch information...
blshkv committed Dec 5, 2018
1 parent 8022819 commit ec3bcc238648ae8e25de1ebf3541b2cc46451bd4
Showing with 9 additions and 2 deletions.
  1. +9 −2 dev-python/lief/{lief-0.9.0.ebuild → 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

0 comments on commit ec3bcc2

Please sign in to comment.