Diff albert-0.17.2-r1 with a albert-0.17.3

/usr/portage/x11-misc/albert/albert-0.17.3.ebuild 2023-10-09 14:52:35.928368512 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 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 cmake xdg-utils
6
PYTHON_COMPAT=( python3_{9..11} )
7

  
8
inherit cmake python-single-r1 xdg-utils
7 9

  
8 10
DESCRIPTION="A fast and flexible keyboard launcher"
9 11
HOMEPAGE="https://albertlauncher.github.io/"
10 12

  
11
PLUGINS_HASH="b4cac28be7b265027b00279baba14086d97c4d07"
12
PYBIND11_VERSION="2.6.1"
13
PLUGINS_HASH="ee55048e138028b4889d71e0574e85b2c4d69541"
13 14
PYTHON_EXTENSIONS_COMMIT="7f571aceaf8e60eee8bb21e1ec4efa0e95523d13"
14 15
JETBRAINS_PYTHON_EXTENSION_COMMIT="b7157473cc923fe4f15023c85a032eeab3627652"
15 16
XKCD_PYTHON_EXTENSION_COMMIT="bf88a964473d65b39c9e09eb48dabb847206f06f"
16 17

  
17 18
SRC_URI="
18 19
	https://github.com/albertlauncher/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
19
	https://github.com/albertlauncher/plugins/archive/${PLUGINS_HASH}.tar.gz -> ${P}-plugins.tar.gz
20
	python? (
21
		https://github.com/pybind/pybind11/archive/v${PYBIND11_VERSION}.tar.gz -> ${P}-pybind11-${PYBIND11_VERSION}.tar.gz
22
	)
20
	https://github.com/albertlauncher/plugins/archive/${PLUGINS_HASH}.tar.gz -> ${PN}-plugins-${PLUGINS_HASH}.tar.gz
23 21
	python-extensions? (
24
		https://github.com/albertlauncher/python/archive/${PYTHON_EXTENSIONS_COMMIT}.tar.gz -> ${P}-python-extensions.tar.gz
25
		https://github.com/mqus/jetbrains-albert-plugin/archive/${JETBRAINS_PYTHON_EXTENSION_COMMIT}.tar.gz -> ${P}-jetbrains-python-extension.tar.gz
26
		https://github.com/bergercookie/xkcd-albert-plugin/archive/${XKCD_PYTHON_EXTENSION_COMMIT}.tar.gz -> ${P}-xkcd-python-extension.tar.gz
22
		https://github.com/albertlauncher/python/archive/${PYTHON_EXTENSIONS_COMMIT}.tar.gz -> ${PN}-python-extensions-${PYTHON_EXTENSIONS_COMMIT}.tar.gz
23
		https://github.com/mqus/jetbrains-albert-plugin/archive/${JETBRAINS_PYTHON_EXTENSION_COMMIT}.tar.gz -> ${PN}-jetbrains-python-extension-${JETBRAINS_PYTHON_EXTENSION_COMMIT}.tar.gz
24
		https://github.com/bergercookie/xkcd-albert-plugin/archive/${XKCD_PYTHON_EXTENSION_COMMIT}.tar.gz -> ${PN}-xkcd-python-extension-${XKCD_PYTHON_EXTENSION_COMMIT}.tar.gz
27 25
	)
28 26
"
29 27

  
......
33 31
IUSE="debug +python +python-extensions +statistics virtualbox"
34 32
RESTRICT="mirror bindist"
35 33

  
36
REQUIRED_USE="python-extensions? ( python )"
34
REQUIRED_USE="
35
	python-extensions? ( python )
36
	python? ( ${PYTHON_REQUIRED_USE} )
37
"
37 38

  
38 39
RDEPEND="
39 40
	dev-cpp/muParser
......
48 49
	dev-qt/qtsvg:5
49 50
	dev-qt/qtwidgets:5
50 51
	dev-qt/qtx11extras:5
51
	statistics? ( dev-qt/qtcharts:5 )
52
	virtualbox? ( app-emulation/virtualbox[sdk] )
53 52
	x11-libs/libX11
53
	python? ( ${PYTHON_DEPS} )
54
	statistics? (
55
		dev-qt/qtcharts:5
56
		dev-qt/qtxml:5
57
	)
58
	virtualbox? ( app-emulation/virtualbox[sdk,vboxwebsrv] )
54 59
"
55
DEPEND="${RDEPEND}"
60
DEPEND="${RDEPEND}
61
	python? ( $(python_gen_cond_dep 'dev-python/pybind11[${PYTHON_USEDEP}]') )"
62

  
63
PATCHES=("${FILESDIR}/${P}-find-and-use-python-libraries-and-headers.patch")
56 64

  
57 65
src_prepare() {
58 66
	mv "${WORKDIR}"/plugins-${PLUGINS_HASH}/* "${S}"/plugins || die
59
	if $(use python); then
60
		mv "${WORKDIR}"/pybind11-${PYBIND11_VERSION}/* "${S}"/plugins/python/pybind11 || die
61
	fi
62
	if $(use python-extensions); then
67
	if use python-extensions; then
63 68
		mv "${WORKDIR}"/python-${PYTHON_EXTENSIONS_COMMIT}/* "${S}"/plugins/python/share/modules || die
64 69
		mv "${WORKDIR}"/jetbrains-albert-plugin-${JETBRAINS_PYTHON_EXTENSION_COMMIT}/* "${S}"/plugins/python/share/modules/jetbrains_projects || die
65 70
		mv "${WORKDIR}"/xkcd-albert-plugin-${XKCD_PYTHON_EXTENSION_COMMIT}/* "${S}"/plugins/python/share/modules/xkcd || die
Thank you!