gui-libs/libdecor: add missing gtk useflag

* improve ebuild

Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
This commit is contained in:
Gonçalo Negrier Duarte
2024-04-03 15:20:44 +01:00
parent 55c1e0adb8
commit 111df12578
3 changed files with 38 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 2023 Gentoo Authors
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -7,21 +7,27 @@ inherit meson
DESCRIPTION="A client-side decorations library for Wayland clients"
HOMEPAGE="https://gitlab.freedesktop.org/libdecor/libdecor"
SRC_URI="https://gitlab.freedesktop.org/libdecor/libdecor/-/archive/${PV}/${P}.tar.bz2"
if [[ ${PV} == "9999" ]]; then
EGIT_REPO_URI="https://gitlab.freedesktop.org/libdecor/libdecor.git"
inherit git-r3
else
SRC_URI="https://gitlab.freedesktop.org/libdecor/libdecor/-/archive/${PV}/${P}.tar.bz2"
KEYWORDS="~amd64"
fi
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+dbus examples"
IUSE="+dbus +gtk examples"
DEPEND="
>=dev-libs/wayland-1.18
>=dev-libs/wayland-protocols-1.15
x11-libs/pango
x11-libs/cairo
x11-libs/gtk+
dbus? ( sys-apps/dbus )
examples? (
virtual/opengl
media-libs/mesa[egl(+)]
media-libs/mesa[opengl(+)]
x11-libs/libxkbcommon
)
"
@@ -31,7 +37,7 @@ src_configure() {
local emesonargs=(
# Avoid auto-magic, built-in feature of meson
-Dauto_features=disabled
$(meson_feature gtk)
$(meson_feature dbus)
$(meson_use examples demo)
-Dinstall_demo=true

View File

@@ -1,26 +1,33 @@
# Copyright 2023 Gentoo Authors
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson git-r3
inherit meson
DESCRIPTION="A client-side decorations library for Wayland clients"
HOMEPAGE="https://gitlab.freedesktop.org/libdecor/libdecor"
EGIT_REPO_URI="https://gitlab.freedesktop.org/libdecor/libdecor.git"
if [[ ${PV} == "9999" ]]; then
EGIT_REPO_URI="https://gitlab.freedesktop.org/libdecor/libdecor.git"
inherit git-r3
else
SRC_URI="https://gitlab.freedesktop.org/libdecor/libdecor/-/archive/${PV}/${P}.tar.bz2"
KEYWORDS="~amd64"
fi
LICENSE="MIT"
SLOT="0"
IUSE="+dbus examples"
IUSE="+dbus +gtk examples"
DEPEND="
>=dev-libs/wayland-1.18
>=dev-libs/wayland-protocols-1.15
x11-libs/pango
x11-libs/cairo
x11-libs/gtk+
dbus? ( sys-apps/dbus )
examples? (
virtual/opengl
media-libs/mesa[egl(+)]
media-libs/mesa[opengl(+)]
x11-libs/libxkbcommon
)
"
@@ -30,7 +37,7 @@ src_configure() {
local emesonargs=(
# Avoid auto-magic, built-in feature of meson
-Dauto_features=disabled
$(meson_feature gtk)
$(meson_feature dbus)
$(meson_use examples demo)
-Dinstall_demo=true

View File

@@ -2,9 +2,18 @@
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<use>
<flag name="dbus">Enable dbus to query current cursor theme </flag>
<flag name="dbus">Enable dbus to query current cursor theme </flag>
<flag name="gtk">Build GTK plugin</flag>
<flag name="examples">Build and install examples</flag>
</use>
<maintainer type="person">
<email>chewi@gentoo.org</email>
<name>James Le Cuirot</name>
</maintainer>
<maintainer type="project">
<email>proxy-maint@gentoo.org</email>
<name>Gentoo Proxy Maintainers</name>
</maintainer>
<maintainer type="person">
<email>gonegrier.duarte@gmail.com</email>
<name>Gonçalo Negrier Duarte</name>
@@ -12,4 +21,4 @@
<upstream>
<remote-id type="freedesktop-gitlab">libdecor/libdecor</remote-id>
</upstream>
</pkgmetadata>
</pkgmetadata>