diff options
author | arved <arved@FreeBSD.org> | 2018-08-07 17:07:07 +0800 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2018-08-07 17:07:07 +0800 |
commit | 13263d7f33fa536fd20aa2bf8185ec8a8213fce1 (patch) | |
tree | 8dd42a3e1eff4d1adcc2348753c80109d380d46f /audio/abcde/files | |
parent | 05d197bb3225b1e164c43e5588e016591c9018a3 (diff) | |
download | freebsd-ports-gnome-13263d7f33fa536fd20aa2bf8185ec8a8213fce1.tar.gz freebsd-ports-gnome-13263d7f33fa536fd20aa2bf8185ec8a8213fce1.tar.zst freebsd-ports-gnome-13263d7f33fa536fd20aa2bf8185ec8a8213fce1.zip |
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
Diffstat (limited to 'audio/abcde/files')
-rw-r--r-- | audio/abcde/files/patch-abcde | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/audio/abcde/files/patch-abcde b/audio/abcde/files/patch-abcde index 32e99793ccaf..3084bcc4293e 100644 --- a/audio/abcde/files/patch-abcde +++ b/audio/abcde/files/patch-abcde @@ -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 |