* Added distorm, deps of fusil

This commit is contained in:
grimmlin 2008-12-06 15:00:29 +00:00
parent d117e48707
commit 0b6e43745d
2 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,2 @@
DIST distorm64-pkg1.7.30.tar.bz2 91976 RMD160 34150563401044d98f986f2fea82faeeceb24ab9 SHA1 6948457695b11a4c2190012435da750898bb2c85 SHA256 bc2fc90e2111dfbba7fa397725ed6ae8b70477a3f7c60995e73d44a778a751be
EBUILD distorm-1.7.30.ebuild 1268 RMD160 6db6f9fd74a09e6017c3f3fcb89fceeadc818c02 SHA1 f86ce6e441f9826ed95c4785f084ca57648493b3 SHA256 60dc179f03c8d6fa1232de608ea199a16981fa5ef7037c3fcb2a196c2da96a82

View file

@ -0,0 +1,53 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
DESCRIPTION="The ultimate disassembler library (X86-32, X86-64)"
HOMEPAGE="http://www.ragestorm.net/distorm/"
SRC_URI="http://ragestorm.net/distorm/${PN}64-pkg${PV}.tar.bz2"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="python"
DEPEND="python? ( >=dev-lang/python-2.4 )"
src_unpack() {
unpack ${A}
}
src_compile() {
cd "${WORKDIR}/${PN}64/build/linux"
emake clib || die "make clib failed!"
if use python; then
emake py || die "make py failed!"
fi
}
src_install() {
cd "${WORKDIR}/${PN}64/build/linux"
dolib.so libdistorm64.so
if use python; then
if has_version ">=dev-lang/python-2.5"; then
mkdir -p ${D}usr/lib/python2.5/site-packages/
install libdistorm64.so ${D}usr/lib/python2.5/site-packages/distorm.so
else
mkdir -p ${D}usr/lib/python2.4/site-packages/
install libdistorm64.so ${D}usr/lib/python2.4/site-packages/distorm.o
fi
fi
cd "${WORKDIR}/${PN}64/"
mv distorm64.a libdistorm64.a
dolib.a libdistorm64.a
mkdir -p ${D}usr/include
install distorm.h ${D}usr/include/ || die "Unable to install distorm.h"
}