diff options
author | Florian Franzmann | 2014-03-15 18:24:04 +0100 |
---|---|---|
committer | Florian Franzmann | 2014-03-17 22:03:14 +0100 |
commit | 34bf6fed0c9a89ecddeb44b1550a1761192ab98f (patch) | |
tree | cf66d5c50636fe100704d5fe18d4f31be48e8efb /spelling | |
parent | 796f3463193d328fb60be1e80f4751054e0c3f88 (diff) |
spelling/goldendict: new spell, a meta-dictionary
Diffstat (limited to 'spelling')
-rw-r--r-- | spelling/goldendict/0001-add-missing-includes.patch | 39 | ||||
-rwxr-xr-x | spelling/goldendict/BUILD | 1 | ||||
-rwxr-xr-x | spelling/goldendict/DEPENDS | 13 | ||||
-rwxr-xr-x | spelling/goldendict/DETAILS | 54 | ||||
-rw-r--r-- | spelling/goldendict/HISTORY | 5 | ||||
-rwxr-xr-x | spelling/goldendict/PRE_BUILD | 5 |
6 files changed, 117 insertions, 0 deletions
diff --git a/spelling/goldendict/0001-add-missing-includes.patch b/spelling/goldendict/0001-add-missing-includes.patch new file mode 100644 index 0000000000..5c913f311f --- /dev/null +++ b/spelling/goldendict/0001-add-missing-includes.patch @@ -0,0 +1,39 @@ +From 470b88a364febcbb36b1bd5f701e023d623a8576 Mon Sep 17 00:00:00 2001 +From: Florian Franzmann <siflfran@hawo.stw.uni-erlangen.de> +Date: Sat, 15 Mar 2014 18:14:29 +0100 +Subject: [PATCH] add missing includes + +--- + processwrapper.cc | 2 ++ + qtsingleapplication/src/qtlocalpeer.cpp | 2 ++ + 2 files changed, 4 insertions(+) + +diff --git a/processwrapper.cc b/processwrapper.cc +index f7f3f19..d6c7b09 100644 +--- a/processwrapper.cc ++++ b/processwrapper.cc +@@ -93,6 +93,8 @@ unsigned int ProcessWrapper::findProcess(const char *name, unsigned int pid_skip + }
+
+ #else
++#include <sys/types.h>
++#include <unistd.h>
+
+ unsigned int ProcessWrapper::currentProcessId()
+ {
+diff --git a/qtsingleapplication/src/qtlocalpeer.cpp b/qtsingleapplication/src/qtlocalpeer.cpp +index 382d182..0247eaf 100644 +--- a/qtsingleapplication/src/qtlocalpeer.cpp ++++ b/qtsingleapplication/src/qtlocalpeer.cpp +@@ -50,6 +50,8 @@ static PProcessIdToSessionId pProcessIdToSessionId = 0; + #endif + #if defined(Q_OS_UNIX) + #include <time.h> ++#include <sys/types.h> ++#include <unistd.h> + #endif + + namespace QtLP_Private { +-- +1.9.0 + diff --git a/spelling/goldendict/BUILD b/spelling/goldendict/BUILD new file mode 100755 index 0000000000..eec3de4651 --- /dev/null +++ b/spelling/goldendict/BUILD @@ -0,0 +1 @@ +qt4_build diff --git a/spelling/goldendict/DEPENDS b/spelling/goldendict/DEPENDS new file mode 100755 index 0000000000..3e63c00701 --- /dev/null +++ b/spelling/goldendict/DEPENDS @@ -0,0 +1,13 @@ +depends qt4 && +depends libvorbis && +depends zlib && +depends hunspell && +depends xproto && +depends recordproto && +depends -sub CXX gcc && +depends libxtst && +depends lzo && +depends bzip2 && +depends libao && +depends ffmpeg + diff --git a/spelling/goldendict/DETAILS b/spelling/goldendict/DETAILS new file mode 100755 index 0000000000..4f8628547d --- /dev/null +++ b/spelling/goldendict/DETAILS @@ -0,0 +1,54 @@ + SPELL=goldendict + VERSION=1.0.1 + SOURCE="${SPELL}-${VERSION}-src.tar.bz2" + SOURCE_URL[0]=http://downloads.sourceforge.net/project/${SPELL}/${SPELL}/${VERSION%.*}/${SOURCE} + SOURCE_HASH=sha512:6c35f804063e14ffc9fe9fbd86e710582c550d10fcabb83e7fb0f65ccad1e18eaa31578a96f0aea67276453239b8035f5a694c7d081f9a6f7a822d2b75ebce55 +SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}" + WEB_SITE="http://goldendict.org/" + LICENSE[0]=GPL + ENTERED=20140315 + SHORT="a feature-rich dictionary lookup program" +cat << EOF +Goldendict has the following features: + + * Use of WebKit for an accurate articles' representation, complete with + all formatting, colors, images and links. + + * Support of multiple dictionary file formats, namely: + - Babylon .BGL files, complete with images and resources - StarDict + .ifo/.dict./.idx/.syn dictionaries - Dictd .index/.dict(.dz) dictionary + files - ABBYY Lingvo .dsl source files, together with abbreviations. The + files can be optionally compressed with dictzip. Dictionary resources can be + packed together into a .zip file. + - ABBYY Lingvo .lsa/.dat audio archives. Those can be indexed separately, or + be referred to from .dsl files. + + * Support for Wikipedia, Wiktionary, or any other MediaWiki-based sites + to perform lookups in. + + * Ability to use arbitrary websites as dictionaries via templated Url + patterns. + + * Ability to run arbitrary external programs for audio playback or content + generation (text-to-speech, man pages etc) (use the latest Git version + for this) + + * Support for looking up and listening to pronunciations from forvo.com + + * Hunspell-based morphology system, used for word stemming and spelling + suggestions. + + * Ability to index arbitrary directories with audio files for pronunciation + lookups. + + * Full Unicode case, diacritics, punctuation and whitespace folding. This means + the ability to type in words without any accents, correct case, + punctuation or spaces (e.g. typing 'Grussen' would yield 'grüßen' + in German dictionaries). + + * Scan popup functionality. A small window pops up with the translation + of a word chosen from another application. + + * Support for global hotkeys. You can spawn the program window at any point, or + directly translate a word from the clipboard. +EOF diff --git a/spelling/goldendict/HISTORY b/spelling/goldendict/HISTORY new file mode 100644 index 0000000000..0a0709cfcb --- /dev/null +++ b/spelling/goldendict/HISTORY @@ -0,0 +1,5 @@ +2014-03-15 Florian Franzmann <siflfran@hawo.stw.uni-erlangen.de> + * DEPENDS, DETAILS, PRE_BUILD, 0001-add-missing-includes.patch: + spell created + + diff --git a/spelling/goldendict/PRE_BUILD b/spelling/goldendict/PRE_BUILD new file mode 100755 index 0000000000..5609248ee2 --- /dev/null +++ b/spelling/goldendict/PRE_BUILD @@ -0,0 +1,5 @@ +mk_source_dir && +cd ${SOURCE_DIRECTORY} && +unpack_file && +patch -p1 < $SPELL_DIRECTORY/0001-add-missing-includes.patch && +sedit "s:/usr/local:${INSTALL_ROOT}/usr:" goldendict.pro |