[kde-plasma/breeze-gtk] Add python 3.6 support
This commit is contained in:
@@ -0,0 +1 @@
|
||||
DIST breeze-gtk-5.19.2.tar.xz 42576 BLAKE2B 345e64235b7ffd3123511ab598f3860823a958d11764c467351e03dfec981874abd6364e8d0f52670e87ca025f21a831ce7066faf078ca5bbdd7cd692490a242 SHA512 6bb2be8fc59f16de6264b067fa60c0511c0cf49af8293cbdfcd08afd56649b51dc1c5c0f4955957d0bfa84d0a22776e8d486b72284f7133bc61dd41e06b3e54f
|
||||
@@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8,9} )
|
||||
PVCUT=$(ver_cut 1-3)
|
||||
inherit ecm kde.org python-any-r1
|
||||
|
||||
DESCRIPTION="Official GTK+ port of Plasma's Breeze widget style"
|
||||
HOMEPAGE="https://invent.kde.org/plasma/breeze-gtk"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="5"
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
BDEPEND="${PYTHON_DEPS}
|
||||
dev-lang/sassc
|
||||
$(python_gen_any_dep 'dev-python/pycairo[${PYTHON_USEDEP}]')
|
||||
>=kde-plasma/breeze-${PVCUT}:5
|
||||
"
|
||||
|
||||
python_check_deps() {
|
||||
has_version "dev-python/pycairo[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
python-any-r1_pkg_setup
|
||||
ecm_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
ecm_src_prepare
|
||||
if has_version "<dev-util/cmake-3.16_rc1"; then
|
||||
eapply "${FILESDIR}"/${PN}-5.16.5-cmake-pre-3.16.patch
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DPython3_EXECUTABLE="${PYTHON}"
|
||||
)
|
||||
if has_version "<dev-util/cmake-3.16_rc1"; then
|
||||
mycmakeargs=( -DPYTHON_EXECUTABLE="${PYTHON}" )
|
||||
fi
|
||||
ecm_src_configure
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
Thanks-to: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>
|
||||
|
||||
--- a/cmake/FindPythonCairo.cmake
|
||||
+++ b/cmake/FindPythonCairo.cmake
|
||||
@@ -1,10 +1,4 @@
|
||||
-if(CMAKE_VERSION VERSION_LESS 3.12.0)
|
||||
- find_package(PythonInterp 3 REQUIRED)
|
||||
- # PythonInterp sets PYTHON_EXECUTABLE
|
||||
-else()
|
||||
- find_package(Python3 COMPONENTS Interpreter REQUIRED)
|
||||
- set(PYTHON_EXECUTABLE "${Python3_EXECUTABLE}")
|
||||
-endif()
|
||||
+find_package(PythonInterp 3 REQUIRED)
|
||||
|
||||
# Check for python cairo
|
||||
execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import cairo"
|
||||
Reference in New Issue
Block a user