summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Lohrke <carlo@gentoo.org>2009-02-09 00:51:57 +0000
committerCarsten Lohrke <carlo@gentoo.org>2009-02-09 00:51:57 +0000
commitf9481ed371d70914516bfdf6e1770dfbe29ab08f (patch)
tree99ff4095342127004bd2b02566d04915603161c3 /media-gfx/showimg
parentCleanup ebuild a bit. (diff)
downloadgentoo-2-f9481ed371d70914516bfdf6e1770dfbe29ab08f.tar.gz
gentoo-2-f9481ed371d70914516bfdf6e1770dfbe29ab08f.tar.bz2
gentoo-2-f9481ed371d70914516bfdf6e1770dfbe29ab08f.zip
Fix bug #229093 and #226421. Get rid of the invalid aRts dependency.
(Portage version: 2.2_rc23/cvs/Linux i686)
Diffstat (limited to 'media-gfx/showimg')
-rw-r--r--media-gfx/showimg/ChangeLog11
-rw-r--r--media-gfx/showimg/files/showimg-0.9.5-gcc-4.3.patch59
-rw-r--r--media-gfx/showimg/files/showimg-0.9.5-libpqxx-2.6.9.diff109
-rw-r--r--media-gfx/showimg/showimg-0.9.5-r1.ebuild47
4 files changed, 224 insertions, 2 deletions
diff --git a/media-gfx/showimg/ChangeLog b/media-gfx/showimg/ChangeLog
index c06f22f1648d..a923ff388476 100644
--- a/media-gfx/showimg/ChangeLog
+++ b/media-gfx/showimg/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-gfx/showimg
-# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/showimg/ChangeLog,v 1.43 2008/08/22 22:28:17 maekke Exp $
+# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/showimg/ChangeLog,v 1.44 2009/02/09 00:51:56 carlo Exp $
+
+*showimg-0.9.5-r1 (09 Feb 2009)
+
+ 09 Feb 2009; Carsten Lohrke <carlo@gentoo.org>
+ +files/showimg-0.9.5-gcc-4.3.patch,
+ +files/showimg-0.9.5-libpqxx-2.6.9.diff, +showimg-0.9.5-r1.ebuild:
+ Fix bug #229093 and #226421. Get rid of the invalid aRts dependency.
22 Aug 2008; Markus Meier <maekke@gentoo.org> metadata.xml:
add GLEP 56 USE flag desc from use.local.desc
diff --git a/media-gfx/showimg/files/showimg-0.9.5-gcc-4.3.patch b/media-gfx/showimg/files/showimg-0.9.5-gcc-4.3.patch
new file mode 100644
index 000000000000..634426df4a7b
--- /dev/null
+++ b/media-gfx/showimg/files/showimg-0.9.5-gcc-4.3.patch
@@ -0,0 +1,59 @@
+diff -NrU5 showimg-0.9.5.orig/showimg/kexi/kexidb/parser/sqlparser.cpp showimg-0.9.5/showimg/kexi/kexidb/parser/sqlparser.cpp
+--- showimg-0.9.5.orig/showimg/kexi/kexidb/parser/sqlparser.cpp 2006-01-07 09:47:45.000000000 +0100
++++ showimg-0.9.5/showimg/kexi/kexidb/parser/sqlparser.cpp 2008-04-27 21:30:03.000000000 +0200
+@@ -357,10 +357,11 @@
+ #include <string.h>
+ #include <string>
+ #include <iostream>
+ #include <assert.h>
+ #include <limits.h>
++#include <cstdlib>
+ //TODO OK?
+ #ifdef Q_WS_WIN
+ //workaround for bug on msvc
+ # undef LLONG_MIN
+ #endif
+diff -NrU5 showimg-0.9.5.orig/showimg/kexi/kexidb/parser/sqlparser.y showimg-0.9.5/showimg/kexi/kexidb/parser/sqlparser.y
+--- showimg-0.9.5.orig/showimg/kexi/kexidb/parser/sqlparser.y 2006-01-07 09:47:45.000000000 +0100
++++ showimg-0.9.5/showimg/kexi/kexidb/parser/sqlparser.y 2008-04-27 21:17:31.000000000 +0200
+@@ -438,10 +438,12 @@
+ #include <string.h>
+ #include <string>
+ #include <iostream>
+ #include <assert.h>
+ #include <limits.h>
++#include <alloca.h>
++#include <cstdlib>
+ //TODO OK?
+ #ifdef Q_WS_WIN
+ //workaround for bug on msvc
+ # undef LLONG_MIN
+ #endif
+diff -NrU5 showimg-0.9.5.orig/showimg/showimg/imagelistview.cpp showimg-0.9.5/showimg/showimg/imagelistview.cpp
+--- showimg-0.9.5.orig/showimg/showimg/imagelistview.cpp 2006-01-07 09:48:04.000000000 +0100
++++ showimg-0.9.5/showimg/showimg/imagelistview.cpp 2008-04-27 21:17:31.000000000 +0200
+@@ -47,10 +47,13 @@
+ #include "imagefileiconitem.h"
+ #include "dirfileiconitem.h"
+ #include "imageviewer.h"
+ #include "imagemetainfo.h"
+
++#include <cstdlib>
++#include <climits>
++
+ #ifdef HAVE_KIPI
+ #include "kipiplugins/kipipluginmanager.h"
+ #endif /* HAVE_KIPI */
+
+ #ifdef HAVE_LIBKEXIF
+--- showimg-0.9.5/showimg/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp.orig 2009-02-09 01:29:07.000000000 +0100
++++ showimg-0.9.5/showimg/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp 2009-02-09 01:31:36.000000000 +0100
+@@ -19,6 +19,8 @@
+ #include <klocale.h>
+ #include <kdebug.h>
+
++#include <cstdlib>
++
+ using namespace KexiDB;
+
+
diff --git a/media-gfx/showimg/files/showimg-0.9.5-libpqxx-2.6.9.diff b/media-gfx/showimg/files/showimg-0.9.5-libpqxx-2.6.9.diff
new file mode 100644
index 000000000000..c38c515a79a3
--- /dev/null
+++ b/media-gfx/showimg/files/showimg-0.9.5-libpqxx-2.6.9.diff
@@ -0,0 +1,109 @@
+diff -Naur showimg-0.9.5-orig/showimg/kexi/kexidb/drivers/pqxx/pqxxconnection.cpp showimg-0.9.5-libpqxx/showimg/kexi/kexidb/drivers/pqxx/pqxxconnection.cpp
+--- showimg-0.9.5-orig/showimg/kexi/kexidb/drivers/pqxx/pqxxconnection.cpp 2006-01-07 19:47:46.000000000 +1100
++++ showimg-0.9.5-libpqxx/showimg/kexi/kexidb/drivers/pqxx/pqxxconnection.cpp 2008-11-12 18:11:01.000000000 +1100
+@@ -16,6 +16,8 @@
+ #include <kexidb/error.h>
+ #include <klocale.h>
+ #include <string>
++#include <pqxx/nontransaction>
++#include <pqxx/transaction>
+
+ using namespace KexiDB;
+
+@@ -26,6 +28,7 @@
+ data = new pqxx::nontransaction(*static_cast<pqxxSqlConnection*>(conn)->m_pqxxsql /* todo: add name? */);
+ else
+ data = new pqxx::transaction<>(*static_cast<pqxxSqlConnection*>(conn)->m_pqxxsql /* todo: add name? */);
++
+ if (!static_cast<pqxxSqlConnection*>(conn)->m_trans) {
+ static_cast<pqxxSqlConnection*>(conn)->m_trans = this;
+ }
+@@ -248,7 +251,8 @@
+ // m_trans = new pqxx::nontransaction(*m_pqxxsql);
+
+ //Create a result object through the transaction
+- m_res = new pqxx::result(m_trans->data->exec(statement.utf8()));
++ std::string query(statement.utf8());
++ m_res = new pqxx::result(m_trans->data->exec(query));
+
+ //Commit the transaction
+ if (implicityStarted) {
+diff -Naur showimg-0.9.5-orig/showimg/kexi/kexidb/drivers/pqxx/pqxxconnection.h showimg-0.9.5-libpqxx/showimg/kexi/kexidb/drivers/pqxx/pqxxconnection.h
+--- showimg-0.9.5-orig/showimg/kexi/kexidb/drivers/pqxx/pqxxconnection.h 2006-01-07 19:47:46.000000000 +1100
++++ showimg-0.9.5-libpqxx/showimg/kexi/kexidb/drivers/pqxx/pqxxconnection.h 2008-11-12 18:10:06.000000000 +1100
+@@ -16,7 +16,9 @@
+
+ #include <kexidb/connection.h>
+ #include "pqxxcursor.h"
+-#include <pqxx/all.h>
++#include <pqxx/result>
++#include <pqxx/connection>
++#include <pqxx/transaction_base>
+
+
+ namespace KexiDB
+diff -Naur showimg-0.9.5-orig/showimg/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp showimg-0.9.5-libpqxx/showimg/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp
+--- showimg-0.9.5-orig/showimg/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp 2006-01-07 19:47:46.000000000 +1100
++++ showimg-0.9.5-libpqxx/showimg/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp 2008-11-12 18:10:11.000000000 +1100
+@@ -11,6 +11,7 @@
+ //
+ #include "pqxxcursor.h"
+ #include "pqxxconnection.h"
++#include <pqxx/nontransaction>
+
+ #include <kexidb/error.h>
+ #include <kexidb/global.h>
+@@ -84,7 +85,8 @@
+ m_implicityStarted = true;
+ }
+
+- m_res = new pqxx::result(((pqxxSqlConnection*)connection())->m_trans->data->exec(statement.utf8()));
++ std::string std_statement(statement.utf8());
++ m_res = new pqxx::result(((pqxxSqlConnection*)connection())->m_trans->data->exec(std_statement));
+ ((pqxxSqlConnection*)connection())
+ ->drv_commitTransaction(((pqxxSqlConnection*)connection())->m_trans);
+ // my_conn->m_trans->commit();
+diff -Naur showimg-0.9.5-orig/showimg/kexi/kexidb/drivers/pqxx/pqxxcursor.h showimg-0.9.5-libpqxx/showimg/kexi/kexidb/drivers/pqxx/pqxxcursor.h
+--- showimg-0.9.5-orig/showimg/kexi/kexidb/drivers/pqxx/pqxxcursor.h 2006-01-07 19:47:46.000000000 +1100
++++ showimg-0.9.5-libpqxx/showimg/kexi/kexidb/drivers/pqxx/pqxxcursor.h 2008-11-12 18:10:16.000000000 +1100
+@@ -15,7 +15,8 @@
+ #include <kexidb/cursor.h>
+ #include <kexidb/connection.h>
+
+-#include <pqxx/all.h>
++#include <pqxx/result>
++#include <pqxx/connection>
+
+ namespace KexiDB {
+
+diff -Naur showimg-0.9.5-orig/showimg/kexi/kexidb/drivers/pqxx/pqxxdriver.cpp showimg-0.9.5-libpqxx/showimg/kexi/kexidb/drivers/pqxx/pqxxdriver.cpp
+--- showimg-0.9.5-orig/showimg/kexi/kexidb/drivers/pqxx/pqxxdriver.cpp 2006-01-07 19:47:46.000000000 +1100
++++ showimg-0.9.5-libpqxx/showimg/kexi/kexidb/drivers/pqxx/pqxxdriver.cpp 2008-11-12 18:10:23.000000000 +1100
+@@ -22,6 +22,7 @@
+ #include <kexidb/driver_p.h>
+ #include "pqxxdriver.h"
+ #include "pqxxconnection.h"
++#include <pqxx/util>
+ #include <string>
+
+ #include <kdebug.h>
+@@ -132,14 +133,17 @@
+ //
+ QString pqxxSqlDriver::escapeString( const QString& str) const
+ {
+- return QString(pqxx::Quote(str.ascii()).c_str());
++ // pqxx::sqlesc has been marked as deprecated
++ // in libpqxx 2.6, but this will get us through
++ // until showimg is killed or upgraded to a new kexi
++ return QString(pqxx::sqlesc(str.ascii()).c_str());
+ }
+
+ //==================================================================================
+ //
+ QCString pqxxSqlDriver::escapeString( const QCString& str) const
+ {
+- return QCString(pqxx::Quote(QString(str).ascii()).c_str());
++ return QCString(pqxx::sqlesc(QString(str).ascii()).c_str());
+ }
+
+ //==================================================================================
diff --git a/media-gfx/showimg/showimg-0.9.5-r1.ebuild b/media-gfx/showimg/showimg-0.9.5-r1.ebuild
new file mode 100644
index 000000000000..e9ecb7235222
--- /dev/null
+++ b/media-gfx/showimg/showimg-0.9.5-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/showimg/showimg-0.9.5-r1.ebuild,v 1.1 2009/02/09 00:51:56 carlo Exp $
+
+ARTS_REQUIRED="never"
+
+inherit kde eutils
+
+MY_PV="${PV/?.?.?.?/${PV%.*}-${PV##*.}}"
+MY_P="${PN}-${MY_PV}"
+MY_P=${P/_/-}
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="ShowImg is a feature-rich image viewer for KDE including an image management system."
+HOMEPAGE="http://www.jalix.org/projects/showimg/"
+SRC_URI="http://www.jalix.org/projects/showimg/download/${MY_PV}/${MY_P}.tar.bz2"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="exif kipi mysql postgres"
+
+DEPEND="|| ( =kde-base/libkonq-3.5* =kde-base/kdebase-3.5* )
+ mysql? ( virtual/mysql )
+ postgres? ( virtual/postgresql-base >=dev-libs/libpqxx-2.6.9 )
+ exif? ( media-libs/libkexif )
+ kipi? ( media-plugins/kipi-plugins )
+ media-libs/libexif"
+need-kde 3.5
+
+PATCHES=(
+ "${FILESDIR}/showimg-0.9.5-as-needed.patch"
+ "${FILESDIR}/showimg-0.9.5-gcc-4.3.patch"
+ "${FILESDIR}/showimg-0.9.5-libpqxx-2.6.9.diff"
+ )
+
+src_compile() {
+ local myconf="--with-showimgdb \
+ $(use_with exif kexif) \
+ $(use_enable kipi libkipi) \
+ $(use_enable mysql) \
+ $(use_enable postgres pgsql)"
+
+
+ rm -f "${S}"/configure
+ kde_src_compile all
+}