blob: 790ceb6ebf025f1e4d7b583ada3583d9a9c09fb4 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
ECM_TEST="true"
PYTHON_COMPAT=( python3_{10..13} )
QTMIN="6.7.1"
KFMIN="6.0.0"
inherit ecm python-single-r1
DESCRIPTION="Distribution-independent installer framework"
HOMEPAGE="https://calamares.io"
SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+networkmanager +upower"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="${PYTHON_DEPS}
dev-cpp/yaml-cpp:=
$(python_gen_cond_dep '
>=dev-libs/boost-1.72.0:=[python,${PYTHON_USEDEP}]
dev-libs/libpwquality[python,${PYTHON_USEDEP}]
')
>=dev-qt/qtbase-${QTMIN}:6[concurrent,dbus,gui,network,widgets,xml]
>=dev-qt/qtdeclarative-${QTMIN}:6
>=dev-qt/qtsvg-${QTMIN}:6
>=dev-qt/qtwebengine-${QTMIN}:6[widgets]
>=kde-frameworks/kconfig-${KFMIN}:6
>=kde-frameworks/kcoreaddons-${KFMIN}:6
>=kde-frameworks/kcrash-${KFMIN}:6
>=kde-frameworks/ki18n-${KFMIN}:6
>=kde-frameworks/kpackage-${KFMIN}:6
>=kde-frameworks/kparts-${KFMIN}:6
>=kde-frameworks/kservice-${KFMIN}:6
>=kde-frameworks/kwidgetsaddons-${KFMIN}:6
sys-auth/polkit-qt[qt6(-)]
>=sys-libs/kpmcore-24.01.75:6=
sys-apps/dbus
sys-apps/dmidecode
virtual/libcrypt:=
"
RDEPEND="${DEPEND}
app-admin/sudo
dev-libs/libatasmart
net-misc/rsync
|| (
sys-boot/grub:2
sys-apps/systemd[boot(-)]
sys-apps/systemd-utils[boot]
)
sys-boot/os-prober
sys-fs/squashfs-tools
sys-libs/timezone-data
virtual/udev
networkmanager? ( net-misc/networkmanager )
upower? ( sys-power/upower )
"
BDEPEND=">=dev-qt/qttools-${QTMIN}:6[linguist]"
src_prepare() {
ecm_src_prepare
export PYTHON_INCLUDE_DIRS="$(python_get_includedir)" \
PYTHON_INCLUDE_PATH="$(python_get_library_path)"\
PYTHON_CFLAGS="$(python_get_CFLAGS)"\
PYTHON_LIBS="$(python_get_LIBS)"
cp "${FILESDIR}/calamares-gentoo-branding.desc" \
src/branding/default/branding.desc ||
die "Failed to overwrite branding file"
}
src_configure() {
local mycmakeargs=(
-DINSTALL_CONFIG=ON
-DINSTALL_COMPLETION=ON
-DINSTALL_POLKIT=ON
-DCMAKE_DISABLE_FIND_PACKAGE_LIBPARTED=ON
-DWITH_PYTHON=ON
# Use system instead
-DWITH_PYBIND11=OFF
-DBUILD_APPDATA=ON
-DWITH_QT6=ON
)
ecm_src_configure
}
src_test() {
local myctestargs=(
# Skipped tests:
# packagechoosertest (file exists returned false)
#
# Requires network
# libcalamaresnetworktest
# test_libcalamaresuipaste
#
# Need investigation:
# validate-unpackfsc-unpackfsc
# validate-unpackfsc-1
# load-dummypython
# load-dummypython-1
#
# Requires removed dev-python/toml
# lint-displaymanager
#
# E1101
# lint-dummypython
#
# E0606
# lint-mount
-E "(lint-displaymanager|lint-dummypython|lint-mount|validate-unpackfsc-unpackfsc|validate-unpackfsc-1|packagechoosertest|load-dummypython|load-dummypython-1|libcalamaresnetworktest|test_libcalamaresuipaste)"
)
cmake_src_test
}
|