summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Ludd <solar@gentoo.org>2010-02-14 23:53:40 +0000
committerNed Ludd <solar@gentoo.org>2010-02-14 23:53:40 +0000
commitb487423bd9932d60ce21f1be930fb0db951ad49b (patch)
tree5ca218d6ae930e27482b3d44295839b940ce35d0 /app-emulation
parentVersion bump. Pass -fno-strict-aliasing to workaround gcc misoptimizations. F... (diff)
downloadgentoo-2-b487423bd9932d60ce21f1be930fb0db951ad49b.tar.gz
gentoo-2-b487423bd9932d60ce21f1be930fb0db951ad49b.tar.bz2
gentoo-2-b487423bd9932d60ce21f1be930fb0db951ad49b.zip
bump qemu-user to current. Add static use flag for cross arch chroot emulation. http://www.gentoo.org/proj/en/base/embedded/handbook/?part=1&chap=5
(Portage version: 2.1.6.13/cvs/Linux i686)
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/qemu-user/ChangeLog10
-rw-r--r--app-emulation/qemu-user/qemu-user-0.12.2.ebuild67
2 files changed, 75 insertions, 2 deletions
diff --git a/app-emulation/qemu-user/ChangeLog b/app-emulation/qemu-user/ChangeLog
index f58015046c1c..91c937faa8aa 100644
--- a/app-emulation/qemu-user/ChangeLog
+++ b/app-emulation/qemu-user/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-emulation/qemu-user
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-user/ChangeLog,v 1.38 2009/11/14 13:27:18 scarabeus Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-user/ChangeLog,v 1.39 2010/02/14 23:53:40 solar Exp $
+
+*qemu-user-0.12.2 (14 Feb 2010)
+
+ 14 Feb 2010; <solar@gentoo.org> +qemu-user-0.12.2.ebuild:
+ -- bump qemu-user to current. Add static use flag for cross arch chroot
+ emulation.
14 Nov 2009; Tomáš Chvátal <scarabeus@gentoo.org>
-qemu-user-0.9.1.ebuild:
diff --git a/app-emulation/qemu-user/qemu-user-0.12.2.ebuild b/app-emulation/qemu-user/qemu-user-0.12.2.ebuild
new file mode 100644
index 000000000000..7f401c55cc0b
--- /dev/null
+++ b/app-emulation/qemu-user/qemu-user-0.12.2.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-user/qemu-user-0.12.2.ebuild,v 1.1 2010/02/14 23:53:40 solar Exp $
+
+inherit eutils flag-o-matic pax-utils toolchain-funcs
+
+MY_PN=${PN/-user/}
+MY_P=${P/-user/}
+
+SRC_URI="http://savannah.nongnu.org/download/${MY_PN}/${MY_P}.tar.gz"
+
+DESCRIPTION="Open source dynamic translator"
+HOMEPAGE="http://bellard.org/qemu/index.html"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~ppc64"
+IUSE="static"
+RESTRICT="test"
+
+DEPEND="app-text/texi2html
+ !<=app-emulation/qemu-0.7.0"
+RDEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ # prevent docs to get automatically installed
+ sed -i '/$(DESTDIR)$(docdir)/d' Makefile
+ # Alter target makefiles to accept CFLAGS set via flag-o
+ sed -i 's/^\(C\|OP_C\|HELPER_C\)FLAGS=/\1FLAGS+=/' \
+ Makefile Makefile.target
+}
+
+src_compile() {
+ local conf_opts
+
+ conf_opts="--enable-linux-user --disable-strip"
+ conf_opts+=" --disable-darwin-user --disable-bsd-user"
+ conf_opts+=" --disable-system"
+ conf_opts+=" --disable-vnc-tls"
+ conf_opts+=" --disable-curses"
+ conf_opts+=" --disable-sdl"
+ conf_opts+=" --disable-vde"
+ conf_opts+=" --prefix=/usr --disable-bluez --disable-kvm"
+ conf_opts+=" --cc=$(tc-getCC) --host-cc=$(tc-getBUILD_CC)"
+ conf_opts+=" --extra-ldflags=-Wl,-z,execheap"
+ use static && conf_opts+=" --static"
+
+ filter-flags -fpie -fstack-protector
+
+ ./configure ${conf_opts} || die "econf failed"
+
+ emake || die "emake qemu failed"
+
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+ pax-mark r "${D}"/usr/bin/qemu-*
+ rm -fR "${D}/usr/share"
+ dohtml qemu-doc.html
+ dohtml qemu-tech.html
+}