summaryrefslogtreecommitdiff
path: root/app-text/goldendict
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/goldendict')
-rw-r--r--app-text/goldendict/Manifest7
-rw-r--r--app-text/goldendict/files/goldendict-1.0.1-gcc-4.7.patch40
-rw-r--r--app-text/goldendict/files/goldendict-1.5.0-qtsingleapplication-unbundle.patch18
-rw-r--r--app-text/goldendict/goldendict-1.5.0_rc2-r1.ebuild92
-rw-r--r--app-text/goldendict/metadata.xml12
5 files changed, 169 insertions, 0 deletions
diff --git a/app-text/goldendict/Manifest b/app-text/goldendict/Manifest
new file mode 100644
index 000000000000..07f91d033101
--- /dev/null
+++ b/app-text/goldendict/Manifest
@@ -0,0 +1,7 @@
+AUX goldendict-1.0.1-gcc-4.7.patch 1051 SHA256 d61d95f464e82ed83493cbb5ded3ecc59a34eb879eb9c7140d801ee6e0c4454e SHA512 72dfb5c32cd77eb55251d59861206f6705ab43afabefb17cd4e8d51321bd2b343bbbc88906f0d915fc89df5e53c0d3577b625fff9411b0291f28ff505a595327 WHIRLPOOL 0be27abba1ffc552a4eb4b146fd3745bcc669b2bfa50fd488af71d96b1ad441f4c86a71e473e2fdc3af9e41f4527ce2df3a21814304cb82f45f7c6c311db1a10
+AUX goldendict-1.5.0-qtsingleapplication-unbundle.patch 341 SHA256 9eeb3c70a6807ded4f018116e1c41d2fa86ed2b811d5b19b7e7e833fda4df978 SHA512 86a08b1333a61fee7559028f68779f45cf17da6f7e6f3ea9cae46184279469b91e38f825ad072e0557bcd4188b87fe8f0bd696c4819e3bc96874439d1290e5a3 WHIRLPOOL 09237db13061d0aa8d2d36c13d1428363655bcad284e8e8b5b3959ab526cf3177276cfe05a5f55a1ffb0ec2092a34cb5dcf53f812b66b00cf5579bf8b2451c95
+DIST goldendict-1.5.0_rc2.tar.gz 19413751 SHA256 bccee0a3d3902f8fa31e439e220a405065fff774e5f8c581be2b0743d3f83fde SHA512 b88067a90df42b07d926231f624be8796f031b872443a45f9744ceeea27f39325bc665090f773528a26ad8391ae2423a29c602068bf2cc4ed5870a07646d2362 WHIRLPOOL f385a8536360b9401a67284d95be65d98d5f6b57d5af73852f5ec1af95c4ce36c9903e9ed04dbd67e7bf035b5b6745378344cc5efbb4923ce4ea31988f95f6ff
+EBUILD goldendict-1.5.0_rc2-r1.ebuild 1702 SHA256 2ab9b7f95376cbf2e2a5932fdc25a299481c5867075c8d905d2dc4bf1de3abcc SHA512 c30659f5e7f1170f807d4dab272e939f2cea7bfb015e28a0ae6c2197c8a275c8004d4064b248978aa61515363722b3a9cbb1eebce370648b4bf54877d7ad77e9 WHIRLPOOL 9958cd348be1f4bd5a0191b42b3e2b20811ef508f92fb6eae44fb34ebcef983828129a1a3f7bb56c3def795e58d60a728e8276564cde4a02526f7bf2088bb365
+MISC ChangeLog 3182 SHA256 e0c78327b3d7b296bf0e5475c360f3e30c8da4ec3e17c7b446cf910dcfe58ef4 SHA512 c888e60a224656d5f8cb634ec3ebb14816fef40cda211cebcd48012818d739357ed0fd7b5c9f2123f6a369ac87916d5facd1e69c198da2dab8c3a4f557b7d5f6 WHIRLPOOL f5368e8ccc87e5e35ab236c5e215f6aa99c0cab9121bc73bc027faf7d34922911e6d5a5356cf9518f83933fe36703ed0a72125c8d757a29001a068ac35db6d78
+MISC ChangeLog-2015 3149 SHA256 15cf425a076746e32692a396d53aed64940e0492a7d09690db10843d39bd39be SHA512 cec44537dc9b8f8e17c6844287d9e5c7e572f0aff7b6b1c0e06bf2a15f896f07ab63d826934aa55087d6f4abaa3a958a7a2c86a644422bd0f6701b122842f5df WHIRLPOOL 739fd1189a0e6f8dd83bbaab8e30fb8ebfb78dac92b8d1e546b7ccc56bd84583ecb7fcfbebbe2bb168a81d33f2f729f33f671cc23abf17a8cb634fae7cd05a1c
+MISC metadata.xml 388 SHA256 84d0c56ecc3c639c8d0444e0727491cc816de5a0f41c481fc12a3b7ce997062b SHA512 c9be98ab768c3c13ff4b03336fc90314ec0e233d0860501d85b5c65250965d994a3f8ab4cf8f58cee3da27fdc37964c10854bc66b9cc16e5f558f0b7a4a39f42 WHIRLPOOL 3c06b0bc0005d72ede5497cdccef2f5c773eb137688fa520af3c61d464fd7fc0e15738fe5968ccbfe869d3f74d2000d5db2c9e5eb654ffb6a28121a57f7f32fd
diff --git a/app-text/goldendict/files/goldendict-1.0.1-gcc-4.7.patch b/app-text/goldendict/files/goldendict-1.0.1-gcc-4.7.patch
new file mode 100644
index 000000000000..24995a221b3c
--- /dev/null
+++ b/app-text/goldendict/files/goldendict-1.0.1-gcc-4.7.patch
@@ -0,0 +1,40 @@
+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 a/processwrapper.cc b/processwrapper.cc
+index f7f3f19..86b985d 100644
+--- a/processwrapper.cc
++++ b/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 a/qtsingleapplication/src/qtlocalpeer.cpp b/qtsingleapplication/src/qtlocalpeer.cpp
+index 382d182..506c142 100644
+--- a/qtsingleapplication/src/qtlocalpeer.cpp
++++ b/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
+
diff --git a/app-text/goldendict/files/goldendict-1.5.0-qtsingleapplication-unbundle.patch b/app-text/goldendict/files/goldendict-1.5.0-qtsingleapplication-unbundle.patch
new file mode 100644
index 000000000000..01fdb3b2a297
--- /dev/null
+++ b/app-text/goldendict/files/goldendict-1.5.0-qtsingleapplication-unbundle.patch
@@ -0,0 +1,18 @@
+--- a/goldendict.pro
++++ b/goldendict.pro
+@@ -36,7 +36,8 @@
+ QT += sql
+ CONFIG += exceptions \
+ rtti \
+- stl
++ stl \
++ qtsingleapplication
+ OBJECTS_DIR = build
+ UI_DIR = build
+ MOC_DIR = build
+@@ -632,5 +633,3 @@
+ TS_OUT ~= s/.ts/.qm/g
+ PRE_TARGETDEPS += $$TS_OUT
+
+-include( qtsingleapplication/src/qtsingleapplication.pri )
+-
diff --git a/app-text/goldendict/goldendict-1.5.0_rc2-r1.ebuild b/app-text/goldendict/goldendict-1.5.0_rc2-r1.ebuild
new file mode 100644
index 000000000000..0ac7d9edbe8c
--- /dev/null
+++ b/app-text/goldendict/goldendict-1.5.0_rc2-r1.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PV=${PV^^}
+MY_PV=${MY_PV/_/-}
+inherit eutils qmake-utils
+
+DESCRIPTION="Feature-rich dictionary lookup program"
+HOMEPAGE="http://goldendict.org/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug ffmpeg libav"
+
+RDEPEND="
+ app-arch/bzip2
+ >=app-text/hunspell-1.2:=
+ dev-libs/eb
+ dev-libs/lzo
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qthelp:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtsingleapplication[qt5]
+ dev-qt/qtsvg:5
+ dev-qt/qtwebkit:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtx11extras:5
+ dev-qt/qtxml:5
+ media-libs/libvorbis
+ media-libs/tiff:0
+ sys-libs/zlib
+ x11-libs/libX11
+ x11-libs/libXtst
+ ffmpeg? (
+ media-libs/libao
+ libav? ( media-video/libav:0= )
+ !libav? ( media-video/ffmpeg:0= )
+ )
+"
+DEPEND="${RDEPEND}
+ dev-qt/linguist-tools:5
+ virtual/pkgconfig
+"
+
+PATCHES=( "${FILESDIR}/${PN}-1.5.0-qtsingleapplication-unbundle.patch" )
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+src_prepare() {
+ default
+
+ # disable git
+ sed -i \
+ -e '/git describe/s/^/#/' \
+ ${PN}.pro || die
+
+ # fix installation path
+ sed -i \
+ -e '/PREFIX = /s:/usr/local:/usr:' \
+ ${PN}.pro || die
+
+ # add trailing semicolon
+ sed -i -e '/^Categories/s/$/;/' redist/${PN}.desktop || die
+}
+
+src_configure() {
+ local myconf=()
+
+ if ! use ffmpeg ; then
+ myconf+=( DISABLE_INTERNAL_PLAYER=1 )
+ fi
+
+ eqmake5 "${myconf[@]}"
+}
+
+src_install() {
+ dobin ${PN}
+ domenu redist/${PN}.desktop
+ doicon redist/icons/${PN}.png
+
+ insinto /usr/share/apps/${PN}/locale
+ doins locale/*.qm
+
+ insinto /usr/share/${PN}/help
+ doins help/*.qch
+}
diff --git a/app-text/goldendict/metadata.xml b/app-text/goldendict/metadata.xml
new file mode 100644
index 000000000000..54e5ea46ce69
--- /dev/null
+++ b/app-text/goldendict/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">goldendict/goldendict</remote-id>
+ <remote-id type="sourceforge">goldendict</remote-id>
+ </upstream>
+</pkgmetadata>