Gentoo Archives: gentoo-commits

From: "Luca Barbato (lu_zero)" <lu_zero@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/qemu: qemu-0.10.6.ebuild ChangeLog
Date: Sat, 05 Sep 2009 15:58:54
Message-Id: E1MjxfB-0000mI-3H@stork.gentoo.org
1 lu_zero 09/09/05 15:58:53
2
3 Modified: ChangeLog
4 Added: qemu-0.10.6.ebuild
5 Log:
6 Version Bump
7 (Portage version: 2.1.6.13/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.69 app-emulation/qemu/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/qemu/ChangeLog?rev=1.69&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/qemu/ChangeLog?rev=1.69&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/qemu/ChangeLog?r1=1.68&r2=1.69
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-emulation/qemu/ChangeLog,v
19 retrieving revision 1.68
20 retrieving revision 1.69
21 diff -u -r1.68 -r1.69
22 --- ChangeLog 7 Jun 2009 10:13:43 -0000 1.68
23 +++ ChangeLog 5 Sep 2009 15:58:52 -0000 1.69
24 @@ -1,6 +1,11 @@
25 # ChangeLog for app-emulation/qemu
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/ChangeLog,v 1.68 2009/06/07 10:13:43 lu_zero Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/ChangeLog,v 1.69 2009/09/05 15:58:52 lu_zero Exp $
29 +
30 +*qemu-0.10.6 (05 Sep 2009)
31 +
32 + 05 Sep 2009; Luca Barbato <lu_zero@g.o> +qemu-0.10.6.ebuild:
33 + Version Bump
34
35 *qemu-0.10.5 (07 Jun 2009)
36
37
38
39
40 1.1 app-emulation/qemu/qemu-0.10.6.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/qemu/qemu-0.10.6.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/qemu/qemu-0.10.6.ebuild?rev=1.1&content-type=text/plain
44
45 Index: qemu-0.10.6.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/qemu-0.10.6.ebuild,v 1.1 2009/09/05 15:58:52 lu_zero Exp $
50
51 EAPI="2"
52
53 inherit eutils flag-o-matic toolchain-funcs linux-info
54
55 DESCRIPTION="QEMU emulator and ABI wrapper"
56 HOMEPAGE="http://www.qemu.org"
57 SRC_URI="http://download.savannah.gnu.org/releases/qemu/${P}.tar.gz"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
62 IUSE="alsa bluetooth esd gnutls ncurses pulseaudio +sdl vde kqemu kvm"
63
64 COMMON_TARGETS="i386 x86_64 arm cris m68k mips mipsel mips64 mips64el ppc ppc64 sh4 sh4eb sparc"
65
66 IUSE_SOFTMMU_TARGETS="${COMMON_TARGETS} ppcemb"
67 IUSE_USER_TARGETS="${COMMON_TARGETS} alpha armeb ppc64abi32 sparc64 sparc32plus"
68
69 for target in ${IUSE_SOFTMMU_TARGETS}; do
70 IUSE="${IUSE} +qemu_softmmu_targets_${target}"
71 done
72
73 for target in ${IUSE_USER_TARGETS}; do
74 IUSE="${IUSE} +qemu_user_targets_${target}"
75 done
76
77 RDEPEND="!app-emulation/qemu-softmmu
78 !app-emulation/qemu-user
79 !<app-emulation/qemu-0.10.3
80 sys-libs/zlib
81 alsa? ( >=media-libs/alsa-lib-1.0.13 )
82 esd? ( media-sound/esound )
83 pulseaudio? ( media-sound/pulseaudio )
84 gnutls? ( net-libs/gnutls )
85 ncurses? ( sys-libs/ncurses )
86 sdl? ( >=media-libs/libsdl-1.2.11 )
87 vde? ( net-misc/vde )
88 kvm? ( >=sys-kernel/linux-headers-2.6.29 )
89 bluetooth? ( net-wireless/bluez )
90 kqemu? ( >=app-emulation/kqemu-1.4.0_pre1 )"
91 # fdt? ( sys-apps/dtc )
92
93 DEPEND="${RDEPEND}
94 gnutls? ( dev-util/pkgconfig )
95 app-text/texi2html"
96
97 src_prepare() {
98 # avoid fdt till an updated release appears
99 sed -i -e 's:fdt="yes":fdt="no":' configure
100 # prevent docs to get automatically installed
101 sed -i '/$(DESTDIR)$(docdir)/d' Makefile
102 # Alter target makefiles to accept CFLAGS set via flag-o
103 sed -i 's/^\(C\|OP_C\|HELPER_C\)FLAGS=/\1FLAGS+=/' \
104 Makefile Makefile.target tests/Makefile
105 [[ -x /sbin/paxctl ]] && \
106 sed -i 's/^VL_LDFLAGS=$/VL_LDFLAGS=-Wl,-z,execheap/' \
107 Makefile.target
108 # avoid strip
109 sed -i 's/$(INSTALL) -m 755 -s/$(INSTALL) -m 755/' \
110 Makefile Makefile.target */Makefile
111 epatch "${FILESDIR}/qemu-0.10.3-nopl-fix.patch"
112 }
113
114 src_configure() {
115 local mycc conf_opts audio_opts softmmu_targets user_targets target_list
116
117 for target in ${IUSE_SOFTMMU_TARGETS} ; do
118 use "qemu_softmmu_targets_${target}" && \
119 softmmu_targets="${softmmu_targets} ${target}-softmmu"
120 done
121
122 for target in ${IUSE_USER_TARGETS} ; do
123 use "qemu_user_targets_${target}" && \
124 user_targets="${user_targets} ${target}-linux-user"
125 done
126
127 conf_opts="--disable-darwin-user --disable-bsd-user"
128
129 if test ! -z "${softmmu_targets}" ; then
130 einfo "Building following softmmu targets: ${softmmu_targets}"
131 use gnutls || conf_opts="$conf_opts --disable-vnc-tls"
132 use ncurses || conf_opts="$conf_opts --disable-curses"
133 use sdl || conf_opts="$conf_opts --disable-gfx-check --disable-sdl"
134 use vde || conf_opts="$conf_opts --disable-vde"
135 use bluetooth || conf_opts="$conf_opts --disable-bluez"
136 use kqemu || conf_opts="$conf_opts --disable-kqemu"
137 use kvm || conf_opts="$conf_opts --disable-kvm"
138
139 audio_opts="oss"
140 use alsa && audio_opts="alsa $audio_opts"
141 use esd && audio_opts="esd $audio_opts"
142 use pulseaudio && audio_opts="pa $audio_opts"
143 use sdl && audio_opts="sdl $audio_opts"
144 else
145 einfo "Disabling softmmu emulation (no softmmu targets specified)"
146 conf_opts="$conf_opts --disable-system --disable-vnc-tls \
147 --disable-curses --disable-gfx-check --disable-sdl --disable-vde \
148 --disable-kqemu --disable-kvm"
149 fi
150
151 if test ! -z "${user_targets}" ; then
152 einfo "Building following user targets: ${user_targets}"
153 conf_opts="$conf_opts --enable-linux-user"
154 else
155 einfo "Disabling usermode emulation (no usermode targets specified)"
156 conf_opts="--disable-linux-user"
157 fi
158
159 # use fdt || conf_opts="$conf_opts --disable-fdt"
160
161 conf_opts="$conf_opts --prefix=/usr"
162
163 target_list="${softmmu_targets} ${user_targets}"
164
165 filter-flags -fpie -fstack-protector
166
167 ./configure ${conf_opts} \
168 --audio-drv-list="$audio_opts" \
169 --cc=$(tc-getCC) --host-cc=$(tc-getCC) \
170 --target-list="${target_list}" \
171 || die "configure failed"
172 }
173
174 src_install() {
175 emake DESTDIR="${D}" install || die "make install failed"
176
177 exeinto /etc/qemu
178 doexe \
179 "${FILESDIR}/qemu-ifup" \
180 "${FILESDIR}/qemu-ifdown" \
181 || die "qemu interface scripts failed"
182
183 dodoc Changelog MAINTAINERS TODO pci-ids.txt || die
184 newdoc pc-bios/README README.pc-bios || die
185 dohtml qemu-doc.html qemu-tech.html || die
186 }
187
188 pkg_postinst() {
189 elog "You will need the Universal TUN/TAP driver compiled into your"
190 elog "kernel or loaded as a module to use the virtual network device"
191 elog "if using -net tap. You will also need support for 802.1d"
192 elog "Ethernet Bridging and a configured bridge if using the provided"
193 elog "qemu-ifup script from /etc/qemu."
194 echo
195 }