mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-28 17:50:58 +02:00
capstone: fix deps and bump
This commit is contained in:
parent
c7b18dc214
commit
0cc34c6d6c
8 changed files with 52 additions and 80 deletions
|
|
@ -1,2 +1,2 @@
|
|||
DIST capstone-3.0.4.tar.gz 2800818 SHA256 5d6dadf5864c56f8de66c66088fa68e849d0bff6577865a4f81b6f23112b14f2 SHA512 a5c29e7c559b5391d6a4ec9a7f766699ea6d321aa2f1fc57fdcec893107fa3ef2f5f6323629971c1129f1ca087df4f3ad03d0a8234d2eae368c8ccfec04dbf4d WHIRLPOOL 24aa002e215ee2a74c06a9be40218c78258a853028c74e1cdf95a5e2ea484471cf084cc8f5cc9db1aaefc16cf80a0b37480d4af60ca9119730334cbe2a02b906
|
||||
DIST capstone-4.0_alpha4.tar.gz 3239543 SHA256 d75d0a2b8e74a5fab0732d338ee743adef640e05fea75599a0073f7deec0b759 SHA512 72dba105ee602e1df0261a2408762eb97ddda63a967acf862a3bc33893b49b13b89b3ed23ca28ecfdb68528ed6ca5ca270a3a6f892a76b9bb8051843d8de254b WHIRLPOOL 7c3009deb0ac00e475e1c5fc2b43055f768b5bc67a92a4bb765d950226553378ebf94a619fdd5e42ccfa35f8ae78b42ec658cd532623cfb45e956f709eff4718
|
||||
DIST capstone-4.0_alpha5.tar.gz 3263242 SHA256 003b21b00bcae8842002cc83da1f3277cf386202a3559849d7e9d52c6babc706 SHA512 c218f976ad0d26dc38553267695b9b196156d76f046330446b2ea66161215bb6bd79e086f29c023d01664e8f6371cc4d3a3413c246913381bf3de01a7a3b76c0 WHIRLPOOL 1b8cc5d8fa234d35daf522326cc3ea8177a3a3e35950a8666158f264970ea866a19a5b8245099846cebe6342afbb97ca80a5c708a7dea47fdb0a40f419a13ea9
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
|
@ -14,7 +14,8 @@ SLOT="0/3" # libcapstone.so.3
|
|||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="python"
|
||||
|
||||
RDEPEND="python? ( >=dev-python/capstone-python-${PV} )"
|
||||
PDEPEND="python? ( >=dev-python/capstone-python-${PV} )"
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}"
|
||||
#TODO: add java and ocaml bindings
|
||||
|
||||
|
|
@ -37,13 +38,3 @@ src_configure() {
|
|||
} >> config.mk || die
|
||||
|
||||
}
|
||||
|
||||
#the old style
|
||||
#src_install() {
|
||||
# emake DESTDIR="${ED}" LIBDIRARCH=$(get_libdir) install
|
||||
# if use !test; then
|
||||
# dodir /usr/share/"${PN}"/
|
||||
# cp -R "${S}"/tests "${D}/usr/share/${PN}/" || die "Install failed!"
|
||||
# fi
|
||||
# dodoc README
|
||||
#}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,9 @@ SLOT="0/3" # libcapstone.so.3
|
|||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="python"
|
||||
|
||||
RDEPEND="python? ( >=dev-python/capstone-python-${PV} )"
|
||||
PDEPEND="python? ( >=dev-python/capstone-python-${PV} )"
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}"
|
||||
#TODO: add java and ocaml bindings
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
|
@ -40,13 +42,3 @@ src_configure() {
|
|||
} >> config.mk || die
|
||||
|
||||
}
|
||||
|
||||
#the old style
|
||||
#src_install() {
|
||||
# emake DESTDIR="${ED}" LIBDIRARCH=$(get_libdir) install
|
||||
# if use !test; then
|
||||
# dodir /usr/share/"${PN}"/
|
||||
# cp -R "${S}"/tests "${D}/usr/share/${PN}/" || die "Install failed!"
|
||||
# fi
|
||||
# dodoc README
|
||||
#}
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
DIST capstone-2.1.2.tar.gz 1366145 SHA256 5312ba5fc09fe193f7fc2fd6cbbc34b6ea7a7b002c0fd7acb2b38ee6c492fb9c SHA512 220d937b49a0716b633bc4ffe25c5db11812ec6343f76caa10fcd00f03507f636089d3ce90d5a0423a8b4d003a9f2f0cac16cb80908925393daa09f3d8449672 WHIRLPOOL fc2994b8bffc5a9f03ae4cecead1327e13b374e3e75b8c4f7dc2751be3a26d57420ed841d791543d664c26820d4a6ad433e440d63b404674e552ea0ba517cead
|
||||
DIST capstone-3.0.4.tar.gz 2800818 SHA256 5d6dadf5864c56f8de66c66088fa68e849d0bff6577865a4f81b6f23112b14f2 SHA512 a5c29e7c559b5391d6a4ec9a7f766699ea6d321aa2f1fc57fdcec893107fa3ef2f5f6323629971c1129f1ca087df4f3ad03d0a8234d2eae368c8ccfec04dbf4d WHIRLPOOL 24aa002e215ee2a74c06a9be40218c78258a853028c74e1cdf95a5e2ea484471cf084cc8f5cc9db1aaefc16cf80a0b37480d4af60ca9119730334cbe2a02b906
|
||||
DIST capstone-4.0-alpha4.tar.gz 3239543 SHA256 d75d0a2b8e74a5fab0732d338ee743adef640e05fea75599a0073f7deec0b759 SHA512 72dba105ee602e1df0261a2408762eb97ddda63a967acf862a3bc33893b49b13b89b3ed23ca28ecfdb68528ed6ca5ca270a3a6f892a76b9bb8051843d8de254b WHIRLPOOL 7c3009deb0ac00e475e1c5fc2b43055f768b5bc67a92a4bb765d950226553378ebf94a619fdd5e42ccfa35f8ae78b42ec658cd532623cfb45e956f709eff4718
|
||||
DIST capstone-python-3.0.4.tar.gz 2800818 SHA256 5d6dadf5864c56f8de66c66088fa68e849d0bff6577865a4f81b6f23112b14f2 SHA512 a5c29e7c559b5391d6a4ec9a7f766699ea6d321aa2f1fc57fdcec893107fa3ef2f5f6323629971c1129f1ca087df4f3ad03d0a8234d2eae368c8ccfec04dbf4d WHIRLPOOL 24aa002e215ee2a74c06a9be40218c78258a853028c74e1cdf95a5e2ea484471cf084cc8f5cc9db1aaefc16cf80a0b37480d4af60ca9119730334cbe2a02b906
|
||||
DIST capstone-python-4.0_alpha4.tar.gz 3239543 SHA256 d75d0a2b8e74a5fab0732d338ee743adef640e05fea75599a0073f7deec0b759 SHA512 72dba105ee602e1df0261a2408762eb97ddda63a967acf862a3bc33893b49b13b89b3ed23ca28ecfdb68528ed6ca5ca270a3a6f892a76b9bb8051843d8de254b WHIRLPOOL 7c3009deb0ac00e475e1c5fc2b43055f768b5bc67a92a4bb765d950226553378ebf94a619fdd5e42ccfa35f8ae78b42ec658cd532623cfb45e956f709eff4718
|
||||
DIST capstone-python-4.0_alpha5.tar.gz 3263242 SHA256 003b21b00bcae8842002cc83da1f3277cf386202a3559849d7e9d52c6babc706 SHA512 c218f976ad0d26dc38553267695b9b196156d76f046330446b2ea66161215bb6bd79e086f29c023d01664e8f6371cc4d3a3413c246913381bf3de01a7a3b76c0 WHIRLPOOL 1b8cc5d8fa234d35daf522326cc3ea8177a3a3e35950a8666158f264970ea866a19a5b8245099846cebe6342afbb97ca80a5c708a7dea47fdb0a40f419a13ea9
|
||||
|
|
|
|||
|
|
@ -1,47 +0,0 @@
|
|||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: blshkv$
|
||||
|
||||
EAPI=5
|
||||
|
||||
MY_P=capstone-"${PV}"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit eutils multilib distutils-r1
|
||||
|
||||
DESCRIPTION="A lightweight multi-platform, multi-architecture disassembly framework"
|
||||
HOMEPAGE="http://www.capstone-engine.org/"
|
||||
SRC_URI="https://github.com/aquynh/capstone/archive/${PV}.tar.gz -> ${MY_P}.tar.gz"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="cython"
|
||||
|
||||
RDEPEND="cython? ( dev-python/cython
|
||||
dev-libs/capstone[python] )"
|
||||
DEPEND=""
|
||||
|
||||
S=${WORKDIR}/${MY_P}/bindings/python
|
||||
|
||||
python_prepare() {
|
||||
epatch ${FILESDIR}/"${P}"-setup.patch
|
||||
|
||||
#our hack to adjust cython setup
|
||||
if use cython; then
|
||||
cp setup_cython.py setup.py
|
||||
sed -e 's|install:|install_default:|' -i Makefile || die "sed failed"
|
||||
sed -e 's|install_cython:|install:|' -i Makefile || die "sed failed"
|
||||
#this section is from Makefile
|
||||
cp capstone/__init__.py pyx/__init__.py
|
||||
cp capstone/capstone.py pyx/capstone.pyx
|
||||
cp capstone/arm.py pyx/arm.pyx
|
||||
cp capstone/arm_const.py pyx/arm_const.pyx
|
||||
cp capstone/arm64.py pyx/arm64.pyx
|
||||
cp capstone/arm64_const.py pyx/arm64_const.pyx
|
||||
cp capstone/mips.py pyx/mips.pyx
|
||||
cp capstone/mips_const.py pyx/mips_const.pyx
|
||||
cp capstone/ppc.py pyx/ppc.pyx
|
||||
cp capstone/ppc_const.py pyx/ppc_const.pyx
|
||||
cp capstone/x86.py pyx/x86.pyx
|
||||
cp capstone/x86_const.py pyx/x86_const.pyx
|
||||
fi
|
||||
}
|
||||
|
|
@ -1,6 +1,5 @@
|
|||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: blshkv$
|
||||
|
||||
EAPI=5
|
||||
|
||||
|
|
@ -10,7 +9,7 @@ inherit eutils multilib distutils-r1
|
|||
|
||||
DESCRIPTION="A lightweight multi-platform, multi-architecture disassembly framework"
|
||||
HOMEPAGE="http://www.capstone-engine.org/"
|
||||
SRC_URI="https://github.com/aquynh/capstone/archive/${PV}.tar.gz -> ${MY_P}.tar.gz"
|
||||
SRC_URI="https://github.com/aquynh/capstone/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: blshkv$
|
||||
|
||||
EAPI=5
|
||||
|
||||
|
|
@ -12,7 +11,7 @@ inherit eutils multilib distutils-r1
|
|||
|
||||
DESCRIPTION="A lightweight multi-platform, multi-architecture disassembly framework"
|
||||
HOMEPAGE="http://www.capstone-engine.org/"
|
||||
SRC_URI="https://github.com/aquynh/capstone/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
|
||||
SRC_URI="https://github.com/aquynh/capstone/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
|
|
|
|||
38
dev-python/capstone-python/capstone-python-4.0_alpha5.ebuild
Normal file
38
dev-python/capstone-python/capstone-python-4.0_alpha5.ebuild
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
MY_PV="${PV//_/-}"
|
||||
MY_P=capstone-"${MY_PV}"
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4} )
|
||||
inherit eutils multilib distutils-r1
|
||||
|
||||
DESCRIPTION="A lightweight multi-platform, multi-architecture disassembly framework"
|
||||
HOMEPAGE="http://www.capstone-engine.org/"
|
||||
SRC_URI="https://github.com/aquynh/capstone/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="cython"
|
||||
|
||||
RDEPEND="cython? ( dev-python/cython
|
||||
dev-libs/capstone[python] )"
|
||||
DEPEND=""
|
||||
|
||||
S=${WORKDIR}/${MY_P}/bindings/python
|
||||
|
||||
python_prepare() {
|
||||
#our hack to adjust cython setup
|
||||
if use cython; then
|
||||
cp setup_cython.py setup.py
|
||||
# sed -e 's|install:|install_default:|' -i Makefile || die "sed failed"
|
||||
# sed -e 's|install_cython:|install:|' -i Makefile || die "sed failed"
|
||||
#this section is from Makefile
|
||||
cp capstone/__init__.py pyx/__init__.py
|
||||
for i in arm{,_const} arm64{,_const} mips{,_const} ppc{,_const} x86{,_const} sparc{,_const} systemz sysz_const xcore{,_const}; do
|
||||
cp capstone/${i}.py pyx/${i}.pyx
|
||||
done
|
||||
fi
|
||||
}
|
||||
Loading…
Reference in a new issue