From: "Ionen Wolkens" <ionen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/moc/
Date: Tue, 11 Mar 2025 09:04:07 +0000 (UTC) [thread overview]
Message-ID: <1741683803.32a39b07ef8aaee4f30bb731cac5fe7faa1617ba.ionen@gentoo> (raw)
commit: 32a39b07ef8aaee4f30bb731cac5fe7faa1617ba
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 9 16:06:49 2025 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Mar 11 09:03:23 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32a39b07
media-sound/moc: migrate to ffmpeg-compat.eclass
For what it's worth anyway... more of a proof of concept given
ffmpeg-compat-4.4.x likely won't stay around for that long.
Seems to work fine, was able to play opus files despite
USE=-opus through ffmpeg.
This package will still need to be properly handled to avoid
last-rites (does have a few users). I know there are
ffmpeg-6+ patches going around, or could also remove/mask
USE=ffmpeg, but not planning to handle this package myself.
Bug: https://bugs.gentoo.org/834393
Closes: https://github.com/gentoo/gentoo/pull/40942
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
media-sound/moc/moc-2.6_alpha3-r8.ebuild | 110 +++++++++++++++++++++++++++++++
1 file changed, 110 insertions(+)
diff --git a/media-sound/moc/moc-2.6_alpha3-r8.ebuild b/media-sound/moc/moc-2.6_alpha3-r8.ebuild
new file mode 100644
index 000000000000..d7a76b1fd0f4
--- /dev/null
+++ b/media-sound/moc/moc-2.6_alpha3-r8.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools ffmpeg-compat
+
+MY_P=${PN}-${PV/_/-}
+DESCRIPTION="Music On Console - ncurses interface for playing audio files"
+HOMEPAGE="https://moc.daper.net"
+SRC_URI="http://ftp.daper.net/pub/soft/moc/unstable/${MY_P}.tar.xz"
+S="${WORKDIR}"/${MY_P}
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="aac alsa +cache curl debug ffmpeg flac jack libsamplerate mad +magic modplug musepack
+ oss sid sndfile sndio speex timidity tremor +unicode vorbis wavpack"
+
+RDEPEND="
+ >=dev-libs/libltdl-2
+ dev-libs/popt
+ sys-libs/ncurses:=[unicode(+)?]
+ aac? ( media-libs/faad2 )
+ alsa? ( >=media-libs/alsa-lib-1.0.11 )
+ cache? ( >=sys-libs/db-4.1:= )
+ curl? ( >=net-misc/curl-7.15.1 )
+ ffmpeg? ( media-video/ffmpeg-compat:4= )
+ flac? ( >=media-libs/flac-1.1.3:= )
+ jack? ( virtual/jack )
+ libsamplerate? ( >=media-libs/libsamplerate-0.1.0 )
+ mad? (
+ media-libs/libmad
+ sys-libs/zlib
+ media-libs/libid3tag:=
+ )
+ magic? ( sys-apps/file )
+ modplug? ( >=media-libs/libmodplug-0.7 )
+ musepack? (
+ media-sound/musepack-tools
+ media-libs/taglib:=
+ )
+ sid? ( >=media-libs/libsidplay-2.1.1 )
+ sndfile? ( >=media-libs/libsndfile-1.0.0 )
+ sndio? ( media-sound/sndio )
+ speex? ( >=media-libs/speex-1.0.0 )
+ timidity? (
+ >=media-libs/libtimidity-0.1.0
+ media-sound/timidity++
+ )
+ vorbis? (
+ >=media-libs/libogg-1.0
+ tremor? ( media-libs/tremor )
+ !tremor? ( >=media-libs/libvorbis-1.0 )
+ )
+ wavpack? ( >=media-sound/wavpack-4.31 )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ app-arch/xz-utils
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}/ffmpeg4.patch"
+ "${FILESDIR}/${P}-stdint_uint_types.patch"
+)
+
+src_prepare() {
+ default
+ mv configure.{in,ac} || die
+ eautoreconf
+}
+
+src_configure() {
+ ffmpeg_compat_setup 4 # (bug #834393)
+
+ local myconf=(
+ --without-rcc
+ $(use_enable debug)
+ $(use_enable cache)
+ $(use_with oss)
+ $(use_with alsa)
+ $(use_with jack)
+ $(use_with sndio)
+ $(use_with magic)
+ $(use_with unicode ncursesw)
+ $(use_with libsamplerate samplerate)
+ $(use_with aac)
+ $(use_with ffmpeg)
+ $(use_with flac)
+ $(use_with modplug)
+ $(use_with mad mp3)
+ $(use_with musepack)
+ $(use_with sid sidplay2)
+ $(use_with sndfile)
+ $(use_with speex)
+ $(use_with timidity)
+ $(use_with vorbis vorbis $(usev tremor))
+ $(use_with wavpack)
+ $(use_with curl)
+ )
+
+ CONFIG_SHELL="${BROOT}"/bin/bash econf "${myconf[@]}"
+}
+
+src_install() {
+ default
+ find "${ED}" -name '*.la' -delete || die
+}
next reply other threads:[~2025-03-11 9:04 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-11 9:04 Ionen Wolkens [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-05-29 20:53 [gentoo-commits] repo/gentoo:master commit in: media-sound/moc/ Sam James
2023-05-29 20:51 Sam James
2022-08-17 16:21 Matt Turner
2021-08-16 21:28 Sam James
2021-03-26 7:46 Miroslav Šulc
2021-03-25 21:29 Sam James
2021-03-25 16:19 Agostino Sarubbo
2021-03-24 19:42 Sam James
2021-03-24 19:42 Sam James
2021-03-24 19:42 Sam James
2020-09-05 5:10 Miroslav Šulc
2020-09-04 21:53 Sam James
2020-08-31 0:42 Sam James
2020-08-11 14:23 Agostino Sarubbo
2020-08-11 14:18 Agostino Sarubbo
2020-08-10 12:34 Agostino Sarubbo
2020-08-08 9:09 Miroslav Šulc
2020-04-26 10:35 David Seifert
2019-07-23 19:10 Aaron Bauman
2019-05-19 13:14 Thomas Deutschmann
2019-05-02 21:29 Mikle Kolyada
2019-04-06 16:06 Mikle Kolyada
2019-04-05 19:03 Sergei Trofimovich
2018-10-30 15:13 Andreas Sturmlechner
2017-02-24 23:11 Michael Palimaka
2017-02-24 14:07 Agostino Sarubbo
2017-02-21 11:54 Tobias Klausmann
2017-02-16 17:26 Agostino Sarubbo
2017-02-16 17:16 Agostino Sarubbo
2016-12-07 15:02 Jason Zaman
2016-12-07 6:42 Jason Zaman
2016-11-23 7:19 Tim Harder
2016-08-28 2:25 Tim Harder
2016-04-12 6:06 Tim Harder
2016-02-26 17:17 Markus Meier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1741683803.32a39b07ef8aaee4f30bb731cac5fe7faa1617ba.ionen@gentoo \
--to=ionen@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox