summaryrefslogtreecommitdiff
path: root/net-p2p/transmission-qt4
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/transmission-qt4')
-rw-r--r--net-p2p/transmission-qt4/Manifest2
-rw-r--r--net-p2p/transmission-qt4/files/transmission-qt4-2.80-translations-path-fix.patch17
-rw-r--r--net-p2p/transmission-qt4/metadata.xml8
-rw-r--r--net-p2p/transmission-qt4/transmission-qt4-2.83.ebuild40
-rw-r--r--net-p2p/transmission-qt4/transmission-qt4-2.84.ebuild40
5 files changed, 107 insertions, 0 deletions
diff --git a/net-p2p/transmission-qt4/Manifest b/net-p2p/transmission-qt4/Manifest
new file mode 100644
index 00000000..507ab281
--- /dev/null
+++ b/net-p2p/transmission-qt4/Manifest
@@ -0,0 +1,2 @@
+DIST transmission-2.83.tar.xz 3136752 SHA256 b0e1b050167e7f71b68e01a8d55b984a828fe880df9abfbc6281cb2a0d7d1433 SHA512 a3f56c434282d70d9d373d99410de738f15a350f394c0984150b7d9ea2eda1c0485bf26ab740f433d0271f882edabe5609266e704e55792a7015225da0186fda WHIRLPOOL 2dfeae51acf6a14dbd6374336cc0d4cc09a7387e72a63683785d1bdba36693f68770af7826af36e2be1e7e8e3d4920d77a5b582b801f4997721557161e31959c
+DIST transmission-2.84.tar.xz 3077836 SHA256 a9fc1936b4ee414acc732ada04e84339d6755cd0d097bcbd11ba2cfc540db9eb SHA512 d6c2b17e7f8180a41ac70f5b503dfdb0353c6419db25df1b393b18c987c56fda9e2fd4c3f4cda7f08c301877bd0b4711842c28121ceaaaae87f5792cc6c29a3d WHIRLPOOL 375f9c981d9d2ac308896e8b7d66d3643796c8e97d64a1e0d6fd2bffaafa55988b90ddb4eb98330edf062e835c0c5ce76749e7e66bf6806333673beb7569f342
diff --git a/net-p2p/transmission-qt4/files/transmission-qt4-2.80-translations-path-fix.patch b/net-p2p/transmission-qt4/files/transmission-qt4-2.80-translations-path-fix.patch
new file mode 100644
index 00000000..48638010
--- /dev/null
+++ b/net-p2p/transmission-qt4/files/transmission-qt4-2.80-translations-path-fix.patch
@@ -0,0 +1,17 @@
+This patch was adapted from -2.77-transmations-path-fix.patch for 2.80
+
+Fix path for finding locale-specific files:
+QCoreApplication::applicationDirPath() transforms to '/usr/bin'
+and locale files are in '/usr/share/qt4/translations'
+
+--- qt/app.cc
++++ qt/app.cc
+@@ -98,7 +98,7 @@
+ installTranslator (&qtTranslator);
+
+ // install the transmission translator
+- appTranslator.load (QString (MY_CONFIG_NAME) + "_" + QLocale::system ().name (), QCoreApplication::applicationDirPath () + "/translations");
++ appTranslator.load (QString (MY_CONFIG_NAME) + "_" + QLocale::system ().name (), QLibraryInfo::location(QLibraryInfo::TranslationsPath) );
+ installTranslator (&appTranslator);
+
+ Formatter::initUnits ();
diff --git a/net-p2p/transmission-qt4/metadata.xml b/net-p2p/transmission-qt4/metadata.xml
new file mode 100644
index 00000000..d55995ce
--- /dev/null
+++ b/net-p2p/transmission-qt4/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>slawomir.nizio@sabayon.org</email>
+ <description>maintainer for split Transmission ebuilds based on Gentoo one</description>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-p2p/transmission-qt4/transmission-qt4-2.83.ebuild b/net-p2p/transmission-qt4/transmission-qt4-2.83.ebuild
new file mode 100644
index 00000000..17154818
--- /dev/null
+++ b/net-p2p/transmission-qt4/transmission-qt4-2.83.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+TRANSMISSION_PATCHES=(
+ # Fix for broken translations path
+ "${FILESDIR}"/${PN}-2.80-translations-path-fix.patch
+)
+inherit eutils transmission-2.83
+
+DESCRIPTION="A Fast, Easy and Free BitTorrent client - Qt4 UI"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-qt/qtcore:4=
+ dev-qt/qtgui:4=
+ dev-qt/qtdbus:4=
+"
+DEPEND="${RDEPEND}"
+
+src_install() {
+ pushd qt >/dev/null
+ dodoc README.txt
+
+ dobin transmission-qt
+ doman transmission-qt.1
+
+ domenu ${MY_PN}-qt.desktop || die
+
+ local res
+ for res in 16 22 24 32 48 64 72 96 128 192 256; do
+ doicon -s ${res} icons/hicolor/${res}x${res}/${MY_PN}-qt.png
+ done
+ doicon -s scalable icons/hicolor/scalable/${MY_PN}-qt.svg
+
+ insinto /usr/share/qt4/translations
+ doins translations/*.qm
+ popd >/dev/null
+}
diff --git a/net-p2p/transmission-qt4/transmission-qt4-2.84.ebuild b/net-p2p/transmission-qt4/transmission-qt4-2.84.ebuild
new file mode 100644
index 00000000..008ba988
--- /dev/null
+++ b/net-p2p/transmission-qt4/transmission-qt4-2.84.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+TRANSMISSION_PATCHES=(
+ # Fix for broken translations path
+ "${FILESDIR}"/${PN}-2.80-translations-path-fix.patch
+)
+inherit eutils transmission-2.84
+
+DESCRIPTION="A Fast, Easy and Free BitTorrent client - Qt4 UI"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-qt/qtcore:4=
+ dev-qt/qtgui:4=
+ dev-qt/qtdbus:4=
+"
+DEPEND="${RDEPEND}"
+
+src_install() {
+ pushd qt >/dev/null
+ dodoc README.txt
+
+ dobin transmission-qt
+ doman transmission-qt.1
+
+ domenu ${MY_PN}-qt.desktop || die
+
+ local res
+ for res in 16 22 24 32 48 64 72 96 128 192 256; do
+ doicon -s ${res} icons/hicolor/${res}x${res}/${MY_PN}-qt.png
+ done
+ doicon -s scalable icons/hicolor/scalable/${MY_PN}-qt.svg
+
+ insinto /usr/share/qt4/translations
+ doins translations/*.qm
+ popd >/dev/null
+}