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