diff options
Diffstat (limited to 'net-misc/trackma')
-rw-r--r-- | net-misc/trackma/Manifest | 4 | ||||
-rw-r--r-- | net-misc/trackma/metadata.xml | 22 | ||||
-rw-r--r-- | net-misc/trackma/trackma-0.7.3.ebuild | 61 | ||||
-rw-r--r-- | net-misc/trackma/trackma-9999.ebuild | 60 |
4 files changed, 147 insertions, 0 deletions
diff --git a/net-misc/trackma/Manifest b/net-misc/trackma/Manifest new file mode 100644 index 000000000000..bc6d61153466 --- /dev/null +++ b/net-misc/trackma/Manifest @@ -0,0 +1,4 @@ +DIST trackma-0.7.3.tar.gz 142450 SHA256 c11da6157d1008a38469f1eaa0fe325230c0d4db0ba861c8a2600d5a63c08dee SHA512 73a7caa1e740e96f29edfcdfc5dbcaf26f280371c176bba69947fff37ca935d56e280a6d3e12c0a7f6283fecdad3d8e8e82c0d45a75d1962e58fdd7458630791 WHIRLPOOL 863688a495abb5e03980d1b3cae023ee24217889cb3cb528acd9339b5601c2e463e82365addb99881765331f4cb34d02d56018bd0c4d9a5c72eb1cab5413e3d3 +EBUILD trackma-0.7.3.ebuild 1982 SHA256 0a33432cafff99c2d8f4185e2ff96064bd586193baf4a8cabdf8853a3f8e77ad SHA512 b4927b0864f1e94d3fafe92d731e9f835cea28cb1e84778a3571e51cd70338624b3b650fd5b6a6c1f0f8fc2e77068caefd41ec02cad6184dbb8949f482dc9217 WHIRLPOOL 71edb267d9a386e0c7c027f54b2ef9d5b6b60de0d05cf2063c52153b70e62edb988363a2544c243d728bfb7467be4614f7418134bb4c930af69a73a3e3cabb56 +EBUILD trackma-9999.ebuild 1934 SHA256 0b9c63e5dbcd4552b7a43ad7a723198295df703cf4bc1bbcdcc5365324713d50 SHA512 7bc242e65fc0fe8c109c3fd449fe57a91bc14d51fbc1780f48bc8034c8d3902dcf388af2598c14b585e506835b60f841871f016f23f31ce3e7fe3caab1c64544 WHIRLPOOL f4c582804e524b42c7b714fbe551805e35a6c66744d89bfcc6ecd965a516d3353794ed806a978f2b85aabb7376043451b3fe62e18eded21a65c1a77cf9527dba +MISC metadata.xml 762 SHA256 aafd7db6855a50f5211a44ef7f21717d2e1b1c6c94a09713f32b83f9cfaf93f9 SHA512 f8229d99e027ce81938d220325147dae3df9fdc5b0fa5619ba73d4f437b885cca474483a29ade8817fe4ab06ae225f3c11bc170408ea933779c04ffb49901733 WHIRLPOOL d9b16a0dc216e5e841ab929b5f2ff96102dfa4415069df288f75d3078547d9bfb1e4c13d1949498601120de658b0d949056552b30c9006940accfb22c0a474ea diff --git a/net-misc/trackma/metadata.xml b/net-misc/trackma/metadata.xml new file mode 100644 index 000000000000..70c3dfa9d170 --- /dev/null +++ b/net-misc/trackma/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<longdescription> + Trackma aims to be a lightweight and simple but feature-rich program for Unix based systems for fetching, updating and using data from personal lists hosted in several media tracking websites. +</longdescription> +<use> + <flag name="cli">Enable cli version</flag> + <flag name="ncurses">Enable curses version</flag> +</use> +<maintainer type="person"> + <email>fdsfgs@krutt.org</email> + <name>soredake</name> +</maintainer> +<maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> +</maintainer> +<upstream> + <remote-id type="github">z411/trackma</remote-id> +</upstream> +</pkgmetadata> diff --git a/net-misc/trackma/trackma-0.7.3.ebuild b/net-misc/trackma/trackma-0.7.3.ebuild new file mode 100644 index 000000000000..ffaed1f4ad6f --- /dev/null +++ b/net-misc/trackma/trackma-0.7.3.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" +} diff --git a/net-misc/trackma/trackma-9999.ebuild b/net-misc/trackma/trackma-9999.ebuild new file mode 100644 index 000000000000..b93d9e2ed7c8 --- /dev/null +++ b/net-misc/trackma/trackma-9999.ebuild @@ -0,0 +1,60 @@ +# 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 git-r3 + +DESCRIPTION="Open multi-site list manager for media tracking sites" +HOMEPAGE="https://github.com/z411/trackma" +EGIT_REPO_URI="https://github.com/z411/${PN}" +LICENSE="GPL-3" +SLOT="0" +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}] + 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" +} |