Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 441982 - media-sound/alsa-utils: put alsa-info behind USE=minimal, and alsamixer behind USE=ncurses
Summary: media-sound/alsa-utils: put alsa-info behind USE=minimal, and alsamixer behin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo ALSA team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-06 05:23 UTC by SpanKY
Modified: 2012-11-06 23:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2012-11-06 05:23:46 UTC
mind if i commit this ?  a lot of the alsa utils are useful on systems where we don't want interactive/ncurses programs like alsa-info (dialog) and alsamixer.  i'll add info to metadata.xml describing the flags.

--- alsa-utils-1.0.26.ebuild
+++ alsa-utils-1.0.26.ebuild
@@ -8,20 +8,22 @@
 DESCRIPTION="Advanced Linux Sound Architecture Utils (alsactl, alsamixer, etc.)"
 HOMEPAGE="http://www.alsa-project.org/"
 SRC_URI="mirror://alsaproject/utils/${P}.tar.bz2
-       mirror://alsaproject/driver/alsa-driver-1.0.25.tar.bz2"
+       !minimal? ( mirror://alsaproject/driver/alsa-driver-1.0.25.tar.bz2 )"
 
 LICENSE="GPL-2"
 SLOT="0.9"
 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
-IUSE="doc nls minimal selinux"
+IUSE="doc minimal +ncurses nls selinux"
 
 COMMON_DEPEND=">=media-libs/alsa-lib-${PV}
        media-libs/libsamplerate
-       >=sys-libs/ncurses-5.7-r7
+       ncurses? ( >=sys-libs/ncurses-5.7-r7 )
        selinux? ( sec-policy/selinux-alsa )"
 RDEPEND="${COMMON_DEPEND}
-       dev-util/dialog
-       !minimal? ( sys-apps/pciutils )"
+       !minimal? (
+               dev-util/dialog
+               sys-apps/pciutils
+       )"
 DEPEND="${COMMON_DEPEND}
        virtual/pkgconfig
        doc? ( app-text/xmlto )"
@@ -41,6 +43,7 @@ src_configure() {
 
        econf \
                $(use_enable nls) \
+               $(use_enable ncurses alsamixer) \
                $(use_enable !minimal alsaconf) \
                "$(systemd_with_unitdir)" \
                --with-udev-rules-dir="${udevdir}"/rules.d \
@@ -52,7 +55,7 @@ src_install() {
 
        dodoc ChangeLog README TODO seq/*/README.*
 
-       newbin "${WORKDIR}"/alsa-driver-*/utils/alsa-info.sh alsa-info
+       use minimal || newbin "${WORKDIR}"/alsa-driver-*/utils/alsa-info.sh alsa-info
 
        newinitd "${FILESDIR}"/alsasound.initd-r5 alsasound
        newconfd "${FILESDIR}"/alsasound.confd-r4 alsasound
Comment 1 Tony Vroon (RETIRED) gentoo-dev 2012-11-06 07:36:33 UTC
Go for it Mike.
Comment 2 SpanKY gentoo-dev 2012-11-06 21:47:28 UTC
hmm, and also USE=libsamplerate to control alsaloop

@@ -13,10 +13,10 @@
 LICENSE="GPL-2"
 SLOT="0.9"
 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
-IUSE="doc minimal +ncurses nls selinux"
+IUSE="doc +libsamplerate minimal +ncurses nls selinux"
 
 COMMON_DEPEND=">=media-libs/alsa-lib-${PV}
-       media-libs/libsamplerate
+       libsamplerate? ( media-libs/libsamplerate )
        ncurses? ( >=sys-libs/ncurses-5.7-r7 )
        selinux? ( sec-policy/selinux-alsa )"
 RDEPEND="${COMMON_DEPEND}
@@ -42,6 +42,7 @@
        has_version sys-fs/udev && udevdir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)"
 
        econf \
+               $(use_enable libsamplerate alsaloop) \
                $(use_enable nls) \
                $(use_enable ncurses alsamixer) \
                $(use_enable !minimal alsaconf) \
Comment 3 Tony Vroon (RETIRED) gentoo-dev 2012-11-06 22:59:27 UTC
Okay!
Comment 4 SpanKY gentoo-dev 2012-11-06 23:17:52 UTC
cheers.  committed 1.0.26-r1 with the new flags enabled by default, so there shouldn't be a change unless people explicitly have these flags disabled.