Lines 4-10
Link Here
|
4 |
|
4 |
|
5 |
EAPI=4 |
5 |
EAPI=4 |
6 |
|
6 |
|
7 |
inherit eutils fdo-mime flag-o-matic linux-info pax-utils python qt4-r2 toolchain-funcs java-pkg-opt-2 |
7 |
inherit eutils fdo-mime flag-o-matic linux-info pax-utils distutils qt4-r2 toolchain-funcs java-pkg-opt-2 |
8 |
|
8 |
|
9 |
if [[ ${PV} == "9999" ]] ; then |
9 |
if [[ ${PV} == "9999" ]] ; then |
10 |
# XXX: should finish merging the -9999 ebuild into this one ... |
10 |
# XXX: should finish merging the -9999 ebuild into this one ... |
Lines 23-28
Link Here
|
23 |
SLOT="0" |
23 |
SLOT="0" |
24 |
KEYWORDS="amd64 x86" |
24 |
KEYWORDS="amd64 x86" |
25 |
IUSE="+additions alsa doc extensions headless java pam pulseaudio +opengl python +qt4 +sdk vboxwebsrv vnc" |
25 |
IUSE="+additions alsa doc extensions headless java pam pulseaudio +opengl python +qt4 +sdk vboxwebsrv vnc" |
|
|
26 |
PYTHON_MODNAME="xpcom" |
26 |
|
27 |
|
27 |
RDEPEND="!app-emulation/virtualbox-bin |
28 |
RDEPEND="!app-emulation/virtualbox-bin |
28 |
~app-emulation/virtualbox-modules-${PV} |
29 |
~app-emulation/virtualbox-modules-${PV} |
Lines 144-150
Link Here
|
144 |
|
145 |
|
145 |
src_prepare() { |
146 |
src_prepare() { |
146 |
# Remove shipped binaries (kBuild,yasm), see bug #232775 |
147 |
# Remove shipped binaries (kBuild,yasm), see bug #232775 |
147 |
rm -rf kBuild/bin tools |
148 |
rm -rf kBuild/bin/ tools/ |
148 |
|
149 |
|
149 |
# Disable things unused or split into separate ebuilds |
150 |
# Disable things unused or split into separate ebuilds |
150 |
sed -e "s/MY_LIBDIR/$(get_libdir)/" \ |
151 |
sed -e "s/MY_LIBDIR/$(get_libdir)/" \ |
Lines 180-187
Link Here
|
180 |
if use java ; then |
181 |
if use java ; then |
181 |
sed "s:/usr/lib/jvm/java-6-sun:$(java-config -O):" \ |
182 |
sed "s:/usr/lib/jvm/java-6-sun:$(java-config -O):" \ |
182 |
-i "${S}"/Config.kmk || die |
183 |
-i "${S}"/Config.kmk || die |
|
|
184 |
java-pkg-opt-2_src_prepare || die |
183 |
fi |
185 |
fi |
184 |
java-pkg-opt-2_src_prepare |
|
|
185 |
} |
186 |
} |
186 |
|
187 |
|
187 |
src_configure() { |
188 |
src_configure() { |
Lines 207-217
Link Here
|
207 |
--disable-dbus \ |
208 |
--disable-dbus \ |
208 |
${myconf} \ |
209 |
${myconf} \ |
209 |
|| die "configure failed" |
210 |
|| die "configure failed" |
|
|
211 |
|
210 |
} |
212 |
} |
211 |
|
213 |
|
212 |
src_compile() { |
214 |
src_compile() { |
213 |
source ./env.sh |
215 |
source ./env.sh |
214 |
|
216 |
|
|
|
217 |
if use python; then |
218 |
cd src/libs/libxml2-2.6.30/python |
219 |
distutils_src_compile |
220 |
cd ${S} |
221 |
fi |
222 |
|
215 |
# Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529) |
223 |
# Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529) |
216 |
# and strip all flags |
224 |
# and strip all flags |
217 |
# strip-flags |
225 |
# strip-flags |
Lines 343-348
Link Here
|
343 |
java-pkg_regjar "${D}/usr/$(get_libdir)/${PN}/sdk/bindings/xpcom/java/vboxjxpcom.jar" |
351 |
java-pkg_regjar "${D}/usr/$(get_libdir)/${PN}/sdk/bindings/xpcom/java/vboxjxpcom.jar" |
344 |
java-pkg_regso "${D}/usr/$(get_libdir)/${PN}/libvboxjxpcom.so" |
352 |
java-pkg_regso "${D}/usr/$(get_libdir)/${PN}/libvboxjxpcom.so" |
345 |
fi |
353 |
fi |
|
|
354 |
|
355 |
if use python; then |
356 |
cd ${S}/src/libs/libxml2-2.6.30/python |
357 |
distutils_src_install |
358 |
cp -r ${S}/src/VBox/Frontends/VBoxShell/vboxshell.py ${ED}/usr/bin/ || die |
359 |
cd ${S} |
360 |
fi |
346 |
} |
361 |
} |
347 |
|
362 |
|
348 |
pkg_postinst() { |
363 |
pkg_postinst() { |