lief: copy eggs to homedir for offline installation

This commit is contained in:
blshkv 2018-12-05 15:33:05 +08:00
parent 8022819161
commit ec3bcc2386
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F

View file

@ -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