Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Aug 2018 09:07:07 +0000 (UTC)
From:      Tilman Keskinoz <arved@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r476581 - in head/audio/abcde: . files
Message-ID:  <201808070907.w77977tv092784@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: arved
Date: Tue Aug  7 09:07:07 2018
New Revision: 476581
URL: https://svnweb.freebsd.org/changeset/ports/476581

Log:
  Fix Musicbrainz support
  
  - by replacing GNU sed'ism with awk
  
  Obtained from:	upstream
  
  While here:
  - remove dependencies on perl modules included in perl-base
  
  - Grab maintainership

Modified:
  head/audio/abcde/Makefile
  head/audio/abcde/files/patch-abcde

Modified: head/audio/abcde/Makefile
==============================================================================
--- head/audio/abcde/Makefile	Tue Aug  7 08:27:03 2018	(r476580)
+++ head/audio/abcde/Makefile	Tue Aug  7 09:07:07 2018	(r476581)
@@ -3,10 +3,11 @@
 
 PORTNAME=	abcde
 DISTVERSION=	2.9.2
+PORTREVISION=	1
 CATEGORIES=	audio
 MASTER_SITES=	http://abcde.einval.com/download/
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	arved@FreeBSD.org
 COMMENT=	Front-end shell script to encode CDs in flac/mp3/ogg/speex format
 
 LICENSE=	ART10 GPLv2
@@ -41,10 +42,8 @@ MPP_RUN_DEPENDS=	mpcenc:audio/musepack
 MUSICBRAINZ_DESC=	Enable MusicBrainz DiscID support
 MUSICBRAINZ_USES=	perl5
 MUSICBRAINZ_USE_PERL5=	run
-MUSICBRAINZ_RUN_DEPENDS=p5-Digest-SHA>=0:security/p5-Digest-SHA \
-		p5-Getopt-Long>=0:devel/p5-Getopt-Long \
+MUSICBRAINZ_RUN_DEPENDS=	\
 		p5-MusicBrainz-DiscID>=0:audio/p5-MusicBrainz-DiscID \
-		p5-Pod-Usage>=0:devel/p5-Pod-Usage \
 		p5-WebService-MusicBrainz>=1:www/p5-WebService-MusicBrainz
 NORMALIZE_DESC=		Enable normalize support
 NORMALIZE_RUN_DEPENDS=	normalize:audio/normalize

Modified: head/audio/abcde/files/patch-abcde
==============================================================================
--- head/audio/abcde/files/patch-abcde	Tue Aug  7 08:27:03 2018	(r476580)
+++ head/audio/abcde/files/patch-abcde	Tue Aug  7 09:07:07 2018	(r476581)
@@ -1,14 +1,11 @@
---- abcde.orig	2018-03-15 16:01:58 UTC
-+++ abcde
-@@ -2108,7 +2108,10 @@ do_discid ()
+--- abcde.orig	2018-08-07 10:53:58.070134000 +0200
++++ abcde	2018-08-07 10:54:34.101817000 +0200
+@@ -2110,7 +2110,7 @@
+ 				CDPARANOIAAUDIOTRACKS="$TRACKS"
  
  				LEADOUT="$(echo "$CDPARANOIAOUTPUT" | grep -Eo '^TOTAL[[:space:]]+([[:digit:]]+)' | get_last)"
- 				OFFSETS="$(echo "$CDPARANOIAOUTPUT" | sed -n -e's/^ .* \([0-9]\+\) \[.*/\1/p')"
--				makeids
-+				case "$CDDBMETHOD" in
-+					cddb) TRACKINFO=$($CDDISCID "$CDROM") ;;
-+					musicbrainz) TRACKINFO=$($MUSICBRAINZ --command id --device "$CDROM") ;;
-+				esac
+-				OFFSETS="$(echo "$CDPARANOIAOUTPUT" | sed -n -e's/^ .* \([0-9]\+\) \[.*/\1/p')"
++				OFFSETS="$(echo "$CDPARANOIAOUTPUT" | awk '/^ +.*\[/ {print $4}')"
+ 				makeids
  				;;
  			*)
- 				# Calculate the cddb discid in all



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808070907.w77977tv092784>