summaryrefslogtreecommitdiff
path: root/dev-python/meteo-qt
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/meteo-qt')
-rw-r--r--dev-python/meteo-qt/Manifest1
-rw-r--r--dev-python/meteo-qt/files/lrelease.patch12
-rw-r--r--dev-python/meteo-qt/meteo-qt-0.9.5.ebuild34
3 files changed, 47 insertions, 0 deletions
diff --git a/dev-python/meteo-qt/Manifest b/dev-python/meteo-qt/Manifest
new file mode 100644
index 00000000..980367e1
--- /dev/null
+++ b/dev-python/meteo-qt/Manifest
@@ -0,0 +1 @@
+DIST meteo-qt-0.9.5.tar.gz 371843 SHA256 7902883724c8eeb0efd3c6311192048a04dba4e9611f0d153724f5c46d7ae735 SHA512 2c99db8d7c5a44c5d429bf6e558fe8fb12cb2af525649fee302eeefddb4745bc609ba237e8324df41ddc2cc7511244475417a5174730aa4420deac3c707f7b51 WHIRLPOOL cf732d6fcc212bbb1b592354d17a7d5d4a8beb2054373fd7abdcb10d7ef990559b2dad8b07c5dcf11f0b25f1344725b911726c67b2150b1defb2f3b4133afcc7
diff --git a/dev-python/meteo-qt/files/lrelease.patch b/dev-python/meteo-qt/files/lrelease.patch
new file mode 100644
index 00000000..f28e1e3f
--- /dev/null
+++ b/dev-python/meteo-qt/files/lrelease.patch
@@ -0,0 +1,12 @@
+diff -Nur a/setup.py b/setup.py
+--- a/setup.py 2017-03-09 03:38:06.000000000 +0000
++++ b/setup.py 2017-03-12 23:16:27.093692814 +0000
+@@ -11,7 +11,7 @@
+ # os.system('pyrcc5 -o meteo_qt/qrc_resources.py meteo_qt/resources.qrc')
+ os.system('pylupdate5 meteo_qt/meteo_qt.pro')
+ for ts in glob.glob('meteo_qt/translations/*.ts'):
+- os.system('lrelease {0} -qm {1}'.format(ts, (ts[:-2]+'qm')))
++ os.system('/usr/lib64/qt5/bin/lrelease {0} -qm {1}'.format(ts, (ts[:-2]+'qm')))
+
+
+ setup(
diff --git a/dev-python/meteo-qt/meteo-qt-0.9.5.ebuild b/dev-python/meteo-qt/meteo-qt-0.9.5.ebuild
new file mode 100644
index 00000000..7a15c221
--- /dev/null
+++ b/dev-python/meteo-qt/meteo-qt-0.9.5.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{3_4,3_5} )
+
+inherit distutils-r1
+
+DESCRIPTION="System tray application for weather status information"
+HOMEPAGE="https://github.com/dglent/meteo-qt"
+SRC_URI="https://github.com/dglent/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="
+ dev-python/PyQt5[${PYTHON_USEDEP}]
+ dev-python/lxml[${PYTHON_USEDEP}]
+ dev-python/sip[${PYTHON_USEDEP}]
+ dev-python/urllib3[${PYTHON_USEDEP}]
+"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+"
+
+S="${WORKDIR}/${PN}-${PV}"
+
+PATCHES="${FILESDIR}/lrelease.patch"
+
+python_install_all() {
+ distutils-r1_python_install_all
+}