You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-libs/udis86/udis86-1.7.ebuild,v 1.14 2012/05/24 03:19:12 aballier Exp $
|
|
|
|
|
|
|
|
EAPI=3
|
|
|
|
|
|
|
|
inherit autotools eutils
|
|
|
|
|
|
|
|
DESCRIPTION="Disassembler library for the x86/-64 architecture sets."
|
|
|
|
HOMEPAGE="http://udis86.sourceforge.net/"
|
|
|
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="BSD"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="amd64 ~hppa ppc ~ppc64 x86 ~amd64-fbsd ~x86-fbsd"
|
|
|
|
IUSE="pic test"
|
|
|
|
|
|
|
|
DEPEND="test? (
|
|
|
|
amd64? ( dev-lang/yasm )
|
|
|
|
x86? ( dev-lang/yasm )
|
|
|
|
x86-fbsd? ( dev-lang/yasm )
|
|
|
|
)"
|
|
|
|
RDEPEND=""
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
# Don't fail tests if dev-lang/yasm is not installed, bug #318805
|
|
|
|
epatch "${FILESDIR}"/${P}-yasm.patch
|
|
|
|
eautoreconf
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
econf "$(use_with pic)"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
emake docdir="/usr/share/doc/${PF}/" DESTDIR="${D}" install || die "emake install failed"
|
|
|
|
}
|