commit:     c3ac246f05ba2342207b66cd1ce56140015db6d7
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat May  1 23:55:05 2021 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Sun May  2 15:24:44 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3ac246f

x11-base/xorg-server: Define XORG_CONFIGURE_OPTIONS in src_configure

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: David Seifert <soap <AT> gentoo.org>
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 x11-base/xorg-server/xorg-server-1.20.11.ebuild | 36 ++++++++++++++-----------
 x11-base/xorg-server/xorg-server-9999.ebuild    | 36 ++++++++++++++-----------
 2 files changed, 40 insertions(+), 32 deletions(-)

diff --git a/x11-base/xorg-server/xorg-server-1.20.11.ebuild 
b/x11-base/xorg-server/xorg-server-1.20.11.ebuild
index 241f73b55e2..609ab534563 100644
--- a/x11-base/xorg-server/xorg-server-1.20.11.ebuild
+++ b/x11-base/xorg-server/xorg-server-1.20.11.ebuild
@@ -132,13 +132,15 @@ pkg_setup() {
                ewarn "Performance may be unacceptable without it."
                ewarn "Build with USE=-minimal to enable glamor."
        fi
+}
 
+src_configure() {
        # localstatedir is used for the log location; we need to override the 
default
        #       from ebuild.sh
        # sysconfdir is used for the xorg.conf location; same applies
        # NOTE: fop is used for doc generating; and I have no idea if Gentoo
        #       package it somewhere
-       XORG_CONFIGURE_OPTIONS=(
+       local XORG_CONFIGURE_OPTIONS=(
                $(use_enable ipv6)
                $(use_enable debug)
                $(use_enable dmx)
@@ -178,17 +180,28 @@ pkg_setup() {
 
        if use systemd || use elogind; then
                XORG_CONFIGURE_OPTIONS+=(
-                       "--enable-systemd-logind"
-                       "--disable-install-setuid"
-                       "$(use_enable suid suid-wrapper)"
+                       --enable-systemd-logind
+                       --disable-install-setuid
+                       $(use_enable suid suid-wrapper)
                )
        else
                XORG_CONFIGURE_OPTIONS+=(
-                       "--disable-systemd-logind"
-                       "--disable-suid-wrapper"
-                       "$(use_enable suid install-setuid)"
+                       --disable-systemd-logind
+                       --disable-suid-wrapper
+                       $(use_enable suid install-setuid)
                )
        fi
+
+       xorg-3_src_configure
+}
+
+server_based_install() {
+       if ! use xorg; then
+               rm -f "${ED}"/usr/share/man/man1/Xserver.1x \
+                       "${ED}"/usr/$(get_libdir)/xserver/SecurityPolicy \
+                       "${ED}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \
+                       "${ED}"/usr/share/man/man1/Xserver.1x || die
+       fi
 }
 
 src_install() {
@@ -214,12 +227,3 @@ pkg_postrm() {
                rm -rf "${EROOT}"/usr/$(get_libdir)/xorg/modules
        fi
 }
-
-server_based_install() {
-       if ! use xorg; then
-               rm "${ED}"/usr/share/man/man1/Xserver.1x \
-                       "${ED}"/usr/$(get_libdir)/xserver/SecurityPolicy \
-                       "${ED}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \
-                       "${ED}"/usr/share/man/man1/Xserver.1x
-       fi
-}

diff --git a/x11-base/xorg-server/xorg-server-9999.ebuild 
b/x11-base/xorg-server/xorg-server-9999.ebuild
index c6ec9c9033a..1b2a33ee908 100644
--- a/x11-base/xorg-server/xorg-server-9999.ebuild
+++ b/x11-base/xorg-server/xorg-server-9999.ebuild
@@ -133,13 +133,15 @@ pkg_setup() {
                ewarn "Performance may be unacceptable without it."
                ewarn "Build with USE=-minimal to enable glamor."
        fi
+}
 
+src_configure() {
        # localstatedir is used for the log location; we need to override the 
default
        #       from ebuild.sh
        # sysconfdir is used for the xorg.conf location; same applies
        # NOTE: fop is used for doc generating; and I have no idea if Gentoo
        #       package it somewhere
-       XORG_CONFIGURE_OPTIONS=(
+       local XORG_CONFIGURE_OPTIONS=(
                $(use_enable ipv6)
                $(use_enable debug)
                $(use_enable dmx)
@@ -178,17 +180,28 @@ pkg_setup() {
 
        if use systemd || use elogind; then
                XORG_CONFIGURE_OPTIONS+=(
-                       "--enable-systemd-logind"
-                       "--disable-install-setuid"
-                       "$(use_enable suid suid-wrapper)"
+                       --enable-systemd-logind
+                       --disable-install-setuid
+                       $(use_enable suid suid-wrapper)
                )
        else
                XORG_CONFIGURE_OPTIONS+=(
-                       "--disable-systemd-logind"
-                       "--disable-suid-wrapper"
-                       "$(use_enable suid install-setuid)"
+                       --disable-systemd-logind
+                       --disable-suid-wrapper
+                       $(use_enable suid install-setuid)
                )
        fi
+
+       xorg-3_src_configure
+}
+
+server_based_install() {
+       if ! use xorg; then
+               rm -f "${ED}"/usr/share/man/man1/Xserver.1x \
+                       "${ED}"/usr/$(get_libdir)/xserver/SecurityPolicy \
+                       "${ED}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \
+                       "${ED}"/usr/share/man/man1/Xserver.1x || die
+       fi
 }
 
 src_install() {
@@ -214,12 +227,3 @@ pkg_postrm() {
                rm -rf "${EROOT}"/usr/$(get_libdir)/xorg/modules
        fi
 }
-
-server_based_install() {
-       if ! use xorg; then
-               rm "${ED}"/usr/share/man/man1/Xserver.1x \
-                       "${ED}"/usr/$(get_libdir)/xserver/SecurityPolicy \
-                       "${ED}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \
-                       "${ED}"/usr/share/man/man1/Xserver.1x
-       fi
-}

Reply via email to