forked from homebrew-zathura/homebrew-zathura
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzathura.rb
44 lines (40 loc) · 1.22 KB
/
zathura.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
class Zathura < Formula
desc "PDF viewer"
homepage "https://pwmt.org/projects/zathura/"
url "https://github.com/pwmt/zathura/archive/0.5.9.tar.gz"
sha256 "6108bfe87676c0ddc1289dd4278ac8c7ab9e47cb4bb419f71786baa99e14760f"
revision 0
head "https://github.com/pwmt/zathura.git", branch: "develop"
depends_on "cmake" => :build
depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => :build
depends_on "sphinx-doc" => :build
depends_on "adwaita-icon-theme"
depends_on "desktop-file-utils"
depends_on "gettext"
depends_on "girara"
depends_on "glib"
depends_on "intltool"
depends_on "libmagic"
depends_on "synctex" => :optional
on_macos do
depends_on "gtk+3"
depends_on "gtk-mac-integration"
end
def install
# Set Homebrew prefix
ENV["PREFIX"] = prefix
# Add the pkgconfig for girara to the PKG_CONFIG_PATH
# TODO: Find out why it is not added correctly for Linux
ENV["PKG_CONFIG_PATH"] = "#{ENV["PKG_CONFIG_PATH"]}:#{Formula["girara"].prefix}/lib/x86_64-linux-gnu/pkgconfig"
mkdir "build" do
system "meson", *std_meson_args, ".."
system "ninja"
system "ninja", "install"
end
end
test do
system "true" # TODO
end
end