diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-11-10 00:43:02 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-11-10 00:43:02 +0000 |
commit | a5332b59346f7cbf0fdbd148b54aa8a84aaf8190 (patch) | |
tree | e6d8d3589fcd01fbc3f1286185639163daa81424 /net-misc/trackma/trackma-0.7.4.ebuild | |
parent | fceeaf01a28ee71065cf3798b70b77d3bc4ef199 (diff) |
gentoo resync : 10.11.2017
Diffstat (limited to 'net-misc/trackma/trackma-0.7.4.ebuild')
-rw-r--r-- | net-misc/trackma/trackma-0.7.4.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
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" +} |