Merge pull request #10022 from gebner/goldendict-20150801

goldendict: 1.0.1 -> 1.5.0.20150801
This commit is contained in:
Arseniy Seroka 2015-09-27 01:51:47 +03:00
commit 4a8e06f1f0
5 changed files with 36 additions and 68 deletions

View file

@ -1,24 +1,16 @@
{ stdenv, fetchurl, pkgconfig, qt4, libXtst, libvorbis, phonon, hunspell }:
{ stdenv, fetchFromGitHub, pkgconfig, qt4, libXtst, libvorbis, hunspell, libao, ffmpeg, libeb, lzo, xz, libtiff }:
stdenv.mkDerivation rec {
name = "goldendict-1.0.1";
src = fetchurl {
url = "mirror://sourceforge/goldendict/${name}-src.tar.bz2";
sha256 = "19p99dd5jgs0k66sy30vck7ymqj6dv1lh6w8xw18zczdll2h9yxk";
name = "goldendict-1.5.0.20150801";
src = fetchFromGitHub {
owner = "goldendict";
repo = "goldendict";
rev = "b4bb1e9635c764aa602fbeaeee661f35e461d062";
sha256 = "0dhaa0nii226541al3i2d8x8h7cfh96w5vkw3pa3l74llgrj7yx2";
};
buildInputs = [ pkgconfig qt4 libXtst libvorbis phonon hunspell ];
unpackPhase = ''
mkdir ${name}-src
cd ${name}-src
tar xf ${src}
'';
patches = [ ./goldendict-paths.diff ./gcc47.patch ];
patchFlags = "-p 0";
buildInputs = [ pkgconfig qt4 libXtst libvorbis hunspell libao ffmpeg libeb lzo xz libtiff ];
configurePhase = ''
qmake
'';
installPhase = ''
make INSTALL_ROOT="$out" install
rm -rf "$out/share/app-install"
qmake PREFIX=$out 'CONFIG+=zim_support'
'';
meta = {

View file

@ -1,40 +0,0 @@
From b00d081da20b9a6b257573c6b23a6bc640c4dab1 Mon Sep 17 00:00:00 2001
From: Michael Palimaka <kensington@gentoo.org>
Date: Fri, 20 Jul 2012 03:27:38 +1000
Subject: [PATCH] Fix build with GCC 4.7 by adding missing includes.
---
processwrapper.cc | 4 ++++
qtsingleapplication/src/qtlocalpeer.cpp | 1 +
2 files changed, 5 insertions(+)
diff --git processwrapper.cc processwrapper.cc
index f7f3f19..86b985d 100644
--- processwrapper.cc
+++ processwrapper.cc
@@ -2,6 +2,10 @@
#include <QtCore>
+#if defined(Q_OS_UNIX)
+#include <unistd.h>
+#endif
+
#ifdef Q_OS_WIN32
#include <windows.h>
diff --git qtsingleapplication/src/qtlocalpeer.cpp qtsingleapplication/src/qtlocalpeer.cpp
index 382d182..506c142 100644
--- qtsingleapplication/src/qtlocalpeer.cpp
+++ qtsingleapplication/src/qtlocalpeer.cpp
@@ -50,6 +50,7 @@ static PProcessIdToSessionId pProcessIdToSessionId = 0;
#endif
#if defined(Q_OS_UNIX)
#include <time.h>
+#include <unistd.h>
#endif
namespace QtLP_Private {
--
1.7.11.1

View file

@ -1,10 +0,0 @@
--- goldendict.pro~ 2010-12-27 22:52:21.000000000 +0100
+++ goldendict.pro 2010-12-27 22:52:21.000000000 +0100
@@ -63,2 +63,2 @@
- isEmpty( PREFIX ):PREFIX = /usr/local
- DEFINES += PROGRAM_DATA_DIR=\\\"$$PREFIX/share/apps/goldendict/\\\"
+ isEmpty( PREFIX ):PREFIX = /
+ DEFINES += PROGRAM_DATA_DIR=\\\"$$PREFIX/share/goldendict/\\\"
@@ -66 +66 @@
- locale.path = $$PREFIX/share/apps/goldendict/locale/
+ locale.path = $$PREFIX/share/goldendict/locale/

View file

@ -0,0 +1,24 @@
{ stdenv, fetchurl, perl, zlib }:
stdenv.mkDerivation rec {
name = "libeb-${version}";
version = "4.4.3";
src = fetchurl {
url = "ftp://ftp.sra.co.jp/pub/misc/eb/eb-${version}.tar.bz2";
sha256 = "0psbdzirazfnn02hp3gsx7xxss9f1brv4ywp6a15ihvggjki1rxb";
};
nativeBuildInputs = [ perl ];
buildInputs = [ zlib ];
meta = with stdenv.lib; {
description = "C library for accessing Japanese CD-ROM books";
longDescription = ''
The EB library is a library for accessing CD-ROM books, which are a
common way to distribute electronic dictionaries in Japan. It supports
the EB, EBG, EBXA, EBXA-C, S-EBXA and EPWING formats.
'';
licence = licenses.bsd3;
maintainers = with maintainers; [ gebner ];
};
}

View file

@ -6839,6 +6839,8 @@ let
libeatmydata = callPackage ../development/libraries/libeatmydata { };
libeb = callPackage ../development/libraries/libeb { };
libebml = callPackage ../development/libraries/libebml { };
libebur128 = callPackage ../development/libraries/libebur128 { };