commit:     247e7dcbd91c6e565f1968582c2104d717040b31
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 18 17:11:19 2024 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Thu Apr 18 17:12:06 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=247e7dcb

app-cdr/disc-cover: Make it compatible with current perl

Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>

 app-cdr/disc-cover/disc-cover-1.5.6-r3.ebuild      | 35 ++++++++++++++++++++++
 .../files/disc-cover-1.5.6-defined-error.patch     | 10 +++++++
 2 files changed, 45 insertions(+)

diff --git a/app-cdr/disc-cover/disc-cover-1.5.6-r3.ebuild 
b/app-cdr/disc-cover/disc-cover-1.5.6-r3.ebuild
new file mode 100644
index 000000000000..fc86b507a5aa
--- /dev/null
+++ b/app-cdr/disc-cover/disc-cover-1.5.6-r3.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Creates CD-Covers via LaTeX by fetching cd-info from freedb.org 
or local file"
+HOMEPAGE="https://web.archive.org/web/20151104062521/http://www.vanhemert.co.uk/disc-cover.html";
+SRC_URI="http://www.vanhemert.co.uk/files/${P}.tar.gz";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+BDEPEND="dev-lang/perl"
+RDEPEND="${BDEPEND}
+       dev-perl/Audio-CD-disc-cover
+       virtual/latex-base"
+
+PATCHES=(
+       "${FILESDIR}/${P}-defined-error.patch"
+)
+
+src_compile() {
+       pod2man disc-cover > disc-cover.1 || die
+}
+
+src_install() {
+       dobin disc-cover
+
+       einstalldocs
+       doman disc-cover.1
+
+       insinto /usr/share/disc-cover/templates
+       doins -r templates/.
+}

diff --git a/app-cdr/disc-cover/files/disc-cover-1.5.6-defined-error.patch 
b/app-cdr/disc-cover/files/disc-cover-1.5.6-defined-error.patch
new file mode 100644
index 000000000000..301167547970
--- /dev/null
+++ b/app-cdr/disc-cover/files/disc-cover-1.5.6-defined-error.patch
@@ -0,0 +1,10 @@
+--- disc-cover-1.5.6.orig/disc-cover   2006-06-20 14:16:24.000000000 +0200
++++ disc-cover-1.5.6/disc-cover        2023-12-26 00:27:51.511140810 +0100
+@@ -743,7 +743,7 @@
+ {
+       my ($error) = defined($_[0]) ? $_[0] : undef ;
+       shift;
+-      my (@solutions) = defined(@_) ? @_ : undef;
++      my (@solutions) = @_;
+ 
+       warn "Error: $error\n" if defined ($error);

Reply via email to