1 |
lu_zero 12/02/28 13:55:53 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: qemu-user-1.0.ebuild |
5 |
Log: |
6 |
New version, static only |
7 |
|
8 |
(Portage version: 2.2.0_alpha89/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.41 app-emulation/qemu-user/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/qemu-user/ChangeLog?rev=1.41&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/qemu-user/ChangeLog?rev=1.41&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/qemu-user/ChangeLog?r1=1.40&r2=1.41 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/qemu-user/ChangeLog,v |
20 |
retrieving revision 1.40 |
21 |
retrieving revision 1.41 |
22 |
diff -u -r1.40 -r1.41 |
23 |
--- ChangeLog 15 Oct 2010 14:21:23 -0000 1.40 |
24 |
+++ ChangeLog 28 Feb 2012 13:55:52 -0000 1.41 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for app-emulation/qemu-user |
27 |
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-user/ChangeLog,v 1.40 2010/10/15 14:21:23 flameeyes Exp $ |
29 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-user/ChangeLog,v 1.41 2012/02/28 13:55:52 lu_zero Exp $ |
31 |
+ |
32 |
+*qemu-user-1.0 (28 Feb 2012) |
33 |
+ |
34 |
+ 28 Feb 2012; Luca Barbato <lu_zero@g.o> +qemu-user-1.0.ebuild, |
35 |
+ +files/qemu-binfmt.initd: |
36 |
+ New version, static only |
37 |
|
38 |
15 Oct 2010; Diego E. Pettenò <flameeyes@g.o> |
39 |
-qemu-user-0.10.0.ebuild, -qemu-user-0.10.1.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 app-emulation/qemu-user/qemu-user-1.0.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/qemu-user/qemu-user-1.0.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/qemu-user/qemu-user-1.0.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: qemu-user-1.0.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2012 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-user/qemu-user-1.0.ebuild,v 1.1 2012/02/28 13:55:53 lu_zero Exp $ |
53 |
|
54 |
EAPI=4 |
55 |
|
56 |
inherit eutils base flag-o-matic pax-utils toolchain-funcs |
57 |
|
58 |
MY_P=${P/-user/} |
59 |
|
60 |
SRC_URI="http://wiki.qemu.org/download/${MY_P}.tar.gz |
61 |
http://dev.gentoo.org/~lu_zero/distfiles/${MY_P}-patches.tar.xz" |
62 |
|
63 |
DESCRIPTION="Open source dynamic CPU translator" |
64 |
HOMEPAGE="http://www.qemu.org" |
65 |
|
66 |
LICENSE="GPL-2 LGPL-2.1" |
67 |
SLOT="0" |
68 |
KEYWORDS="~amd64 ~ppc ~x86 ~ppc64" |
69 |
IUSE="" |
70 |
RESTRICT="test" |
71 |
|
72 |
COMMON_TARGETS="i386 x86_64 alpha arm cris m68k microblaze microblazeel mips mipsel ppc ppc64 sh4 sh4eb sparc sparc64 s390x" |
73 |
IUSE_USER_TARGETS="${COMMON_TARGETS} armeb ppc64abi32 sparc32plus unicore32" |
74 |
|
75 |
for target in ${IUSE_USER_TARGETS}; do |
76 |
IUSE="${IUSE} +qemu_user_targets_${target}" |
77 |
done |
78 |
|
79 |
|
80 |
DEPEND="app-text/texi2html |
81 |
dev-util/pkgconfig |
82 |
sys-libs/zlib[static-libs] |
83 |
dev-libs/glib[static-libs]" |
84 |
RDEPEND="" |
85 |
|
86 |
QA_WX_LOAD=" |
87 |
usr/bin/qemu-static-ppc64abi32-binfmt |
88 |
usr/bin/qemu-static-ppc64 |
89 |
usr/bin/qemu-static-x86_64-binfmt |
90 |
usr/bin/qemu-static-x86_64 |
91 |
usr/bin/qemu-static-unicore32-binfmt |
92 |
usr/bin/qemu-static-m68k-binfmt |
93 |
usr/bin/qemu-static-ppc-binfmt |
94 |
usr/bin/qemu-static-alpha-binfmt |
95 |
usr/bin/qemu-static-microblazeel-binfmt |
96 |
usr/bin/qemu-static-sparc-binfmt |
97 |
usr/bin/qemu-static-sparc32plus-binfmt |
98 |
usr/bin/qemu-static-ppc |
99 |
usr/bin/qemu-static-mipsn32el-binfmt |
100 |
usr/bin/qemu-static-sh4eb-binfmt |
101 |
usr/bin/qemu-static-ppc64abi32 |
102 |
usr/bin/qemu-static-ppc64-binfmt |
103 |
usr/bin/qemu-static-armeb-binfmt |
104 |
usr/bin/qemu-static-microblaze-binfmt |
105 |
usr/bin/qemu-static-mips-binfmt |
106 |
usr/bin/qemu-static-mipsel-binfmt |
107 |
usr/bin/qemu-static-sh4-binfmt |
108 |
usr/bin/qemu-static-s390x-binfmt |
109 |
usr/bin/qemu-static-i386-binfmt |
110 |
usr/bin/qemu-static-cris-binfmt |
111 |
usr/bin/qemu-static-arm-binfmt |
112 |
usr/bin/qemu-static-sparc64-binfmt |
113 |
usr/bin/qemu-static-mipsn32-binfmt |
114 |
" |
115 |
|
116 |
S="${WORKDIR}/${MY_P}" |
117 |
|
118 |
src_prepare() { |
119 |
cd "${S}" |
120 |
# prevent docs to get automatically installed |
121 |
sed -i '/$(DESTDIR)$(docdir)/d' Makefile |
122 |
# Alter target makefiles to accept CFLAGS set via flag-o |
123 |
sed -i 's/^\(C\|OP_C\|HELPER_C\)FLAGS=/\1FLAGS+=/' \ |
124 |
Makefile Makefile.target |
125 |
|
126 |
EPATCH_SOURCE="${WORKDIR}/patches" EPATCH_SUFFIX="patch" \ |
127 |
EPATCH_FORCE="yes" epatch |
128 |
} |
129 |
|
130 |
src_configure() { |
131 |
filter-flags -fpie -fstack-protector |
132 |
|
133 |
local conf_opts user_targets |
134 |
|
135 |
for target in ${IUSE_USER_TARGETS} ; do |
136 |
use "qemu_user_targets_${target}" && \ |
137 |
user_targets="${user_targets} ${target}-linux-user" |
138 |
done |
139 |
|
140 |
conf_opts="--enable-linux-user --disable-strip" |
141 |
conf_opts+=" --disable-darwin-user --disable-bsd-user" |
142 |
conf_opts+=" --disable-system" |
143 |
conf_opts+=" --disable-vnc-tls" |
144 |
conf_opts+=" --disable-curses" |
145 |
conf_opts+=" --disable-sdl" |
146 |
conf_opts+=" --disable-vde" |
147 |
conf_opts+=" --prefix=/usr --disable-bluez --disable-kvm" |
148 |
conf_opts+=" --cc=$(tc-getCC) --host-cc=$(tc-getBUILD_CC)" |
149 |
conf_opts+=" --disable-smartcard --disable-smartcard-nss" |
150 |
conf_opts+=" --extra-ldflags=-Wl,-z,execheap" |
151 |
conf_opts+=" --disable-strip --disable-werror" |
152 |
conf_opts+=" --static" |
153 |
|
154 |
./configure ${conf_opts} --target-list="${user_targets}" || die "econf failed" |
155 |
} |
156 |
|
157 |
src_compile() { |
158 |
emake || die "emake qemu failed" |
159 |
} |
160 |
|
161 |
src_install() { |
162 |
emake DESTDIR="${ED}" install || die "make install failed" |
163 |
|
164 |
# fixup to avoid collisions with qemu |
165 |
base_dir="${ED}/usr/bin" |
166 |
for qemu_bin in "${base_dir}"/qemu-*; do |
167 |
qemu_bin_name=$(basename "${qemu_bin}") |
168 |
mv "${qemu_bin}" "${base_dir}"/"${qemu_bin_name/qemu-/qemu-static-}" || die |
169 |
done |
170 |
|
171 |
pax-mark r "${ED}"/usr/bin/qemu-static-* |
172 |
rm -fr "${ED}/usr/share" |
173 |
dohtml qemu-doc.html |
174 |
dohtml qemu-tech.html |
175 |
newinitd "${FILESDIR}/qemu-binfmt.initd" qemu-binfmt |
176 |
} |