gentoo/gnome-extra/cinnamon-session/cinnamon-session-6.4.0-r1.ebuild
Alfred Wingate d83e25b6a5
*/*: depend on newer gobject-introspection as a workaround
sed -E '/dev-libs\/gobject-introspection(:=|\s|$|-[0-9]|\[)/ { s/(>=)?dev-libs\/gobject-introspection(-[0-9.r-]*)?/>=dev-libs\/gobject-introspection-1.82.0-r2/ }' */*/*.ebuild -i

+ manually going over to undo the false positives or if the version
  requirement was higher.

Bug: https://bugs.gentoo.org/947058
See-Also: ae37e3f389808700bd0f4343ee04888f0ef179d2
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44336
Closes: https://github.com/gentoo/gentoo/pull/44336
Signed-off-by: Sam James <sam@gentoo.org>
2025-10-26 03:26:28 +00:00

87 lines
1.6 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..13} )
inherit meson gnome2-utils python-single-r1
DESCRIPTION="Cinnamon session manager"
HOMEPAGE="https://projects.linuxmint.com/cinnamon/ https://github.com/linuxmint/cinnamon-session"
SRC_URI="https://github.com/linuxmint/cinnamon-session/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2+ LGPL-2+"
SLOT="0"
KEYWORDS="amd64 ~arm64 ~loong ~ppc64 ~riscv x86"
IUSE="systemd"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
COMMON_DEPEND="
>=dev-libs/glib-2.37.3:2
>=gnome-extra/cinnamon-desktop-6.4:0=
media-libs/libcanberra[pulseaudio]
virtual/opengl
x11-libs/cairo
x11-libs/gdk-pixbuf:2
>=x11-libs/gtk+-3:3[introspection,X]
x11-libs/libICE
x11-libs/libSM
x11-libs/libX11
x11-libs/libXau
x11-libs/libXcomposite
x11-libs/libXext
x11-libs/libXrender
x11-libs/libXtst
x11-libs/pango[X]
>=x11-libs/xapp-2.8.8[introspection]
systemd? (
>=sys-apps/systemd-183
)
!systemd? (
sys-auth/elogind[policykit]
)
"
DEPEND="
${COMMON_DEPEND}
x11-libs/xtrans
"
RDEPEND="
${COMMON_DEPEND}
${PYTHON_DEPS}
>=dev-libs/gobject-introspection-1.82.0-r2
$(python_gen_cond_dep '
dev-python/pygobject:3[${PYTHON_USEDEP}]
dev-python/setproctitle[${PYTHON_USEDEP}]
')
"
BDEPEND="
${PYTHON_DEPS}
dev-util/gdbus-codegen
virtual/pkgconfig
"
src_prepare() {
default
python_fix_shebang data cinnamon-session-quit
}
src_configure() {
local emesonargs=(
-Dipv6=true
-Dxtrans=true
)
meson_src_configure
}
pkg_postinst() {
xdg_icon_cache_update
gnome2_schemas_update
}
pkg_postrm() {
xdg_icon_cache_update
gnome2_schemas_update
}