1 |
commit: dd2e90f8cb9a0a0ec96bbaff13e2c8c87ad755e6 |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 8 12:29:42 2020 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 8 12:29:42 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd2e90f8 |
7 |
|
8 |
media-sound/xwax: bump to 1.7 |
9 |
|
10 |
1) switched to virtual/jack |
11 |
2) dropped jack use flag from metadata.xml, using global instead |
12 |
|
13 |
Closes: https://bugs.gentoo.org/736328 |
14 |
Package-Manager: Portage-3.0.1, Repoman-2.3.23 |
15 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
16 |
|
17 |
media-sound/xwax/Manifest | 1 + |
18 |
media-sound/xwax/metadata.xml | 1 - |
19 |
media-sound/xwax/xwax-1.7.ebuild | 85 ++++++++++++++++++++++++++++++++++++++++ |
20 |
3 files changed, 86 insertions(+), 1 deletion(-) |
21 |
|
22 |
diff --git a/media-sound/xwax/Manifest b/media-sound/xwax/Manifest |
23 |
index 6609619d22d..30e8799c89f 100644 |
24 |
--- a/media-sound/xwax/Manifest |
25 |
+++ b/media-sound/xwax/Manifest |
26 |
@@ -1 +1,2 @@ |
27 |
DIST xwax-1.6.tar.gz 79452 BLAKE2B 3cefded6fd39435d92ca07458048910e5e95169562c9dec17cd1411c992ca864124f3155b1a8a9313c86cfee01fe79d72a5c5bed9963b1740a1d4e89e9e249e9 SHA512 710a53a1b056bf6850a668a1f267b91664d5629998e6ee2d4853aa57d1ab351dd782716272ed4a4858168c0ac9f5c7d2e1fe0a8b330e26775677e1eb54249015 |
28 |
+DIST xwax-1.7.tar.gz 80745 BLAKE2B b431951651b66899b5bcceadfadc546c564123e47632aa9b395c26d706fc37cda4b5bf4f8695538e1a5e2bb0a690f125ca89705259d11df580f6a833e5d114b6 SHA512 ab0fcaf32f1fd1d6b38323095524f1932a067a3d04d40e4b043993e360411fed0c4b78bb71662581b438cb1e3005bc21659db4521a6ec704994b2e8e1b7e62d4 |
29 |
|
30 |
diff --git a/media-sound/xwax/metadata.xml b/media-sound/xwax/metadata.xml |
31 |
index 762283d3c0c..aa4bd1f8dd5 100644 |
32 |
--- a/media-sound/xwax/metadata.xml |
33 |
+++ b/media-sound/xwax/metadata.xml |
34 |
@@ -7,7 +7,6 @@ |
35 |
</maintainer> |
36 |
<use> |
37 |
<flag name="alsa">Adds support for ALSA audio input/output.</flag> |
38 |
- <flag name="jack">Adds support for audio input/output via the JACK Audio Connection Kit.</flag> |
39 |
<flag name="oss">Adds support for OSS (open sound system) audio input/output.</flag> |
40 |
<flag name="cdda">Sets runtime dependencies to support decoding audio from a compact disc.</flag> |
41 |
<flag name="mp3">Sets runtime dependencies to support decoding MP3 audio.</flag> |
42 |
|
43 |
diff --git a/media-sound/xwax/xwax-1.7.ebuild b/media-sound/xwax/xwax-1.7.ebuild |
44 |
new file mode 100644 |
45 |
index 00000000000..edf6f44c7c6 |
46 |
--- /dev/null |
47 |
+++ b/media-sound/xwax/xwax-1.7.ebuild |
48 |
@@ -0,0 +1,85 @@ |
49 |
+# Copyright 1999-2020 Gentoo Authors |
50 |
+# Distributed under the terms of the GNU General Public License v2 |
51 |
+ |
52 |
+EAPI=7 |
53 |
+ |
54 |
+inherit toolchain-funcs user |
55 |
+ |
56 |
+DESCRIPTION="Digital vinyl emulation software" |
57 |
+HOMEPAGE="https://xwax.org/" |
58 |
+SRC_URI="https://xwax.org/releases/${P}.tar.gz" |
59 |
+ |
60 |
+LICENSE="GPL-2" |
61 |
+SLOT="0" |
62 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
63 |
+IUSE="alsa jack oss cdda mp3 +fallback" |
64 |
+ |
65 |
+REQUIRED_USE="|| ( cdda mp3 fallback ) |
66 |
+ || ( alsa jack oss )" |
67 |
+ |
68 |
+DEPEND=" |
69 |
+ media-fonts/dejavu |
70 |
+ media-libs/libsdl |
71 |
+ media-libs/sdl-ttf |
72 |
+ sys-libs/glibc |
73 |
+ sys-libs/pam |
74 |
+ alsa? ( media-libs/alsa-lib ) |
75 |
+ cdda? ( media-sound/cdparanoia ) |
76 |
+ fallback? ( media-video/ffmpeg ) |
77 |
+ jack? ( virtual/jack ) |
78 |
+ mp3? ( media-sound/mpg123 ) |
79 |
+" |
80 |
+RDEPEND="${DEPEND}" |
81 |
+ |
82 |
+DOCS=( README CHANGES ) |
83 |
+ |
84 |
+src_prepare() { |
85 |
+ default |
86 |
+ # Remove the forced optimization from 'CFLAGS' and 'LDFLAGS' in |
87 |
+ # the Makefile |
88 |
+ # Also remove the dependency on the .version target so we don't need |
89 |
+ # git just to build |
90 |
+ sed -i -e 's/\(^\(LD\|C\)FLAGS.*\)-O[0-9]\(.*\)/\1\3/g' \ |
91 |
+ -e 's/^xwax\.o:.*\.version//' \ |
92 |
+ Makefile || die "sed failed" |
93 |
+} |
94 |
+ |
95 |
+src_configure() { |
96 |
+ tc-export CC |
97 |
+ econf \ |
98 |
+ --prefix "${EROOT}/usr" \ |
99 |
+ $(use_enable alsa) \ |
100 |
+ $(use_enable jack) \ |
101 |
+ $(use_enable oss) |
102 |
+} |
103 |
+ |
104 |
+src_compile() { |
105 |
+ # EXECDIR is the default directory in which xwax will look for |
106 |
+ # the 'xwax-import' and 'xwax-scan' scripts |
107 |
+ emake EXECDIR="\$(BINDIR)" VERSION="${PV}" xwax |
108 |
+} |
109 |
+ |
110 |
+pkg_preinst() { |
111 |
+ enewgroup ${PN} |
112 |
+} |
113 |
+ |
114 |
+src_install() { |
115 |
+ # This is easier than setting all the environment variables |
116 |
+ # needed, running the sed script required to get the man directory |
117 |
+ # correct, and removing the GPL-2 after a 'make install' run |
118 |
+ dobin xwax |
119 |
+ newbin scan xwax-scan |
120 |
+ newbin import xwax-import |
121 |
+ doman xwax.1 |
122 |
+ |
123 |
+ dodoc ${DOCS} |
124 |
+ |
125 |
+ insinto "/etc/security/limits.d" |
126 |
+ newins "${FILESDIR}/xwax-etc-security-limits.conf" xwax.conf |
127 |
+} |
128 |
+ |
129 |
+pkg_postinst() { |
130 |
+ elog "Be sure to add any users that will be using ${PN} to the" |
131 |
+ elog "\"${PN}\" group. Doing so will allow processes that user" |
132 |
+ elog "runs to request realtime priority." |
133 |
+} |