mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
* llvm => 18.1.5, update dbus Signed-off-by: Satadru Pramanik <satadru@gmail.com> * update ibus Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com>
62 lines
2.3 KiB
Ruby
62 lines
2.3 KiB
Ruby
require 'buildsystems/meson'
|
|
|
|
class Dbus < Meson
|
|
description 'D-Bus is a message bus system, a simple way for applications to talk to one another.'
|
|
homepage 'https://www.freedesktop.org/wiki/Software/dbus/'
|
|
version '1.15.9-e277bf9'
|
|
license 'Apache-2.0'
|
|
compatibility 'all'
|
|
source_url 'https://gitlab.freedesktop.org/dbus/dbus.git'
|
|
git_hashtag 'e277bf9070fa76712c6f113fbccc7c3b107297dd'
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
i686: '64873de4af66f26fc9be1afc93d38e8c725f7e12bf6ee80c81b9ad508f527303',
|
|
aarch64: 'c471c04d20149c1c32c98de34f30960c3e924a2bec35010b954bd15a10d08306',
|
|
armv7l: 'c471c04d20149c1c32c98de34f30960c3e924a2bec35010b954bd15a10d08306',
|
|
x86_64: '252cf6fc37542d9f956f72109e546002e3729cc3c60428114d02b66354e89b55'
|
|
})
|
|
|
|
depends_on 'expat' # R
|
|
depends_on 'gcc_lib' # R
|
|
depends_on 'glibc' # R
|
|
depends_on 'libice' => :build unless ARCH == 'i686'
|
|
depends_on 'libsm' => :build unless ARCH == 'i686'
|
|
depends_on 'libx11' unless ARCH == 'i686' # R
|
|
|
|
print_source_bashrc
|
|
|
|
meson_options "-Dapparmor=disabled \
|
|
-Ddbus_session_bus_listen_address='unix:path=/var/run/dbus/system_bus_socket' \
|
|
-Ddoxygen_docs=disabled \
|
|
-Dlibaudit=disabled \
|
|
-Dlaunchd=disabled \
|
|
-Dxml_docs=disabled \
|
|
-Druntime_dir=/var/run \
|
|
-Dsystemd=disabled \
|
|
-Dx11_autolaunch=#{ARCH == 'i686' ? 'disabled' : 'enabled'}"
|
|
|
|
def self.install
|
|
system "DESTDIR=#{CREW_DEST_DIR} #{CREW_NINJA} -C builddir install"
|
|
@dbusconfigenv = <<~DBUSCONFIGEOF
|
|
# Dbus settings
|
|
[[ -d '/var/run/dbus' ]] || ( sudo mkdir -p /var/run/dbus && sudo chown chronos /var/run/dbus )
|
|
dbus-uuidgen --ensure
|
|
DBUS_SYSTEM_BUS_ADDRESS='unix:path=/var/run/dbus/system_bus_socket'
|
|
[[ "$DBUS_SESSION_BUS_ADDRESS"=="disabled:" ]] && unset DBUS_SESSION_BUS_ADDRESS
|
|
if [ -z "${DBUS_SESSION_BUS_ADDRESS}" ]; then
|
|
# if not found, launch a new one
|
|
eval `dbus-launch --sh-syntax`
|
|
# echo "D-Bus per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS"
|
|
fi
|
|
dbus-update-activation-environment --all
|
|
DBUSCONFIGEOF
|
|
File.write('env.d_dbus', @dbusconfigenv)
|
|
FileUtils.install 'env.d_dbus', "#{CREW_DEST_PREFIX}/etc/env.d/dbus", mode: 0o644
|
|
end
|
|
|
|
def self.postinstall
|
|
FileUtils.rm_f "#{CREW_PREFIX}/etc/env.d/03-dbus" if File.file?("#{CREW_PREFIX}/etc/env.d/03-dbus")
|
|
end
|
|
end
|