commit: 8a0669e0fb63e61a594eb0503c8f3e10103d704c Author: NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com> AuthorDate: Sat Jan 4 20:45:16 2025 +0000 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> CommitDate: Sun Jan 5 13:58:30 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a0669e0
media-sound/mp3c: update EAPI 7 -> 8, port to C23 Bug: https://bugs.gentoo.org/899854 Bug: https://bugs.gentoo.org/945206 Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com> Closes: https://github.com/gentoo/gentoo/pull/39979 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> media-sound/mp3c/files/mp3c-c23.patch | 27 ++++++++++++++++++++ media-sound/mp3c/mp3c-0.31-r2.ebuild | 47 +++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/media-sound/mp3c/files/mp3c-c23.patch b/media-sound/mp3c/files/mp3c-c23.patch new file mode 100644 index 000000000000..14c2de0f16b0 --- /dev/null +++ b/media-sound/mp3c/files/mp3c-c23.patch @@ -0,0 +1,27 @@ +https://bugs.gentoo.org/899854 +also, feature-macro'd glibc functions +--- a/configure.ac 2025-01-05 00:30:25.475280699 +0400 ++++ b/configure.ac 2025-01-05 00:30:38.800207692 +0400 +@@ -6,7 +6,8 @@ + + AM_INIT_AUTOMAKE ++AC_USE_SYSTEM_EXTENSIONS + AM_GNU_GETTEXT([external]) +-AM_GNU_GETTEXT_VERSION ++AM_GNU_GETTEXT_VERSION(0.21) + AM_ICONV + + AC_PROG_CC +Bad definition, fails with C23 +https://bugs.gentoo.org/945206 +--- a/src/keys.c 2025-01-05 00:39:12.053395586 +0400 ++++ b/src/keys.c 2025-01-05 00:39:42.420229207 +0400 +@@ -76,7 +76,7 @@ + extern int build_data_tree(char *cddb_server, char *local_cddb_db, + song_typ **ret_tree, BOOL force_sampler); + extern int cddb_internet_lookup (char *addr, char *cddb_path, BOOL force); +-extern void option_menu(); ++extern void option_menu(WINDOW *win); + extern int output_batch(song_typ *anchor, char *filenm, BOOL ask_overwrite); + extern void calc_tot_frm(); + extern int add_to_m3u(song_typ *song); diff --git a/media-sound/mp3c/mp3c-0.31-r2.ebuild b/media-sound/mp3c/mp3c-0.31-r2.ebuild new file mode 100644 index 000000000000..8de1f7276435 --- /dev/null +++ b/media-sound/mp3c/mp3c-0.31-r2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs autotools + +DESCRIPTION="console based mp3 ripper, with cddb support" +HOMEPAGE="http://wspse.de/WSPse/Linux-MP3c.php3" +SRC_URI="ftp://ftp.wspse.de/pub/linux/wspse/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="mp3 vorbis" + +DEPEND="sys-libs/ncurses:0=" +RDEPEND=" + ${DEPEND} + app-cdr/cdrtools + mp3? ( + media-sound/lame + media-sound/mp3info + ) + vorbis? ( media-sound/vorbis-tools )" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-buffer.patch + "${FILESDIR}"/${PN}-c23.patch +) + +src_prepare() { + default + + eautoreconf +} + +src_configure() { + append-libs $($(tc-getPKG_CONFIG) --libs ncurses) + econf $(use_enable vorbis oggdefaults) +} + +src_install() { + default + dodoc BATCH.README CDDB_HOWTO OTHERS +}
