36 lines
1.3 KiB
Ruby
36 lines
1.3 KiB
Ruby
class Xkeyboardconfig < Formula
|
|
desc "Keyboard configuration database for the X Window System"
|
|
homepage "https://www.freedesktop.org/wiki/Software/XKeyboardConfig/"
|
|
url "https://xorg.freedesktop.org/archive/individual/data/xkeyboard-config/xkeyboard-config-2.36.tar.xz"
|
|
sha256 "1f1bb1292a161d520a3485d378609277d108cd07cde0327c16811ff54c3e1595"
|
|
license "MIT"
|
|
head "https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config.git", branch: "master"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "8725554bd2e81527988377fcbcae500c5b7d598e0e7c1fe321f09200951219ba"
|
|
end
|
|
|
|
depends_on "gettext" => :build
|
|
depends_on "meson" => :build
|
|
depends_on "ninja" => :build
|
|
depends_on "pkg-config" => [:build, :test]
|
|
depends_on "python@3.10" => :build
|
|
|
|
uses_from_macos "libxslt" => :build
|
|
|
|
def install
|
|
mkdir "build" do
|
|
system "meson", *std_meson_args, ".."
|
|
system "ninja", "-v"
|
|
system "ninja", "install", "-v"
|
|
end
|
|
end
|
|
|
|
test do
|
|
assert_predicate man7/"xkeyboard-config.7", :exist?
|
|
assert_equal "#{share}/X11/xkb", shell_output("pkg-config --variable=xkb_base xkeyboard-config").chomp
|
|
assert_match "Language-Team: English",
|
|
shell_output("strings #{share}/locale/en_GB/LC_MESSAGES/xkeyboard-config.mo")
|
|
end
|
|
end
|