diff options
author | ryoon <ryoon@pkgsrc.org> | 2011-03-07 07:02:06 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2011-03-07 07:02:06 +0000 |
commit | 91e1a0b320431f361dd23b316e6ed88927614f19 (patch) | |
tree | 160a5728423828f71d7e212bac79de3b098b331d /editors | |
parent | 60a4438b7e973f1f9146a250c431509a82690bd7 (diff) | |
download | pkgsrc-91e1a0b320431f361dd23b316e6ed88927614f19.tar.gz |
Import qgoogletranslator-1.2.1 as editors/qgoogletranslator.
Qt gui for google translate based on ajax api
Diffstat (limited to 'editors')
-rw-r--r-- | editors/qgoogletranslator/DESCR | 1 | ||||
-rw-r--r-- | editors/qgoogletranslator/Makefile | 33 | ||||
-rw-r--r-- | editors/qgoogletranslator/PLIST | 8 | ||||
-rw-r--r-- | editors/qgoogletranslator/distinfo | 8 | ||||
-rw-r--r-- | editors/qgoogletranslator/patches/patch-CMakeLists.txt | 25 | ||||
-rw-r--r-- | editors/qgoogletranslator/patches/patch-src_3rdparty_qtsingleapplication_qtlocalpeer.cpp | 12 | ||||
-rw-r--r-- | editors/qgoogletranslator/patches/patch-src_defines.h.in | 13 |
7 files changed, 100 insertions, 0 deletions
diff --git a/editors/qgoogletranslator/DESCR b/editors/qgoogletranslator/DESCR new file mode 100644 index 00000000000..bf49fe95d51 --- /dev/null +++ b/editors/qgoogletranslator/DESCR @@ -0,0 +1 @@ +Qt gui for google translate based on ajax api diff --git a/editors/qgoogletranslator/Makefile b/editors/qgoogletranslator/Makefile new file mode 100644 index 00000000000..b0f89875706 --- /dev/null +++ b/editors/qgoogletranslator/Makefile @@ -0,0 +1,33 @@ +# $NetBSD: Makefile,v 1.1.1.1 2011/03/07 07:02:06 ryoon Exp $ +# + +DISTNAME= qgoogletranslator-1.2.1 +CATEGORIES= editors +MASTER_SITES= http://qgt.googlecode.com/files/ +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= ryoon@NetBSD.org +HOMEPAGE= http://code.google.com/p/qgt/ +COMMENT= Qt gui for google translate based on ajax api +LICENSE= gnu-gpl-v3 + +PKG_DESTDIR_SUPPORT= user-destdir + +DEPENDS+= mpg123-[0-9]*:../../audio/mpg123 + +USE_LANGUAGES= c++ c +USE_CMAKE= yes + +FIND_PREFIX:= MPG123DIR=mpg123 +.include "../../mk/find-prefix.mk" + +SUBST_CLASSES+= mpg123-cmd +SUBST_STAGE.mpg123-cmd= pre-configure +SUBST_FILES.mpg123-cmd= src/defines.h.in +SUBST_SED.mpg123-cmd= -e 's,/usr/bin/mpg123,${MPG123DIR}/bin/mpg123,' +SUBST_SED.mpg123-cmd+= -e 's,/usr/local/bin/mpg123,${MPG123DIR}/bin/mpg123,' + +.include "../../x11/qt4-tools/buildlink3.mk" +.include "../../x11/qt4-libs/buildlink3.mk" +.include "../../sysutils/desktop-file-utils/desktopdb.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/editors/qgoogletranslator/PLIST b/editors/qgoogletranslator/PLIST new file mode 100644 index 00000000000..385e7dbbc91 --- /dev/null +++ b/editors/qgoogletranslator/PLIST @@ -0,0 +1,8 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2011/03/07 07:02:06 ryoon Exp $ +bin/qgoogletranslator +share/applications/qgoogletranslator.desktop +share/pixmaps/qgoogletranslator.png +share/qgoogletranslator/l10n/English.qm +share/qgoogletranslator/l10n/Japanese.qm +share/qgoogletranslator/l10n/Russian.qm +share/qgoogletranslator/l10n/Ukrainian.qm diff --git a/editors/qgoogletranslator/distinfo b/editors/qgoogletranslator/distinfo new file mode 100644 index 00000000000..d9f2abfafc5 --- /dev/null +++ b/editors/qgoogletranslator/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2011/03/07 07:02:06 ryoon Exp $ + +SHA1 (qgoogletranslator-1.2.1.tar.bz2) = 7c41aef23f770f462ffa3fae502fc62e8fe56453 +RMD160 (qgoogletranslator-1.2.1.tar.bz2) = 1e0032ff76be79a826d8329f5021ef6ee5fdf969 +Size (qgoogletranslator-1.2.1.tar.bz2) = 279120 bytes +SHA1 (patch-aa) = a2665fbd93aa3115f901d4ba519e2bc1aa76ccb7 +SHA1 (patch-ab) = 9334616d59488f8c66daa6ac17a0202dd8fb4bf5 +SHA1 (patch-src_3rdparty_qtsingleapplication_qtlocalpeer.cpp) = 8cfb8aab491ebdf3b46dea7cab089a85718e5cdb 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" |