From 49d1fb147bd124b562b97787df85d9e95fbc7f60 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Mon, 10 May 2021 15:55:23 -0400 Subject: x11-base/xorg-server: sync, cleanup --- x11-base/xorg-server/xorg-server-1.20.11-r1.ebuild | 43 ++++++++++++---------- 1 file changed, 23 insertions(+), 20 deletions(-) (limited to 'x11-base/xorg-server/xorg-server-1.20.11-r1.ebuild') diff --git a/x11-base/xorg-server/xorg-server-1.20.11-r1.ebuild b/x11-base/xorg-server/xorg-server-1.20.11-r1.ebuild index 53350d3..be31e68 100644 --- a/x11-base/xorg-server/xorg-server-1.20.11-r1.ebuild +++ b/x11-base/xorg-server/xorg-server-1.20.11-r1.ebuild @@ -10,17 +10,16 @@ EGIT_REPO_URI="https://gitlab.freedesktop.org/xorg/xserver.git" DESCRIPTION="X.Org X servers" SLOT="0/${PV}" if [[ ${PV} != 9999* ]]; then - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" + KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" fi IUSE_SERVERS="dmx kdrive wayland xephyr xnest xorg xvfb" -IUSE="${IUSE_SERVERS} debug +elogind ipv6 libressl minimal selinux suid systemd test +udev unwind xcsecurity" +IUSE="${IUSE_SERVERS} debug +elogind ipv6 minimal selinux suid systemd test +udev unwind xcsecurity" RESTRICT="!test? ( test )" CDEPEND=" media-libs/libglvnd[X] - !libressl? ( dev-libs/openssl:0= ) - libressl? ( dev-libs/libressl:0= ) + dev-libs/openssl:0= >=x11-apps/iceauth-1.0.2 >=x11-apps/rgb-1.0.3 x11-apps/xkbcomp @@ -131,13 +130,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) @@ -177,17 +178,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() { @@ -213,12 +225,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 -} -- cgit v1.2.3-54-g00ecf