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: xwax-0.8_beta1.ebuild ChangeLog
Date: Thu, 02 Dec 2010 03:31:31
Message-Id: 20101202033117.307102004E@flycatcher.gentoo.org
1 nixphoeni 10/12/02 03:31:17
2
3 Modified: ChangeLog
4 Added: xwax-0.8_beta1.ebuild
5 Log:
6 Added 0.8 beta version that has been out for a while
7
8 (Portage version: 2.1.9.24/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.21 media-sound/xwax/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xwax/ChangeLog?rev=1.21&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xwax/ChangeLog?rev=1.21&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xwax/ChangeLog?r1=1.20&r2=1.21
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-sound/xwax/ChangeLog,v
20 retrieving revision 1.20
21 retrieving revision 1.21
22 diff -u -r1.20 -r1.21
23 --- ChangeLog 14 Sep 2010 12:35:42 -0000 1.20
24 +++ ChangeLog 2 Dec 2010 03:31:11 -0000 1.21
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-sound/xwax
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-sound/xwax/ChangeLog,v 1.20 2010/09/14 12:35:42 nixphoeni Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-sound/xwax/ChangeLog,v 1.21 2010/12/02 03:31:11 nixphoeni Exp $
30 +
31 +*xwax-0.8_beta1 (02 Dec 2010)
32 +
33 + 02 Dec 2010; Joe Sapp <nixphoeni@g.o> +xwax-0.8_beta1.ebuild:
34 + Added 0.8 beta version that has been out for a while
35
36 14 Sep 2010; Joe Sapp <nixphoeni@g.o> -xwax-0.5.ebuild,
37 -xwax-0.6-r1.ebuild:
38
39
40
41 1.1 media-sound/xwax/xwax-0.8_beta1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xwax/xwax-0.8_beta1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xwax/xwax-0.8_beta1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: xwax-0.8_beta1.ebuild
47 ===================================================================
48 # Copyright 1999-2010 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.8_beta1.ebuild,v 1.1 2010/12/02 03:31:05 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 debug-print "found mpg123"
123 sed -i -e "s:mpg321:mpg123:g" "${D}/usr/bin/xwax-import" || \
124 die "problem converting xwax-import to use mpg123"
125 # Otherwise, use mpg321
126 else
127 debug-print "found mpg321"
128 sed -i -e "s:mpg123:mpg321:g" "${D}//usr/bin/xwax-import" || \
129 die "problem converting xwax-import to use mpg321"
130 fi
131 fi
132
133 dodoc ${DOCS} || die "failed to install docs"
134 }