Update of /cvsroot/fink/dists/10.2/unstable/main/finkinfo/libs
In directory usw-pr-cvs1:/tmp/cvs-serv15532/libs

Added Files:
        id3lib37-3.7.13-1.info id3lib37-3.7.13-1.patch 
Log Message:
woohoo! updates finally done :-D


--- NEW FILE: id3lib37-3.7.13-1.info ---
Package: id3lib37
Version: 3.7.13
Revision: 1
Source: mirror:sourceforge:/id3lib/id3lib-%v.tar.gz
Source-MD5: 19ab352ac8d522ebcabb85f2445bfced
SourceDirectory: id3lib-%v
BuildDepends: doxygen
Patch: %f.patch
#SetCC: gcc2
SetCXXFLAGS: -Wno-long-double
#SetCXXFLAGS: -Wno-long-double -fno-common
#SetLDFLAGS: -dynamiclib
UpdateConfigGuess: true
UpdateConfigGuessInDirs: popt
UpdateLibtool: true
UpdateLibtoolInDirs: popt
ConfigureParams: --mandir='${prefix}/share/man' --enable-static --enable-shared
DocFiles: COPYING AUTHORS  README* CHANGELOG HISTORY THANKS TODO 
Description: Library for manipulating ID3v1 and ID3v2 tags

SplitOff: <<
  Package: %N-shlibs
  Description: Shared libraries for manipulating ID3v1 and ID3v2 tags
  DocFiles: COPYING
  InstallScript: <<
    mkdir -p %i/lib
    mv %I/lib/libid3.dylib %i/lib
    mv %I/lib/libid3-3.7.13.0.0.dylib %i/lib
  <<
<<

SplitOff2: <<
  Package: %N-dev
  Depends: %n-shlibs
  Description: Development files for id3lib
  DocFiles: COPYING
  InstallScript: <<
    mkdir -p %i/lib
    mv %I/lib/* %i/lib
    mv %I/include %i/
  <<
<<
SplitOff3: <<
  Package: %N-doc
  Description: Documentation for id3lib
  DocFiles: COPYING AUTHORS  README CHANGELOG HISTORY THANKS TODO 
  InstallScript: <<
    mkdir -p %i/share/doc/%n/html
    cp %b/doc/* %i/share/doc/%n/html
    rm %i/share/doc/%n/html/*.in %i/share/doc/%n/html/*.am 
%i/share/doc/%n/html/Doxyfile
    cp -r %b/examples %i/share/doc/%n
  <<
<<


DescDetail: <<
An open-source, cross-platform software development library for reading, writing, and 
manipulating ID3v1 and ID3v2 tags. It is an on-going project whose primary goals are 
full compliance with the ID3v2 standard, portability across several platforms, and 
providing a powerful and feature-rich API with a highly stable and efficient 
implementation.
<<
License: GPL
Maintainer: Chris Zubrzycki <[EMAIL PROTECTED]>
Homepage: http://id3lib.sourceforge.net/

--- NEW FILE: id3lib37-3.7.13-1.patch ---
diff -ruN id3lib-3.7.13/src/tag_parse_lyrics3.cpp 
id3lib-3.7.13.new/src/tag_parse_lyrics3.cpp
--- id3lib-3.7.13/src/tag_parse_lyrics3.cpp     Mon Sep 11 02:34:06 2000
+++ id3lib-3.7.13.new/src/tag_parse_lyrics3.cpp Thu Sep 26 23:33:14 2002
@@ -200,7 +200,7 @@
       // reserve enough space for lyrics3 + id3v1 tag
       const size_t max_lyr_size = 11 + 5100 + 9 + 128;
 
-      size_t lyr_buffer_size = MIN(max_lyr_size, file.tellg());
+      size_t lyr_buffer_size = MIN(max_lyr_size, (size_t)file.tellg());
 
       file.seekg(- static_cast<long>(lyr_buffer_size), ios::cur);
       if (!file)
@@ -274,7 +274,7 @@
       
       // Using binary minus rather than unary minus to avoid compiler warning
       
-      file.seekg(- MIN(file.tellg(), 
+      file.seekg(- MIN((size_t)file.tellg(), 
                        (static_cast<long>(lyr_size) + 6 + 9 + 3)), ios::cur);
       if (!file)
       {
diff -ruN id3lib-3.7.13/src/utils.cpp id3lib-3.7.13.new/src/utils.cpp
--- id3lib-3.7.13/src/utils.cpp Mon Sep 11 03:46:32 2000
+++ id3lib-3.7.13.new/src/utils.cpp     Tue Oct  1 21:47:19 2002
@@ -25,6 +25,15 @@
 // http://download.sourceforge.net/id3lib/
 
 #include <ctype.h>
+#include <fstream>
+using namespace std;
+
+#if (defined(__GNUC__) && __GNUC__ == 2)
+#define NOCREATE ios::nocreate
+#else
+#define NOCREATE ((std::ios_base::openmode)0)
+#endif
+
 #include "utils.h"
 
 #if defined HAVE_CONFIG_H
@@ -231,7 +240,7 @@
 
   bool exists(const char *name)
   {
-    ifstream file(name, ios::nocreate);
+    ifstream file(name, NOCREATE);
     return file.is_open() != 0;
   }
   
@@ -275,7 +284,7 @@
     {
       file.close();
     }
-    file.open(name, ios::in | ios::out | ios::binary | ios::nocreate);
+    file.open(name, ios::in | ios::out | ios::binary | NOCREATE);
     if (!file)
     {
       return ID3E_ReadOnly;
@@ -290,7 +299,7 @@
     {
       file.close();
     }
-    file.open(name, ios::in | ios::binary | ios::nocreate);
+    file.open(name, ios::in | ios::binary | NOCREATE);
     if (!file)
     {
       return ID3E_NoFile;



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to