Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Sep 2009 20:28:43 +0200 (CEST)
From:      Tobias Rehbein <tobias.rehbein@web.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        wxs@FreeBSD.org
Subject:   ports/138710: [maintainer-update] Update port audio/ogg2mp3 to latest version (0.6.1)
Message-ID:  <200909101828.n8AIShhu098573@sushi.pseudo.local>
Resent-Message-ID: <200909101830.n8AIU21o050340@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         138710
>Category:       ports
>Synopsis:       [maintainer-update] Update port audio/ogg2mp3 to latest version (0.6.1)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 10 18:30:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Tobias Rehbein
>Release:        FreeBSD 7.2-RELEASE-p3 i386
>Organization:
>Environment:
System: FreeBSD sushi.pseudo.local 7.2-RELEASE-p3 FreeBSD 7.2-RELEASE-p3 #51: Tue Aug 4 14:29:41 CEST 2009 tobi@sushi.pseudo.local:/usr/obj/usr/src/sys/SUSHI i386


	
>Description:
	audio/ogg2mp3 has a new upstream maintainer - this means wxs@ has no longer to host the distfile
	for ogg2mp3 (this is why he is cc'd - many thanks for stepping in!).

	- Add reference to new project home
	- Update port to latest version (0.6.1)
	- Make port honor LOCALBASE

	
>How-To-Repeat:
	
>Fix:

	

--- 0001-Update-audio-ogg2mp3-to-latest-version.patch begins here ---
>From 443e94802b7f124b38e918c85ba774ee571362fd Mon Sep 17 00:00:00 2001
From: Tobias Rehbein <tobias.rehbein@web.de>
Date: Fri, 28 Aug 2009 12:09:34 +0200

 * point to new upstream maintainers URLs
 * eliminate patch files
---
 audio/ogg2mp3/Makefile            |    8 ++----
 audio/ogg2mp3/distinfo            |    6 ++--
 audio/ogg2mp3/files/patch-ogg2mp3 |   41 +++++++++----------------------------
 audio/ogg2mp3/pkg-descr           |    2 +
 4 files changed, 18 insertions(+), 39 deletions(-)

diff --git a/audio/ogg2mp3/Makefile b/audio/ogg2mp3/Makefile
index 448f157..de81941 100644
--- a/audio/ogg2mp3/Makefile
+++ b/audio/ogg2mp3/Makefile
@@ -5,10 +5,9 @@
 # $FreeBSD: ports/audio/ogg2mp3/Makefile,v 1.8 2009/03/09 19:53:34 miwi Exp $
 
 PORTNAME=	ogg2mp3
-PORTVERSION=	0.5
-PORTREVISION=	3
+PORTVERSION=	0.6.1
 CATEGORIES=	audio
-MASTER_SITES=	http://www.atarininja.org/distfiles/
+MASTER_SITES=	http://jamesa.com/projects/ogg2mp3/releases/
 
 MAINTAINER=	tobias.rehbein@web.de
 COMMENT=	Perl script that converts Ogg Vorbis files to MP3 format
@@ -24,8 +23,7 @@ USE_PERL5=	yes
 PLIST_FILES=	bin/ogg2mp3
 
 post-patch:
-	@${REINPLACE_CMD} -e 's|/usr/bin|/usr/local/bin|g' \
-		${WRKSRC}/ogg2mp3
+	@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|" ${WRKSRC}/ogg2mp3
 
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/ogg2mp3 ${PREFIX}/bin
diff --git a/audio/ogg2mp3/distinfo b/audio/ogg2mp3/distinfo
index c85355f..b983077 100644
--- a/audio/ogg2mp3/distinfo
+++ b/audio/ogg2mp3/distinfo
@@ -1,3 +1,3 @@
-MD5 (ogg2mp3-0.5.tar.bz2) = 283e3d255c344d41b340391a19cd2e65
-SHA256 (ogg2mp3-0.5.tar.bz2) = 46137c4a57d0abb9b976c8fe6f92aacc1daae02c6772a93fd0b8c66fe0968a4d
-SIZE (ogg2mp3-0.5.tar.bz2) = 12832
+MD5 (ogg2mp3-0.6.1.tar.bz2) = 6f254338ae7dae9b46e6638995d4e0a2
+SHA256 (ogg2mp3-0.6.1.tar.bz2) = 4f6ffeed81a36bf1b6715ce0213a57fa3e7e1f40f80f382e663060645400d84e
+SIZE (ogg2mp3-0.6.1.tar.bz2) = 12424
diff --git a/audio/ogg2mp3/files/patch-ogg2mp3 b/audio/ogg2mp3/files/patch-ogg2mp3
index 0e5bea7..71eb2c9 100644
--- a/audio/ogg2mp3/files/patch-ogg2mp3
+++ b/audio/ogg2mp3/files/patch-ogg2mp3
@@ -1,44 +1,23 @@
---- ./ogg2mp3.orig	2005-05-16 18:07:33.000000000 +0000
-+++ ./ogg2mp3	2009-02-08 12:29:27.000000000 +0000
+--- ./ogg2mp3.orig	2009-09-10 19:33:42.000000000 +0200
++++ ./ogg2mp3	2009-09-10 19:34:42.000000000 +0200
 @@ -1,4 +1,4 @@
 -#!/usr/bin/perl
-+#!/usr/local/bin/perl
++#!%%LOCALBASE%%/bin/perl
  
  # ogg2mp3
- #
-@@ -51,10 +51,10 @@
- print "  Thanks to all who took an interest. Have fun!\n";
+ # Maintained by: James Ausmus <james.ausmus.code@gmail.com>
+@@ -50,10 +50,10 @@
+ print "  This code is released under the General Public License v2.\n";
  print " ------------------------------------------------------------------- \n\n";
  
 -my $MP3ENC  = "/usr/bin/lame";
 -#my $MP3INFO = "/usr/bin/mp3_check";
 -my $OGGINFO = "/usr/bin/ogginfo";
 -my $OGG123  = "/usr/bin/ogg123";
-+my $MP3ENC  = "/usr/local/bin/lame";
-+#my $MP3INFO = "/usr/local/bin/mp3_check";
-+my $OGGINFO = "/usr/local/bin/ogginfo";
-+my $OGG123  = "/usr/local/bin/ogg123";
++my $MP3ENC  = "%%LOCALBASE%%/bin/lame";
++#my $MP3INFO = "%%LOCALBASE%%/bin/mp3_check";
++my $OGGINFO = "%%LOCALBASE%%/bin/ogginfo";
++my $OGG123  = "%%LOCALBASE%%/bin/ogg123";
  
  # check presence of executables
  stat($MP3ENC) or die "Error: $MP3ENC not present!\n";
-@@ -68,7 +68,7 @@
- 
- # build genre hash
- my %genres;
--open(GENRES, "$MP3ENC --genre-list|") or die "Couldn't get genre list with $MP3ENC --genre-list\n";
-+open(GENRES, "$MP3ENC --genre-list 2>&1 |") or die "Couldn't get genre list with $MP3ENC --genre-list\n";
- while(<GENRES>) {
-     chomp;
-     next if /^\s*$/;
-@@ -308,10 +308,8 @@
- 	
- 	$mp3outputfile_escaped = shell_quote($mp3outputfile);
- 	$oggfile_escaped = shell_quote($oggfile);
--	# this took me some time to figure
--	# note that byte order is swapped by lame via -x option
- 	# TODO: somebody please tell me how to supress the "Assuming bla bla" output without devnull
--	$result = system("$OGG123 $decquiet -d raw -f - $oggfile_escaped | $MP3ENC $encquiet -r -x -q $quality -b $bitrate -s $frequency -m $channels $infostring - $mp3outputfile_escaped");
-+	$result = system("$OGG123 $decquiet -d raw -f - $oggfile_escaped | $MP3ENC $encquiet -r -q $quality -b $bitrate -s $frequency -m $channels $infostring - $mp3outputfile_escaped");
- 
- 	# TODO: find some widely used mp3 checker
- 	# disabled the checking due to lack of checker
diff --git a/audio/ogg2mp3/pkg-descr b/audio/ogg2mp3/pkg-descr
index 2e7df17..b5a165a 100644
--- a/audio/ogg2mp3/pkg-descr
+++ b/audio/ogg2mp3/pkg-descr
@@ -1 +1,3 @@
 ogg2mp3 is a perl script that converts Ogg Vorbis files into MP3 format.
+
+WWW:	http://gitorious.org/ogg2mp3/pages/Home 
-- 
1.6.4
--- 0001-Update-audio-ogg2mp3-to-latest-version.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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