diff options
author | Pacho Ramos <pacho@gentoo.org> | 2024-04-18 19:11:19 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2024-04-18 19:12:06 +0200 |
commit | 247e7dcbd91c6e565f1968582c2104d717040b31 (patch) | |
tree | 20bfef4683e18baecf94b4c0c39ee7b06cfe7864 /app-cdr | |
parent | games-strategy/megaglest: Update deprecated dependency. (diff) | |
download | gentoo-247e7dcbd91c6e565f1968582c2104d717040b31.tar.gz gentoo-247e7dcbd91c6e565f1968582c2104d717040b31.tar.bz2 gentoo-247e7dcbd91c6e565f1968582c2104d717040b31.zip |
app-cdr/disc-cover: Make it compatible with current perl
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'app-cdr')
-rw-r--r-- | app-cdr/disc-cover/disc-cover-1.5.6-r3.ebuild | 35 | ||||
-rw-r--r-- | app-cdr/disc-cover/files/disc-cover-1.5.6-defined-error.patch | 10 |
2 files changed, 45 insertions, 0 deletions
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); |