Diff linuxspa-0.7.1-r2 with a python-mpd2-3.1.1

/usr/portage/dev-python/python-mpd2/python-mpd2-3.1.1.ebuild 2025-05-20 18:21:08.065742378 +0300
1
# Copyright 1999-2024 Gentoo Authors
1
# Copyright 1999-2025 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6
inherit toolchain-funcs
6
DISTUTILS_USE_PEP517=setuptools
7
PYTHON_COMPAT=( python3_{11..14} )
7 8

  
8
MY_PN="LinuxSPA"
9
DESCRIPTION="Linux Serial Protocol Analyser"
10
HOMEPAGE="https://sourceforge.net/projects/serialsniffer/"
11
SRC_URI="https://downloads.sourceforge.net/serialsniffer/${MY_PN}-${PV}.tgz"
12
S="${WORKDIR}/${MY_PN}"
9
inherit distutils-r1
13 10

  
14
LICENSE="GPL-2"
11
DESCRIPTION="Python MPD client library"
12
HOMEPAGE="
13
	https://github.com/Mic92/python-mpd2/
14
	https://pypi.org/project/python-mpd2/
15
"
16
# as of 3.1.0, sdist is missing some doc files
17
SRC_URI="
18
	https://github.com/Mic92/python-mpd2/archive/v${PV}.tar.gz
19
		-> ${P}.gh.tar.gz
20
"
21

  
22
LICENSE="LGPL-3+"
15 23
SLOT="0"
16
KEYWORDS="~amd64 ~x86"
24
KEYWORDS="amd64 arm64 ppc ppc64 x86"
25
IUSE="examples +twisted"
17 26

  
18
PATCHES=( "${FILESDIR}/${P}-compile-fix.patch" )
27
RDEPEND="
28
	twisted? ( dev-python/twisted[${PYTHON_USEDEP}] )
29
"
30
BDEPEND="
31
	test? (
32
		dev-python/twisted[${PYTHON_USEDEP}]
33
	)
34
"
19 35

  
20
src_prepare() {
21
	default
22
	sed -i Makefile \
23
		-e 's| -o | $(LDFLAGS)&|g' \
24
		|| die "sed Makefile"
25
}
36
DOCS=( README.rst doc/{changes.rst,commands_header.txt} doc/topics/. )
26 37

  
27
src_compile() {
28
	emake \
29
		CC="$(tc-getCC)" \
30
		CFLAGS="${CFLAGS} -Wall" \
31
		LDFLAGS="${LDFLAGS}"
38
distutils_enable_sphinx doc --no-autodoc
39
distutils_enable_tests unittest
40

  
41
python_test() {
42
	eunittest mpd.tests
32 43
}
33 44

  
34
src_install() {
35
	dobin LinuxSPA std232
36
	dodoc ASCII_Filter.txt BCircuit.txt LinuxSPA.png READING_Materials.txt \
37
		README TODO connector-1a.ps connector-2a.ps cooked.file raw.file
45
python_install_all() {
46
	distutils-r1_python_install_all
47

  
48
	use examples && dodoc -r examples/.
38 49
}
Thank you!