Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Sep 2015 10:45:01 +0000 (UTC)
From:      Thomas Zander <riggs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r396806 - in head/audio/abcde: . files
Message-ID:  <201509131045.t8DAj1RU090737@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: riggs
Date: Sun Sep 13 10:45:01 2015
New Revision: 396806
URL: https://svnweb.freebsd.org/changeset/ports/396806

Log:
  Update to upstream version 2.7
  
  - General port cleanup
  - Apply FreeBSD-specific modifications to make it
    work out of the box more conveniently
  
  PR:		201837
  Submitted by:	tkato432@yahoo.com

Added:
  head/audio/abcde/files/pkg-message.in   (contents, props changed)
Deleted:
  head/audio/abcde/files/patch-abcde
Modified:
  head/audio/abcde/Makefile
  head/audio/abcde/distinfo
  head/audio/abcde/files/patch-abcde.conf

Modified: head/audio/abcde/Makefile
==============================================================================
--- head/audio/abcde/Makefile	Sun Sep 13 10:14:25 2015	(r396805)
+++ head/audio/abcde/Makefile	Sun Sep 13 10:45:01 2015	(r396806)
@@ -2,67 +2,69 @@
 # $FreeBSD$
 
 PORTNAME=	abcde
-PORTVERSION=	2.6
+PORTVERSION=	2.7
 CATEGORIES=	audio
 MASTER_SITES=	http://abcde.einval.com/download/
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Front-end shell script to encode CDs in flac/mp3/ogg/speex format
 
-LICENSE=	GPLv2
+LICENSE=	ART10 GPLv2
+LICENSE_COMB=	dual
 
 RUN_DEPENDS=	cd-discid:${PORTSDIR}/audio/cd-discid \
 		cdparanoia:${PORTSDIR}/audio/cdparanoia \
-		oggenc:${PORTSDIR}/audio/vorbis-tools \
 		lame:${PORTSDIR}/audio/lame \
 		${PYTHON_PKGNAMEPREFIX}eyed3>=0.7:${PORTSDIR}/audio/py-eyed3 \
+		oggenc:${PORTSDIR}/audio/vorbis-tools \
 		bash:${PORTSDIR}/shells/bash
 
+NO_ARCH=	yes
 NO_BUILD=	yes
+
 USES=		python:run shebangfix
-SHEBANG_FILES=	${PORTNAME} cddb-tool
+SHEBANG_FILES=	abcde cddb-tool
+
+SUB_FILES=	pkg-message
+
+PLIST_FILES=	bin/abcde bin/cddb-tool etc/abcde.conf.sample \
+		man/man1/abcde.1.gz man/man1/cddb-tool.1.gz
 
 OPTIONS_GROUP=		CODEC RIPPER
 OPTIONS_GROUP_CODEC=	AAC FLAC MPP OPUS SPEEX
 OPTIONS_GROUP_RIPPER=	CDDA2WAV DAGRAB
 OPTIONS_DEFINE=		NORMALIZE REPLAYGAIN
 
-NORMALIZE_DESC?=	Enable normalize support
-REPLAYGAIN_DESC?=	Enable (vorbis|mp3)gain support
-
-AAC_RUN_DEPENDS+=	faac:${PORTSDIR}/audio/faac
-FLAC_RUN_DEPENDS+=	flac:${PORTSDIR}/audio/flac
-MPP_RUN_DEPENDS+=	mpcenc:${PORTSDIR}/audio/musepack
-OPUS_RUN_DEPENDS+=	opusenc:${PORTSDIR}/audio/opus-tools
-SPEEX_RUN_DEPENDS+=	speexenc:${PORTSDIR}/audio/speex
-CDDA2WAV_RUN_DEPENDS+=	cdda2wav:${PORTSDIR}/sysutils/cdrtools
-DAGRAB_RUN_DEPENDS+=	dagrab:${PORTSDIR}/audio/dagrab
-NORMALIZE_RUN_DEPENDS+=	normalize:${PORTSDIR}/audio/normalize
-REPLAYGAIN_RUN_DEPENDS+=mp3gain:${PORTSDIR}/audio/mp3gain \
+AAC_RUN_DEPENDS=	faac:${PORTSDIR}/audio/faac
+CDDA2WAV_RUN_DEPENDS=	cdda2wav:${PORTSDIR}/sysutils/cdrtools
+DAGRAB_RUN_DEPENDS=	dagrab:${PORTSDIR}/audio/dagrab
+FLAC_RUN_DEPENDS=	flac:${PORTSDIR}/audio/flac
+MPP_RUN_DEPENDS=	mpcenc:${PORTSDIR}/audio/musepack
+NORMALIZE_DESC=		Enable normalize support
+NORMALIZE_RUN_DEPENDS=	normalize:${PORTSDIR}/audio/normalize
+OPUS_RUN_DEPENDS=	opusenc:${PORTSDIR}/audio/opus-tools
+REPLAYGAIN_DESC=	Enable (vorbis|mp3)gain support
+REPLAYGAIN_RUN_DEPENDS=	mp3gain:${PORTSDIR}/audio/mp3gain \
 			vorbisgain:${PORTSDIR}/audio/vorbisgain
+SPEEX_RUN_DEPENDS=	speexenc:${PORTSDIR}/audio/speex
 
-PLIST_FILES=	bin/abcde bin/cddb-tool etc/abcde.conf.sample \
-		man/man1/abcde.1.gz man/man1/cddb-tool.1.gz
+post-extract:
+	@${LN} -sf abcde.conf ${WRKSRC}/abcde.conf.sample
 
 post-patch:
-	${REINPLACE_CMD} -e 's#/etc/#${PREFIX}/etc/#g' \
-		${WRKSRC}/abcde ${WRKSRC}/abcde.1
+	@${REINPLACE_CMD} -e \
+		's|\([[:space:]]\)\(/etc/abcde.conf\)|\1${PREFIX}\2|' \
+		${WRKSRC}/abcde
+	@${REINPLACE_CMD} -e \
+		's|\(fI\)\(/etc/abcde.conf\)|\1${PREFIX}\2|' \
+		${WRKSRC}/abcde.1
 
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/abcde ${STAGEDIR}${PREFIX}/bin
-	${INSTALL_SCRIPT} ${WRKSRC}/cddb-tool ${STAGEDIR}${PREFIX}/bin
-	${INSTALL_DATA} ${WRKSRC}/abcde.conf \
-		${STAGEDIR}${PREFIX}/etc/abcde.conf.sample
-	${INSTALL_MAN} ${WRKSRC}/abcde.1 ${STAGEDIR}${PREFIX}/man/man1
-	${INSTALL_MAN} ${WRKSRC}/cddb-tool.1 ${STAGEDIR}${PREFIX}/man/man1
-
-post-install:
-	@${ECHO_MSG} ""
-	@${ECHO_MSG} "Please copy ${PREFIX}/etc/abcde.conf.sample to ~/.abcde.conf"
-	@${ECHO_MSG} "and edit as necessary. Sane defaults have been set."
-	@${ECHO_MSG} ""
-	@${ECHO_MSG} "NOTE: If you have been using ${PORTNAME}-2.1.4 or older,"
-	@${ECHO_MSG} "you must start with a fresh ~/.abcde.conf."
-	@${ECHO_MSG} ""
+	(cd ${WRKSRC} && ${INSTALL_SCRIPT} abcde cddb-tool \
+		${STAGEDIR}${PREFIX}/bin)
+	(cd ${WRKSRC} && ${INSTALL_DATA} abcde.conf.sample \
+		${STAGEDIR}${PREFIX}/etc)
+	(cd ${WRKSRC} && ${INSTALL_MAN} abcde.1 cddb-tool.1 \
+		${STAGEDIR}${MANPREFIX}/man/man1)
 
 .include <bsd.port.mk>

Modified: head/audio/abcde/distinfo
==============================================================================
--- head/audio/abcde/distinfo	Sun Sep 13 10:14:25 2015	(r396805)
+++ head/audio/abcde/distinfo	Sun Sep 13 10:45:01 2015	(r396806)
@@ -1,2 +1,2 @@
-SHA256 (abcde-2.6.tar.gz) = 683ea7e215142784a28afcda4a18d9a2b8f7ef7bcd9c2881ee110a3b86784c78
-SIZE (abcde-2.6.tar.gz) = 105609
+SHA256 (abcde-2.7.tar.gz) = 0148698a09fedcbae37ee9da295afe411a1190cf8ae224b7814d31b5bf737746
+SIZE (abcde-2.7.tar.gz) = 140039

Modified: head/audio/abcde/files/patch-abcde.conf
==============================================================================
--- head/audio/abcde/files/patch-abcde.conf	Sun Sep 13 10:14:25 2015	(r396805)
+++ head/audio/abcde/files/patch-abcde.conf	Sun Sep 13 10:45:01 2015	(r396806)
@@ -1,51 +1,33 @@
---- abcde.conf.orig	2014-12-18 17:39:40.000000000 +0100
-+++ abcde.conf	2014-12-18 17:45:51.000000000 +0100
-@@ -141,13 +141,13 @@
- #CDDAFS=cp
- #CDDISCID=cd-discid
- #CDDBTOOL=cddb-tool
--#EJECT=eject
--#MD5SUM=md5sum
-+EJECT=cdcontrol
-+MD5SUM=md5
- #DISTMP3=distmp3
- #VORBISCOMMENT=vorbiscomment
- #METAFLAC=metaflac
- #NORMALIZE=normalize-audio
--#CDSPEED=eject
-+CDSPEED=cdcontrol
- #VORBISGAIN=vorbisgain
- #MKCUE=mkcue
- #MKTOC=cdrdao
-@@ -215,10 +215,10 @@
- #PIRDOPTS="-p"
- #CDDAFSOPTS="-f"
- #CDDBTOOLOPTS=
--#EJECTOPTS=
-+EJECTOPTS="eject"
- #DISTMP3OPTS=
- #NORMALIZEOPTS=
--#CDSPEEDOPTS="-x"
-+CDSPEEDOPTS="speed"
- #CDSPEEDVALUE=""
- #MKCUEOPTS=""
- #MKTOCOPTS=""
-@@ -245,7 +245,7 @@
- # CD device you want to read from
- # It can be defined as a singletrack flac file, but since it might change from
- # file to file it makes little sense to define it here.
--#CDROM=/dev/cdrom
-+CDROM=/dev/cd0
- # If we are using the IDE bus, we need CDPARANOIACDROMBUS defined as "d"
- # If we are using the ide-scsi emulation layer, we need to define a "g"
- #CDPARANOIACDROMBUS="d"
-@@ -343,8 +343,7 @@
- # Custom pre-read function
- # By default it does nothing.
- # You can set some things to get abcde function in better ways:
--# * Close the CD tray using eject -t (if available in eject and supported by 
--#   your CD device.
-+# * Close the CD tray using cdcontrol close (if supported by your CD device).
- # * Set the CD speed. You can also use the built-in options, but you can also 
- #   set it here. In Debian, eject -x and cdset -x do the job.
- # KEEP IN MIND that executables included in pre_read must be in your $PATH or
+--- abcde.conf.orig	2015-06-18 12:26:40 UTC
++++ abcde.conf
+@@ -209,7 +209,8 @@
+ 
+ # Ogg:
+ #VORBIZEOPTS=
+-#OGGENCOPTS=
++#OFFENCOPTS=
++OGGENCOPTS="-q 5"
+ 
+ # FLAC:
+ # The flac option is a workaround for an error where flac fails
+@@ -323,7 +324,7 @@
+ # (e.g. "ogg") or a combination of them separated with ","
+ # (e.g. "flac,mp3"). Currently recognised and supported are:
+ # "flac", "m4a", "mp3, "mpc", "ogg", "opus", "spx", "vorbis", "wav", "wv", "ape"
+-#OUTPUTTYPE=ogg
++OUTPUTTYPE=ogg
+ 
+ # Output filename format - change this to reflect your inner desire to
+ # organize things differently than everyone else :)
+@@ -336,9 +337,11 @@
+ # to the files. Remove it from your user defined string if you are getting
+ # files like ".ogg.ogg".
+ #OUTPUTFORMAT='${ARTISTFILE}-${ALBUMFILE}/${TRACKNUM}.${TRACKFILE}'
++OUTPUTFORMAT='${ARTISTFILE}-${ALBUMFILE}/${ARTISTFILE}-${TRACKNUM}-${TRACKFILE}'
+ 
+ # Like OUTPUTFORMAT but for Various Artists discs.
+ #VAOUTPUTFORMAT='Various-${ALBUMFILE}/${TRACKNUM}.${ARTISTFILE}-${TRACKFILE}'
++VAOUTPUTFORMAT='${ARTISTFILE}/${ARTISTFILE}-${TRACKNUM}-${TRACKFILE}'
+ 
+ # Like OUTPUTFORMAT and VAOUTPUTFORMAT but for the ONEFILE rips.
+ #ONETRACKOUTPUTFORMAT=$OUTPUTFORMAT

Added: head/audio/abcde/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/abcde/files/pkg-message.in	Sun Sep 13 10:45:01 2015	(r396806)
@@ -0,0 +1,7 @@
+******************************************************************
+Please copy %%PREFIX%%/etc/abcde.conf.sample to ~/.abcde.conf and
+edit as necessary. Sane defaults have been set.
+
+NOTE: If you have been using abcde-2.1.4 or older, you must start
+with a fresh ~/.abcde.conf.
+******************************************************************



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