Permalink
Browse files

FL-467: gexiv2 fork, add misisng dep

  • Loading branch information...
1 parent 13da434 commit 69b88675d3ca0c92f88f1aabd21e5cfea2b3d6ae @angryvincent angryvincent committed Mar 29, 2013
@@ -0,0 +1,2 @@
+DIST libgexiv2-0.4.1.tar.bz2 25484 SHA256 c51e8bae7e53866b474b51e4eef19b98385fbeaf2edac2aefd7d24ed3f7d9d6e SHA512 cbc9b2e6c7bbb6ef1862d6cb2cc8319843dad46d7a14b7340cab368dd6cd9bda5b776ecf3980c835b60b17ba3d49717b4194bdac82324c27013b03df04fddfb5 WHIRLPOOL 2c8300d5971bf7f5cfd11ff5d34d22af32e7951b0e8434e874b840fba0027409e21b5ec72a59182ee14a3fdace62a1196e2c8a3d5c9ee3d763836ba16babc9c4
+DIST libgexiv2_0.6.0.tar.xz 27244 SHA256 54ae999042847852168e507cb2ff25c243b8c63b95aad5068bb536044a15f4a4 SHA512 eb819c974dbe9543f2442711d75e5e494db602833e98259bceeac4a5ddab7bcfae4002f6a34d7a72f8dcf7e4006e56e4a2c3c181a19afa33210a34c87d9e0475 WHIRLPOOL 4cab5d23779446058dc684737e91e3d831640719b50dc0175a0c1bef2ab808b28afa43723d3c2f842dcce332f972f1f9988d8b9fa51474388ed209c25e611a38
@@ -0,0 +1,36 @@
+http://bugs.gentoo.org/349150
+
+--- gexiv2/gexiv2-metadata-exif.cpp
++++ gexiv2/gexiv2-metadata-exif.cpp
+@@ -235,10 +235,13 @@
+ const gchar* gexiv2_metadata_get_exif_tag_label (const gchar* tag) {
+ g_return_val_if_fail(tag != NULL, NULL);
+
+- Exiv2::ExifKey key(tag);
+-
+ try {
++ Exiv2::ExifKey key(tag);
++#if EXIV2_TEST_VERSION(0, 21, 0)
++ return g_intern_string(key.tagLabel().c_str());
++#else
+ return Exiv2::ExifTags::tagLabel (key.tag (), key.ifdId ());
++#endif
+ } catch (Exiv2::Error& e) {
+ LOG_ERROR(e);
+ }
+@@ -249,10 +252,13 @@
+ const gchar* gexiv2_metadata_get_exif_tag_description (const gchar* tag) {
+ g_return_val_if_fail(tag != NULL, NULL);
+
+- Exiv2::ExifKey key(tag);
+-
+ try {
++ Exiv2::ExifKey key(tag);
++#if EXIV2_TEST_VERSION(0, 21, 0)
++ return g_intern_string(key.tagDesc().c_str());
++#else
+ return Exiv2::ExifTags::tagDesc (key.tag (), key.ifdId ());
++#endif
+ } catch (Exiv2::Error& e) {
+ LOG_ERROR(e);
+ }
@@ -0,0 +1,40 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit versionator multilib toolchain-funcs
+
+MY_PV=$(get_version_component_range 1-2)
+
+DESCRIPTION="gexiv2 is a GObject-based wrapper around the Exiv2 library."
+HOMEPAGE="http://trac.yorba.org/wiki/gexiv2/"
+SRC_URI="http://www.yorba.org/download/${PN}/${MY_PV}/lib${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="*"
+IUSE="static-libs"
+
+RDEPEND="
+ dev-libs/glib:2
+ >=media-gfx/exiv2-0.21"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/lib${P}
+
+src_prepare() {
+ tc-export CXX
+ sed -e 's:CFLAGS:CXXFLAGS:g' -i Makefile || die
+}
+
+src_configure() {
+ ./configure --prefix=/usr || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" LIB="$(get_libdir)" install
+ dodoc AUTHORS NEWS README THANKS
+
+ use static-libs || find "${D}" \( -name '*.a' -or -name '*.la' \) -delete
+}
@@ -0,0 +1,49 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} )
+
+inherit eutils multilib python-r1 toolchain-funcs versionator
+
+MY_PV=$(get_version_component_range 1-2)
+
+DESCRIPTION="GObject-based wrapper around the Exiv2 library."
+HOMEPAGE="http://trac.yorba.org/wiki/gexiv2/"
+SRC_URI="http://www.yorba.org/download/${PN}/${MY_PV}/lib${PN}_${PV}.tar.xz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~*"
+IUSE="introspection static-libs"
+
+RDEPEND="
+ dev-libs/glib:2
+ >=media-gfx/exiv2-0.21"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ dev-libs/gobject-introspection"
+
+S=${WORKDIR}/lib${P}
+
+src_prepare() {
+ tc-export CXX
+ sed -e 's:CFLAGS:CXXFLAGS:g' -i Makefile || die
+}
+
+src_configure() {
+ ./configure \
+ --prefix=/usr \
+ $(use_enable introspection) \
+ || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" LIB="$(get_libdir)" install
+ dodoc AUTHORS NEWS README THANKS
+
+ python_moduleinto gi/overrides/
+ python_foreach_impl python_domodule GExiv2.py
+
+ use static-libs || find "${D}" \( -name '*.a' -or -name '*.la' \) -delete
+}

0 comments on commit 69b8867

Please sign in to comment.