Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/mpg321: ChangeLog mpg321-0.2.10.6.ebuild
Date: Mon, 22 Jun 2009 04:32:16
Message-Id: E1MIbCY-0007Vx-6v@stork.gentoo.org
1 ssuominen 09/06/22 04:32:14
2
3 Modified: ChangeLog mpg321-0.2.10.6.ebuild
4 Log:
5 Disable USE symlink by default and mention it in postinst. Run eautoreconf because it was running maintainer-mode and failed due to undefined AC_TYPE_SOCKLEN_T, needed a AT_M4DIR's help.
6 (Portage version: 2.2_rc33/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.46 media-sound/mpg321/ChangeLog
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/mpg321/ChangeLog?rev=1.46&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/mpg321/ChangeLog?rev=1.46&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/mpg321/ChangeLog?r1=1.45&r2=1.46
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/media-sound/mpg321/ChangeLog,v
18 retrieving revision 1.45
19 retrieving revision 1.46
20 diff -u -r1.45 -r1.46
21 --- ChangeLog 21 Jun 2009 07:31:59 -0000 1.45
22 +++ ChangeLog 22 Jun 2009 04:32:14 -0000 1.46
23 @@ -1,6 +1,12 @@
24 # ChangeLog for media-sound/mpg321
25 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg321/ChangeLog,v 1.45 2009/06/21 07:31:59 ssuominen Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg321/ChangeLog,v 1.46 2009/06/22 04:32:14 ssuominen Exp $
28 +
29 + 22 Jun 2009; Samuli Suominen <ssuominen@g.o>
30 + mpg321-0.2.10.6.ebuild:
31 + Disable USE symlink by default and mention it in postinst. Run eautoreconf
32 + because it was running maintainer-mode and failed due to undefined
33 + AC_TYPE_SOCKLEN_T, needed a AT_M4DIR's help.
34
35 *mpg321-0.2.10.6 (21 Jun 2009)
36 *mpg321-0.2.10-r4 (21 Jun 2009)
37
38
39
40 1.2 media-sound/mpg321/mpg321-0.2.10.6.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/mpg321/mpg321-0.2.10.6.ebuild?rev=1.2&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/mpg321/mpg321-0.2.10.6.ebuild?rev=1.2&content-type=text/plain
44 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/mpg321/mpg321-0.2.10.6.ebuild?r1=1.1&r2=1.2
45
46 Index: mpg321-0.2.10.6.ebuild
47 ===================================================================
48 RCS file: /var/cvsroot/gentoo-x86/media-sound/mpg321/mpg321-0.2.10.6.ebuild,v
49 retrieving revision 1.1
50 retrieving revision 1.2
51 diff -u -r1.1 -r1.2
52 --- mpg321-0.2.10.6.ebuild 21 Jun 2009 07:31:59 -0000 1.1
53 +++ mpg321-0.2.10.6.ebuild 22 Jun 2009 04:32:14 -0000 1.2
54 @@ -1,9 +1,9 @@
55 # Copyright 1999-2009 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 -# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg321/mpg321-0.2.10.6.ebuild,v 1.1 2009/06/21 07:31:59 ssuominen Exp $
58 +# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg321/mpg321-0.2.10.6.ebuild,v 1.2 2009/06/22 04:32:14 ssuominen Exp $
59
60 EAPI=2
61 -inherit eutils
62 +inherit autotools
63
64 DESCRIPTION="a realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3"
65 HOMEPAGE="http://packages.debian.org/mpg321"
66 @@ -12,13 +12,12 @@
67 LICENSE="GPL-2"
68 SLOT="0"
69 KEYWORDS="~alpha ~amd64 ~hppa -mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
70 -IUSE="+symlink"
71 +IUSE="+alsa symlink"
72
73 RDEPEND="sys-libs/zlib
74 media-libs/libmad
75 media-libs/libid3tag
76 - media-libs/libao
77 - !<media-sound/mpg321-0.2.10-r4
78 + media-libs/libao[alsa?]
79 symlink? ( !media-sound/mpg123 )"
80 DEPEND="${RDEPEND}"
81 PDEPEND="symlink? ( virtual/mpg123 )"
82 @@ -35,14 +34,30 @@
83 fi
84 }
85
86 +src_prepare() {
87 + AT_M4DIR=m4 eautoreconf
88 +}
89 +
90 src_configure() {
91 + local myao=oss
92 + use alsa && myao=alsa09
93 +
94 econf \
95 --disable-dependency-tracking \
96 - $(use_enable symlink mpg123-symlink)
97 + $(use_enable symlink mpg123-symlink) \
98 + --with-default-audio=${myao}
99 }
100
101 -src_install () {
102 +src_install() {
103 emake DESTDIR="${D}" install || die "emake install failed"
104 newdoc debian/changelog ChangeLog.debian
105 dodoc AUTHORS BUGS HACKING NEWS README{,.remote} THANKS TODO
106 }
107 +
108 +pkg_postinst() {
109 + if ! use symlink; then
110 + ewarn "USE symlink is disabled by default on purpose, to get people"
111 + ewarn "to switch back into using mpg123 since it's been freed."
112 + ewarn "See ChangeLog.debian in /usr/share/doc/${PF} for details."
113 + fi
114 +}