summaryrefslogtreecommitdiff
blob: 91f15979c1a7b1c5b7540fc670bec8351b794259 (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
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

EGIT_COMMIT="973628fc326177c9deaf3f2e1a435159eb565ae0"
MY_PV="$(ver_cut 1-2)"
PYTHON_COMPAT=( python3_{7..10} )

inherit distutils-r1

DESCRIPTION="Python OOP wrapper library for LCDproc Telnet API"
HOMEPAGE="https://github.com/jinglemansweep/lcdproc"
SRC_URI="https://github.com/jinglemansweep/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"

LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 x86"

RDEPEND="app-misc/lcdproc"

DOCS=( "README.textile" "examples.py" )

src_prepare() {
	default

	# Fix setuptools version warning
	sed -e "s/${MY_PV}/${MY_PV:0:(-3)}.${MY_PV:3}/" -i setup.py || die
}