diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2013-01-20 00:47:06 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-01-20 00:47:06 +0000 |
commit | e5f852bc3f22c6ae4a9c7c2f40b869f80005265f (patch) | |
tree | 91e4472e3cae7460b7da6cc2c2c5b8340c4d9513 /app-emulation/qemu-user | |
parent | Migrate to distutils-r1. Correct the swig dependency. (diff) | |
download | gentoo-2-e5f852bc3f22c6ae4a9c7c2f40b869f80005265f.tar.gz gentoo-2-e5f852bc3f22c6ae4a9c7c2f40b869f80005265f.tar.bz2 gentoo-2-e5f852bc3f22c6ae4a9c7c2f40b869f80005265f.zip |
New version
(Portage version: 2.2.0_alpha154/cvs/Linux x86_64, signed Manifest commit with key 1191738E)
Diffstat (limited to 'app-emulation/qemu-user')
-rw-r--r-- | app-emulation/qemu-user/ChangeLog | 9 | ||||
-rw-r--r-- | app-emulation/qemu-user/qemu-user-1.2.2.ebuild | 139 |
2 files changed, 146 insertions, 2 deletions
diff --git a/app-emulation/qemu-user/ChangeLog b/app-emulation/qemu-user/ChangeLog index cd33a42a75ac..cefcf6a2439a 100644 --- a/app-emulation/qemu-user/ChangeLog +++ b/app-emulation/qemu-user/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-emulation/qemu-user -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-user/ChangeLog,v 1.51 2012/12/09 17:26:53 ago Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-user/ChangeLog,v 1.52 2013/01/20 00:47:06 lu_zero Exp $ + +*qemu-user-1.2.2 (20 Jan 2013) + + 20 Jan 2013; Luca Barbato <lu_zero@gentoo.org> +qemu-user-1.2.2.ebuild: + New version 09 Dec 2012; Agostino Sarubbo <ago@gentoo.org> qemu-user-1.0.ebuild: Stable for ppc64, wrt bug #417905 diff --git a/app-emulation/qemu-user/qemu-user-1.2.2.ebuild b/app-emulation/qemu-user/qemu-user-1.2.2.ebuild new file mode 100644 index 000000000000..43f528d0e3c9 --- /dev/null +++ b/app-emulation/qemu-user/qemu-user-1.2.2.ebuild @@ -0,0 +1,139 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-user/qemu-user-1.2.2.ebuild,v 1.1 2013/01/20 00:47:06 lu_zero Exp $ + +EAPI=4 + +if [[ ${PV} == *9999 ]]; then + EGIT_REPO_URI="git://git.qemu.org/qemu.git + http://git.qemu.org/git/qemu.git" + GIT_ECLASS="git-2" +fi + +PYTHON_DEPEND=2 + +inherit eutils base flag-o-matic pax-utils toolchain-funcs python ${GIT_ECLASS} + +MY_P=${P/-user/} + +if [[ ${PV} != *9999 ]]; then +SRC_URI="http://wiki.qemu.org/download/${MY_P}.tar.bz2 + http://dev.gentoo.org/~lu_zero/distfiles/qemu-${PVR}-patches.tar.xz" +KEYWORDS="~amd64 ~ppc ~x86 ~ppc64" +S="${WORKDIR}/${MY_P}" +fi + +DESCRIPTION="Open source dynamic CPU translator - static user mode emulation" +HOMEPAGE="http://www.qemu.org" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +IUSE="" +RESTRICT="test" + +COMMON_TARGETS="i386 x86_64 alpha arm cris m68k microblaze microblazeel +mips mipsel ppc ppc64 sh4 sh4eb sparc sparc64 s390x" +IUSE_USER_TARGETS="${COMMON_TARGETS} armeb ppc64abi32 sparc32plus unicore32" + +for target in ${IUSE_USER_TARGETS}; do + IUSE="${IUSE} +qemu_user_targets_${target}" +done + +DEPEND="app-text/texi2html + virtual/pkgconfig + sys-libs/zlib[static-libs] + dev-libs/glib[static-libs]" +RDEPEND="" + +QA_WX_LOAD=" + usr/bin/qemu-static-ppc64abi32-binfmt + usr/bin/qemu-static-ppc64 + usr/bin/qemu-static-x86_64-binfmt + usr/bin/qemu-static-x86_64 + usr/bin/qemu-static-unicore32-binfmt + usr/bin/qemu-static-m68k-binfmt + usr/bin/qemu-static-ppc-binfmt + usr/bin/qemu-static-alpha-binfmt + usr/bin/qemu-static-microblazeel-binfmt + usr/bin/qemu-static-sparc-binfmt + usr/bin/qemu-static-sparc32plus-binfmt + usr/bin/qemu-static-ppc + usr/bin/qemu-static-mipsn32el-binfmt + usr/bin/qemu-static-sh4eb-binfmt + usr/bin/qemu-static-ppc64abi32 + usr/bin/qemu-static-ppc64-binfmt + usr/bin/qemu-static-armeb-binfmt + usr/bin/qemu-static-microblaze-binfmt + usr/bin/qemu-static-mips-binfmt + usr/bin/qemu-static-mipsel-binfmt + usr/bin/qemu-static-sh4-binfmt + usr/bin/qemu-static-s390x-binfmt + usr/bin/qemu-static-i386-binfmt + usr/bin/qemu-static-cris-binfmt + usr/bin/qemu-static-arm-binfmt + usr/bin/qemu-static-sparc64-binfmt + usr/bin/qemu-static-mipsn32-binfmt +" + +pkg_setup() { + python_set_active_version 2 +} + +src_prepare() { + # prevent docs to get automatically installed + sed -i '/$(DESTDIR)$(docdir)/d' Makefile || die + # Alter target makefiles to accept CFLAGS set via flag-o + sed -i 's/^\(C\|OP_C\|HELPER_C\)FLAGS=/\1FLAGS+=/' \ + Makefile Makefile.target || die + + EPATCH_SOURCE="${WORKDIR}/patches" EPATCH_SUFFIX="patch" \ + EPATCH_FORCE="yes" epatch +} + +src_configure() { + filter-flags -fpie -fstack-protector + + local conf_opts user_targets + + for target in ${IUSE_USER_TARGETS} ; do + use "qemu_user_targets_${target}" && \ + user_targets="${user_targets} ${target}-linux-user" + done + + conf_opts="--enable-linux-user --disable-strip" + conf_opts+=" --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 --sysconfdir=/etc --disable-bluez --disable-kvm" + conf_opts+=" --cc=$(tc-getCC) --host-cc=$(tc-getBUILD_CC)" + conf_opts+=" --disable-smartcard --disable-smartcard-nss" + conf_opts+=" --extra-ldflags=-Wl,-z,execheap" + conf_opts+=" --disable-strip --disable-werror" + conf_opts+=" --static" + + ./configure ${conf_opts} --target-list="${user_targets}" || die "econf failed" +} + +src_install() { + emake DESTDIR="${ED}" install + + # fixup to avoid collisions with qemu + base_dir="${ED}/usr/bin" + + for qemu_bin in "${base_dir}"/qemu-{img,io,nbd}; do + rm -f ${qemu_bin} + done + + for qemu_bin in "${base_dir}"/qemu-*; do + qemu_bin_name=$(basename "${qemu_bin}") + mv "${qemu_bin}" "${base_dir}"/"${qemu_bin_name/qemu-/qemu-static-}" || die + done + + pax-mark r "${ED}"/usr/bin/qemu-static-* + rm -fr "${ED}/usr/share" "${ED}/usr/libexec" "${ED}/etc" + dohtml qemu-doc.html qemu-tech.html + newinitd "${FILESDIR}/qemu-binfmt.initd" qemu-binfmt +} |