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: ChangeLog qemu-0.10.4.ebuild
Date: Tue, 19 May 2009 07:27:07
Message-Id: E1M6Jj5-0005XU-Ou@stork.gentoo.org
1 lu_zero 09/05/19 07:27:03
2
3 Modified: ChangeLog
4 Added: qemu-0.10.4.ebuild
5 Log:
6 New version
7 (Portage version: 2.1.6.13/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.65 app-emulation/qemu/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/qemu/ChangeLog?rev=1.65&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/qemu/ChangeLog?rev=1.65&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/qemu/ChangeLog?r1=1.64&r2=1.65
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-emulation/qemu/ChangeLog,v
19 retrieving revision 1.64
20 retrieving revision 1.65
21 diff -u -r1.64 -r1.65
22 --- ChangeLog 17 May 2009 21:20:30 -0000 1.64
23 +++ ChangeLog 19 May 2009 07:27:03 -0000 1.65
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.64 2009/05/17 21:20:30 flameeyes Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/ChangeLog,v 1.65 2009/05/19 07:27:03 lu_zero Exp $
29 +
30 +*qemu-0.10.4 (19 May 2009)
31 +
32 + 19 May 2009; Luca Barbato <lu_zero@g.o> +qemu-0.10.4.ebuild:
33 + New version
34
35 17 May 2009; Diego E. Pettenò <flameeyes@g.o> qemu-0.10.3.ebuild,
36 +files/qemu-ifdown, +files/qemu-ifup:
37
38
39
40 1.1 app-emulation/qemu/qemu-0.10.4.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/qemu/qemu-0.10.4.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/qemu/qemu-0.10.4.ebuild?rev=1.1&content-type=text/plain
44
45 Index: qemu-0.10.4.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.4.ebuild,v 1.1 2009/05/19 07:27:03 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 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 kqemu? ( >=app-emulation/kqemu-1.4.0_pre1 )"
90 # fdt? ( sys-apps/dtc )
91
92 DEPEND="${RDEPEND}
93 gnutls? ( dev-util/pkgconfig )
94 app-text/texi2html"
95
96 src_prepare() {
97 # avoid fdt till an updated release appears
98 sed -i -e 's:fdt="yes":fdt="no":' configure
99 # prevent docs to get automatically installed
100 sed -i '/$(DESTDIR)$(docdir)/d' Makefile
101 # Alter target makefiles to accept CFLAGS set via flag-o
102 sed -i 's/^\(C\|OP_C\|HELPER_C\)FLAGS=/\1FLAGS+=/' \
103 Makefile Makefile.target tests/Makefile
104 [[ -x /sbin/paxctl ]] && \
105 sed -i 's/^VL_LDFLAGS=$/VL_LDFLAGS=-Wl,-z,execheap/' \
106 Makefile.target
107 # avoid strip
108 sed -i 's/$(INSTALL) -m 755 -s/$(INSTALL) -m 755/' \
109 Makefile Makefile.target */Makefile
110 epatch "${FILESDIR}/${P}-nopl-fix.patch"
111 }
112
113 src_configure() {
114 local mycc conf_opts audio_opts softmmu_targets user_targets target_list
115
116 for target in ${IUSE_SOFTMMU_TARGETS} ; do
117 use "qemu_softmmu_targets_${target}" && \
118 softmmu_targets="${softmmu_targets} ${target}-softmmu"
119 done
120
121 for target in ${IUSE_USER_TARGETS} ; do
122 use "qemu_user_targets_${target}" && \
123 user_targets="${user_targets} ${target}-linux-user"
124 done
125
126 conf_opts="--disable-darwin-user --disable-bsd-user"
127
128 if test ! -z "${softmmu_targets}" ; then
129 einfo "Building following softmmu targets: ${softmmu_targets}"
130 use gnutls || conf_opts="$conf_opts --disable-vnc-tls"
131 use ncurses || conf_opts="$conf_opts --disable-curses"
132 use sdl || conf_opts="$conf_opts --disable-gfx-check --disable-sdl"
133 use vde || conf_opts="$conf_opts --disable-vde"
134 use kqemu || conf_opts="$conf_opts --disable-kqemu"
135 use kvm || conf_opts="$conf_opts --disable-kvm"
136
137 audio_opts="oss"
138 use alsa && audio_opts="alsa $audio_opts"
139 use esd && audio_opts="esd $audio_opts"
140 use pulseaudio && audio_opts="pa $audio_opts"
141 use sdl && audio_opts="sdl $audio_opts"
142 else
143 einfo "Disabling softmmu emulation (no softmmu targets specified)"
144 conf_opts="$conf_opts --disable-system --disable-vnc-tls \
145 --disable-curses --disable-gfx-check --disable-sdl --disable-vde \
146 --disable-kqemu --disable-kvm"
147 fi
148
149 if test ! -z "${user_targets}" ; then
150 einfo "Building following user targets: ${user_targets}"
151 conf_opts="$conf_opts --enable-linux-user"
152 else
153 einfo "Disabling usermode emulation (no usermode targets specified)"
154 conf_opts="--disable-linux-user"
155 fi
156
157 # use fdt || conf_opts="$conf_opts --disable-fdt"
158
159 conf_opts="$conf_opts --prefix=/usr --disable-bluez"
160
161 target_list="${softmmu_targets} ${user_targets}"
162
163 filter-flags -fpie -fstack-protector
164
165 ./configure ${conf_opts} \
166 --audio-drv-list="$audio_opts" \
167 --kerneldir="${KV_DIR}" \
168 --cc=$(tc-getCC) --host-cc=$(tc-getCC) \
169 --target-list="${target_list}" \
170 || die "configure failed"
171 }
172
173 src_install() {
174 emake DESTDIR="${D}" install || die "make install failed"
175
176 exeinto /etc/qemu
177 doexe \
178 "${FILESDIR}/qemu-ifup" \
179 "${FILESDIR}/qemu-ifdown" \
180 || die "qemu interface scripts failed"
181
182 dodoc pc-bios/README
183 dodoc qemu-doc.html
184 dodoc qemu-tech.html
185 }
186
187 pkg_postinst() {
188 elog "You will need the Universal TUN/TAP driver compiled into your"
189 elog "kernel or loaded as a module to use the virtual network device"
190 elog "if using -net tap. You will also need support for 802.1d"
191 elog "Ethernet Bridging and a configured bridge if using the provided"
192 elog "qemu-ifup script from /etc/qemu."
193 echo
194 }