git.iko.soy/typeable/nixpkgs
on master help sign in
goldendict: 1.0.1 -> 1.5.0.20150801
commit4b9428038e279a40184106a9a8640788d7db01c3 authorGabriel Ebner <gebner@gebner.org> dateWed 23 Sep 2015, 19:06 (11 years ago) parent07cd629
3 files changed+10−68
pkgs/applications/misc/goldendict/default.nix+10−18 pkgs/applications/misc/goldendict/gcc47.patch−40 pkgs/applications/misc/goldendict/goldendict-paths.diff−10
pkgs/applications/misc/goldendict/default.nix+10−18
@@ -1,24 +1,16 @@
1−{ stdenv, fetchurl, pkgconfig, qt4, libXtst, libvorbis, phonon, hunspell }:
1+{ stdenv, fetchFromGitHub, pkgconfig, qt4, libXtst, libvorbis, hunspell, libao, ffmpeg, libeb, lzo, xz, libtiff }:
22stdenv.mkDerivation rec {
3− name = "goldendict-1.0.1";
4− src = fetchurl {
5− url = "mirror://sourceforge/goldendict/${name}-src.tar.bz2";
6− sha256 = "19p99dd5jgs0k66sy30vck7ymqj6dv1lh6w8xw18zczdll2h9yxk";
3+ name = "goldendict-1.5.0.20150801";
4+ src = fetchFromGitHub {
5+ owner = "goldendict";
6+ repo = "goldendict";
7+ rev = "b4bb1e9635c764aa602fbeaeee661f35e461d062";
8+ sha256 = "0dhaa0nii226541al3i2d8x8h7cfh96w5vkw3pa3l74llgrj7yx2";
79 };
8− buildInputs = [ pkgconfig qt4 libXtst libvorbis phonon hunspell ];
9− unpackPhase = ''
10− mkdir ${name}-src
11− cd ${name}-src
12− tar xf ${src}
13− '';
14− patches = [ ./goldendict-paths.diff ./gcc47.patch ];
15− patchFlags = "-p 0";
10+
11+ buildInputs = [ pkgconfig qt4 libXtst libvorbis hunspell libao ffmpeg libeb lzo xz libtiff ];
1612 configurePhase = ''
17− qmake
18− '';
19− installPhase = ''
20− make INSTALL_ROOT="$out" install
21− rm -rf "$out/share/app-install"
13+ qmake PREFIX=$out 'CONFIG+=zim_support'
2214 '';
2315
2416 meta = {
pkgs/applications/misc/goldendict/gcc47.patchdeleted−40
@@ -1,40 +0,0 @@
1−From b00d081da20b9a6b257573c6b23a6bc640c4dab1 Mon Sep 17 00:00:00 2001
2−From: Michael Palimaka <kensington@gentoo.org>
3−Date: Fri, 20 Jul 2012 03:27:38 +1000
4−Subject: [PATCH] Fix build with GCC 4.7 by adding missing includes.
5−
6−---
7− processwrapper.cc | 4 ++++
8− qtsingleapplication/src/qtlocalpeer.cpp | 1 +
9− 2 files changed, 5 insertions(+)
10−
11−diff --git processwrapper.cc processwrapper.cc
12−index f7f3f19..86b985d 100644
13−--- processwrapper.cc
14−+++ processwrapper.cc
15−@@ -2,6 +2,10 @@
16−
17− #include <QtCore>
18−
19−+#if defined(Q_OS_UNIX)
20−+#include <unistd.h>
21−+#endif
22−+
23− #ifdef Q_OS_WIN32
24−
25− #include <windows.h>
26−diff --git qtsingleapplication/src/qtlocalpeer.cpp qtsingleapplication/src/qtlocalpeer.cpp
27−index 382d182..506c142 100644
28−--- qtsingleapplication/src/qtlocalpeer.cpp
29−+++ qtsingleapplication/src/qtlocalpeer.cpp
30−@@ -50,6 +50,7 @@ static PProcessIdToSessionId pProcessIdToSessionId = 0;
31− #endif
32− #if defined(Q_OS_UNIX)
33− #include <time.h>
34−+#include <unistd.h>
35− #endif
36−
37− namespace QtLP_Private {
38−--
39−1.7.11.1
40−
pkgs/applications/misc/goldendict/goldendict-paths.diffdeleted−10
@@ -1,10 +0,0 @@
1−--- goldendict.pro~ 2010-12-27 22:52:21.000000000 +0100
2−+++ goldendict.pro 2010-12-27 22:52:21.000000000 +0100
3−@@ -63,2 +63,2 @@
4−- isEmpty( PREFIX ):PREFIX = /usr/local
5−- DEFINES += PROGRAM_DATA_DIR=\\\"$$PREFIX/share/apps/goldendict/\\\"
6−+ isEmpty( PREFIX ):PREFIX = /
7−+ DEFINES += PROGRAM_DATA_DIR=\\\"$$PREFIX/share/goldendict/\\\"
8−@@ -66 +66 @@
9−- locale.path = $$PREFIX/share/apps/goldendict/locale/
10−+ locale.path = $$PREFIX/share/goldendict/locale/