commit:     649a52b2f3fa021a8632bac3726e2c4acfcb0c36
Author:     Daniel Pielmeier <billie <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 28 17:07:28 2025 +0000
Commit:     Daniel Pielmeier <billie <AT> gentoo <DOT> org>
CommitDate: Fri Mar 28 17:08:52 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=649a52b2

dev-libs/libburn: Fix build with slbitool and add upstream maintainer

Signed-off-by: Daniel Pielmeier <billie <AT> gentoo.org>

 .../libburn/files/libburn-1.5.6_slibtool.patch     | 26 +++++++++++
 dev-libs/libburn/libburn-1.5.6-r2.ebuild           | 54 ++++++++++++++++++++++
 dev-libs/libburn/metadata.xml                      |  5 ++
 3 files changed, 85 insertions(+)

diff --git a/dev-libs/libburn/files/libburn-1.5.6_slibtool.patch 
b/dev-libs/libburn/files/libburn-1.5.6_slibtool.patch
new file mode 100644
index 000000000000..d4c8df2cf262
--- /dev/null
+++ b/dev-libs/libburn/files/libburn-1.5.6_slibtool.patch
@@ -0,0 +1,26 @@
+From 10814feab217da4bcfaea45ff9cd48252e26b3e1 Mon Sep 17 00:00:00 2001
+From: Thomas Schmitt <[email protected]>
+Date: Mon, 24 Mar 2025 08:49:31 +0100
+Subject: [PATCH] Added to configure.ac explicit checks for stdint.h,
+ inttypes.h, stdlib.h because slibtool does not put them into ./configure by
+ default
+
+---
+ configure.ac | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 2681362..9fec1ce 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -197,7 +197,9 @@ AC_SUBST(LIBTOOL_DEPS)
+ 
+ AC_PROG_INSTALL
+ 
+-AC_CHECK_HEADERS()
++dnl GNU libtool checks them by default/unconditionally, but slibtool does not.
++dnl So accept the ugly double check and -DHAVE_*_H arguments with GNU libtool.
++AC_CHECK_HEADERS(stdint.h inttypes.h stdlib.h)
+ 
+ THREAD_LIBS=-lpthread
+ AC_SUBST(THREAD_LIBS)

diff --git a/dev-libs/libburn/libburn-1.5.6-r2.ebuild 
b/dev-libs/libburn/libburn-1.5.6-r2.ebuild
new file mode 100644
index 000000000000..af70555c941d
--- /dev/null
+++ b/dev-libs/libburn/libburn-1.5.6-r2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="Open-source library for reading, mastering and writing optical 
discs"
+HOMEPAGE="https://dev.lovelyhq.com/libburnia/web/wiki/Libburn";
+SRC_URI="https://files.libburnia-project.org/releases/${P}.tar.gz";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~mips ppc ppc64 ~riscv ~s390 
sparc x86"
+IUSE="debug static-libs"
+
+BDEPEND="
+       virtual/pkgconfig
+"
+DEPEND="
+       ${RDEPEND}
+"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.5.6-c23.patch
+       "${FILESDIR}"/${PN}-1.5.6_slibtool.patch
+)
+
+src_prepare() {
+       default
+
+       # Ancient libtool version in 1.5.6 at least (debian's 2.4.2-1.11)
+       eautoreconf
+}
+
+src_configure() {
+       econf \
+               $(use_enable static-libs static) \
+               --disable-ldconfig-at-install \
+               $(use_enable debug)
+}
+
+src_install() {
+       default
+
+       dodoc CONTRIBUTORS doc/{comments,*.txt}
+
+       docinto cdrskin
+       dodoc cdrskin/{*.txt,README}
+       docinto cdrskin/html
+       dodoc cdrskin/cdrskin_eng.html
+
+       find "${D}" -name '*.la' -delete || die
+}

diff --git a/dev-libs/libburn/metadata.xml b/dev-libs/libburn/metadata.xml
index 4b673d074f3e..5176dabdde70 100644
--- a/dev-libs/libburn/metadata.xml
+++ b/dev-libs/libburn/metadata.xml
@@ -5,4 +5,9 @@
 <email>[email protected]</email>
 <name>Daniel Pielmeier</name>
 </maintainer>
+<maintainer type="person" proxied="yes">
+<email>[email protected]</email>
+<name>Thomas Schmitt</name>
+<description>Upstream - please CC on bugs that concern upstream</description>
+</maintainer>
 </pkgmetadata>

Reply via email to