Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Oct 2001 17:21:19 -0400 (EDT)
From:      David MacKenzie <djm@pix.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/31207: new port: audio/id3v2
Message-ID:  <200110102121.f9ALLJS31241@parsec.zeromm.com>

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

>Number:         31207
>Category:       ports
>Synopsis:       new port: audio/id3v2
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 10 14:30:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     David MacKenzie
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
Zero Millimeter
>Environment:
System: FreeBSD parsec.zeromm.com 4.4-STABLE FreeBSD 4.4-STABLE #8: Wed Sep 19 12:56:09 EDT 2001 djm@parsec.zeromm.com:/home/src/stable/src/sys/compile/EARTH i386


>Description:
Command line id3v2 tag editor
>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:
#
#	id3v2
#	id3v2/pkg-descr
#	id3v2/pkg-comment
#	id3v2/files
#	id3v2/files/patch-aa
#	id3v2/files/patch-ab
#	id3v2/files/patch-ac
#	id3v2/README.html
#	id3v2/Makefile
#	id3v2/distinfo
#	id3v2/pkg-plist
#
echo c - id3v2
mkdir -p id3v2 > /dev/null 2>&1
echo x - id3v2/pkg-descr
sed 's/^X//' >id3v2/pkg-descr << 'END-of-id3v2/pkg-descr'
Xd3v2 is a command line id3v2 tag editor. You can add/modifiy/delete
Xid3v2 tags and convert id3v1 tags to id3v2 tags. It uses id3lib.
X
XWWW: http://sourceforge.net/projects/id3v2/
END-of-id3v2/pkg-descr
echo x - id3v2/pkg-comment
sed 's/^X//' >id3v2/pkg-comment << 'END-of-id3v2/pkg-comment'
XCommand line id3v2 tag editor
END-of-id3v2/pkg-comment
echo c - id3v2/files
mkdir -p id3v2/files > /dev/null 2>&1
echo x - id3v2/files/patch-aa
sed 's/^X//' >id3v2/files/patch-aa << 'END-of-id3v2/files/patch-aa'
X--- Makefile.orig	Thu Apr  6 17:23:27 2000
X+++ Makefile	Wed Oct 10 16:59:49 2001
X@@ -1,7 +1,12 @@
X+PREFIX = /usr/local
X+CXXFLAGS += -I${PREFIX}/include
X+LDFLAGS += -L${PREFIX}/lib
X+
X all: id3v2
X 
X-id3v2: Makefile convert.cpp list.cpp id3v2.cpp convert.cpp
X-	g++ -lid3 -g -o id3v2 id3v2.cpp list.cpp convert.cpp
X+id3v2: convert.o list.o id3v2.o
X+	g++ ${LDFLAGS} -lid3 -lz -lgnugetopt -o $@ convert.o list.o id3v2.o
X 
X install: all
X-	cp id3v2 /usr/local/bin/
X+	install -c -s id3v2 ${PREFIX}/bin/id3v2
X+	nroff -man id3v2.1 > ${PREFIX}/man/man1/id3v2.1
END-of-id3v2/files/patch-aa
echo x - id3v2/files/patch-ab
sed 's/^X//' >id3v2/files/patch-ab << 'END-of-id3v2/files/patch-ab'
X--- convert.cpp~	Fri Apr  7 14:11:22 2000
X+++ convert.cpp	Wed Oct 10 15:50:16 2001
X@@ -14,22 +14,22 @@
X         cout << argv[nIndex] << "\"...";
X 
X         myTag.Clear();
X-        myTag.Link(argv[nIndex]); 
X+        myTag.Link(argv[nIndex], ID3TT_ALL); 
X 
X         luint nTags;
X         switch(whichTags) 
X         {
X           case 1: 
X-            nTags = myTag.Strip(V1_TAG);
X+            nTags = myTag.Strip(ID3TT_ID3V1);
X             cout << "id3v1 ";
X             break;
X           case 2:
X-            nTags = myTag.Strip(V2_TAG);
X+            nTags = myTag.Strip(ID3TT_ID3V2);
X             cout << "id3v2 ";
X             break; 
X           case 0:
X           default:
X-            nTags = myTag.Strip(BOTH_ID3_TAGS);
X+            nTags = myTag.Strip(ID3TT_ID3);
X             cout << "id3v1 and v2 ";
X         }
X 
X@@ -61,11 +61,11 @@
X         cout << argv[nIndex] << "...";
X 
X         myTag.Clear();
X-        myTag.Link(argv[nIndex]);
X+        myTag.Link(argv[nIndex], ID3TT_ALL);
X 
X         luint nTags;
X 
X-        nTags = myTag.Update(V2_TAG);
X+        nTags = myTag.Update(ID3TT_ID3V2);
X         cout << " converted ";
X         cout << endl;
X       }
X--- id3v2.cpp~	Sat Apr 22 13:46:44 2000
X+++ id3v2.cpp	Wed Oct 10 15:52:09 2001
X@@ -291,7 +291,7 @@
X         // cout << "Tagging " << argv[nIndex] << ": ";
X 
X         // fix me - not checking to see if we can link to it
X-        myTag.Link(argv[nIndex], false, false);
X+        myTag.Link(argv[nIndex], ID3TT_ID3V2);
X 
X         // loop thru the frames we need to add/modify
X         for(ii = 0; ii < frameCounter; ii++) 
X@@ -557,7 +557,7 @@
X           }
X         }  // steping thru frames
X        
X-        luint nTags = myTag.Update(V2_TAG);
X+        luint nTags = myTag.Update(ID3TT_ID3V2);
X 
X       }
X       catch(ID3_Error err)
X--- list.cpp~	Sat Apr 22 13:47:43 2000
X+++ list.cpp	Wed Oct 10 15:52:37 2001
X@@ -353,7 +353,7 @@
X 
X       if(!PrintID3v1Tag(argv[nIndex]))
X         tags = true;
X-      myTag.Link(argv[nIndex], false, false);
X+      myTag.Link(argv[nIndex], ID3TT_ID3V2);
X       if(!PrintInformation(argv[nIndex],myTag))
X         tags = true;
X       if(!tags)
END-of-id3v2/files/patch-ab
echo x - id3v2/files/patch-ac
sed 's/^X//' >id3v2/files/patch-ac << 'END-of-id3v2/files/patch-ac'
X--- /dev/null	Wed Oct 10 15:39:32 2001
X+++ id3v2.1	Mon Dec 11 00:53:03 2000
X@@ -0,0 +1,74 @@
X+.TH ID3V2 1 "May 2000" "" "User Command"
X+.SH NAME
X+id3v2 \-  Adds/Modifies/Removes/Views id3v2 tags, converts/lists id3v1 tags
X+.SH SYNOPSIS
X+.B id3v2
X+.RB [
X+.I OPTION
X+.RB ]
X+...
X+.RB [
X+.I FILE
X+.RB ]
X+...
X+.br
X+.SH OPTIONS
X+.TP
X+.B \-h, \-\-help
X+Display help and exit
X+.TP
X+.B \-f, \-\-list\-frames
X+Display all possible frames for id3v2
X+.TP
X+.B \-L, \-\-list\-genres
X+Lists all id3v1 genres
X+.TP
X+.B \-v, \-\-version
X+Display version information and exit
X+.TP
X+.B \-l, \-\-list
X+Lists the tag(s) on the file(s)
X+.TP
X+.B \-R, \-\-list-rfc822
X+Lists using an rfc822\-style format for output
X+.TP
X+.B \-d, \-\-delete\-v2
X+Deletes id3v2 tags
X+.TP
X+.B \-s, \-\-delete\-v1
X+Deletes id3v1 tags
X+.TP
X+.B \-D, \-\-delete\-all
X+ Deletes both id3v1 and id3v2 tags
X+.TP
X+.B \-C, \-\-convert
X+ Converts id3v1 tag to id3v2
X+.TP
X+.B \-a, \-\-artist ARTIST
X+Set the artist information
X+.TP
X+.B \-A, \-\-album ALBUM
X+Set the album title information
X+.TP
X+.B \-t, \-\-song SONG
X+Set the song title information
X+.TP
X+.B \-c, \-\-comment DESCRIPTION:COMMENT
X+Set the comment information
X+.TP
X+.B \-g, \-\-genre num
X+Set the genre number
X+.TP
X+.B \-y, \-\-year num
X+Set the year
X+.TP
X+.B \-T, \-\-track num/num
X+Set the track number/(optional) total tracks
X+
X+.SH SEE ALSO
X+id3tag(1), id3info(1), id3convert(1)
X+.SH AUTHOR
X+.B id3v2
X+is by myers <icepick@users.sourceforge.net> with major portions used from id3lib
X+examples. Manual page written for Debian GNU/Linux by Robert Woodcock
X+<rcw@debian.org>.
END-of-id3v2/files/patch-ac
echo x - id3v2/README.html
sed 's/^X//' >id3v2/README.html << 'END-of-id3v2/README.html'
X<html>
X<title> The FreeBSD Ports Collection (audio/id3v2)</title>
X<head><h1> The FreeBSD Ports Collection ("audio/id3v2")</h1> </head> <hr>
X<body>
X
X<p>You are now in the directory for the port "audio/id3v2" (package name "id3v2-0.1.2").
X
X<p>This is the one-line description for this port:
X
X<p><hr><p>
XCommand line id3v2 tag editor
X<p><hr>
X
X<p>Please read the "<a href="pkg-descr">description file</a>" for a
Xlonger description.
X
X<p>Go to the <a href="../../README.html">top of the ports tree</a> for
Xa summary on how to use the ports collection.
X
X<p>
XThis port requires package(s) "" to build.
X<p>
XThis port requires package(s) "" to run.
X
X<p><hr><p>
X<a href="../README.html"> Go up one level</a>
X|
X<a href="../../README.html"> Go to top of ports tree</a>
X</body>
X</html>
END-of-id3v2/README.html
echo x - id3v2/Makefile
sed 's/^X//' >id3v2/Makefile << 'END-of-id3v2/Makefile'
X# New ports collection makefile for:	id3v2
X# Date created:		10 Oct 2001
X# Whom:			David MacKenzie <djm@pix.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	id3v2
XPORTVERSION=	0.1.2
XCATEGORIES=	audio
XMASTER_SITES=	http://download.sourceforge.net/id3v2/
X
XMAINTAINER=	djm@pix.net
X
XLIB_DEPENDS=	id3:${PORTSDIR}/audio/id3lib gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
X
XMAN1=		id3v2.1
X
X.include <bsd.port.mk>
END-of-id3v2/Makefile
echo x - id3v2/distinfo
sed 's/^X//' >id3v2/distinfo << 'END-of-id3v2/distinfo'
XMD5 (id3v2-0.1.2.tar.gz) = 6bc856e78da102c2f012db63d516806e
END-of-id3v2/distinfo
echo x - id3v2/pkg-plist
sed 's/^X//' >id3v2/pkg-plist << 'END-of-id3v2/pkg-plist'
Xbin/id3v2
END-of-id3v2/pkg-plist
exit

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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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