Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 363974 Details for
Bug 484252
media-sound/pulseaudio multilib support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
First attempt at multilib pulse
pulseaudio-4.0-r1.ebuild.diff (text/plain), 6.87 KB, created by
Michał Górny
on 2013-11-25 16:49:02 UTC
(
hide
)
Description:
First attempt at multilib pulse
Filename:
MIME Type:
Creator:
Michał Górny
Created:
2013-11-25 16:49:02 UTC
Size:
6.87 KB
patch
obsolete
>--- pulseaudio-4.0.ebuild 2013-11-23 22:41:38.000000000 +0100 >+++ pulseaudio-4.0-r1.ebuild 2013-11-25 17:38:39.959956779 +0100 >@@ -4,7 +4,7 @@ > > EAPI="5" > >-inherit eutils flag-o-matic user versionator udev >+inherit eutils flag-o-matic multilib-minimal user versionator udev > > DESCRIPTION="A networked sound server with an advanced plugin system" > HOMEPAGE="http://www.pulseaudio.org/" >@@ -17,29 +17,29 @@ SRC_URI="http://freedesktop.org/software > # GPL-forcing USE flags for those who use them. > LICENSE="!gdbm? ( LGPL-2.1 ) gdbm? ( GPL-2 )" > SLOT="0" >-KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" >+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" > IUSE="+alsa +asyncns avahi bluetooth +caps dbus doc equalizer +gdbm +glib gnome > gtk ipv6 jack libsamplerate lirc neon +orc oss qt4 realtime ssl systemd > system-wide tcpd test +udev +webrtc-aec +X xen" > >-RDEPEND=">=media-libs/libsndfile-1.0.20 >+RDEPEND=">=media-libs/libsndfile-1.0.20[${MULTILIB_USEDEP}] > X? ( >- >=x11-libs/libX11-1.4.0 >- >=x11-libs/libxcb-1.6 >+ >=x11-libs/libX11-1.4.0[${MULTILIB_USEDEP}] >+ >=x11-libs/libxcb-1.6[${MULTILIB_USEDEP}] > >=x11-libs/xcb-util-0.3.1 >- x11-libs/libSM >- x11-libs/libICE >- x11-libs/libXtst >+ x11-libs/libSM[${MULTILIB_USEDEP}] >+ x11-libs/libICE[${MULTILIB_USEDEP}] >+ x11-libs/libXtst[${MULTILIB_USEDEP}] > ) >- caps? ( sys-libs/libcap ) >+ caps? ( sys-libs/libcap[${MULTILIB_USEDEP}] ) > libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 ) > alsa? ( >=media-libs/alsa-lib-1.0.19 ) >- glib? ( >=dev-libs/glib-2.4.0 ) >+ glib? ( >=dev-libs/glib-2.4.0[${MULTILIB_USEDEP}] ) > avahi? ( >=net-dns/avahi-0.6.12[dbus] ) > jack? ( >=media-sound/jack-audio-connection-kit-0.117 ) >- tcpd? ( sys-apps/tcp-wrappers ) >+ tcpd? ( sys-apps/tcp-wrappers[${MULTILIB_USEDEP}] ) > lirc? ( app-misc/lirc ) >- dbus? ( >=sys-apps/dbus-1.0.0 ) >+ dbus? ( >=sys-apps/dbus-1.0.0[${MULTILIB_USEDEP}] ) > gtk? ( x11-libs/gtk+:3 ) > gnome? ( >=gnome-base/gconf-2.4.0 ) > bluetooth? ( >@@ -47,7 +47,7 @@ RDEPEND=">=media-libs/libsndfile-1.0.20 > >=sys-apps/dbus-1.0.0 > media-libs/sbc > ) >- asyncns? ( net-libs/libasyncns ) >+ asyncns? ( net-libs/libasyncns[${MULTILIB_USEDEP}] ) > udev? ( >=virtual/udev-143[hwdb(+)] ) > realtime? ( sys-auth/rtkit ) > equalizer? ( sci-libs/fftw:3.0 ) >@@ -58,7 +58,7 @@ RDEPEND=">=media-libs/libsndfile-1.0.20 > webrtc-aec? ( media-libs/webrtc-audio-processing ) > xen? ( app-emulation/xen ) > systemd? ( >=sys-apps/systemd-39 ) >- dev-libs/json-c >+ dev-libs/json-c[${MULTILIB_USEDEP}] > >=sys-devel/libtool-2.2.4" # it's a valid RDEPEND, libltdl.so is used > > DEPEND="${RDEPEND} >@@ -66,8 +66,8 @@ DEPEND="${RDEPEND} > doc? ( app-doc/doxygen ) > test? ( dev-libs/check ) > X? ( >- x11-proto/xproto >- >=x11-libs/libXtst-1.0.99.2 >+ x11-proto/xproto[${MULTILIB_USEDEP}] >+ >=x11-libs/libXtst-1.0.99.2[${MULTILIB_USEDEP}] > ) > dev-libs/libatomic_ops > virtual/pkgconfig >@@ -105,47 +105,88 @@ src_prepare() { > epatch_user > } > >-src_configure() { >+multilib_src_configure() { >+ local myconf=() >+ > if use gdbm; then >- myconf+=" --with-database=gdbm" >+ myconf+=( --with-database=gdbm ) > #elif use tdb; then >- # myconf+=" --with-database=tdb" >+ # myconf+=( --with-database=tdb ) > else >- myconf+=" --with-database=simple" >+ myconf+=( --with-database=simple ) > fi > >- econf \ >- --enable-largefile \ >- $(use_enable glib glib2) \ >- --disable-solaris \ >- $(use_enable asyncns) \ >- $(use_enable oss oss-output) \ >- $(use_enable alsa) \ >- $(use_enable lirc) \ >- $(use_enable neon neon-opt) \ >- $(use_enable tcpd tcpwrap) \ >- $(use_enable jack) \ >- $(use_enable avahi) \ >- $(use_enable dbus) \ >- $(use_enable gnome gconf) \ >- $(use_enable gtk gtk3) \ >- $(use_enable libsamplerate samplerate) \ >- $(use_enable bluetooth bluez) \ >- $(use_enable X x11) \ >- $(use_enable test default-build-tests) \ >- $(use_enable udev) \ >- $(use_enable systemd) \ >- $(use_enable ipv6) \ >- $(use_enable ssl openssl) \ >- $(use_enable webrtc-aec) \ >- $(use_enable xen) \ >- $(use_with caps) \ >- $(use_with equalizer fftw) \ >- --disable-adrian-aec \ >- --disable-esound \ >- --localstatedir="${EPREFIX}"/var \ >- --with-udev-rules-dir="${EPREFIX}/$(udev_get_udevdir)"/rules.d \ >- ${myconf} >+ myconf+=( >+ --enable-largefile >+ $(use_enable glib glib2) >+ --disable-solaris >+ $(use_enable asyncns) >+ $(use_enable oss oss-output) >+ $(use_enable alsa) >+ $(use_enable lirc) >+ $(use_enable neon neon-opt) >+ $(use_enable tcpd tcpwrap) >+ $(use_enable jack) >+ $(use_enable avahi) >+ $(use_enable dbus) >+ $(use_enable gnome gconf) >+ $(use_enable gtk gtk3) >+ $(use_enable libsamplerate samplerate) >+ $(use_enable bluetooth bluez) >+ $(use_enable X x11) >+ $(use_enable test default-build-tests) >+ $(use_enable udev) >+ $(use_enable systemd) >+ $(use_enable ipv6) >+ $(use_enable ssl openssl) >+ $(use_enable webrtc-aec) >+ $(use_enable xen) >+ $(use_with caps) >+ $(use_with equalizer fftw) >+ --disable-adrian-aec >+ --disable-esound >+ --localstatedir="${EPREFIX}"/var >+ --with-udev-rules-dir="${EPREFIX}/$(udev_get_udevdir)"/rules.d >+ ) >+ >+ if ! multilib_build_binaries; then >+ # disable all the modules and stuff >+ myconf+=( >+ --disable-oss-output >+ --disable-alsa >+ --disable-lirc >+ --disable-jack >+ --disable-avahi >+ --disable-gconf >+ --disable-gtk3 >+ --disable-samplerate >+ --disable-bluez >+ --disable-udev >+ --disable-systemd >+ --disable-openssl >+ --disable-webrtc-aec >+ --disable-xen >+ --without-fftw >+ >+ # tests involve random modules, so just do them for the native >+ --disable-default-build-tests >+ ) >+ fi >+ >+ ECONF_SOURCE=${S} \ >+ econf "${myconf[@]}" >+} >+ >+multilib_src_compile() { >+ if multilib_build_binaries; then >+ emake >+ else >+ emake -C src libpulse{,-simple,-mainloop-glib}.la >+ fi >+} >+ >+src_compile() { >+ multilib-minimal_src_compile > > if use doc; then > pushd doxygen >@@ -154,16 +195,28 @@ src_configure() { > fi > } > >-src_test() { >+multilib_src_test() { > # We avoid running the toplevel check target because that will run > # po/'s tests too, and they are broken. Officially, it should work > # with intltool 0.41, but that doesn't look like a stable release. >- emake -C src check >+ if multilib_build_binaries; then >+ emake -C src check >+ fi > } > >-src_install() { >- emake -j1 DESTDIR="${D}" install >+multilib_src_install() { >+ if multilib_build_binaries; then >+ emake -j1 DESTDIR="${D}" install >+ else >+ emake DESTDIR="${D}" install-pkgconfigDATA >+ emake DESTDIR="${D}" -C src \ >+ install-libLTLIBRARIES \ >+ lib_LTLIBRARIES="libpulse.la libpulse-simple.la libpulse-mainloop-glib.la" \ >+ install-pulseincludeHEADERS >+ fi >+} > >+multilib_src_install_all() { > # Drop the script entirely if X is disabled > use X || rm "${ED}"/usr/bin/start-pulseaudio-x11 > >@@ -199,7 +252,7 @@ src_install() { > # Create the state directory > use prefix || diropts -o pulse -g pulse -m0755 > >- find "${D}" -name '*.la' -delete >+ prune_libtool_files --all > } > > pkg_postinst() {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 484252
:
363974
|
364268