1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Use cdparanoia per default, since the port depends on it.

Add optional dependency on sysutils/eject

PR:		48196
Submitted by:	maintainer
Reported by:	Gregory Bond <gnb@itga.com.au>
This commit is contained in:
Tilman Keskinoz 2003-03-31 16:38:42 +00:00
parent a15c08968a
commit 217bc49e16
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=77844
2 changed files with 30 additions and 13 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= abcde
PORTVERSION= 2.0.3
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= audio
MASTER_SITES= http://frantica.lly.org/~rcw/abcde/
DISTNAME= abcde_2.0.3.orig
@ -36,6 +36,13 @@ RUN_DEPENDS+= dagrab:${PORTSDIR}/audio/dagrab
DAGRAB_MSG= "Define WITH_DAGRAB to enable support for dagrab."
.endif
.if defined(WITH_EJECT)
RUN_DEPENDS+= eject:${PORTSDIR}/sysutils/eject
.else
EJECT_MSG= "Define WITH_EJECT to enable auto-eject support."
.endif
pre-fetch:
.if defined(DAGRAB_MSG)
@${ECHO_MSG} ${DAGRAB_MSG}
@ -45,6 +52,11 @@ pre-fetch:
@${ECHO_MSG} ${CDDA2WAV_MSG}
@${ECHO_MSG} ""
.endif
.if defined(EJECT_MSG)
@${ECHO_MSG} ${EJECT_MSG}
@${ECHO_MSG} ""
.endif
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/abcde ${PREFIX}/bin

View File

@ -1,5 +1,5 @@
--- abcde.orig Mon Aug 5 16:56:33 2002
+++ abcde Mon Aug 5 16:53:52 2002
--- abcde.orig Mon Jan 28 00:44:02 2002
+++ abcde Tue Feb 11 23:08:44 2003
@@ -534,7 +534,7 @@
;;
12|13|14)
@ -46,15 +46,6 @@
esac
RETURN=$?
if [ "$RETURN" != "0" ]; then
@@ -886,7 +887,7 @@
CDDBSUBMIT=freedb-submit@freedb.org
HELLOINFO="$(whoami)@$(hostname)"
INTERACTIVE=y
-CDROMREADERSYNTAX=cdparanoia
+CDROMREADERSYNTAX=dagrab
OUTPUTTYPE=ogg
ENCODERSYNTAX=default
OUTPUTFORMAT='${ARTISTFILE}/${TRACKFILE}.$OUTPUTTYPE'
@@ -913,7 +914,8 @@
ID3V2=id3v2
CDPARANOIA=cdparanoia
@ -105,7 +96,21 @@
do
# Cut off the command-line options we just added in
X=$(echo $X | cut -d' ' -f2)
@@ -1191,7 +1197,7 @@
@@ -1184,14 +1190,20 @@
# We are now finished with the cdrom - it can be safely ejected. Note that
# abcde will not have completed yet.
if [ "$EJECTCD" = "y" ]; then
- $EJECT $EJECTOPTS $CDROM
+ # FreeBSD eject uses the EJECT environment variable to name the CDROM
+ # but in this script EJECT is in the envionment and names the program
+ eject=$EJECT
+ unset EJECT
+ # The FreeBSD eject needs "adc0" not "/dev/adc0c"
+ cd="$(echo $CDROM | sed -e 's=.*/==;s=[a-h]$==;')"
+ $eject $EJECTOPTS $cd
fi
) | (
# Do the encoding, including parallelization of remote encoding
# Figure out where each track is going to be encoded
ENCODELOCATIONS="$(echo $REMOTEHOSTS | tr , ' ')"
if [ "$MAXPROCS" != "0" ]; then