commit:     05e67c4e51a0d030b7e45dced08bea3fe9ce0584
Author:     NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Tue Mar 10 17:44:51 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Mar 11 05:16:05 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05e67c4e

media-sound/tagtool: add missing stdbool header

This is safe transformation.

Closes: https://bugs.gentoo.org/961421
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/288
Merges: https://codeberg.org/gentoo/gentoo/pulls/288
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../tagtool/files/tagtool-0.12.3-bool.patch        | 13 ++++++
 media-sound/tagtool/tagtool-0.12.3-r3.ebuild       | 53 ++++++++++++++++++++++
 2 files changed, 66 insertions(+)

diff --git a/media-sound/tagtool/files/tagtool-0.12.3-bool.patch 
b/media-sound/tagtool/files/tagtool-0.12.3-bool.patch
new file mode 100644
index 000000000000..5d75a7a041c6
--- /dev/null
+++ b/media-sound/tagtool/files/tagtool-0.12.3-bool.patch
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/961421
+Could be done safely, as this is leaf package, bools don't escape
+and aren't used in parsing actual tag frames from the media.
+--- a/src/aux_id3lib.c
++++ b/src/aux_id3lib.c
+@@ -11,6 +11,7 @@
+  */
+ 
+ #include "config.h"
++#include <stdbool.h>
+ 
+ #ifdef LIBID3_MISSING_ID3FRAMEINFO
+ 

diff --git a/media-sound/tagtool/tagtool-0.12.3-r3.ebuild 
b/media-sound/tagtool/tagtool-0.12.3-r3.ebuild
new file mode 100644
index 000000000000..32cb3ce974c7
--- /dev/null
+++ b/media-sound/tagtool/tagtool-0.12.3-r3.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools flag-o-matic xdg
+
+DESCRIPTION="Audio Tag Tool Ogg/Mp3 Tagger"
+HOMEPAGE="https://sourceforge.net/projects/tagtool/";
+SRC_URI="https://sourceforge.net/projects/${PN}/files/${PN}/${PV}/${P}.tar.bz2";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="mp3 +vorbis"
+REQUIRED_USE="|| ( mp3 vorbis )"
+
+RDEPEND="
+       x11-libs/gtk+:2
+       >=gnome-base/libglade-2.6
+       mp3? ( >=media-libs/id3lib-3.8.3-r6 )
+       vorbis? ( >=media-libs/libvorbis-1 )"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-autotools.patch
+       "${FILESDIR}"/${P}-QA-desktop.patch
+       "${FILESDIR}"/${P}-bool.patch
+)
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       # bug #945267
+       append-cflags -std=gnu17
+
+       econf \
+               $(use_enable mp3) \
+               $(use_enable vorbis)
+}
+
+src_install() {
+       emake \
+               DESTDIR="${D}" \
+               GNOME_SYSCONFDIR="${ED}"/etc \
+               sysdir="${ED}"/usr/share/applets/Multimedia \
+               install
+       einstalldocs
+}

Reply via email to