Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

desktop-file-utils: use modern meson build syntax #159251

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions Formula/d/desktop-file-utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class DesktopFileUtils < Formula
homepage "https://wiki.freedesktop.org/www/Software/desktop-file-utils/"
url "https://www.freedesktop.org/software/desktop-file-utils/releases/desktop-file-utils-0.27.tar.xz"
sha256 "a0817df39ce385b6621880407c56f1f298168c040c2032cedf88d5b76affe836"
license "GPL-2.0"
license "GPL-2.0-or-later"

bottle do
sha256 arm64_sonoma: "a18a457a7c8955e7fc9750bc4e0d92d6d3f017d84872ff153cd5cc1922db20ec"
Expand All @@ -21,15 +21,13 @@ class DesktopFileUtils < Formula
depends_on "glib"

def install
mkdir "build" do
system "meson", *std_meson_args, ".."
system "ninja", "-v"
system "ninja", "install", "-v"
system "meson", "setup", "build", *std_meson_args
system "meson", "compile", "-C", "build", "--verbose"
system "meson", "install", "-C", "build"

# fix lisp file install location
mkdir_p share/"emacs/site-lisp/desktop-file-utils"
mv share/"emacs/site-lisp/desktop-entry-mode.el", share/"emacs/site-lisp/desktop-file-utils"
end
# fix lisp file install location
mkdir_p share/"emacs/site-lisp/desktop-file-utils"
mv share/"emacs/site-lisp/desktop-entry-mode.el", share/"emacs/site-lisp/desktop-file-utils"
end

test do
Expand Down
Loading