1 |
maksbotan 12/01/05 11:23:23 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: libguestfs-1.8.16.ebuild |
5 |
Log: |
6 |
Bump to 1.8.16, thanks to slepnoga |
7 |
|
8 |
(Portage version: 2.1.10.44/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.2 app-emulation/libguestfs/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libguestfs/ChangeLog?rev=1.2&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libguestfs/ChangeLog?rev=1.2&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libguestfs/ChangeLog?r1=1.1&r2=1.2 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/libguestfs/ChangeLog,v |
20 |
retrieving revision 1.1 |
21 |
retrieving revision 1.2 |
22 |
diff -u -r1.1 -r1.2 |
23 |
--- ChangeLog 11 Dec 2011 19:34:22 -0000 1.1 |
24 |
+++ ChangeLog 5 Jan 2012 11:23:23 -0000 1.2 |
25 |
@@ -1,6 +1,14 @@ |
26 |
# ChangeLog for app-emulation/libguestfs |
27 |
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/libguestfs/ChangeLog,v 1.1 2011/12/11 19:34:22 maksbotan Exp $ |
29 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/libguestfs/ChangeLog,v 1.2 2012/01/05 11:23:23 maksbotan Exp $ |
31 |
+ |
32 |
+*libguestfs-1.8.16 (05 Jan 2012) |
33 |
+ |
34 |
+ 05 Jan 2012; Maxim Koltsov <maksbotan@g.o> |
35 |
+ +files/1.8/1.8.16/0001-configure_ac_automagic_patch.patch, |
36 |
+ +files/1.8/1.8.16/0002-disable_php_in_makefile.patch, |
37 |
+ +files/1.8/1.8.16/0003-hivex_to_hard_error.patch, +libguestfs-1.8.16.ebuild: |
38 |
+ Bump to 1.8.16, thanks to slepnoga |
39 |
|
40 |
*libguestfs-1.8.15 (11 Dec 2011) |
41 |
|
42 |
|
43 |
|
44 |
|
45 |
1.1 app-emulation/libguestfs/libguestfs-1.8.16.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libguestfs/libguestfs-1.8.16.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libguestfs/libguestfs-1.8.16.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: libguestfs-1.8.16.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2012 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libguestfs/libguestfs-1.8.16.ebuild,v 1.1 2012/01/05 11:23:23 maksbotan Exp $ |
55 |
|
56 |
EAPI="3" |
57 |
|
58 |
WANT_AUTOMAKE="1.11" |
59 |
|
60 |
JAVA_PKG_OPT_USE="java" |
61 |
JAVA_PKG_ALLOW_VM_CHANGE="yes" |
62 |
APLANCE_PV="1.7.18" |
63 |
PYTHON_DEPEND="python? 2:2.6" |
64 |
USE_RUBY="ruby18" |
65 |
RUBY_OPTIONAL="yes" |
66 |
PHP_EXT_NAME="guestfs_php" |
67 |
USE_PHP="php5-3 php5-4" |
68 |
PHP_EXT_OPTIONAL_USE="php" |
69 |
|
70 |
inherit autotools bash-completion-r1 confutils versionator java-pkg-opt-2 perl-module python ruby-ng php-ext-source-r2 ghc-package |
71 |
|
72 |
MY_PV_1="$(get_version_component_range 1-2)" |
73 |
MY_PV_2="$(get_version_component_range 2)" |
74 |
|
75 |
[[ $(( $(get_version_component_range 2) % 2 )) -eq 0 ]] && SD="stable" || SD="development" |
76 |
|
77 |
DESCRIPTION="Library for accessing and modifying virtual machine (VM) disk images" |
78 |
HOMEPAGE="http://libguestfs.org/" |
79 |
SRC_URI="http://libguestfs.org/download/${MY_PV_1}-${SD}/${P}.tar.gz |
80 |
http://rion-overlay.googlecode.com/files/${PN}-${APLANCE_PV}-x86_64.tar.gz" |
81 |
|
82 |
LICENSE="GPL-2" |
83 |
SLOT="0" |
84 |
# Upstream NOT supported 32-bit version, keyword in own risk |
85 |
KEYWORDS="~amd64" |
86 |
IUSE="fuse +ocaml perl python ruby haskell +readline nls php debug doc nls source javadoc" |
87 |
|
88 |
COMMON_DEPEND=" |
89 |
virtual/perl-Getopt-Long |
90 |
>=dev-perl/Sys-Virt-0.2.4 |
91 |
>=app-misc/hivex-1.2.1[perl] |
92 |
dev-perl/libintl-perl |
93 |
dev-perl/String-ShellQuote |
94 |
dev-libs/libpcre |
95 |
app-arch/cpio |
96 |
dev-lang/perl |
97 |
app-cdr/cdrkit |
98 |
>=app-emulation/qemu-kvm-0.13[qemu_user_targets_x86_64,qemu_softmmu_targets_x86_64] |
99 |
sys-apps/fakeroot |
100 |
sys-apps/file |
101 |
app-emulation/libvirt |
102 |
dev-libs/libxml2:2 |
103 |
>=sys-apps/fakechroot-2.8 |
104 |
>=app-admin/augeas-0.7.1 |
105 |
sys-fs/squashfs-tools |
106 |
perl? ( virtual/perl-ExtUtils-MakeMaker ) |
107 |
fuse? ( sys-fs/fuse ) |
108 |
readline? ( sys-libs/readline ) |
109 |
doc? ( dev-libs/libxml2 ) |
110 |
ocaml? ( dev-lang/ocaml |
111 |
dev-ml/findlib |
112 |
dev-ml/xml-light ) |
113 |
ruby? ( dev-lang/ruby |
114 |
dev-ruby/rake ) |
115 |
java? ( virtual/jre ) |
116 |
haskell? ( dev-lang/ghc )" |
117 |
|
118 |
DEPEND="${COMMON_DEPEND} |
119 |
java? ( >=virtual/jdk-1.6 |
120 |
source? ( app-arch/zip ) ) |
121 |
doc? ( app-text/po4a )" |
122 |
RDEPEND="${COMMON_DEPEND} |
123 |
java? ( >=virtual/jre-1.6 )" |
124 |
|
125 |
PHP_EXT_S="${S}/php/extension" |
126 |
|
127 |
pkg_setup() { |
128 |
use java && java-pkg-opt-2_pkg_setup |
129 |
|
130 |
if use python; then |
131 |
python_set_active_version 2 |
132 |
python_pkg_setup |
133 |
python_need_rebuild |
134 |
fi |
135 |
|
136 |
confutils_use_depend_all source java |
137 |
confutils_use_depend_all javadoc java |
138 |
|
139 |
use ruby && ruby-ng_pkg_setup |
140 |
use haskell && ghc-package_pkg_setup |
141 |
} |
142 |
|
143 |
src_unpack() { |
144 |
unpack ${P}.tar.gz |
145 |
|
146 |
cd "${WORKDIR}" |
147 |
mkdir image || die |
148 |
cd image || die |
149 |
unpack libguestfs-${APLANCE_PV}-x86_64.tar.gz |
150 |
cp "${WORKDIR}"/image/usr/local/lib/guestfs/* "${S}"/appliance/ || die |
151 |
|
152 |
# part of php-ext-source-r2_src_unpack |
153 |
# whole version cannot be called here as it will attempt to unpack ${A} |
154 |
if use php; then |
155 |
local slot orig_s="${PHP_EXT_S}" |
156 |
for slot in $(php_get_slots); do |
157 |
cp -r "${orig_s}" "${WORKDIR}/${slot}" || die |
158 |
done |
159 |
fi |
160 |
} |
161 |
|
162 |
src_prepare() { |
163 |
epatch "${FILESDIR}/1.8/${PV}"/000*.patch |
164 |
|
165 |
use java && java-pkg-opt-2_src_prepare |
166 |
eautoreconf |
167 |
|
168 |
if use php; then |
169 |
php-ext-source-r2_src_prepare |
170 |
fi |
171 |
} |
172 |
|
173 |
src_configure() { |
174 |
|
175 |
# Disable feature test for kvm for more reason |
176 |
# i.e: not loaded module in __build__ time, |
177 |
# build server not supported kvm, etc. ... |
178 |
# |
179 |
# In fact, this feature is virtio support and requires |
180 |
# configured kernel. |
181 |
export vmchannel_test=no |
182 |
|
183 |
econf \ |
184 |
--with-repo=fedora-12 \ |
185 |
--disable-appliance \ |
186 |
--disable-daemon \ |
187 |
--with-drive-if=virtio \ |
188 |
--with-net-if=virtio-net-pci \ |
189 |
--disable-rpath \ |
190 |
$(use_enable java) \ |
191 |
$(use_enable nls) \ |
192 |
$(use_with readline) \ |
193 |
$(use_enable ocaml ocaml-viewer) \ |
194 |
$(use_enable perl) \ |
195 |
$(use_enable fuse) \ |
196 |
$(use_enable ocaml) \ |
197 |
$(use_enable python) \ |
198 |
$(use_enable ruby) \ |
199 |
$(use_enable haskell) \ |
200 |
$(use_with doc po4a) |
201 |
|
202 |
if use php; then |
203 |
php-ext-source-r2_src_configure |
204 |
fi |
205 |
} |
206 |
|
207 |
src_compile() { |
208 |
emake || die |
209 |
|
210 |
if use php; then |
211 |
php-ext-source-r2_src_compile |
212 |
fi |
213 |
} |
214 |
|
215 |
src_test() { |
216 |
emake -j1 check || die |
217 |
} |
218 |
|
219 |
src_install() { |
220 |
emake -j1 DESTDIR="${D}" install || die |
221 |
|
222 |
dodoc BUGS HACKING README RELEASE-NOTES TODO |
223 |
|
224 |
dobashcomp "${D}/etc"/bash_completion.d/guestfish-bash-completion.sh |
225 |
|
226 |
rm -fr "${D}/etc"/bash* || die |
227 |
|
228 |
insinto /usr/$(get_libdir)/guestfs/ |
229 |
doins "${WORKDIR}/image/usr/local/lib/"guestfs/* |
230 |
|
231 |
find "${D}" -name '*.la' -exec rm -f '{}' + |
232 |
if use java; then |
233 |
java-pkg_newjar java/${P}.jar ${PN},jar |
234 |
rm -fr "${D}/usr"/share/java |
235 |
rm -fr "${D}/usr"/share/javadoc |
236 |
if use source;then |
237 |
java-pkg_dosrc java/com/redhat/et/libguestfs/* |
238 |
fi |
239 |
if use javadoc;then |
240 |
java-pkg_dojavadoc java/api |
241 |
fi |
242 |
fi |
243 |
|
244 |
use perl && fixlocalpod |
245 |
python_clean_installation_image -q |
246 |
|
247 |
if use php; then |
248 |
php-ext-source-r2_src_install |
249 |
fi |
250 |
} |
251 |
|
252 |
pkg_preinst() { |
253 |
use java && java-pkg-opt-2_pkg_preinst |
254 |
} |
255 |
|
256 |
pkg_postinst() { |
257 |
use haskell && ghc-package_pkg_postinst |
258 |
} |
259 |
|
260 |
pkg_prerm() { |
261 |
use haskell && ghc-package_pkg_prerm |
262 |
} |