blob: 1609aa817fe3e5e19fe2354182274ee8287dcea1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7,8} )
PYTHON_REQ_USE="ncurses"
inherit bash-completion-r1 optfeature python-single-r1
DESCRIPTION="Ncurses interface for the Transmission BitTorrent client"
HOMEPAGE="https://github.com/tremc/tremc"
SRC_URI="https://github.com/tremc/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="${PYTHON_DEPS}"
# Specify a no-op src_compile so upstream's broken Makefile doesn't get used
src_compile() {
:
}
src_install() {
python_doscript tremc
newbashcomp completion/bash/tremc.sh tremc
insinto /usr/share/zsh/site-functions
doins completion/zsh/_tremc
doman tremc.1
dodoc NEWS README.md
}
pkg_postinst() {
optfeature "GeoIP support" dev-python/geoip-python
optfeature "Extract ipv4 from ipv6 addresses" dev-python/ipy
optfeature "Clipboard support" dev-python/pyperclip
}
|