pentoo-overlay/dev-util/capstone/capstone-3.0.ebuild
2014-11-24 15:10:30 +00:00

33 lines
816 B
Bash

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: blshkv$
EAPI=5
inherit eutils multilib
#MY_PV=${PV//_/-}
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 -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0/3"
KEYWORDS="~amd64 ~arm ~x86"
#IUSE="python"
#RDEPEND="python? ( >=dev-python/capstone-python-${PV} )"
RDEPEND=""
DEPEND=""
#TODO: add java and ocaml bindings
#S=${WORKDIR}/${PN}-${MY_PV}
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
}