summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Vinogradov2022-08-13 14:22:57 -0400
committerPavel Vinogradov2022-08-13 14:24:08 -0400
commit63826fdf402ae3a77160a7552e54922229b0109e (patch)
tree6c1c037004cd7f1044f275421e7b9a703932e552
parentea1ac2e0db7068bebf8e9ba283bc29133e190c38 (diff)
x11-libs/cairo: fixed a typo, reorganized cleanup code
-rwxr-xr-xx11-libs/cairo/CONFIGURE4
-rwxr-xr-xx11-libs/cairo/DEPENDS6
-rw-r--r--x11-libs/cairo/HISTORY4
-rwxr-xr-xx11-libs/cairo/SUB_DEPENDS2
4 files changed, 10 insertions, 6 deletions
diff --git a/x11-libs/cairo/CONFIGURE b/x11-libs/cairo/CONFIGURE
index 0b78b2acc4..3cf6765b58 100755
--- a/x11-libs/cairo/CONFIGURE
+++ b/x11-libs/cairo/CONFIGURE
@@ -2,6 +2,10 @@
list_remove CAIRO_OPTS "--enable-tee=yes" &&
list_remove CAIRO_OPTS "--enable-tee=no" &&
+list_remove CAIRO_OPTS "--enable-xlib-xcb" &&
+list_remove CAIRO_OPTS "--enable-xlib-xcb=yes" &&
+list_remove CAIRO_OPTS "--enable-xlib-xcb=nno" &&
+list_remove CAIRO_OPTS "--disable-xlib-xcb" &&
config_query_option CAIRO_OPTS "Enable cairo's tee surface backend feature?" n \
"tee=enabled" "tee=disabled"
diff --git a/x11-libs/cairo/DEPENDS b/x11-libs/cairo/DEPENDS
index 84b2f4a203..5d77248e7b 100755
--- a/x11-libs/cairo/DEPENDS
+++ b/x11-libs/cairo/DEPENDS
@@ -56,11 +56,7 @@ if is_depends_enabled $SPELL libx11; then
if is_depends_enabled ${SPELL} libxcb; then
config_query_option CAIRO_OPTS "Enable Xlib/XCB functions feature?" n \
"xlib-xcb=enabled" \
- "xlib-xcb=disabled" &&
- list_remove CAIRO_OPTS "--enable-xlib-xcb" &&
- list_remove CAIRO_OPTS "--enable-xlib-xcb=yes" &&
- list_remove CAIRO_OPTS "--enable-xlib-xcb=nno" &&
- list_remove CAIRO_OPTS "--disable-xlib-xcb"
+ "xlib-xcb=disabled"
fi
fi &&
diff --git a/x11-libs/cairo/HISTORY b/x11-libs/cairo/HISTORY
index f947295877..714a258c8e 100644
--- a/x11-libs/cairo/HISTORY
+++ b/x11-libs/cairo/HISTORY
@@ -1,3 +1,7 @@
+2022-08-13 Pavel Vinogradov <public@sourcemage.org>
+ * CONFIGURE, DEPENDS: moved cleanup code to one place
+ * SUB_DEPENDS: fixed a typo (kudos to SneakyThunder)
+
2022-08-09 Pavel Vinogradov <public@sourcemage.org>
* PRE_BUILD, patches/0001-Fix-build-against-binutils-2.39.patch,
patches-stable/0001-Fix-build-with-newer-binutils.patch: fix build
diff --git a/x11-libs/cairo/SUB_DEPENDS b/x11-libs/cairo/SUB_DEPENDS
index 7d5691bad6..5797b0f6ac 100755
--- a/x11-libs/cairo/SUB_DEPENDS
+++ b/x11-libs/cairo/SUB_DEPENDS
@@ -3,7 +3,7 @@ case $THIS_SUB_DEPENDS in
[[ "$CAIRO_BRANCH" == "scm" ]] || CAIRO_BRANCH="devel";;
PDF) return 0;;
XCB) message "Cairo with XCB support requested, forcing libxcb dependency" &&
- depends libxcb "xcb=enbled";;
+ depends libxcb "xcb=enabled";;
GOBJ) message "Cairo with gobject functions feature requested, forcing glib2 dependency" &&
depends glib2 "glib=enabled";;
PNG) message "Cairo with PNG support requested, forcing libpng dependency" &&