pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/libkexiv2 Update to 0.1.5:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0797d4154868
branches:  trunk
changeset: 530749:0797d4154868
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Jul 08 06:44:50 2007 +0000

description:
Update to 0.1.5:

0.1.4, 0.1.5:

Libtool versioning fixes.

0.1.3
------------------------------------------------------------------------
New features
- API changed: added 4 new static methods to get Exif/Iptc tags description/title.
               moved depreceate protected methods used by digiKam core to private.

Bugs fixed from B.K.O (http://bugs.kde.org):
001 ==> 144604: Rotation causes Exif data corruption. GPS data fix

General       : Make size of icons used in album icon view more configurable using a slider
                in status bar.
General       : Removing direct Exiv2 library depency. libkexiv2 interface is used everywhere
                instead.

0.1.2
------------------------------------------------------------------------
New features
- added support for exiv2 from svn (next 0.14.0 release)
- API changed: added printExiv2ExceptionError to manage Exiv2 C++ Exception error message

Bugs fixed from B.K.O (http://bugs.kde.org):
001 ==> 142564: digiKam-signature in iptc and exif tags.
002 ==> 140297: GPS kipi plugin truncates input coordinates, introducing inacuracy.

diffstat:

 graphics/libkexiv2/Makefile         |    5 +-
 graphics/libkexiv2/distinfo         |   11 +-
 graphics/libkexiv2/patches/patch-aa |  507 +-----------------------------------
 graphics/libkexiv2/patches/patch-ab |   24 -
 4 files changed, 10 insertions(+), 537 deletions(-)

diffs (truncated from 578 to 300 lines):

diff -r 9d58979e5367 -r 0797d4154868 graphics/libkexiv2/Makefile
--- a/graphics/libkexiv2/Makefile       Sun Jul 08 05:09:09 2007 +0000
+++ b/graphics/libkexiv2/Makefile       Sun Jul 08 06:44:50 2007 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2007/04/01 14:20:16 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2007/07/08 06:44:50 wiz Exp $
 #
 
-DISTNAME=      libkexiv2-0.1.1
-PKGREVISION=   1
+DISTNAME=      libkexiv2-0.1.5
 CATEGORIES=    graphics
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=kipi/}
 EXTRACT_SUFX=  .tar.bz2
diff -r 9d58979e5367 -r 0797d4154868 graphics/libkexiv2/distinfo
--- a/graphics/libkexiv2/distinfo       Sun Jul 08 05:09:09 2007 +0000
+++ b/graphics/libkexiv2/distinfo       Sun Jul 08 06:44:50 2007 +0000
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.3 2007/04/01 13:48:38 wiz Exp $
+$NetBSD: distinfo,v 1.4 2007/07/08 06:44:50 wiz Exp $
 
-SHA1 (libkexiv2-0.1.1.tar.bz2) = 7218bb8b81955fc4ef376f302bda9b94bd2b68bd
-RMD160 (libkexiv2-0.1.1.tar.bz2) = c9ea6043a58a981628f1d2587148a718106b1803
-Size (libkexiv2-0.1.1.tar.bz2) = 426924 bytes
-SHA1 (patch-aa) = d5fc3c18c22e396fd54636852795753e635f588b
-SHA1 (patch-ab) = 15db31e1e8157129b8b9fd509821152853e6f87a
+SHA1 (libkexiv2-0.1.5.tar.bz2) = 775c596f40a72c57b746ee2f116ac54944de47fb
+RMD160 (libkexiv2-0.1.5.tar.bz2) = 31a90f4bed70a8179c779eea2d5ab4b0ceb728dc
+Size (libkexiv2-0.1.5.tar.bz2) = 431899 bytes
+SHA1 (patch-aa) = 2cb503afdc51b04ff6201cde64505c7f410f0390
diff -r 9d58979e5367 -r 0797d4154868 graphics/libkexiv2/patches/patch-aa
--- a/graphics/libkexiv2/patches/patch-aa       Sun Jul 08 05:09:09 2007 +0000
+++ b/graphics/libkexiv2/patches/patch-aa       Sun Jul 08 06:44:50 2007 +0000
@@ -1,16 +1,8 @@
-$NetBSD: patch-aa,v 1.2 2007/04/01 13:48:39 wiz Exp $
+$NetBSD: patch-aa,v 1.3 2007/07/08 06:44:50 wiz Exp $
 
---- libkexiv2/kexiv2.cpp.orig  2007-02-24 21:13:15.000000000 +0000
+--- libkexiv2/kexiv2.cpp.orig  2007-05-08 15:02:40.000000000 +0000
 +++ libkexiv2/kexiv2.cpp
-@@ -28,7 +28,6 @@
- #include <cstdlib>
- #include <cstdio>
- #include <cassert>
--#include <string>
- #include <cmath>
- #include <iostream>
- #include <iomanip>
-@@ -61,6 +60,20 @@
+@@ -60,6 +60,20 @@
  
  #include "kexiv2.h"
  
@@ -31,496 +23,3 @@
  namespace KExiv2Iface
  {
  
-@@ -102,7 +115,11 @@ QString KExiv2::Exiv2Version()
-                               .arg(EXIV2_PATCH_VERSION);
- }
- 
--// -- Protected Methods -------------------------------------
-+void KExiv2::printExiv2ExceptionError(const QString& msg, Exiv2::Error& e)
-+{
-+    std::string s(e.what());
-+    qDebug("%s (%s)", msg.ascii(), s.c_str());
-+}
- 
- std::string& KExiv2::commentsMetaData()
- {
-@@ -119,8 +136,6 @@ Exiv2::IptcData& KExiv2::iptcMetaData()
-     return d->iptcMetadata;
- }
- 
--// -- Public Methods --------------------------------
--
- bool KExiv2::clearComments()
- {
-     return setComments(QByteArray());
-@@ -135,7 +150,7 @@ bool KExiv2::clearExif()
-     }
-     catch( Exiv2::Error &e )
-     {
--        qDebug("Cannot clear Exif data using Exiv2 (%s)", e.what().c_str());
-+        printExiv2ExceptionError("Cannot clear Exif data using Exiv2 ", e);
-     }    
- 
-     return false;       
-@@ -150,7 +165,7 @@ bool KExiv2::clearIptc()
-     }
-     catch( Exiv2::Error &e )
-     {
--        qDebug("Cannot clear Iptc data using Exiv2 (%s)", e.what().c_str());
-+        printExiv2ExceptionError("Cannot clear Iptc data using Exiv2 ", e);
-     }    
- 
-     return false;       
-@@ -196,7 +211,7 @@ QByteArray KExiv2::getExif() const
-         if (!d->filePath.isEmpty())
-             qDebug ("From file %s", d->filePath.ascii());
- 
--        qDebug("Cannot get Exif data using Exiv2 (%s", e.what().c_str());
-+        printExiv2ExceptionError("Cannot get Exif data using Exiv2 ", e);
-     }       
-     
-     return QByteArray();
-@@ -237,7 +252,7 @@ QByteArray KExiv2::getIptc(bool addIrbHe
-         if (!d->filePath.isEmpty())
-             qDebug ("From file %s", d->filePath.ascii());
- 
--        qDebug("Cannot get Iptc data using Exiv2 (%s)",e.what().c_str());
-+        printExiv2ExceptionError("Cannot get Iptc data using Exiv2 ",e);
-     }       
-     
-     return QByteArray();
-@@ -266,7 +281,7 @@ bool KExiv2::setExif(const QByteArray& d
-         if (!d->filePath.isEmpty())
-             qDebug ("From file %s", d->filePath.ascii());
- 
--        qDebug("Cannot set Exif data using Exiv2 (%s)", e.what().c_str());
-+        printExiv2ExceptionError("Cannot set Exif data using Exiv2 ", e);
-     }        
- 
-     return false;
-@@ -289,7 +304,7 @@ bool KExiv2::setIptc(const QByteArray& d
-         if (!d->filePath.isEmpty())
-             qDebug ("From file %s", d->filePath.ascii());
- 
--        qDebug("Cannot set Iptc data using Exiv2 (%s)",e.what().c_str());
-+        printExiv2ExceptionError("Cannot set Iptc data using Exiv2 ", e);
-     }    
- 
-     return false;    
-@@ -312,7 +327,7 @@ bool KExiv2::setExif(Exiv2::DataBuf cons
-         if (!d->filePath.isEmpty())
-             qDebug ("From file %s", d->filePath.ascii());
- 
--        qDebug("Cannot set Exif data using Exiv2 (%s)", e.what().c_str());
-+        printExiv2ExceptionError("Cannot set Exif data using Exiv2 ", e);
-     }    
- 
-     return false;    
-@@ -335,7 +350,7 @@ bool KExiv2::setIptc(Exiv2::DataBuf cons
-         if (!d->filePath.isEmpty())
-             qDebug ("From file %s", d->filePath.ascii());
- 
--        qDebug("Cannot set Iptc data using Exiv2 (%s)",e.what().c_str());
-+        printExiv2ExceptionError("Cannot set Iptc data using Exiv2 ", e);
-     }        
- 
-     return false;
-@@ -370,9 +385,10 @@ bool KExiv2::load(const QString& filePat
-     }
-     catch( Exiv2::Error &e )
-     {
--        qDebug("Cannot load metadata using Exiv2 (%s)", e.what().c_str());
--        return false;
-+        printExiv2ExceptionError("Cannot load metadata using Exiv2 ", e);
-     }
-+    
-+    return false;
- }
- 
- bool KExiv2::save(const QString& filePath)
-@@ -426,9 +442,10 @@ bool KExiv2::save(const QString& filePat
-     }
-     catch( Exiv2::Error &e )
-     {
--        qDebug("Cannot save metadata using Exiv2 (%s)", e.what().c_str());
--        return false;
-+        printExiv2ExceptionError("Cannot save metadata using Exiv2 ", e);
-     }
-+
-+    return false;
- }
- 
- bool KExiv2::applyChanges()
-@@ -462,7 +479,7 @@ bool KExiv2::setImageProgramId(const QSt
-     }
-     catch( Exiv2::Error &e )
-     {
--        qDebug("Cannot set Program identity into image using Exiv2 (%s)", e.what().c_str());
-+        printExiv2ExceptionError("Cannot set Program identity into image using Exiv2 ", e);
-     }
- 
-     return false;
-@@ -517,7 +534,7 @@ QSize KExiv2::getImageDimensions()
-     }
-     catch( Exiv2::Error &e )
-     {
--        qDebug("Cannot parse image dimensions tag using Exiv2 (%s)", e.what().c_str());
-+        printExiv2ExceptionError("Cannot parse image dimensions tag using Exiv2 ", e);
-     }        
-     
-     return QSize();
-@@ -538,7 +555,7 @@ bool KExiv2::setImageDimensions(const QS
-     }
-     catch( Exiv2::Error &e )
-     {
--        qDebug("Cannot set image dimensions using Exiv2 (%s)", e.what().c_str());
-+        printExiv2ExceptionError("Cannot set image dimensions using Exiv2 ", e);
-     }        
-     
-     return false;
-@@ -615,7 +632,7 @@ QImage KExiv2::getExifThumbnail(bool fix
-     }
-     catch( Exiv2::Error &e )
-     {
--        qDebug("Cannot get Exif Thumbnail using Exiv2 (%s)", e.what().c_str());
-+        printExiv2ExceptionError("Cannot get Exif Thumbnail using Exiv2 ", e);
-     }        
-     
-     return thumbnail;
-@@ -638,7 +655,7 @@ bool KExiv2::setExifThumbnail(const QIma
-     }
-     catch( Exiv2::Error &e )
-     {
--        qDebug("Cannot set Exif Thumbnail using Exiv2 (%s)", e.what().c_str());
-+        printExiv2ExceptionError("Cannot set Exif Thumbnail using Exiv2 ", e);
-     }        
-     
-     return false;
-@@ -729,7 +746,7 @@ KExiv2::ImageOrientation KExiv2::getImag
-     }
-     catch( Exiv2::Error &e )
-     {
--        qDebug("Cannot parse Exif Orientation tag using Exiv2 (%s)", e.what().c_str());
-+        printExiv2ExceptionError("Cannot parse Exif Orientation tag using Exiv2 ", e);
-     }
- 
-     return ORIENTATION_UNSPECIFIED;
-@@ -797,7 +814,7 @@ bool KExiv2::setImageOrientation(ImageOr
-     }
-     catch( Exiv2::Error &e )
-     {
--        qDebug("Cannot set Exif Orientation tag using Exiv2 (%s)", e.what().c_str());
-+        printExiv2ExceptionError("Cannot set Exif Orientation tag using Exiv2 ", e);
-     }        
-     
-     return false;
-@@ -838,7 +855,7 @@ KExiv2::ImageColorWorkSpace KExiv2::getI
-     }
-     catch( Exiv2::Error &e )
-     {
--        qDebug("Cannot parse image color workspace tag using Exiv2 (%s)", e.what().c_str());
-+        printExiv2ExceptionError("Cannot parse image color workspace tag using Exiv2 ", e);
-     }        
-     
-     return WORKSPACE_UNSPECIFIED;    
-@@ -860,7 +877,7 @@ bool KExiv2::setImageColorWorkSpace(Imag
-     }
-     catch( Exiv2::Error &e )
-     {
--        qDebug("Cannot set Exif color workspace tag using Exiv2 (%s)", e.what().c_str());
-+        printExiv2ExceptionError("Cannot set Exif color workspace tag using Exiv2 ", e);
-     }        
-     
-     return false;
-@@ -989,7 +1006,7 @@ QDateTime KExiv2::getImageDateTime() con
-     }
-     catch( Exiv2::Error &e )
-     {
--        qDebug("Cannot parse Exif date & time tag using Exiv2 (%s)", e.what().c_str());
-+        printExiv2ExceptionError("Cannot parse Exif date & time tag using Exiv2 ", e);
-     }        
-     
-     return QDateTime();
-@@ -1034,7 +1051,7 @@ bool KExiv2::setImageDateTime(const QDat
-     }
-     catch( Exiv2::Error &e )
-     {
--        qDebug("Cannot set Date & Time into image using Exiv2 (%s)", e.what().c_str());
-+        printExiv2ExceptionError("Cannot set Date & Time into image using Exiv2 ", e);
-     }        
-     
-     return false;
-@@ -1052,7 +1069,7 @@ bool KExiv2::getImagePreview(QImage& pre
-     }
-     catch( Exiv2::Error &e )
-     {
--        qDebug("Cannot get image preview using Exiv2 (%s)", e.what().c_str());
-+        printExiv2ExceptionError("Cannot get image preview using Exiv2 ", e);
-     }
- 
-     return false;
-@@ -1094,7 +1111,7 @@ bool KExiv2::setImagePreview(const QImag
-     }
-     catch( Exiv2::Error &e )
-     {
--        qDebug("Cannot get image preview using Exiv2 (%s)", e.what().c_str());
-+        printExiv2ExceptionError("Cannot get image preview using Exiv2 ", e);
-     }
- 
-     return false;
-@@ -1121,8 +1138,8 @@ QString KExiv2::getExifTagString(const c
-     }
-     catch( Exiv2::Error &e )
-     {
--        qDebug("Cannot find Exif key '%s' into image using Exiv2 (%s)",
--               exifTagName, e.what().c_str());



Home | Main Index | Thread Index | Old Index