commit: 7df942ee76a77beed4ef83d58839e8512cb0bc32 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Wed May 22 02:32:50 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed May 22 02:32:50 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7df942ee
dev-perl/Audio-CD-disc-cover: EAPI 8, rely on eclass impls, modern C fixes This covers more variables/args, etc. Closes: https://bugs.gentoo.org/874972 Signed-off-by: Sam James <sam <AT> gentoo.org> .../Audio-CD-disc-cover-0.05-r4.ebuild | 59 ++++++++++++++++++++++ .../files/Audio-CD-disc-cover-0.05-c99-2.patch | 11 ++++ .../files/Audio-CD-disc-cover-0.05-c99.patch | 23 +++++++++ 3 files changed, 93 insertions(+) diff --git a/dev-perl/Audio-CD-disc-cover/Audio-CD-disc-cover-0.05-r4.ebuild b/dev-perl/Audio-CD-disc-cover/Audio-CD-disc-cover-0.05-r4.ebuild new file mode 100644 index 000000000000..a958cf3b14d0 --- /dev/null +++ b/dev-perl/Audio-CD-disc-cover/Audio-CD-disc-cover-0.05-r4.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# This appears it should really be entitled Audio-CD +# There are * QA Notice: errors on building however the HOMEPAGE gives no source repo in which to file +# prob. not worth the trouble for this little script. + +DIST_EXAMPLES=("eg/*") +inherit perl-module + +MY_P=Audio-CD-${PV} +DESCRIPTION="Perl Module needed for app-cdr/disc-cover" +HOMEPAGE="http://www.vanhemert.co.uk/disc-cover.html" +SRC_URI="http://www.vanhemert.co.uk/files/${MY_P}.tar.gz" +S=${WORKDIR}/${MY_P} + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86" + +RDEPEND=">=dev-perl/URI-1.10 + >=dev-perl/HTML-Parser-3.15 + >=virtual/perl-MIME-Base64-2.12 + >=virtual/perl-Digest-MD5-2.12 + >=virtual/perl-libnet-1.0703-r1 + >=dev-perl/libwww-perl-5.50 + >=media-libs/libcdaudio-0.99.6 +" +DEPEND=" + >=media-libs/libcdaudio-0.99.6 +" +BDEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/Audio-CD-disc-cover-0.05-c99.patch + "${FILESDIR}"/Audio-CD-disc-cover-0.05-c99-2.patch +) + +src_test() { + local MODULES=( + "Audio::CD ${PV}" + ) + local failed=() + for dep in "${MODULES[@]}"; do + ebegin "Compile testing ${dep}" + perl -Mblib="${S}" -M"${dep} ()" -e1 + eend $? || failed+=( "$dep" ) + done + if [[ ${failed[@]} ]]; then + echo + eerror "One or more modules failed compile:"; + for dep in "${failed[@]}"; do + eerror " ${dep}" + done + die "Failing due to module compilation errors"; + fi + perl-module_src_test +} diff --git a/dev-perl/Audio-CD-disc-cover/files/Audio-CD-disc-cover-0.05-c99-2.patch b/dev-perl/Audio-CD-disc-cover/files/Audio-CD-disc-cover-0.05-c99-2.patch new file mode 100644 index 000000000000..4bb760467935 --- /dev/null +++ b/dev-perl/Audio-CD-disc-cover/files/Audio-CD-disc-cover-0.05-c99-2.patch @@ -0,0 +1,11 @@ +https://bugs.gentoo.org/874972 +--- a/cddb_lookup.c ++++ b/cddb_lookup.c +@@ -25,6 +25,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + #include <string.h> + #include <sys/socket.h> + #include <signal.h> ++#include <unistd.h> + + #define PACKAGE "Audio::CD" + diff --git a/dev-perl/Audio-CD-disc-cover/files/Audio-CD-disc-cover-0.05-c99.patch b/dev-perl/Audio-CD-disc-cover/files/Audio-CD-disc-cover-0.05-c99.patch new file mode 100644 index 000000000000..289ff3663040 --- /dev/null +++ b/dev-perl/Audio-CD-disc-cover/files/Audio-CD-disc-cover-0.05-c99.patch @@ -0,0 +1,23 @@ +https://bugs.gentoo.org/874972 +https://rt.cpan.org/Public/Bug/Display.html?id=152236 + +Description: add more #includes + for building with -Werror=implicit-function-declaration +Origin: vendor +Bug-Debian: https://bugs.debian.org/1065762 +Author: gregor herrmann <[email protected]> +Last-Update: 2024-03-10 + +--- a/cddb_lookup.c ++++ b/cddb_lookup.c +@@ -21,6 +21,10 @@ + #include "cdaudio.h" + #include "cddb_lookup.h" + #include "stdio.h" ++#include <stdlib.h> ++#include <string.h> ++#include <sys/socket.h> ++#include <signal.h> + + #define PACKAGE "Audio::CD" +
