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