Monday, August 06, 2018

[UPDATE] audio/abcde 2.7.2 -> 2.9.2

Index: Makefile
===================================================================
RCS file: /cvs/ports/audio/abcde/Makefile,v
retrieving revision 1.27
diff -u -p -r1.27 Makefile
--- Makefile 29 Jan 2018 15:47:11 -0000 1.27
+++ Makefile 6 Aug 2018 08:05:34 -0000
@@ -2,7 +2,7 @@

COMMENT= command-line utility to rip and encode audio cds

-DISTNAME= abcde-2.7.2
+DISTNAME= abcde-2.9.2
EPOCH= 0
CATEGORIES= audio

@@ -17,7 +17,9 @@ RUN_DEPENDS= audio/cdparanoia \
audio/cd-discid \
audio/id3lib \
audio/vorbis-tools \
- shells/bash
+ shells/bash \
+ www/p5-WebService-MusicBrainz \
+ audio/p5-MusicBrainz-DiscID

NO_TEST= Yes

@@ -28,6 +30,7 @@ pre-configure:

do-install:
${INSTALL_SCRIPT} ${WRKSRC}/abcde ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/abcde-musicbrainz-tool ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/cddb-tool ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/abcde.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/cddb-tool.1 ${PREFIX}/man/man1
Index: distinfo
===================================================================
RCS file: /cvs/ports/audio/abcde/distinfo,v
retrieving revision 1.13
diff -u -p -r1.13 distinfo
--- distinfo 29 Jan 2018 15:47:11 -0000 1.13
+++ distinfo 6 Aug 2018 08:05:34 -0000
@@ -1,2 +1,2 @@
-SHA256 (abcde-2.7.2.tar.gz) = qjmIFoKsRuufwZnRNDuXvFajIrQaXFcBOs2jGUi8U90=
-SIZE (abcde-2.7.2.tar.gz) = 146407
+SHA256 (abcde-2.9.2.tar.gz) = NDVsbqTMObM8gHJhv9+OjaiQWy7VAxMUfHiyg+72hY0=
+SIZE (abcde-2.9.2.tar.gz) = 160799
Index: patches/patch-abcde
===================================================================
RCS file: patches/patch-abcde
diff -N patches/patch-abcde
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-abcde 6 Aug 2018 08:05:34 -0000
@@ -0,0 +1,15 @@
+$OpenBSD$
+Fix: offsets cannot be fetched with that sed invocation on OpenBSD
+See that bug report https://abcde.einval.com/bugzilla/show_bug.cgi?id=86
+Index: abcde
+--- abcde.orig
++++ abcde
+@@ -2110,7 +2110,7 @@ do_discid ()
+ CDPARANOIAAUDIOTRACKS="$TRACKS"
+
+ LEADOUT="$(echo "$CDPARANOIAOUTPUT" | grep -Eo '^TOTAL[[:space:]]+([[:digit:]]+)' | get_last)"
+- OFFSETS="$(echo "$CDPARANOIAOUTPUT" | sed -n -e's/^ .* \([0-9]\+\) \[.*/\1/p')"
++ OFFSETS="$(echo "$CDPARANOIAOUTPUT" | awk '/^ +[0-9]+\./ {print $4}')"
+ makeids
+ ;;
+ *)
Index: pkg/DESCR
===================================================================
RCS file: /cvs/ports/audio/abcde/pkg/DESCR,v
retrieving revision 1.4
diff -u -p -r1.4 DESCR
--- pkg/DESCR 6 Jan 2018 11:39:24 -0000 1.4
+++ pkg/DESCR 6 Aug 2018 08:05:34 -0000
@@ -1,7 +1,8 @@
-abcde is a front end command-line utility (actually, a shell script)
-that grabs tracks off a CD, encodes them to ogg or mp3 format, and
-tags and names them with data from a CDDB server, all in one go.
+abcde is a front end command-line utility that grabs tracks off a CD, encodes
+them to OGG or many other formats, and tags and names them with data from
+MusicBrainz.org or a CDDB server, all in one go.

-To use mp3 format, install the lame package, and set OUTPUTTYPE=mp3 in
-${SYSCONFDIR}/abcde.conf (copy this to ~/.abcde.conf for per-user
-configuration).
+That package comes with the default OGG Vorbis support only. For example, to
+use the MP3 format, install the lame and eyeD3 packages, and set
+OUTPUTTYPE=mp3 in ${SYSCONFDIR}/abcde.conf (copy this to ~/.abcde.conf for
+per-user configuration).
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/audio/abcde/pkg/PLIST,v
retrieving revision 1.3
diff -u -p -r1.3 PLIST
--- pkg/PLIST 21 Nov 2012 20:38:48 -0000 1.3
+++ pkg/PLIST 6 Aug 2018 08:05:34 -0000
@@ -1,6 +1,7 @@
@comment $OpenBSD: PLIST,v 1.3 2012/11/21 20:38:48 sthen Exp $
@pkgpath audio/abcde,lame
bin/abcde
+bin/abcde-musicbrainz-tool
bin/cddb-tool
@man man/man1/abcde.1
@man man/man1/cddb-tool.1
Hi!

Here is an update for audio/abcde, that requires the updated
www/p5-WebService-MusicBrainz and the new audio/p5-MusicBrainz-DiscID
ports i've submitted earlier.

We are currently several versions behind and the changelog is too huge
to detail here [1]. The biggest changes:

- It now requires Perl to access the musicbrainz.org v2.0 API, that has
become the default over CDDB (which is still available) to fetch tracks
informations.
- MP3 encoding now requires audio/py-eyed3 with the default
configuration file. Our port only supports the default OGG Vorbis
encoding, so it hasn't been added to the Makefile as a RUN_DEPENDS, but
DESCR has been updated accordingly.

I also added a patch because abcde wasn't able to get tracks offsets
from cdparanoia on OpenBSD and submitted a bug report to upstream [2]

As usual, any comment is welcome!

Charlène.


[1]
https://git.einval.com/cgi-bin/gitweb.cgi?p=abcde.git;a=blob;f=changelog;h=aff1e8fff4105ee636203766562242465c899009;hb=7f06cdc02d1ef02794d9a0ee2f5ab28470420548
[2] https://abcde.einval.com/bugzilla/show_bug.cgi?id=86

No comments:

Post a Comment