From 7fead6142a753fe734ae54eb246a78fc2d005b22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Marchesin?= Date: Mon, 6 Jun 2011 18:59:01 -0700 Subject: [PATCH] Import the udis86 ebuild from upstream. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ife25360218e35bf1de31d95befaaae3adee4bb60 Reviewed-on: http://gerrit.chromium.org/gerrit/2198 Tested-by: Stéphane Marchesin Reviewed-by: Anush Elangovan --- .../udis86/files/udis86-1.7-yasm.patch | 35 ++++++++++++++++++ .../dev-libs/udis86/udis86-1.7.ebuild | 36 +++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/dev-libs/udis86/files/udis86-1.7-yasm.patch create mode 100644 sdk_container/src/third_party/portage-stable/dev-libs/udis86/udis86-1.7.ebuild diff --git a/sdk_container/src/third_party/portage-stable/dev-libs/udis86/files/udis86-1.7-yasm.patch b/sdk_container/src/third_party/portage-stable/dev-libs/udis86/files/udis86-1.7-yasm.patch new file mode 100644 index 0000000000..3d3eecdf82 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-libs/udis86/files/udis86-1.7-yasm.patch @@ -0,0 +1,35 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -25,6 +25,9 @@ + AC_DISABLE_SHARED + AC_PROG_LIBTOOL + ++AC_PATH_PROG([YASM], yasm,) ++AC_SUBST(YASM) ++ + # If this is a gnu compiler, pass -Wall + if test "$ac_cv_c_compiler_gnu" = "yes"; then + CFLAGS="$CFLAGS -Wall" +--- a/tests/Makefile.am ++++ b/tests/Makefile.am +@@ -10,7 +10,7 @@ + ovrrun_LDADD = ../libudis86/libudis86.la + ovrrun_CFLAGS = -I$(top_srcdir)/libudis86 -I$(top_srcdir) + +-YASM = yasm ++YASM = @YASM@ + + dist_check_DATA = test16.asm test32.asm test64.asm testjmp.asm testobscure.asm \ + testjmp.ref testobscure.ref randtest.raw randtest16.ref \ +@@ -18,7 +18,10 @@ + + check-local: tests + +-tests: test16 test32 test64 testjmp bufovrrun randraw ++yasm_tests: test16 test32 test64 testjmp ++no_yasm_tests: bufovrrun randraw ++ ++tests: $(if $(YASM), yasm_tests) no_yasm_tests + + test16: gen + $(YASM) -f bin -o test16.bin $(top_srcdir)/tests/test16.asm diff --git a/sdk_container/src/third_party/portage-stable/dev-libs/udis86/udis86-1.7.ebuild b/sdk_container/src/third_party/portage-stable/dev-libs/udis86/udis86-1.7.ebuild new file mode 100644 index 0000000000..d9d6c235d5 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-libs/udis86/udis86-1.7.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2010 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.12 2010/11/11 17:30:39 hwoarang Exp $ + +EAPI=3 +inherit autotools + +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 ~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" +}