| 1 |
|
# Copyright 1999-2026 Gentoo Authors
|
|
1 |
# Copyright 1999-2025 Gentoo Authors
|
| 2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
3 |
|
| 4 |
4 |
EAPI=8
|
| ... | ... | |
| 9 |
9 |
DESCRIPTION="X.Org X servers"
|
| 10 |
10 |
SLOT="0/${PV}"
|
| 11 |
11 |
if [[ ${PV} != 9999* ]]; then
|
| 12 |
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
|
|
12 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
| 13 |
13 |
fi
|
| 14 |
14 |
|
| 15 |
15 |
IUSE_SERVERS="xephyr xnest xorg xvfb"
|
| ... | ... | |
| 70 |
70 |
!!x11-drivers/nvidia-drivers[-libglvnd(+)]
|
| 71 |
71 |
"
|
| 72 |
72 |
DEPEND="${CDEPEND}
|
| 73 |
|
>=x11-base/xorg-proto-2021.4.99.2
|
|
73 |
>=x11-base/xorg-proto-2024.1
|
| 74 |
74 |
>=x11-libs/xtrans-1.3.5
|
| 75 |
75 |
media-fonts/font-util
|
| 76 |
76 |
test? ( >=x11-libs/libxcvt-0.1.0 )
|
| ... | ... | |
| 92 |
92 |
elogind? ( udev )
|
| 93 |
93 |
?? ( elogind systemd )"
|
| 94 |
94 |
|
| 95 |
|
UPSTREAMED_PATCHES=(
|
| 96 |
|
)
|
| 97 |
|
|
| 98 |
95 |
PATCHES=(
|
| 99 |
96 |
"${UPSTREAMED_PATCHES[@]}"
|
| 100 |
97 |
"${FILESDIR}"/${PN}-1.12-unloadsubmodule.patch
|
| 101 |
|
# needed for new eselect-opengl, bug #541232
|
| 102 |
|
"${FILESDIR}"/${PN}-1.18-support-multiple-Files-sections.patch
|
| 103 |
|
# pending upstream backport, bug #885763
|
| 104 |
|
"${FILESDIR}"/${PN}-21.1.10-c99.patch
|
| 105 |
98 |
)
|
| 106 |
99 |
|
| 107 |
100 |
src_configure() {
|
| ... | ... | |
| 109 |
102 |
use x86 && replace-flags -Os -O2
|
| 110 |
103 |
use x86 && replace-flags -Oz -O2
|
| 111 |
104 |
|
|
105 |
use debug && EMESON_BUILDTYPE=debug
|
|
106 |
|
| 112 |
107 |
# localstatedir is used for the log location; we need to override the default
|
| 113 |
108 |
# from ebuild.sh
|
| 114 |
109 |
# sysconfdir is used for the xorg.conf location; same applies
|
| 115 |
110 |
local XORG_CONFIGURE_OPTIONS=(
|
| 116 |
111 |
--localstatedir "${EPREFIX}/var"
|
| 117 |
112 |
--sysconfdir "${EPREFIX}/etc/X11"
|
| 118 |
|
-Dbuildtype=$(usex debug debug plain)
|
| 119 |
113 |
-Db_ndebug=$(usex debug false true)
|
| 120 |
114 |
$(meson_use !minimal dri1)
|
| 121 |
115 |
$(meson_use !minimal dri2)
|
| ... | ... | |
| 138 |
132 |
-Dhal=false
|
| 139 |
133 |
-Dlinux_acpi=false
|
| 140 |
134 |
-Dlinux_apm=false
|
| 141 |
|
-Dsecure-rpc=false
|
| 142 |
135 |
-Dsha1=libcrypto
|
| 143 |
136 |
-Dxkb_output_dir="${EPREFIX}/var/lib/xkb"
|
| 144 |
137 |
)
|