pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/abcde Install abcde-musicbrainz-tool and add dep...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4b116eab491a
branches:  trunk
changeset: 357289:4b116eab491a
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Jan 18 09:52:13 2017 +0000

description:
Install abcde-musicbrainz-tool and add dependencies for it.
Fix a bug in the script.

Bump PKGREVISION.

diffstat:

 audio/abcde/Makefile                             |   9 ++++++---
 audio/abcde/PLIST                                |   4 ++--
 audio/abcde/distinfo                             |   5 +++--
 audio/abcde/patches/patch-ab                     |   4 +++-
 audio/abcde/patches/patch-abcde-musicbrainz-tool |  20 ++++++++++++++++++++
 5 files changed, 34 insertions(+), 8 deletions(-)

diffs (99 lines):

diff -r b83ef162e8d0 -r 4b116eab491a audio/abcde/Makefile
--- a/audio/abcde/Makefile      Wed Jan 18 09:34:54 2017 +0000
+++ b/audio/abcde/Makefile      Wed Jan 18 09:52:13 2017 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.61 2017/01/16 12:27:18 wiz Exp $
+# $NetBSD: Makefile,v 1.62 2017/01/18 09:52:13 wiz Exp $
 
 DISTNAME=      abcde-2.8
+PKGREVISION=   1
 CATEGORIES=    audio
 MASTER_SITES=  http://abcde.einval.com/download/
 
@@ -13,13 +14,15 @@
 DEPENDS+=      eyeD3-[0-9]*:../../audio/eyeD3
 DEPENDS+=      id3-[0-9]*:../../audio/id3
 DEPENDS+=      cdparanoia>=3.0.9.7:../../audio/cdparanoia
+DEPENDS+=      p5-MusicBrainz-DiscID-[0-9]*:../../audio/p5-MusicBrainz-DiscID
+DEPENDS+=      p5-WebService-MusicBrainz-[0-9]*:../../net/p5-WebService-MusicBrainz
 # depend on cdrkit for icedax?
 DEPENDS+=      mkcue>=2.1:../../misc/mkcue
 
 NO_BUILD=      yes
 WRKSRC=                ${WRKDIR}/${PKGNAME_NOREV}
 
-USE_TOOLS+=    bash:run ftp:run gsed:run
+USE_TOOLS+=    bash:run ftp:run gsed:run perl:run
 REPLACE_BASH=  abcde cddb-tool
 REPLACE_PERL+= abcde-musicbrainz-tool
 
@@ -50,7 +53,7 @@
 do-install:
        ${INSTALL_SCRIPT} ${WRKSRC}/abcde ${DESTDIR}${PREFIX}/bin
        ${INSTALL_SCRIPT} ${WRKSRC}/cddb-tool ${DESTDIR}${PREFIX}/bin
-#      ${INSTALL_SCRIPT} ${WRKSRC}/abcde-musicbrainz-tool ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_SCRIPT} ${WRKSRC}/abcde-musicbrainz-tool ${DESTDIR}${PREFIX}/bin
        ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
        ${INSTALL_DATA} ${WRKSRC}/abcde.conf ${DESTDIR}${EGDIR}
        ${INSTALL_MAN} ${WRKSRC}/abcde.1 \
diff -r b83ef162e8d0 -r 4b116eab491a audio/abcde/PLIST
--- a/audio/abcde/PLIST Wed Jan 18 09:34:54 2017 +0000
+++ b/audio/abcde/PLIST Wed Jan 18 09:52:13 2017 +0000
@@ -1,6 +1,6 @@
-@comment $NetBSD: PLIST,v 1.5 2015/01/04 12:03:07 wiz Exp $
+@comment $NetBSD: PLIST,v 1.6 2017/01/18 09:52:13 wiz Exp $
 bin/abcde
-@comment bin/abcde-musicbrainz-tool
+bin/abcde-musicbrainz-tool
 bin/cddb-tool
 man/man1/abcde.1
 man/man1/cddb-tool.1
diff -r b83ef162e8d0 -r 4b116eab491a audio/abcde/distinfo
--- a/audio/abcde/distinfo      Wed Jan 18 09:34:54 2017 +0000
+++ b/audio/abcde/distinfo      Wed Jan 18 09:52:13 2017 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.44 2017/01/16 12:27:18 wiz Exp $
+$NetBSD: distinfo,v 1.45 2017/01/18 09:52:13 wiz Exp $
 
 SHA1 (abcde-2.8.tar.gz) = 951071d3ed710d9e40dccaba9f47af2ff82b4c61
 RMD160 (abcde-2.8.tar.gz) = f080f1e499b8d6fec34d7777e5b396d01200682a
 SHA512 (abcde-2.8.tar.gz) = 2124b2fd4fcea984a258ebeffeb7654eecc92d62bb20e76f032ed2e0de5084e9afaf665cccf0b632983baeb572321ce6913e3a956c7865da40fecccc9d23243d
 Size (abcde-2.8.tar.gz) = 148444 bytes
-SHA1 (patch-ab) = eacbb4582c8dc74c6415adbb0af387aacce81ccc
+SHA1 (patch-ab) = 04771bb4d0ace2886fe7612a06b4476696d0429d
+SHA1 (patch-abcde-musicbrainz-tool) = 9cf135bb2682fa72a801ba1358098663370f9fc9
diff -r b83ef162e8d0 -r 4b116eab491a audio/abcde/patches/patch-ab
--- a/audio/abcde/patches/patch-ab      Wed Jan 18 09:34:54 2017 +0000
+++ b/audio/abcde/patches/patch-ab      Wed Jan 18 09:52:13 2017 +0000
@@ -1,4 +1,6 @@
-$NetBSD: patch-ab,v 1.10 2010/04/10 13:20:11 sekiya Exp $
+$NetBSD: patch-ab,v 1.11 2017/01/18 09:52:13 wiz Exp $
+
+Adapt path in examplef or NetBSD.
 
 --- abcde.conf.orig    2006-10-02 03:26:11.000000000 +0900
 +++ abcde.conf 2010-04-10 10:03:49.000000000 +0900
diff -r b83ef162e8d0 -r 4b116eab491a audio/abcde/patches/patch-abcde-musicbrainz-tool
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/abcde/patches/patch-abcde-musicbrainz-tool  Wed Jan 18 09:52:13 2017 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-abcde-musicbrainz-tool,v 1.1 2017/01/18 09:52:13 wiz Exp $
+
+Fix undefined variable problem.
+
+--- abcde-musicbrainz-tool.orig        2017-01-14 00:53:48.000000000 +0000
++++ abcde-musicbrainz-tool
+@@ -92,12 +92,12 @@ if ($command =~ m/^id/) {
+     foreach my $release (@releases) {
+         my $a_artist = $release->artist()->name();
+         my $va = 0;
++        my $rel_year = "";
+         if ($a_artist =~ /Various Artists/) {
+             $va = 1;
+         }
+       if ($release->release_event_list()->count() > 0) {
+           my @events = @{$release->release_event_list()->events()};
+-          my $rel_year = "";
+           $rel_year =  substr($events[0]->date(),0,4);
+       }
+ 



Home | Main Index | Thread Index | Old Index