Added ebuild for alsa 1.0.10_rc1. Added patch to better fix largefile support.
authorDiego Elio Pettenò <flameeyes@gentoo.org>
Thu, 25 Aug 2005 00:08:21 +0000 (00:08 +0000)
committerDiego Elio Pettenò <flameeyes@gentoo.org>
Thu, 25 Aug 2005 00:08:21 +0000 (00:08 +0000)
Package-Manager: portage-2.0.51.22

media-sound/alsa-utils/ChangeLog
media-sound/alsa-utils/Manifest
media-sound/alsa-utils/alsa-utils-1.0.10_rc1.ebuild [new file with mode: 0644]
media-sound/alsa-utils/files/alsa-utils-1.0.10_rc1-largefile.patch [new file with mode: 0644]
media-sound/alsa-utils/files/alsa-utils-1.0.10_rc1-nls.patch [new file with mode: 0644]
media-sound/alsa-utils/files/digest-alsa-utils-1.0.10_rc1 [new file with mode: 0644]

index c03da38eabb4074c76f7ae1f344b97a6427b249d..d22f1037b0f4d33603490f20050eaf8e733b96d8 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for media-sound/alsa-utils
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/ChangeLog,v 1.104 2005/08/24 19:43:07 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/ChangeLog,v 1.105 2005/08/25 00:08:20 flameeyes Exp $
+
+*alsa-utils-1.0.10_rc1 (25 Aug 2005)
+
+  25 Aug 2005; Diego Pettenò <flameeyes@gentoo.org>
+  +files/alsa-utils-1.0.10_rc1-largefile.patch,
+  +files/alsa-utils-1.0.10_rc1-nls.patch, +alsa-utils-1.0.10_rc1.ebuild:
+  Added ebuild for alsa 1.0.10_rc1. Added patch to better fix largefile support.
 
   24 Aug 2005; Aron Griffis <agriffis@gentoo.org> alsa-utils-1.0.9a.ebuild:
   stable on ia64
index a693a283d540a5989fc8667bbd6ec5cf9800f768..aaa49c0258a20759841c172f384b77061587e259 100644 (file)
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
 MD5 d8be97acd28e31075b4c30fd2f753050 ChangeLog 16227
 MD5 7c440e4d4995b7d2f394ceb1c87218fd alsa-utils-1.0.10_rc1.ebuild 2606
 MD5 a2a37bf9cb817343a6a58e20cfea9bb8 alsa-utils-1.0.7.ebuild 2272
@@ -15,3 +18,10 @@ MD5 f4f492c382b243ebf558809a372fd6b7 files/alsasound.confd 515
 MD5 2bfc6eaf49d769272a46ed2046b73944 files/digest-alsa-utils-1.0.9a-r1 70
 MD5 954b0951b5fed9bf591abf9e7cc1963e files/alsa-modules.conf-rc 1162
 MD5 2bfc6eaf49d769272a46ed2046b73944 files/digest-alsa-utils-1.0.9a 70
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.2 (GNU/Linux)
+
+iD8DBQFDDQwEj5H05b2HAEkRAmmSAJ9pedKQpTqlKDgzVkFV6OKaiBDBzgCgoAoh
+4vRZPBHfiMOYRq9lie+m+Sg=
+=qhAf
+-----END PGP SIGNATURE-----
diff --git a/media-sound/alsa-utils/alsa-utils-1.0.10_rc1.ebuild b/media-sound/alsa-utils/alsa-utils-1.0.10_rc1.ebuild
new file mode 100644 (file)
index 0000000..9f59633
--- /dev/null
@@ -0,0 +1,86 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/alsa-utils-1.0.10_rc1.ebuild,v 1.1 2005/08/25 00:08:21 flameeyes Exp $
+
+MY_P="${P/_rc/rc}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="Advanced Linux Sound Architecture Utils (alsactl, alsamixer, etc.)"
+HOMEPAGE="http://www.alsa-project.org/"
+SRC_URI="mirror://alsaproject/utils/${MY_P}.tar.bz2"
+
+inherit flag-o-matic
+
+LICENSE="GPL-2"
+SLOT="0.9"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 -sparc ~x86"
+IUSE="nls"
+
+DEPEND=">=sys-libs/ncurses-5.1
+       dev-util/dialog
+       >=media-libs/alsa-lib-1.0.9"
+RDEPEND="${DEPEND}
+       sys-apps/pciutils"
+
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+       epatch ${FILESDIR}/${P}-largefile.patch
+       epatch ${FILESDIR}/${P}-nls.patch
+
+       aclocal || die "aclocal failed"
+       autoconf || die "autoconf failed"
+       automake || die "automake failed"
+}
+
+src_compile() {
+       econf \
+               $(use_enable nls) \
+               || die "configure failed"
+
+       emake || die "make failed"
+}
+
+src_install() {
+       local ALSA_UTILS_DOCS="ChangeLog README TODO
+               seq/aconnect/README.aconnect
+               seq/aseqnet/README.aseqnet"
+
+       make DESTDIR="${D}" install || die "Installation Failed"
+
+       dodoc ${ALSA_UTILS_DOCS}
+       newdoc alsamixer/README README.alsamixer
+
+       newconfd ${FILESDIR}/alsasound.confd alsasound
+       insinto /etc/modules.d
+       newins ${FILESDIR}/alsa-modules.conf-rc alsa
+       newinitd ${FILESDIR}/alsasound
+}
+
+pkg_postinst() {
+       echo
+       einfo "The alsasound initscript is now provided by alsa-utils"
+       einfo "instead of alsa-driver for compatibility with kernel-sources"
+       einfo "which provide ALSA internally."
+       echo
+       einfo "To take advantage of this, and automate the process of"
+       einfo "loading and unloading the ALSA sound drivers as well as"
+       einfo "storing and restoring sound-card mixer levels you should"
+       einfo "add alsasound to the boot runlevel. You can do this as"
+       einfo "root like so:"
+       einfo " # rc-update add alsasound boot"
+       echo
+       einfo "You will also need to edit the file /etc/modules.d/alsa"
+       einfo "and run modules-update. You can do this like so:"
+       einfo " # nano -w /etc/modules.d/alsa && modules-update"
+       echo
+
+       if use sparc; then
+               ewarn "Old versions of alsa-drivers had a broken snd-ioctl32 module"
+               ewarn "which causes sparc64 machines to lockup on such tasks as"
+               ewarn "changing the volume.  Because of this, it is VERY important"
+               ewarn "that you do not use the snd-ioctl32 modules contained in"
+               ewarn "development-sources or <=gentoo-dev-sources-2.6.7-r14.  Doing so"
+               ewarn "may result in an unbootable system if you start alsasound at boot."
+       fi
+}
diff --git a/media-sound/alsa-utils/files/alsa-utils-1.0.10_rc1-largefile.patch b/media-sound/alsa-utils/files/alsa-utils-1.0.10_rc1-largefile.patch
new file mode 100644 (file)
index 0000000..295bb73
--- /dev/null
@@ -0,0 +1,14 @@
+Index: alsa-utils-1.0.10rc1/configure.in
+===================================================================
+--- alsa-utils-1.0.10rc1.orig/configure.in
++++ alsa-utils-1.0.10rc1/configure.in
+@@ -81,6 +81,9 @@ AC_HEADER_TIME
+ dnl Checks for library functions.
+ AC_PROG_GCC_TRADITIONAL
+ 
++dnl Enable largefile support
++AC_SYS_LARGEFILE
++
+ SAVE_UTIL_VERSION
+ 
+ AC_OUTPUT(Makefile alsactl/Makefile alsamixer/Makefile amidi/Makefile amixer/Makefile \
diff --git a/media-sound/alsa-utils/files/alsa-utils-1.0.10_rc1-nls.patch b/media-sound/alsa-utils/files/alsa-utils-1.0.10_rc1-nls.patch
new file mode 100644 (file)
index 0000000..3233516
--- /dev/null
@@ -0,0 +1,60 @@
+Index: alsa-utils-1.0.10rc1/aplay/aplay.c
+===================================================================
+--- alsa-utils-1.0.10rc1.orig/aplay/aplay.c
++++ alsa-utils-1.0.10rc1/aplay/aplay.c
+@@ -362,8 +362,10 @@ int main(int argc, char *argv[])
+       int do_names_list = 0, do_device_list = 0, do_pcm_list = 0;
+       snd_pcm_info_t *info;
+ 
++#ifdef ENABLE_NLS
+       setlocale(LC_ALL, "");
+       textdomain(PACKAGE);
++#endif
+ 
+       snd_pcm_info_alloca(&info);
+ 
+Index: alsa-utils-1.0.10rc1/seq/aconnect/aconnect.c
+===================================================================
+--- alsa-utils-1.0.10rc1.orig/seq/aconnect/aconnect.c
++++ alsa-utils-1.0.10rc1/seq/aconnect/aconnect.c
+@@ -278,8 +278,10 @@ int main(int argc, char **argv)
+       snd_seq_port_subscribe_t *subs;
+       snd_seq_addr_t sender, dest;
+ 
++#ifdef ENABLE_NLS
+       setlocale(LC_ALL, "");
+       textdomain(PACKAGE);
++#endif
+ 
+       while ((c = getopt_long(argc, argv, "dior:t:elx", long_option, NULL)) != -1) {
+               switch (c) {
+Index: alsa-utils-1.0.10rc1/seq/aseqnet/aseqnet.c
+===================================================================
+--- alsa-utils-1.0.10rc1.orig/seq/aseqnet/aseqnet.c
++++ alsa-utils-1.0.10rc1/seq/aseqnet/aseqnet.c
+@@ -97,8 +97,10 @@ int main(int argc, char **argv)
+       int port = DEFAULT_PORT;
+       char *source = NULL, *dest = NULL;
+ 
++#ifdef ENABLE_NLS
+       setlocale(LC_ALL, "");
+       textdomain(PACKAGE);
++#endif
+ 
+       while ((c = getopt_long(argc, argv, "p:s:d:vi", long_option, NULL)) != -1) {
+               switch (c) {
+Index: alsa-utils-1.0.10rc1/speaker-test/speaker-test.c
+===================================================================
+--- alsa-utils-1.0.10rc1.orig/speaker-test/speaker-test.c
++++ alsa-utils-1.0.10rc1/speaker-test/speaker-test.c
+@@ -499,8 +499,10 @@ int main(int argc, char *argv[]) {
+     {NULL,        0, NULL, 0  },
+   };
+ 
++#ifdef ENABLE_NLS
+   setlocale(LC_ALL, "");
+   textdomain(PACKAGE);
++#endif
+ 
+   snd_pcm_hw_params_alloca(&hwparams);
+   snd_pcm_sw_params_alloca(&swparams);
diff --git a/media-sound/alsa-utils/files/digest-alsa-utils-1.0.10_rc1 b/media-sound/alsa-utils/files/digest-alsa-utils-1.0.10_rc1
new file mode 100644 (file)
index 0000000..dcee501
--- /dev/null
@@ -0,0 +1 @@
+MD5 98e757012434ad3f2b9241ca04afd521 alsa-utils-1.0.10rc1.tar.bz2 989632