From owner-freebsd-ports Sun May 2 10: 0: 8 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id BDB12153AE for ; Sun, 2 May 1999 10:00:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id KAA22074; Sun, 2 May 1999 10:00:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from initio.no (dhcp-061105.uninett.no [158.38.61.105]) by hub.freebsd.org (Postfix) with ESMTP id 950FF14D9E for ; Sun, 2 May 1999 09:50:12 -0700 (PDT) (envelope-from oyvindmo@initio.no) Received: (from oyvindmo@localhost) by initio.no (8.9.2/8.9.2) id SAA39845; Sun, 2 May 1999 18:50:11 +0200 (CEST) (envelope-from oyvindmo) Message-Id: <199905021650.SAA39845@initio.no> Date: Sun, 2 May 1999 18:50:11 +0200 (CEST) From: oyvindmo@initio.no Reply-To: oyvindmo@initio.no To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/11451: New port: audio/ripit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 11451 >Category: ports >Synopsis: New port: audio/ripit >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun May 2 10:00:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Oyvind Moll >Release: FreeBSD 3.1-STABLE i386 >Organization: Initio IT-losninger AS >Environment: >Description: New port: audio/ripit. It's a perl-script aiding in encoding CDs to MP3. It does CDDB lookups, and supports encoding while reading from CD. Had to change it from using cdparanoia to using tosha, since cdparanoia is Linux-only. Is tosha the best CD-ripper to use as default? I set /dev/rcd0c as default CD-ROM device. I couldn't use /dev/cdrom, because cda(1), which ripit uses, doesn't seem to handle symlinked devices properly. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # ripit # ripit/files # ripit/files/md5 # ripit/patches # ripit/patches/patch-aa # ripit/pkg # ripit/pkg/COMMENT # ripit/pkg/DESCR # ripit/pkg/PLIST # ripit/Makefile # echo c - ripit mkdir -p ripit > /dev/null 2>&1 echo c - ripit/files mkdir -p ripit/files > /dev/null 2>&1 echo x - ripit/files/md5 sed 's/^X//' >ripit/files/md5 << 'END-of-ripit/files/md5' XMD5 (ripit-1.2.tar.gz) = a760057cd7a9b6d7bab4e911af5cc3a2 END-of-ripit/files/md5 echo c - ripit/patches mkdir -p ripit/patches > /dev/null 2>&1 echo x - ripit/patches/patch-aa sed 's/^X//' >ripit/patches/patch-aa << 'END-of-ripit/patches/patch-aa' Xdiff -uNr ../ripit-1.2.old/ripit.pl ./ripit.pl X--- ../ripit-1.2.old/ripit.pl Sun May 2 18:24:11 1999 X+++ ./ripit.pl Sun May 2 18:27:10 1999 X@@ -26,8 +26,8 @@ X # User configurable variables X # X X-$cddev = "/dev/cdrom"; # CD Audio device X-$outputdir = "/dosc/cdrip/"; # Where the MP3s should go X+$cddev = "/dev/rcd0c"; # CD Audio device X+$outputdir = "/home/mp3/"; # Where the MP3s should go X $bitrate = 160; # Bitrate for MP3s X X $use_underscore = 0; # Use _ instead of spaces in filenames (1 yes, 0 no) X@@ -312,14 +312,11 @@ X X &printflush(RIPLOG,"Ripping $tracklist[$_ - 1]...\n"); X X- if (system("cdparanoia -d $cddev $riptrackno \"$riptrackname.rip\"")) { X- &printflush(RIPLOG,"cdparanoia failed on $tracklist[$_ - 1]\n"); X- die "cdparanoia failed on $tracklist[$_ - 1]"; X+ if (system("tosha -d $cddev -f wav -t $riptrackno -o \"$riptrackname.wav\"")) { X+ &printflush(RIPLOG,"tosha failed on $tracklist[$_ - 1]\n"); X+ die "tosha failed on $tracklist[$_ - 1]"; X } X X- # Rename rip file to a wav so bladeenc will encode it X- rename "$riptrackname.rip","$riptrackname.wav"; X- X &printflush(RIPLOG,"Rip complete $tracklist[$_ - 1]\n"); X X # Start the Encoder in the background. but only once X@@ -349,7 +346,7 @@ X print "\nBladeenc Encoding track ".$ncount." of ".($#seltrack + 1)."\n"; X &printflush(RIPLOG,"Encoding $tracklist[$_ - 1]...\n"); X X- # Keep looping until the file appears, ie wait for cdparanoia X+ # Keep looping until the file appears, ie wait for tosha X # timeout after 30 minutes X $x=0; X while( ! -r "$riptrackname.wav" ){ END-of-ripit/patches/patch-aa echo c - ripit/pkg mkdir -p ripit/pkg > /dev/null 2>&1 echo x - ripit/pkg/COMMENT sed 's/^X//' >ripit/pkg/COMMENT << 'END-of-ripit/pkg/COMMENT' XA perl-script frontend for encoding audio CDs to MP3 files. END-of-ripit/pkg/COMMENT echo x - ripit/pkg/DESCR sed 's/^X//' >ripit/pkg/DESCR << 'END-of-ripit/pkg/DESCR' Xripit X----- X Xripit is a small front-end program written in perl for ripping, Xencoding & tagging MP3s. It is a console program that needs no user Xintervention. It requires tosha, bladeenc and xmcd (for CDDB access). X Xhttp://www.netcomuk.co.uk/~squinn/ripit.html X X-- XPort by Oyvind Moll END-of-ripit/pkg/DESCR echo x - ripit/pkg/PLIST sed 's/^X//' >ripit/pkg/PLIST << 'END-of-ripit/pkg/PLIST' Xbin/ripit.pl END-of-ripit/pkg/PLIST echo x - ripit/Makefile sed 's/^X//' >ripit/Makefile << 'END-of-ripit/Makefile' X# New ports collection makefile for: ripit X# Version required: 1.2 X# Date created: 2 May 1999 X# Whom: oyvindmo@initio.no X# X# $Id$ X# X XDISTNAME= ripit-1.2 XCATEGORIES= audio XMASTER_SITES= http://www.netcomuk.co.uk/~squinn/ X XMAINTAINER= oyvindmo@initio.no X XRUN_DEPENDS= bladeenc:${PORTSDIR}/audio/bladeenc \ X tosha:${PORTSDIR}/audio/tosha \ X cda:${PORTSDIR}/audio/xmcd X XUSE_PERL5= yes XSTRIP= X Xdo-install: X @ ${INSTALL_PROGRAM} ${WRKSRC}/ripit.pl ${PREFIX}/bin X X.include END-of-ripit/Makefile exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message