mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-20 08:27:15 +00:00
Update to Net::FreeDB 0.08 - a fully official release this time, after
David Shultz kindly added me to PAUSE as a module co-maintainer. Since this port depends on File::Temp now, drop all vestiges of support for Perl 5.005.
This commit is contained in:
parent
1400e9bac5
commit
76a628b6c7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=174109
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= Net-FreeDB
|
||||
PORTVERSION= 0.07
|
||||
PORTVERSION= 0.08
|
||||
CATEGORIES= audio perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
||||
MASTER_SITE_SUBDIR= ../../authors/id/R/RO/ROAM
|
||||
@ -16,7 +16,8 @@ MAINTAINER= roam@FreeBSD.org
|
||||
COMMENT= Get the CDID of an audio CD and query the FreeDB servers
|
||||
|
||||
BUILD_DEPENDS= ${SITE_PERL}/CDDB/File.pm:${PORTSDIR}/audio/p5-CDDB-File \
|
||||
${SITE_PERL}/Net/Cmd.pm:${PORTSDIR}/net/p5-Net
|
||||
${SITE_PERL}/Net/Cmd.pm:${PORTSDIR}/net/p5-Net \
|
||||
${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp
|
||||
RUN_DEPENDS= ${BUILD_DEPENDS}
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
@ -25,9 +26,9 @@ MAN3= Net::FreeDB.3
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${PERL_LEVEL} < 500600 # inherited by p5-Authen-SASL
|
||||
# devel/p5-File-Temp only works on Perl 5.6 or higher.
|
||||
.if ${PERL_LEVEL} < 500600
|
||||
IGNORE= requires at least Perl 5.6. Please install lang/perl5.8 and try again
|
||||
#EXTRA_PATCHES+= ${FILESDIR}/perl-5005.patch
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (Net-FreeDB-0.07.tar.gz) = cd345f8d38c736746a5015ae0e290872
|
||||
SHA256 (Net-FreeDB-0.07.tar.gz) = ec8d38b57e07e0c989071a0b0697fcbdfcb7df99ab77cc69b7e438ee90eae690
|
||||
SIZE (Net-FreeDB-0.07.tar.gz) = 18590
|
||||
MD5 (Net-FreeDB-0.08.tar.gz) = 8307bb8127518f7afaa2487c0a9adc23
|
||||
SHA256 (Net-FreeDB-0.08.tar.gz) = f9774b85cd8edae72d3f90dcb2efb78d4fa759b0008e0c90e1c0254bec5c86b6
|
||||
SIZE (Net-FreeDB-0.08.tar.gz) = 19210
|
||||
|
@ -1,80 +0,0 @@
|
||||
--- FreeDB.pm.orig Tue Jan 3 08:58:51 2006
|
||||
+++ FreeDB.pm Sun Jun 18 19:50:43 2006
|
||||
@@ -1,6 +1,6 @@
|
||||
package Net::FreeDB;
|
||||
|
||||
-use 5.006;
|
||||
+use 5.00503;
|
||||
use strict;
|
||||
use warnings;
|
||||
use IO::Socket;
|
||||
@@ -13,7 +13,8 @@
|
||||
require DynaLoader;
|
||||
use AutoLoader;
|
||||
|
||||
-our @ISA = qw(Exporter DynaLoader Net::Cmd IO::Socket::INET);
|
||||
+use vars qw/@ISA %EXPORT_TAGS @EXPORT_OK @EXPORT $VERSION $ERROR/;
|
||||
+@ISA = qw(Exporter DynaLoader Net::Cmd IO::Socket::INET);
|
||||
|
||||
# Items to export into callers namespace by default. Note: do not export
|
||||
# names by default without a very good reason. Use EXPORT_OK instead.
|
||||
@@ -22,22 +23,21 @@
|
||||
# This allows declaration use Net::FreeDB ':all';
|
||||
# If you do not need this, moving things directly into @EXPORT or @EXPORT_OK
|
||||
# will save memory.
|
||||
-our %EXPORT_TAGS = ( 'all' => [ qw() ] );
|
||||
+%EXPORT_TAGS = ( 'all' => [ qw() ] );
|
||||
|
||||
-our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
|
||||
+@EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
|
||||
|
||||
-our @EXPORT = qw();
|
||||
+@EXPORT = qw();
|
||||
|
||||
-our $VERSION = '0.07';
|
||||
+$VERSION = '0.07';
|
||||
|
||||
-our $ERROR;
|
||||
sub AUTOLOAD {
|
||||
# This AUTOLOAD is used to 'autoload' constants from the constant()
|
||||
# XS function. If a constant is not found then control is passed
|
||||
# to the AUTOLOAD in AutoLoader.
|
||||
|
||||
my $constname;
|
||||
- our $AUTOLOAD;
|
||||
+ use vars qw/$AUTOLOAD/;
|
||||
($constname = $AUTOLOAD) =~ s/.*:://;
|
||||
croak "& not defined" if $constname eq 'constant';
|
||||
my $val = constant($constname, @_ ? $_[0] : 0);
|
||||
--- FreeDB.xs.linux.orig Mon Oct 17 07:11:29 2005
|
||||
+++ FreeDB.xs.linux Sun Jun 18 19:53:17 2006
|
||||
@@ -38,7 +38,8 @@
|
||||
RETVAL
|
||||
|
||||
char*
|
||||
-discid(char* dev)
|
||||
+discid(dev)
|
||||
+ char *dev;
|
||||
INIT:
|
||||
int i;
|
||||
char id[30];
|
||||
@@ -56,7 +57,8 @@
|
||||
RETVAL
|
||||
|
||||
SV*
|
||||
-discinfo(char* dev)
|
||||
+discinfo(dev)
|
||||
+ char *dev;
|
||||
INIT:
|
||||
int i;
|
||||
char id[30];
|
||||
--- lib/discid.h.orig Wed Sep 28 08:45:55 2005
|
||||
+++ lib/discid.h Sun Jun 18 19:54:13 2006
|
||||
@@ -39,6 +39,7 @@
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
#include <sys/cdio.h>
|
||||
+#include <sys/fcntl.h>
|
||||
#include "freebsd.h"
|
||||
#endif // __FreeBSD__
|
||||
|
Loading…
Reference in New Issue
Block a user