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: ChangeLog xwax-0.9_beta2.ebuild xwax-0.9_beta1.ebuild
Date: Tue, 25 Jan 2011 02:28:45
Message-Id: 20110125022835.A7F0420057@flycatcher.gentoo.org
1 nixphoeni 11/01/25 02:28:35
2
3 Modified: ChangeLog
4 Added: xwax-0.9_beta2.ebuild
5 Removed: xwax-0.9_beta1.ebuild
6 Log:
7 Bumped beta version
8
9 (Portage version: 2.1.9.35/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.24 media-sound/xwax/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xwax/ChangeLog?rev=1.24&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xwax/ChangeLog?rev=1.24&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xwax/ChangeLog?r1=1.23&r2=1.24
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/media-sound/xwax/ChangeLog,v
21 retrieving revision 1.23
22 retrieving revision 1.24
23 diff -u -r1.23 -r1.24
24 --- ChangeLog 4 Jan 2011 03:15:43 -0000 1.23
25 +++ ChangeLog 25 Jan 2011 02:28:35 -0000 1.24
26 @@ -1,6 +1,12 @@
27 # ChangeLog for media-sound/xwax
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/media-sound/xwax/ChangeLog,v 1.23 2011/01/04 03:15:43 nixphoeni Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/media-sound/xwax/ChangeLog,v 1.24 2011/01/25 02:28:35 nixphoeni Exp $
31 +
32 +*xwax-0.9_beta2 (25 Jan 2011)
33 +
34 + 25 Jan 2011; Joe Sapp <nixphoeni@g.o> -xwax-0.9_beta1.ebuild,
35 + +xwax-0.9_beta2.ebuild:
36 + Bumped beta version
37
38 *xwax-0.9_beta1 (04 Jan 2011)
39
40
41
42
43 1.1 media-sound/xwax/xwax-0.9_beta2.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xwax/xwax-0.9_beta2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xwax/xwax-0.9_beta2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: xwax-0.9_beta2.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/media-sound/xwax/xwax-0.9_beta2.ebuild,v 1.1 2011/01/25 02:28:35 nixphoeni Exp $
53
54 EAPI=3
55 inherit toolchain-funcs
56
57 MY_PV="${PV/_/-}"
58
59 DESCRIPTION="Digital vinyl emulation software"
60 HOMEPAGE="http://www.xwax.co.uk/"
61 SRC_URI="http://www.xwax.co.uk/testing/${PN}-${MY_PV}.tar.gz"
62
63 LICENSE="GPL-2"
64 SLOT="0"
65 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
66 # These make sure the user can decode the files he or she cares about by
67 # setting appropriate runtime depends and (perhaps) configuring the import
68 # script
69 IUSE_XWAX_DECODERS="xwax_decoders_aac xwax_decoders_cd xwax_decoders_flac \
70 +xwax_decoders_mp3 xwax_decoders_ogg xwax_decoders_misc"
71 IUSE="alsa jack ${IUSE_XWAX_DECODERS}"
72
73 RDEPEND="media-libs/libsdl
74 media-libs/sdl-ttf
75 media-fonts/dejavu
76 alsa? ( media-libs/alsa-lib )
77 jack? ( media-sound/jack-audio-connection-kit )
78 xwax_decoders_aac? ( media-libs/faad2 )
79 xwax_decoders_cd? ( media-sound/cdparanoia )
80 xwax_decoders_flac? ( media-libs/flac )
81 xwax_decoders_mp3? ( || ( media-sound/mpg123 media-sound/mpg321 ) )
82 xwax_decoders_ogg? ( media-sound/vorbis-tools )
83 xwax_decoders_misc? ( media-video/ffmpeg )"
84 DEPEND="${RDEPEND}"
85
86 S="${WORKDIR}/${PN}-${MY_PV}"
87
88 DOCS="README CHANGES"
89
90 src_prepare() {
91 # Remove the forced optimization from 'CFLAGS' and 'LDFLAGS' in
92 # the Makefile
93 sed -i -e 's:\(^CFLAGS.*\)-O[0-9]\(.*\):\1\2:' \
94 -e 's:\(^LDFLAGS.*\)-O[0-9]\(.*\):\1\2:' \
95 Makefile || die "sed failed"
96 }
97
98 src_configure() {
99 tc-export CC
100 econf \
101 $(use_enable alsa) \
102 $(use_enable jack)
103 }
104
105 src_compile() {
106 # EXECDIR is the default directory in which xwax will look for
107 # the 'xwax-import' and 'xwax-scan' scripts
108 emake PREFIX="${EROOT}usr" EXECDIR="${EROOT}usr/bin"
109 }
110
111 src_install() {
112 # This is easier than setting all the environment variables
113 # needed, running the sed script required to get the man directory
114 # correct, and removing the GPL-2 after a 'make install' run
115 dobin xwax || die "failed to install xwax"
116 newbin import xwax-import || die "failed to install xwax-import"
117 newbin scan xwax-scan || die "failed to install xwax-scan"
118 doman xwax.1 || die "failed to install man page"
119
120 # Replace any decoder commands in the import script, if necessary
121 if use xwax_decoders_mp3; then
122 # mpg123 is upstream's default
123 if has_version media-sound/mpg123; then
124 TO="mpg123"
125 FROM="mpg321"
126 # Otherwise, use mpg321
127 else
128 TO="mpg321"
129 FROM="mpg123"
130 fi
131 debug-print "found ${TO}"
132 sed -i -e "s:${FROM}:${TO}:g" "${D}/usr/bin/xwax-import" || \
133 die "problem converting xwax-import to use ${TO}"
134 fi
135
136 dodoc ${DOCS} || die "failed to install docs"
137 }