Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/moc/, profiles/arch/alpha/
Date: Tue, 23 Feb 2021 10:08:01
Message-Id: 1614074721.0172ef534085edcfd0a6c2f0b6a9e93284db0a7c.fordfrog@gentoo
1 commit: 0172ef534085edcfd0a6c2f0b6a9e93284db0a7c
2 Author: striker.sh <strikersh <AT> disroot <DOT> org>
3 AuthorDate: Tue Feb 23 00:03:33 2021 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 23 10:05:21 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0172ef53
7
8 media-sound/moc: Add sndio support
9
10 Signed-off-by: Jules de Sartiges <desartij <AT> protonmail.com>
11 Closes: https://github.com/gentoo/gentoo/pull/19610
12 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
13
14 media-sound/moc/metadata.xml | 1 +
15 media-sound/moc/moc-2.6_alpha3-r3.ebuild | 96 ++++++++++++++++++++++++++++++++
16 profiles/arch/alpha/package.use.mask | 1 +
17 3 files changed, 98 insertions(+)
18
19 diff --git a/media-sound/moc/metadata.xml b/media-sound/moc/metadata.xml
20 index 5d50f496122..7a91a790786 100644
21 --- a/media-sound/moc/metadata.xml
22 +++ b/media-sound/moc/metadata.xml
23 @@ -8,6 +8,7 @@
24 <use>
25 <flag name="cache">Enable tags caching support</flag>
26 <flag name="sid">Build with SID (Commodore 64 Audio) support</flag>
27 + <flag name="sndio">Enable support for the <pkg>media-sound/sndio</pkg> backend</flag>
28 <flag name="tremor">Build vorbis support using an integer implementation
29 of the vorbis library (<pkg>media-libs/tremor</pkg>)</flag>
30 </use>
31
32 diff --git a/media-sound/moc/moc-2.6_alpha3-r3.ebuild b/media-sound/moc/moc-2.6_alpha3-r3.ebuild
33 new file mode 100644
34 index 00000000000..76ce4397128
35 --- /dev/null
36 +++ b/media-sound/moc/moc-2.6_alpha3-r3.ebuild
37 @@ -0,0 +1,96 @@
38 +# Copyright 1999-2021 Gentoo Authors
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=7
42 +
43 +MY_P=${PN}-${PV/_/-}
44 +DESCRIPTION="Music On Console - ncurses interface for playing audio files"
45 +HOMEPAGE="https://moc.daper.net"
46 +SRC_URI="http://ftp.daper.net/pub/soft/moc/unstable/${MY_P}.tar.xz"
47 +
48 +LICENSE="GPL-2"
49 +SLOT="0"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
51 +IUSE="aac alsa +cache curl debug ffmpeg flac jack libsamplerate mad +magic modplug musepack
52 + oss sid sndfile sndio speex timidity tremor +unicode vorbis wavpack"
53 +
54 +RDEPEND="
55 + >=dev-libs/libltdl-2:0
56 + dev-libs/popt
57 + sys-libs/ncurses:0=[unicode?]
58 + aac? ( media-libs/faad2 )
59 + alsa? ( >=media-libs/alsa-lib-1.0.11 )
60 + cache? ( >=sys-libs/db-4.1:= )
61 + curl? ( >=net-misc/curl-7.15.1 )
62 + ffmpeg? ( >=media-video/ffmpeg-1.2.6-r1 )
63 + flac? ( >=media-libs/flac-1.1.3 )
64 + jack? ( virtual/jack )
65 + libsamplerate? ( >=media-libs/libsamplerate-0.1.0 )
66 + mad? (
67 + media-libs/libmad
68 + sys-libs/zlib
69 + media-libs/libid3tag
70 + )
71 + magic? ( sys-apps/file )
72 + modplug? ( >=media-libs/libmodplug-0.7 )
73 + musepack? (
74 + media-sound/musepack-tools
75 + >=media-libs/taglib-1.5
76 + )
77 + sid? ( >=media-libs/libsidplay-2.1.1 )
78 + sndfile? ( >=media-libs/libsndfile-1.0.0 )
79 + sndio? ( media-sound/sndio )
80 + speex? ( >=media-libs/speex-1.0.0 )
81 + timidity? (
82 + >=media-libs/libtimidity-0.1.0
83 + media-sound/timidity++
84 + )
85 + vorbis? (
86 + >=media-libs/libogg-1.0
87 + tremor? ( media-libs/tremor )
88 + !tremor? ( >=media-libs/libvorbis-1.0 )
89 + )
90 + wavpack? ( >=media-sound/wavpack-4.31 )
91 +"
92 +DEPEND="${RDEPEND}
93 + app-arch/xz-utils
94 + virtual/pkgconfig
95 +"
96 +
97 +S=${WORKDIR}/${MY_P}
98 +PATCHES=( "${FILESDIR}/ffmpeg4.patch" )
99 +
100 +src_configure() {
101 + local myconf=(
102 + --without-rcc
103 + $(use_enable debug)
104 + $(use_enable cache)
105 + $(use_with oss)
106 + $(use_with alsa)
107 + $(use_with jack)
108 + $(use_with sndio)
109 + $(use_with magic)
110 + $(use_with unicode ncursesw)
111 + $(use_with libsamplerate samplerate)
112 + $(use_with aac)
113 + $(use_with ffmpeg)
114 + $(use_with flac)
115 + $(use_with modplug)
116 + $(use_with mad mp3)
117 + $(use_with musepack)
118 + $(use_with sid sidplay2)
119 + $(use_with sndfile)
120 + $(use_with speex)
121 + $(use_with timidity)
122 + $(use_with vorbis vorbis $(usex tremor tremor ""))
123 + $(use_with wavpack)
124 + $(use_with curl)
125 + )
126 +
127 + econf "${myconf[@]}"
128 +}
129 +
130 +src_install() {
131 + default
132 + find "${D}" -name '*.la' -delete || die
133 +}
134
135 diff --git a/profiles/arch/alpha/package.use.mask b/profiles/arch/alpha/package.use.mask
136 index 493e4f4769a..27f9f8fd09f 100644
137 --- a/profiles/arch/alpha/package.use.mask
138 +++ b/profiles/arch/alpha/package.use.mask
139 @@ -10,6 +10,7 @@ sci-libs/umfpack cholmod
140 # bug #769098, bug #769122
141 media-libs/openal sndio
142 media-video/ffmpeg sndio
143 +media-sound/moc sndio
144
145 # Sam James <sam@g.o> (2021-01-19)
146 # Avoid pulling in a large unkeyworded dep