gentoo-ebuilds/mate-base/mate-menus/mate-menus-1.28.0.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: ae37e3f389
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

47 lines
989 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
GNOME2_LA_PUNT="yes"
inherit mate
MINOR=$(($(ver_cut 2) % 2))
if [[ ${MINOR} -eq 0 ]]; then
KEYWORDS="amd64 ~arm ~arm64 ~loong ~riscv x86"
fi
DESCRIPTION="MATE menu system, implementing the F.D.O cross-desktop spec"
LICENSE="GPL-2+ LGPL-2+ LGPL-2.1+"
SLOT="0"
IUSE="debug +introspection nls"
COMMON_DEPEND=">=dev-libs/glib-2.50:2
introspection? ( >=dev-libs/gobject-introspection-1.82.0-r2:= )
"
RDEPEND="${COMMON_DEPEND}"
BDEPEND="
>=sys-devel/gettext-0.19.8
virtual/pkgconfig
"
DEPEND="${COMMON_DEPEND}"
src_configure() {
# Do NOT compile with --disable-debug/--enable-debug=no as it disables API
# usage checks.
mate_src_configure \
--enable-debug=$(usex debug yes) \
$(use_enable introspection) \
$(use_enable nls)
}
src_install() {
mate_src_install
exeinto /etc/X11/xinit/xinitrc.d/
newexe "${FILESDIR}/10-xdg-menu-mate-r1" "10-xdg-menu-mate"
}