Gentoo Archives: gentoo-commits

From: "Joe Sapp (nixphoeni)" <nixphoeni@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/xwax: metadata.xml ChangeLog xwax-0.9.ebuild xwax-0.9_beta3.ebuild
Date: Sat, 07 May 2011 17:50:11
Message-Id: 20110507175000.5FF8F20054@flycatcher.gentoo.org
1 nixphoeni 11/05/07 17:50:00
2
3 Modified: metadata.xml ChangeLog
4 Added: xwax-0.9.ebuild
5 Removed: xwax-0.9_beta3.ebuild
6 Log:
7 Version bump and deprecated XWAX_DECODERS for USE flags - see ChangeLog for details
8
9 (Portage version: 2.1.9.45/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.3 media-sound/xwax/metadata.xml
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xwax/metadata.xml?rev=1.3&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xwax/metadata.xml?rev=1.3&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xwax/metadata.xml?r1=1.2&r2=1.3
17
18 Index: metadata.xml
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/media-sound/xwax/metadata.xml,v
21 retrieving revision 1.2
22 retrieving revision 1.3
23 diff -u -r1.2 -r1.3
24 --- metadata.xml 8 Mar 2010 00:26:02 -0000 1.2
25 +++ metadata.xml 7 May 2011 17:50:00 -0000 1.3
26 @@ -14,5 +14,8 @@
27 <flag name='xwax_decoders_mp3'>Sets runtime dependencies to support decoding MP3 audio.</flag>
28 <flag name='xwax_decoders_ogg'>Sets runtime dependencies to support decoding Ogg Vorbis audio.</flag>
29 <flag name='xwax_decoders_misc'>Sets runtime dependencies to support decoding "other" audio files.</flag>
30 + <flag name='cdda'>Sets runtime dependencies to support decoding audio from a compact disc.</flag>
31 + <flag name='mp3'>Sets runtime dependencies to support decoding MP3 audio.</flag>
32 + <flag name='fallback'>Sets runtime dependencies to support decoding "other" audio files.</flag>
33 </use>
34 </pkgmetadata>
35
36
37
38 1.31 media-sound/xwax/ChangeLog
39
40 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xwax/ChangeLog?rev=1.31&view=markup
41 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xwax/ChangeLog?rev=1.31&content-type=text/plain
42 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xwax/ChangeLog?r1=1.30&r2=1.31
43
44 Index: ChangeLog
45 ===================================================================
46 RCS file: /var/cvsroot/gentoo-x86/media-sound/xwax/ChangeLog,v
47 retrieving revision 1.30
48 retrieving revision 1.31
49 diff -u -r1.30 -r1.31
50 --- ChangeLog 4 Apr 2011 12:33:26 -0000 1.30
51 +++ ChangeLog 7 May 2011 17:50:00 -0000 1.31
52 @@ -1,6 +1,15 @@
53 # ChangeLog for media-sound/xwax
54 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
55 -# $Header: /var/cvsroot/gentoo-x86/media-sound/xwax/ChangeLog,v 1.30 2011/04/04 12:33:26 scarabeus Exp $
56 +# $Header: /var/cvsroot/gentoo-x86/media-sound/xwax/ChangeLog,v 1.31 2011/05/07 17:50:00 nixphoeni Exp $
57 +
58 +*xwax-0.9 (07 May 2011)
59 +
60 + 07 May 2011; Joe Sapp <nixphoeni@g.o> -xwax-0.9_beta3.ebuild,
61 + +xwax-0.9.ebuild, metadata.xml:
62 + Version bump, deprecated XWAX_DECODERS for USE flags, bumped EAPI to reflect
63 + proper USE flag configurations, and moved patching of the import script to
64 + src_prepare(). Also added OSS support through USE and the --prefix flag to
65 + econf.
66
67 04 Apr 2011; Tomáš Chvátal <scarabeus@g.o> xwax-0.7.ebuild,
68 xwax-0.8.ebuild, xwax-0.9_beta3.ebuild:
69
70
71
72 1.1 media-sound/xwax/xwax-0.9.ebuild
73
74 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xwax/xwax-0.9.ebuild?rev=1.1&view=markup
75 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xwax/xwax-0.9.ebuild?rev=1.1&content-type=text/plain
76
77 Index: xwax-0.9.ebuild
78 ===================================================================
79 # Copyright 1999-2011 Gentoo Foundation
80 # Distributed under the terms of the GNU General Public License v2
81 # $Header: /var/cvsroot/gentoo-x86/media-sound/xwax/xwax-0.9.ebuild,v 1.1 2011/05/07 17:50:00 nixphoeni Exp $
82
83 EAPI=4
84 inherit toolchain-funcs
85
86 DESCRIPTION="Digital vinyl emulation software"
87 HOMEPAGE="http://www.xwax.co.uk/"
88 SRC_URI="http://www.xwax.co.uk/releases/${P}.tar.gz"
89
90 LICENSE="GPL-2"
91 SLOT="0"
92 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
93 IUSE="alsa jack oss cdda mp3 +fallback"
94 REQUIRED_USE="|| ( cdda mp3 fallback )
95 || ( alsa jack oss )"
96
97 RDEPEND="media-libs/libsdl
98 media-libs/sdl-ttf
99 media-fonts/dejavu
100 alsa? ( media-libs/alsa-lib )
101 jack? ( media-sound/jack-audio-connection-kit )
102 cdda? ( media-sound/cdparanoia )
103 mp3? ( || ( media-sound/mpg123 media-sound/mpg321 ) )
104 fallback? ( virtual/ffmpeg )"
105 DEPEND="${RDEPEND}"
106
107 DOCS="README CHANGES"
108
109 pkg_setup() {
110 ewarn "Please note that XWAX_DECODERS is deprecated in favor of USE flags."
111 ewarn "Sorry for the inconvenience."
112 }
113
114 src_prepare() {
115 # Remove the forced optimization from 'CFLAGS' and 'LDFLAGS' in
116 # the Makefile
117 # Also replace VERSION so we don't have to depend on git...
118 sed -i -e 's:\(^CFLAGS.*\)-O[0-9]\(.*\):\1\2:' \
119 -e 's:\(^LDFLAGS.*\)-O[0-9]\(.*\):\1\2:' \
120 -e "s:\(^VERSION =\).*:\1 ${PV}:" \
121 Makefile || die "sed failed"
122
123 # Replace any decoder commands in the import script, if necessary
124 if [[ `use mp3` ]]; then
125 # mpg123 is upstream's default
126 if has_version media-sound/mpg123; then
127 TO="mpg123"
128 FROM="mpg321"
129 # Otherwise, use mpg321
130 else
131 TO="mpg321"
132 FROM="mpg123"
133 fi
134 debug-print "found ${TO}"
135 sed -i -e "s:${FROM}:${TO}:g" import || \
136 die "problem converting xwax-import to use ${TO}"
137 fi
138 }
139
140 src_configure() {
141 tc-export CC
142 econf \
143 --prefix "${EROOT}usr" \
144 $(use_enable alsa) \
145 $(use_enable jack) \
146 $(use_enable oss)
147 }
148
149 src_compile() {
150 # EXECDIR is the default directory in which xwax will look for
151 # the 'xwax-import' and 'xwax-scan' scripts
152 emake EXECDIR="${EROOT}usr/bin"
153 }
154
155 src_install() {
156 # This is easier than setting all the environment variables
157 # needed, running the sed script required to get the man directory
158 # correct, and removing the GPL-2 after a 'make install' run
159 dobin xwax || die "failed to install xwax"
160 newbin import xwax-import || die "failed to install xwax-import"
161 newbin scan xwax-scan || die "failed to install xwax-scan"
162 doman xwax.1 || die "failed to install man page"
163
164 dodoc ${DOCS} || die "failed to install docs"
165 }