diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2011-04-12 08:24:32 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2011-04-12 08:24:32 +0000 |
commit | 8e289e1ecb347d5189abe5a320894fe47f5abb39 (patch) | |
tree | 1750713a7556f2542fb6fb8075f0a67251615f0f /graphics/py-exiv2 | |
parent | e29d5654e9f416d889be863e8dd567a647259124 (diff) | |
download | ports-8e289e1ecb347d5189abe5a320894fe47f5abb39.tar.gz ports-8e289e1ecb347d5189abe5a320894fe47f5abb39.zip |
Notes
Diffstat (limited to 'graphics/py-exiv2')
-rw-r--r-- | graphics/py-exiv2/Makefile | 3 | ||||
-rw-r--r-- | graphics/py-exiv2/distinfo | 1 | ||||
-rw-r--r-- | graphics/py-exiv2/files/patch-src__exiv2wrapper.cpp | 27 |
3 files changed, 29 insertions, 2 deletions
diff --git a/graphics/py-exiv2/Makefile b/graphics/py-exiv2/Makefile index e3b57373fe6f..a2b63f4238cf 100644 --- a/graphics/py-exiv2/Makefile +++ b/graphics/py-exiv2/Makefile @@ -7,6 +7,7 @@ PORTNAME= exiv2 PORTVERSION= 0.2.2 +PORTREVISION= 1 CATEGORIES= graphics python MASTER_SITES= http://launchpadlibrarian.net/49194059/ \ http://www.dindin.ru/download/ @@ -16,7 +17,7 @@ DISTNAME= py${PORTNAME}-${PORTVERSION} MAINTAINER= multimedia@FreeBSD.org COMMENT= Python bindings for exiv2 -LIB_DEPENDS= exiv2.9:${PORTSDIR}/graphics/exiv2\ +LIB_DEPENDS= exiv2.10:${PORTSDIR}/graphics/exiv2\ boost_python.4:${PORTSDIR}/devel/boost-python-libs USE_PYTHON= yes diff --git a/graphics/py-exiv2/distinfo b/graphics/py-exiv2/distinfo index f547bf987d6f..d3b0a48047c1 100644 --- a/graphics/py-exiv2/distinfo +++ b/graphics/py-exiv2/distinfo @@ -1,3 +1,2 @@ -MD5 (pyexiv2-0.2.2.tar.bz2) = 3c1aab78bbd44cc3581a0645b0ee56ee SHA256 (pyexiv2-0.2.2.tar.bz2) = 44642d4f632b283551cb05ff4945dfd5bf1724019606fa575214a45d0cbceef7 SIZE (pyexiv2-0.2.2.tar.bz2) = 180998 diff --git a/graphics/py-exiv2/files/patch-src__exiv2wrapper.cpp b/graphics/py-exiv2/files/patch-src__exiv2wrapper.cpp new file mode 100644 index 000000000000..48b178a9ecfa --- /dev/null +++ b/graphics/py-exiv2/files/patch-src__exiv2wrapper.cpp @@ -0,0 +1,27 @@ +--- ./src/exiv2wrapper.cpp.orig 2010-05-27 10:41:11.000000000 +0200 ++++ ./src/exiv2wrapper.cpp 2011-04-12 07:51:12.423977241 +0200 +@@ -457,6 +457,16 @@ + _data = 0; + } + ++#if EXIV2_TEST_VERSION(0,21,0) ++ Exiv2::ExifKey exifKey(key); ++ _type = Exiv2::TypeInfo::typeName(exifKey.defaultTypeId()); ++ _name =exifKey.tagName(); ++ _label = exifKey.tagLabel(); ++ _description = exifKey.tagDesc(); ++ _sectionName = Exiv2::ExifTags::sectionName(exifKey); ++ // section is no longer provided set it to sectionName currently ++ _sectionDescription = _sectionName; ++#else + const uint16_t tag = _datum->tag(); + const Exiv2::IfdId ifd = _datum->ifdId(); + _type = Exiv2::TypeInfo::typeName(Exiv2::ExifTags::tagType(tag, ifd)); +@@ -465,6 +475,7 @@ + _description = Exiv2::ExifTags::tagDesc(tag, ifd); + _sectionName = Exiv2::ExifTags::sectionName(tag, ifd); + _sectionDescription = Exiv2::ExifTags::sectionDesc(tag, ifd); ++#endif + } + + ExifTag::~ExifTag() |