Gentoo Archives: gentoo-commits

From: Johannes Huber <johu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/calamares/
Date: Thu, 29 Mar 2018 18:38:40
Message-Id: 1522348701.13e9e9d71b0a43cc5840460aa8e9cde6ef887db8.johu@gentoo
1 commit: 13e9e9d71b0a43cc5840460aa8e9cde6ef887db8
2 Author: Johannes Huber <johu <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 29 18:24:15 2018 +0000
4 Commit: Johannes Huber <johu <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 29 18:38:21 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13e9e9d7
7
8 app-admin/calamares: Use subslot on yaml-cpp
9
10 Package-Manager: Portage-2.3.26, Repoman-2.3.7
11
12 app-admin/calamares/calamares-3.1.12-r1.ebuild | 80 ++++++++++++++++++++++++++
13 1 file changed, 80 insertions(+)
14
15 diff --git a/app-admin/calamares/calamares-3.1.12-r1.ebuild b/app-admin/calamares/calamares-3.1.12-r1.ebuild
16 new file mode 100644
17 index 00000000000..52dd0d46e51
18 --- /dev/null
19 +++ b/app-admin/calamares/calamares-3.1.12-r1.ebuild
20 @@ -0,0 +1,80 @@
21 +# Copyright 1999-2018 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +PYTHON_COMPAT=( python{3_4,3_5,3_6} )
27 +inherit kde5 python-r1
28 +
29 +DESCRIPTION="Distribution-independent installer framework"
30 +HOMEPAGE="https://calamares.io"
31 +if [[ ${KDE_BUILD_TYPE} == live ]] ; then
32 + EGIT_REPO_URI="https://github.com/${PN}/${PN}"
33 +else
34 + SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz"
35 + KEYWORDS="~amd64"
36 +fi
37 +
38 +LICENSE="GPL-3"
39 +IUSE="+networkmanager pythonqt +upower"
40 +
41 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
42 +
43 +DEPEND="${PYTHON_DEPS}
44 + $(add_frameworks_dep kcoreaddons)
45 + $(add_frameworks_dep kparts)
46 + $(add_frameworks_dep kservice)
47 + $(add_qt_dep qtdbus)
48 + $(add_qt_dep qtdeclarative)
49 + $(add_qt_dep qtgui)
50 + $(add_qt_dep qtnetwork)
51 + $(add_qt_dep qtsvg)
52 + $(add_qt_dep qtwebengine 'widgets')
53 + $(add_qt_dep qtwidgets)
54 + dev-cpp/yaml-cpp:=
55 + >=dev-libs/boost-1.55:=[${PYTHON_USEDEP}]
56 + sys-apps/dbus
57 + sys-apps/dmidecode
58 + sys-auth/polkit-qt[qt5(+)]
59 + >=sys-libs/kpmcore-3.0.3:5=
60 + pythonqt? ( >=dev-python/PythonQt-3.1:=[${PYTHON_USEDEP}] )
61 +"
62 +
63 +RDEPEND="${DEPEND}
64 + app-admin/sudo
65 + dev-libs/libatasmart
66 + net-misc/rsync
67 + >=sys-block/parted-3.0
68 + || ( sys-boot/grub:2 sys-boot/systemd-boot )
69 + sys-boot/os-prober
70 + sys-fs/squashfs-tools
71 + virtual/udev
72 + networkmanager? ( net-misc/networkmanager )
73 + upower? ( sys-power/upower )
74 +"
75 +
76 +src_prepare() {
77 + python_setup
78 + export PYTHON_INCLUDE_DIRS="$(python_get_includedir)" \
79 + PYTHON_INCLUDE_PATH="$(python_get_library_path)"\
80 + PYTHON_CFLAGS="$(python_get_CFLAGS)"\
81 + PYTHON_LIBS="$(python_get_LIBS)"
82 +
83 + eapply_user
84 +}
85 +
86 +src_configure() {
87 + local mycmakeargs=(
88 + -DWEBVIEW_FORCE_WEBKIT=OFF
89 + -DWITH_PYTHONQT=$(usex pythonqt)
90 + )
91 +
92 + kde5_src_configure
93 + sed -i -e 's:pkexec /usr/bin/calamares:calamares-pkexec:' "${S}"/calamares.desktop
94 + sed -i -e 's:Icon=calamares:Icon=drive-harddisk:' "${S}"/calamares.desktop
95 +}
96 +
97 +src_install() {
98 + kde5_src_install
99 + dobin "${FILESDIR}"/calamares-pkexec
100 +}