Files
chromebrew/packages/xorg_server.rb
github-actions[bot] 075a7eda36 AutoBuild: x started at 2025-06-18-00UTC (#12056)
* x updates

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add package updates.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add libxtrans hashes, workaround docker sed issues.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add built packages for linux/arm/v7 to x

* work arount ENOENT error

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Do crew update before all unit tests.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Do crew update before all unit tests.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Do crew update before all unit tests.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* cleanup

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* debug

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* adjust deps

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: satmandu <satmandu@users.noreply.github.com>
Co-authored-by: Ed Reel <edreel@gmail.com>
2025-06-18 16:38:02 +00:00

89 lines
2.7 KiB
Ruby

require 'package'
class Xorg_server < Package
description 'The Xorg Server is the core of the X Window system.'
homepage 'https://www.x.org/wiki/'
version '21.1.17'
license 'BSD-3, MIT, BSD-4, MIT-with-advertising, ISC and custom'
compatibility 'aarch64 armv7l x86_64'
source_url 'https://gitlab.freedesktop.org/xorg/xserver.git'
git_hashtag "xorg-server-#{version}"
binary_compression 'tar.zst'
binary_sha256({
aarch64: '8a008bef4e1832e8f55b2ec81b861a841bae52744b98b392565af8e22951f0e3',
armv7l: '8a008bef4e1832e8f55b2ec81b861a841bae52744b98b392565af8e22951f0e3',
x86_64: '8bcc211cac01df61840dc5817ab23f0fbaf7a29e6fcd96d167c8a5f94a8f6d7f'
})
depends_on 'dbus' # R
depends_on 'eudev' # R
depends_on 'font_util' => :build
depends_on 'gcc_lib' # R
depends_on 'glibc' # R
depends_on 'glproto' => :build
depends_on 'graphite' => :build
depends_on 'libbsd' # R
depends_on 'libdrm' # R
depends_on 'libepoxy' # R
depends_on 'libglvnd' # R
depends_on 'libinput' => :build
depends_on 'libmd' # R
depends_on 'libpciaccess' # R
depends_on 'libtirpc' # R
depends_on 'libunwind' => :build
depends_on 'libx11' # R
depends_on 'libxau' # R
depends_on 'libxcb' # R
depends_on 'libxcvt' # R
depends_on 'libxdmcp' # R
depends_on 'libxext' # R
depends_on 'libxfont2' # R
depends_on 'libxfont' # R
depends_on 'libxkbcommon' => :build
depends_on 'libxkbfile' # R
depends_on 'libxshmfence' # R
depends_on 'libxtrans' => :build
depends_on 'lzma' => :build
depends_on 'mesa' # R
depends_on 'pixman' # R
depends_on 'xcb_util_cursor' => :build
depends_on 'xcb_util_image' # R
depends_on 'xcb_util_keysyms' # R
depends_on 'xcb_util' # R
depends_on 'xcb_util_renderutil' # R
depends_on 'xcb_util_wm' # R
depends_on 'xcb_util_xrm' => :build
depends_on 'xkbcomp' => :build
depends_on 'xorg_proto' => :build
def self.build
system 'meson setup build'
system "meson configure #{CREW_MESON_OPTIONS.sub(/(-Dcpp_args='*)(.*)(')/, '')} \
-Db_asneeded=false \
-Dipv6=true \
-Dxvfb=true \
-Dxnest=true \
-Dxcsecurity=true \
-Dxorg=true \
-Dxephyr=true \
-Dglamor=true \
-Dudev=true \
-Dxwin=false \
-Dsystemd_logind=false \
-Dint10=auto \
-Dlog_dir=#{CREW_PREFIX}/var/log \
build"
system 'ninja -C build'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C build install"
# Get these from xwayland package
@deletefiles = %W[#{CREW_DEST_PREFIX}/bin/Xwayland #{CREW_DEST_LIB_PREFIX}/xorg/protocol.txt]
@deletefiles.each do |f|
FileUtils.rm_f f
end
end
end