gentoo-ebuilds/gnome-base/gnome-panel/gnome-panel-3.50.0.ebuild
Yakov Mirenkov 4c0bf3ea15
gnome-base/gnome-panel: fix action button building
Fixed error:
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -DLOCALEDIR=\"/usr/share/locale\" -DGMENU_I_KNOW_THIS_IS_UNSTABLE -DG_LOG_DOMAIN=\"action-button\" -DG_LOG_USE_STRUCTURED=1 -I../.. -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libmount -I/usr/include/blkid -I/usr/lib64/libffi/include -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/fribidi -I/usr/include/libpng16 -I/usr/include/pixman-1 -I/usr/include/sysprof-4 -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/gio-unix-2.0 -I/usr/include/elogind -I/usr/include/libmount -I/usr/include/blkid -I/usr/lib64/libffi/include -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/fribidi -I/usr/include/libpng16 -I/usr/include/pixman-1 -I/usr/include/sysprof-4 -pthread -fno-strict-aliasing -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -Wimplicit-function-declaration -Wold-style-definition -Wjump-misses-init -Wall -Wextra -Wundef -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2 -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds -Wreturn-type -Wswitch-enum -Wswitch-default -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference -Wdouble-promotion -Wno-error=unused-parameter -Wno-error=missing-field-initializers -march=native -O3 -c gpab-screensaver-gen.c  -fPIC -DPIC -o .libs/org_gnome_gnome_panel_action_button_la-gpab-screensaver-gen.o
panel-run-dialog.c:43:10: fatal error: gmenu-tree.h: No such file or directory
   43 | #include <gmenu-tree.h>

Closes: https://bugs.gentoo.org/925476
Signed-off-by: Yakov Mirenkov <yakov.mirenkov@yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/35696
Signed-off-by: Florian Schmaus <flow@gentoo.org>
2024-05-28 17:38:57 +02:00

79 lines
2.6 KiB
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit gnome2 toolchain-funcs
DESCRIPTION="The GNOME Flashback Panel"
HOMEPAGE="https://gitlab.gnome.org/GNOME/gnome-panel/"
LICENSE="GPL-2+ FDL-1.1 LGPL-2.1+"
SLOT="0"
IUSE="eds elogind systemd"
REQUIRED_USE="^^ ( elogind systemd )"
KEYWORDS="amd64 ~riscv"
RDEPEND="
>=gnome-base/gnome-desktop-2.91.0:3=
>=x11-libs/gdk-pixbuf-2.26.0:2
>=x11-libs/pango-1.15.4
>=dev-libs/glib-2.67.1:2
>=x11-libs/gtk+-3.22.0:3[X]
>=x11-libs/libwnck-43.0:3
>=gnome-base/gnome-menus-3.7.90:3
eds? ( >=gnome-extra/evolution-data-server-3.46.0:= )
elogind? ( >=sys-auth/elogind-230 )
systemd? ( >=sys-apps/systemd-230:= )
>=x11-libs/cairo-1.0.0[X,glib]
>=dev-libs/libgweather-4.2.0:4=
>=gnome-base/dconf-0.13.4
>=x11-libs/libXrandr-1.3.0
gnome-base/gdm
x11-libs/libX11
x11-libs/libXi
sci-geosciences/geocode-glib:2
sys-auth/polkit
"
DEPEND="${RDEPEND}
x11-base/xorg-proto
"
BDEPEND="
app-text/docbook-xml-dtd:4.1.2
dev-util/gdbus-codegen
dev-util/glib-utils
dev-util/itstool
>=sys-devel/gettext-0.19.8
virtual/pkgconfig
" # yelp-tools and autoconf-archive for eautoreconf
src_configure() {
local myconf=(
--disable-static
$(use_enable eds)
)
# Below elogind MENU_* pkg-config calls need to match up with what upstream has
# each version (libsystemd replaced with libelogind). Explicit per-version die
# to force a manual recheck. Only update the explicit version if the
# "PKG_CHECK_MODULES([MENU], ...)" block did not change; otherwise adjust
# elogind conditional block below accordingly first.
# DO NOT just change the version, look in configure.ac in which PKG_CHECK_MODULES-sections
# libsystemd is used and check if there are new sections where it is used!
if ver_test ${PV} -ne 3.50.0; then
die "Maintainer has not checked over packages MENU pkg-config deps for elogind support"
fi
if use elogind; then
local pkgconfig="$(tc-getPKG_CONFIG)"
myconf+=(
ACTION_BUTTON_CFLAGS="$(${pkgconfig} --cflags gio-unix-2.0 gtk+-3.0 libgnome-menu-3.0 libelogind x11)"
ACTION_BUTTON_LIBS="$(${pkgconfig} --libs gio-unix-2.0 gtk+-3.0 libgnome-menu-3.0 libelogind x11)"
LAUNCHER_CFLAGS="$(${pkgconfig} --cflags gio-unix-2.0 gtk+-3.0 libgnome-menu-3.0 libelogind)"
LAUNCHER_LIBS="$(${pkgconfig} --libs gio-unix-2.0 gtk+-3.0 libgnome-menu-3.0 libelogind)"
MENU_CFLAGS="$(${pkgconfig} --cflags gdm gio-unix-2.0 gtk+-3.0 libgnome-menu-3.0 libelogind)"
MENU_LIBS="$(${pkgconfig} --libs gdm gio-unix-2.0 gtk+-3.0 libgnome-menu-3.0 libelogind)"
)
fi
gnome2_src_configure "${myconf[@]}"
}