media-gfx/swayimg: sync USE=X with x11-libs/cairo

USE=X needs to be synced with x11-libs/cairo during build, otherwise the
build will fail.

f4d3cb8692 (commitcomment-148646896)
```
meson.build:53:7: ERROR: Dependency lookup for librsvg-2.0 with method 'pkgconfig' failed: Could not generate cflags for librsvg-2.0:
Package xproto was not found in the pkg-config search path.
Perhaps you should add the directory containing `xproto.pc'
```

Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
Takuya Wakazono
2024-11-02 22:02:11 +09:00
parent 47f16ed504
commit 2dc16d2790
2 changed files with 10 additions and 14 deletions

View File

@@ -1,4 +1,3 @@
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
@@ -33,18 +32,17 @@ RDEPEND="
svg? (
dev-libs/glib:2
gnome-base/librsvg:2
x11-libs/cairo
x11-libs/cairo[X=]
)
tiff? ( media-libs/tiff:= )
webp? ( media-libs/libwebp:= )"
DEPEND="${RDEPEND}
dev-libs/wayland-protocols"
dev-libs/wayland-protocols
svg? ( X? ( x11-base/xorg-proto ) )
"
BDEPEND="
dev-util/wayland-scanner
svg? (
dev-build/cmake
X? ( x11-base/xorg-proto )
)
svg? ( dev-build/cmake )
"
src_configure() {

View File

@@ -1,4 +1,3 @@
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
@@ -34,18 +33,17 @@ RDEPEND="
svg? (
dev-libs/glib:2
gnome-base/librsvg:2
x11-libs/cairo
x11-libs/cairo[X=]
)
tiff? ( media-libs/tiff:= )
webp? ( media-libs/libwebp:= )"
DEPEND="${RDEPEND}
dev-libs/wayland-protocols"
dev-libs/wayland-protocols
svg? ( X? ( x11-base/xorg-proto ) )
"
BDEPEND="
dev-util/wayland-scanner
svg? (
dev-build/cmake
X? ( x11-base/xorg-proto )
)
svg? ( dev-build/cmake )
test? ( dev-cpp/gtest )
"