summaryrefslogtreecommitdiff
path: root/editors/qgoogletranslator/patches
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2011-03-07 07:02:06 +0000
committerryoon <ryoon@pkgsrc.org>2011-03-07 07:02:06 +0000
commit91e1a0b320431f361dd23b316e6ed88927614f19 (patch)
tree160a5728423828f71d7e212bac79de3b098b331d /editors/qgoogletranslator/patches
parent60a4438b7e973f1f9146a250c431509a82690bd7 (diff)
downloadpkgsrc-91e1a0b320431f361dd23b316e6ed88927614f19.tar.gz
Import qgoogletranslator-1.2.1 as editors/qgoogletranslator.
Qt gui for google translate based on ajax api
Diffstat (limited to 'editors/qgoogletranslator/patches')
-rw-r--r--editors/qgoogletranslator/patches/patch-CMakeLists.txt25
-rw-r--r--editors/qgoogletranslator/patches/patch-src_3rdparty_qtsingleapplication_qtlocalpeer.cpp12
-rw-r--r--editors/qgoogletranslator/patches/patch-src_defines.h.in13
3 files changed, 50 insertions, 0 deletions
diff --git a/editors/qgoogletranslator/patches/patch-CMakeLists.txt b/editors/qgoogletranslator/patches/patch-CMakeLists.txt
new file mode 100644
index 00000000000..c661b0ce67f
--- /dev/null
+++ b/editors/qgoogletranslator/patches/patch-CMakeLists.txt
@@ -0,0 +1,25 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1.1.1 2011/03/07 07:02:06 ryoon Exp $
+
+--- CMakeLists.txt.orig 2010-11-21 09:54:19.000000000 +0000
++++ CMakeLists.txt
+@@ -13,9 +13,9 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL Linux)
+ set (QGT_L10N_DIRECTORY ${CMAKE_INSTALL_PREFIX}/share/qgoogletranslator/l10n)
+ endif(${CMAKE_SYSTEM_NAME} STREQUAL Linux)
+
+-if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD)
++if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD OR ${CMAKE_SYSTEM_NAME} STREQUAL NetBSD)
+ set (QGT_L10N_DIRECTORY ${CMAKE_INSTALL_PREFIX}/share/qgoogletranslator/l10n)
+-endif(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD)
++endif(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD OR CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
+
+
+ ADD_DEFINITIONS(${QT_DEFINITIONS})
+@@ -133,7 +133,7 @@ endif()
+
+
+ # install for freebsd
+-if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD)
++if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD OR ${CMAKE_SYSTEM_NAME} STREQUAL NetBSD)
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/qgoogletranslator.desktop ${CMAKE_CURRENT_BINARY_DIR}/qgoogletranslator.desktop COPYONLY)
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/artwork/icons/eyeworld_icon.png ${CMAKE_CURRENT_BINARY_DIR}/qgoogletranslator.png COPYONLY)
+ install(TARGETS qgoogletranslator DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
diff --git a/editors/qgoogletranslator/patches/patch-src_3rdparty_qtsingleapplication_qtlocalpeer.cpp b/editors/qgoogletranslator/patches/patch-src_3rdparty_qtsingleapplication_qtlocalpeer.cpp
new file mode 100644
index 00000000000..ae21dcaf5f1
--- /dev/null
+++ b/editors/qgoogletranslator/patches/patch-src_3rdparty_qtsingleapplication_qtlocalpeer.cpp
@@ -0,0 +1,12 @@
+$NetBSD: patch-src_3rdparty_qtsingleapplication_qtlocalpeer.cpp,v 1.1.1.1 2011/03/07 07:02:06 ryoon Exp $
+
+--- src/3rdparty/qtsingleapplication/qtlocalpeer.cpp.orig 2010-11-16 20:24:09.000000000 +0000
++++ src/3rdparty/qtsingleapplication/qtlocalpeer.cpp
+@@ -45,6 +45,7 @@
+ ****************************************************************************/
+
+
++#include "errno.h"
+ #include "qtlocalpeer.h"
+ #include <QtCore/QCoreApplication>
+ #include <QtCore/QTime>
diff --git a/editors/qgoogletranslator/patches/patch-src_defines.h.in b/editors/qgoogletranslator/patches/patch-src_defines.h.in
new file mode 100644
index 00000000000..74c22721a8d
--- /dev/null
+++ b/editors/qgoogletranslator/patches/patch-src_defines.h.in
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_defines.h.in,v 1.1.1.1 2011/03/07 07:02:06 ryoon Exp $
+
+--- src/defines.h.in.orig 2010-11-20 20:07:29.000000000 +0000
++++ src/defines.h.in
+@@ -74,7 +74,7 @@ arg(release_label);
+ #endif
+
+
+- #ifdef Q_OS_FREEBSD
++ #if defined(Q_OS_FREEBSD) || defined(Q_OS_NETBSD)
+ const QString qgt_plugins_dir = "${QGT_PLUGIN_DIRECTORY}";
+ const QString qgt_l10n_dir = "${QGT_L10N_DIRECTORY}";
+ const QString qgt_config_path = QDir::homePath() + QDir::separator() +".config"