summaryrefslogtreecommitdiffstats
path: root/dev-python/pytdeextensions/pytdeextensions-14.1.4.ebuild
blob: 39202a60d5c5cd19dd0b82f05e66f8af39d7c8bf (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
40
41
42
43
44
45
46
# Copyright 2024-2025 The Trinity Desktop Project
# Distributed under the terms of the GNU General Public License v2

EAPI="8"

# We don't actually use autotools build, but it prevents cmake from beeing inherited
TRINITY_BUILD_ADMIN=yes
TRINITY_MODULE_TYPE="libraries"

PYTHON_COMPAT=( python3_{11..14} )
DISTUTILS_SINGLE_IMPL=1
DISTUTILS_EXT=1
# Despite the package provides setup.py, it seems to be incompatible with DISTUTILS_USE_PEP517=setuptools
DISTUTILS_USE_PEP517=standalone

inherit trinity-base-2 distutils-r1

DESCRIPTION="Python extensions for TDE"
HOMEPAGE="https://trinitydesktop.org/"
LICENSE="GPL-2"
SLOT="0"
if [[ ${PV} != *9999* ]] ; then
	KEYWORDS="~amd64 ~arm64 ~x86"
fi
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

DEPEND="${PYTHON_DEPS}
	~dev-python/pytde-${PV}[${PYTHON_SINGLE_USEDEP}]
"
RDEPEND="${DEPEND}"

PATCHES=(
	"${FILESDIR}/${P}-Avoid-byte-compiling-in-case-it-is-disabled.patch"
)

src_compile() {
	esetup.py build build_libpythonize --clib="-lgcc_s"
}

src_install() {
	esetup.py install --root "$D" --skip-build
	python_optimize

	# purge undesireables
	rm -r "${D}/$(python_get_sitedir)"/*.egg-info || die
}