summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsoredake <fdsfgs@krutt.org>2017-11-04 17:29:41 +0200
committerPatrice Clement <monsieurp@gentoo.org>2017-11-05 16:37:39 +0100
commitd0a6737ee3ba9c530354e56782b715d5f9a75938 (patch)
treea4079f4cf3aa161db2940912d125431ebffb57be /net-misc
parentprofiles: mask >=dev-util/scons-3.0.0 (diff)
downloadgentoo-d0a6737ee3ba9c530354e56782b715d5f9a75938.tar.gz
gentoo-d0a6737ee3ba9c530354e56782b715d5f9a75938.tar.bz2
gentoo-d0a6737ee3ba9c530354e56782b715d5f9a75938.zip
net-misc/trackma: version bump to 0.7.4.
Closes: https://github.com/gentoo/gentoo/pull/6117
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/trackma/Manifest1
-rw-r--r--net-misc/trackma/trackma-0.7.4.ebuild61
2 files changed, 62 insertions, 0 deletions
diff --git a/net-misc/trackma/Manifest b/net-misc/trackma/Manifest
index 87c736ebb492..59adde623ab1 100644
--- a/net-misc/trackma/Manifest
+++ b/net-misc/trackma/Manifest
@@ -1 +1,2 @@
DIST trackma-0.7.3.tar.gz 142450 SHA256 c11da6157d1008a38469f1eaa0fe325230c0d4db0ba861c8a2600d5a63c08dee SHA512 73a7caa1e740e96f29edfcdfc5dbcaf26f280371c176bba69947fff37ca935d56e280a6d3e12c0a7f6283fecdad3d8e8e82c0d45a75d1962e58fdd7458630791 WHIRLPOOL 863688a495abb5e03980d1b3cae023ee24217889cb3cb528acd9339b5601c2e463e82365addb99881765331f4cb34d02d56018bd0c4d9a5c72eb1cab5413e3d3
+DIST trackma-0.7.4.tar.gz 143814 SHA256 d7312ed54a06f2ea546a5ba327eb6c4dffd0bb57f6ef2cc250ed7841ef6b42bd SHA512 88b7eacc6a60fec5b022787337274b95d0fb972dbdd8ffa1a000806612403d8f84a2317e5903ec1ffcdbac91132a960670855991c0885f526fdbc4a1033c3364 WHIRLPOOL 998eb4eae9fbe5dc772e9f8e6d5081ee9823c70bfff5b10786dc8f05c96ecc2de2ca08cfd695d6abe2691a463f003db436105bfd18fe77dab5b6ab0bca0e9653
diff --git a/net-misc/trackma/trackma-0.7.4.ebuild b/net-misc/trackma/trackma-0.7.4.ebuild
new file mode 100644
index 000000000000..ffaed1f4ad6f
--- /dev/null
+++ b/net-misc/trackma/trackma-0.7.4.ebuild
@@ -0,0 +1,61 @@
+# 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 eutils
+
+DESCRIPTION="Open multi-site list manager for media tracking sites"
+HOMEPAGE="https://github.com/z411/trackma"
+SRC_URI="https://github.com/z411/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+ncurses cli gtk inotify qt5"
+REQUIRED_USE="|| ( cli gtk ncurses qt5 )"
+
+DEPEND="ncurses? ( dev-python/urwid[${PYTHON_USEDEP}] )
+ gtk? (
+ dev-python/pygobject:3[${PYTHON_USEDEP},cairo]
+ dev-python/pycairo[${PYTHON_USEDEP}]
+ dev-python/pillow[${PYTHON_USEDEP}]
+ )
+ qt5? (
+ dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets]
+ dev-python/pillow[${PYTHON_USEDEP}]
+ )"
+RDEPEND="sys-process/lsof
+ inotify? ( || ( dev-python/inotifyx dev-python/pyinotify ) )
+ ${DEPEND}"
+
+python_configure_all() {
+ sed -i -e '/trackma-qt4/d' "${S}/setup.py" || die
+ rm "${S}/trackma/ui/qt4ui.py" || die
+ if ! use qt5; then
+ sed -i -e '/trackma-qt/d' "${S}/setup.py" || die
+ rm "${S}/trackma/ui/qtui.py" || die
+ fi
+ if ! use gtk; then
+ sed -i -e '/trackma-gtk/d' "${S}/setup.py" || die
+ rm "${S}/trackma/ui/gtkui.py" || die
+ fi
+ if ! use ncurses; then
+ sed -i -e '/trackma-curses/d' "${S}/setup.py" || die
+ rm "${S}/trackma/ui/curses.py" || die
+ fi
+ if ! use cli; then
+ sed -i -e '/trackma.ui.cli:main/d' "${S}/setup.py" || die
+ rm "${S}/trackma/ui/cli.py" || die
+ fi
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+ newicon "${S}/trackma/data/icon.png" trackma.png
+ use cli && make_desktop_entry "${PN}" "${PN^} (cli)" "${PN}" "Network" "Terminal=true"
+ use ncurses && make_desktop_entry "${PN}-curses" "${PN^} (ncurses)" "${PN}" "Network" "Terminal=true"
+ use gtk && make_desktop_entry "${PN}-gtk" "${PN^} (gtk3)" "${PN}" "Network" "StartupWMClass=trackma-gtk3"
+ use qt5 && make_desktop_entry "${PN}-qt" "${PN^} (qt5)" "${PN}" "Network" "StartupWMClass=trackma-qt5"
+}