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.10_beta1.ebuild
Date: Sat, 07 May 2011 17:58:20
Message-Id: 20110507175808.817B120054@flycatcher.gentoo.org
1 nixphoeni 11/05/07 17:58:08
2
3 Modified: ChangeLog
4 Added: xwax-0.10_beta1.ebuild
5 Log:
6 Added new beta version
7
8 (Portage version: 2.1.9.45/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.33 media-sound/xwax/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xwax/ChangeLog?rev=1.33&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xwax/ChangeLog?rev=1.33&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xwax/ChangeLog?r1=1.32&r2=1.33
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-sound/xwax/ChangeLog,v
20 retrieving revision 1.32
21 retrieving revision 1.33
22 diff -u -r1.32 -r1.33
23 --- ChangeLog 7 May 2011 17:52:41 -0000 1.32
24 +++ ChangeLog 7 May 2011 17:58:08 -0000 1.33
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.32 2011/05/07 17:52:41 nixphoeni Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-sound/xwax/ChangeLog,v 1.33 2011/05/07 17:58:08 nixphoeni Exp $
30 +
31 +*xwax-0.10_beta1 (07 May 2011)
32 +
33 + 07 May 2011; Joe Sapp <nixphoeni@g.o> +xwax-0.10_beta1.ebuild:
34 + Added new beta version
35
36 07 May 2011; Joe Sapp <nixphoeni@g.o> -xwax-0.7.ebuild:
37 Removed old version
38
39
40
41 1.1 media-sound/xwax/xwax-0.10_beta1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xwax/xwax-0.10_beta1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xwax/xwax-0.10_beta1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: xwax-0.10_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.10_beta1.ebuild,v 1.1 2011/05/07 17:58:08 nixphoeni Exp $
51
52 EAPI=4
53 inherit toolchain-funcs versionator
54
55 MY_PV="${PV/_/-}"
56 TYPE="$(version_format_string '$3')"
57
58 DESCRIPTION="Digital vinyl emulation software"
59 HOMEPAGE="http://www.xwax.co.uk/"
60 SRC_URI="http://www.xwax.co.uk/testing/${PN}-${MY_PV}.tar.gz"
61
62 LICENSE="GPL-2"
63 SLOT="testing"
64 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
65 IUSE="alsa jack oss cdda mp3 +fallback"
66 REQUIRED_USE="|| ( cdda mp3 fallback )
67 || ( alsa jack oss )"
68
69 RDEPEND="media-libs/libsdl
70 media-libs/sdl-ttf
71 media-fonts/dejavu
72 alsa? ( media-libs/alsa-lib )
73 jack? ( media-sound/jack-audio-connection-kit )
74 cdda? ( media-sound/cdparanoia )
75 mp3? ( || ( media-sound/mpg123 media-sound/mpg321 ) )
76 fallback? ( virtual/ffmpeg )"
77 DEPEND="${RDEPEND}"
78
79 S="${WORKDIR}/${PN}-${MY_PV}"
80
81 DOCS="README CHANGES"
82
83 pkg_setup() {
84 ewarn "Please note that XWAX_DECODERS is deprecated in favor of USE flags."
85 ewarn "Sorry for the inconvenience."
86 }
87
88 src_prepare() {
89 # Remove the forced optimization from 'CFLAGS' and 'LDFLAGS' in
90 # the Makefile
91 # Also replace VERSION so we don't have to depend on git...
92 sed -i -e 's:\(^CFLAGS.*\)-O[0-9]\(.*\):\1\2:' \
93 -e 's:\(^LDFLAGS.*\)-O[0-9]\(.*\):\1\2:' \
94 -e "s:\(^VERSION =\).*:\1 ${PV}:" \
95 Makefile || die "sed failed"
96
97 # Fix name for importer and scanner
98 sed -i -e "s:\(xwax-import\):\1-${TYPE}:g" \
99 -e "s:\(xwax-scan\):\1-${TYPE}:g" \
100 xwax.c || die "patching xwax.c failed"
101
102 # Replace any decoder commands in the import script, if necessary
103 if [[ `use mp3` ]]; then
104 # mpg123 is upstream's default
105 if has_version media-sound/mpg123; then
106 TO="mpg123"
107 FROM="mpg321"
108 # Otherwise, use mpg321
109 else
110 TO="mpg321"
111 FROM="mpg123"
112 fi
113 debug-print "found ${TO}"
114 sed -i -e "s:${FROM}:${TO}:g" import || \
115 die "problem converting xwax-import to use ${TO}"
116 fi
117 }
118
119 src_configure() {
120 tc-export CC
121 econf \
122 --prefix "${EROOT}usr" \
123 $(use_enable alsa) \
124 $(use_enable jack) \
125 $(use_enable oss)
126 }
127
128 src_compile() {
129 # EXECDIR is the default directory in which xwax will look for
130 # the 'xwax-import' and 'xwax-scan' scripts
131 emake EXECDIR="${EROOT}usr/bin"
132 }
133
134 src_install() {
135 # This is easier than setting all the environment variables
136 # needed, running the sed script required to get the man directory
137 # correct, and removing the GPL-2 after a 'make install' run
138 newbin xwax xwax-${TYPE} || die "failed to install xwax"
139 newbin import xwax-import-${TYPE} || die "failed to install xwax-import"
140 newbin scan xwax-scan-${TYPE} || die "failed to install xwax-scan"
141 newman xwax.1 xwax-${TYPE}.1 || die "failed to install man page"
142
143 dodoc ${DOCS} || die "failed to install docs"
144 }
145
146 pkg_postinst() {
147 ewarn "Note that this is a testing package and is probably unsuitable for"
148 ewarn "live shows."
149 }