/[gentoo-x86]/dev-libs/libx86emu/libx86emu-1.1.ebuild
Gentoo

Contents of /dev-libs/libx86emu/libx86emu-1.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Thu Jun 21 14:26:27 2012 UTC (2 years, 1 month ago) by jlec
Branch: MAIN
Changes since 1.8: +13 -6 lines
dev-libs/libx86emu: Fix for broken test phase, #339656

(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libx86emu/libx86emu-1.1.ebuild,v 1.8 2012/04/14 07:59:28 zmedico Exp $
4
5 EAPI=4
6
7 inherit multilib rpm toolchain-funcs
8
9 DESCRIPTION="A library for emulating x86"
10 HOMEPAGE="http://www.opensuse.org/"
11 SRC_URI="http://download.opensuse.org/source/factory/repo/oss/suse/src/${P}-9.8.src.rpm"
12
13 LICENSE="as-is"
14 SLOT="0"
15 KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
16 IUSE=""
17
18 src_prepare() {
19 sed -i \
20 -e 's:$(CC) -shared:& $(LDFLAGS):' \
21 Makefile || die
22 }
23
24 src_compile() {
25 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} -fPIC -Wall"
26 }
27
28 src_test() {
29 ln -sf libx86emu.so.1.1 libx86emu.so || die
30 ln -sf libx86emu.so.1.1 libx86emu.so.1 || die
31 emake \
32 CC="$(tc-getCC)" \
33 CFLAGS="${CFLAGS} ${LDFLAGS} -Wl,-rpath,${S} -fPIC -Wall -I../include/ -L../" test
34 }
35
36 src_install() {
37 emake DESTDIR="${ED}" LIBDIR="/usr/$(get_libdir)" install
38 dodoc Changelog README
39 }

  ViewVC Help
Powered by ViewVC 1.1.20