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

Updated packages #132

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
15 changes: 5 additions & 10 deletions Formula/girara.rb
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
class Girara < Formula
desc "Interface library"
homepage "https://pwmt.org/projects/girara/"
url "https://github.com/pwmt/girara/archive/0.4.0.tar.gz"
sha256 "24edfa3d493e7d4bbf491bb730d036cfedbd6c34ada1a7cfcd6273e78cffa44c"
url "https://github.com/pwmt/girara/archive/refs/tags/0.4.5.tar.gz"
sha256 "9abb84fdb3f8f51e8aef8d53488fd0631357f0713ad5aa4a5c755c23f54b23df"
license "Zlib"
head "https://github.com/pwmt/girara.git", branch: "develop"

bottle do
root_url "https://ghcr.io/v2/zegervdv/zathura"
rebuild 1
sha256 ventura: "de3d8697345a2f225cc0ea5b24f78935b8f19062faa847785051d52bea637ea1"
sha256 x86_64_linux: "a4d3262b78ef8c778dda19e6e078c9fce68b862b51d44470eca325cf26648b2c"
end

depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => :build
Expand All @@ -25,7 +19,8 @@ class Girara < Formula

def install
inreplace "girara/utils.c" do |s|
s.gsub!(/xdg-open/, "open")
# s.gsub!(/xdg-open/, "open")
s.gsub!("xdg-open", "open")
end
# Set HOMBREW_PREFIX
ENV["CMAKE_INSTALL_PREFIX"] = prefix
Expand Down
21 changes: 13 additions & 8 deletions Formula/synctex.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
class Synctex < Formula
desc "Parser libary for synctex"
homepage "https://github.com/jlaurens/synctex"
url "https://github.com/jlaurens/synctex", using: :git, revision: "a256d4835b7df2a0472cfa3d557af73a1b83f076", branch: "2020"
version "1.22.0"
revision 2

bottle do
root_url "https://github.com/zegervdv/homebrew-zathura/releases/download/synctex-1.22.0_2"
sha256 cellar: :any, big_sur: "28ecec53683b7cc5bb5686705f8ab9f07517fa790527625c792094a51d4e0b25"
sha256 cellar: :any_skip_relocation, x86_64_linux: "aaa344cbb93e7794e72da4f97c492a7a89dadc533dbd9639672512aa5d94c9a4"
url "https://github.com/jlaurens/synctex", using: :git, revision: "d37a5a59091b6a1bda387e68dd9431a7a750f419", branch: "2024"
version "2024"
# sha256 "2905e22437f8609bb799c98009aab8bc34f9466c629871079d4c8bc6277be1a0"
license "MIT"
head "https://github.com/jlaurens/synctex.git", branch: "main"

livecheck do
url :stable
regex(/^(\d{4})$/i)
end

depends_on "zlib"
Expand Down Expand Up @@ -41,4 +42,8 @@ def install
mkdir "#{lib}/pkgconfig"
cp "synctex.pc.in", "#{lib}/pkgconfig/synctex.pc"
end

test do
system "true" # TODO
end
end
10 changes: 8 additions & 2 deletions Formula/zathura-cb.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
class ZathuraCb < Formula
desc "Comic book plugin for zathura"
homepage "https://pwmt.org/projects/zathura-cb/"
url "https://pwmt.org/projects/zathura-cb/download/zathura-cb-0.1.8.tar.xz"
sha256 "452a0702e257dbed6a84b7faf6b51e4eb57a163654bbcddf6301143d3770ccc4"
url "https://github.com/pwmt/zathura-cb/archive/refs/tags/0.1.11.tar.gz"
sha256 "4159a84bbff021087e60fb82c62505e6db5c19aa9962edda39a4b11d00302f5d"
license "Zlib"

livecheck do
url :stable
regex(/^v?(\d+(?:\.\d+)+)$/i)
end

depends_on "cmake" => :build
depends_on "meson" => :build
Expand Down
12 changes: 9 additions & 3 deletions Formula/zathura-djvu.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
class ZathuraDjvu < Formula
desc "DJVU plugin for zathura"
homepage "https://pwmt.org/projects/zathura-djvu/"
url "https://github.com/pwmt/zathura-djvu/archive/0.2.9.tar.gz"
sha256 "84fae6da42e7cdc2e49ed4cd4f0315ac09716e95358b9c7487803a2cff47dbca"
url "https://github.com/pwmt/zathura-djvu/archive/refs/tags/0.2.10.tar.gz"
sha256 "3749fe9da14c5cbd13598c83f2dbff9c1c1d906797139fc809ef256f8075c987"
license "Zlib"

livecheck do
url :stable
regex(/^v?(\d+(?:\.\d+)+)$/i)
end

depends_on "cmake" => :build
depends_on "meson" => :build
Expand All @@ -12,7 +18,7 @@ class ZathuraDjvu < Formula
depends_on "zathura"

def install
inreplace "meson.build", "zathura.get_pkgconfig_variable('plugindir')", "'#{prefix}'"
inreplace "meson.build", "zathura.get_variable(pkgconfig: 'plugindir')", "'#{prefix}'"
mkdir "build" do
system "meson", *std_meson_args, ".."
system "ninja"
Expand Down
13 changes: 9 additions & 4 deletions Formula/zathura-pdf-mupdf.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
class ZathuraPdfMupdf < Formula
desc "MuPDF backend plugin for zathura"
homepage "https://pwmt.org/projects/zathura-pdf-mupdf/"
url "https://github.com/pwmt/zathura-pdf-mupdf/archive/0.3.9.tar.gz"
sha256 "05a6f22244c054a90f89ea2f746ea45ebaceb6c0559bfa4dcfd120c4d485346c"
revision 1
url "https://github.com/pwmt/zathura-pdf-mupdf/archive/refs/tags/0.4.4.tar.gz"
sha256 "90bdc7c0d4b5f6bd7b17f9c3832ae5eb8465b45d78ab3b8c2fca26ed45ed1177"
license "Zlib"

livecheck do
url :stable
regex(/^v?(\d+(?:\.\d+)+)$/i)
end

depends_on "cmake" => :build
depends_on "meson" => :build
Expand All @@ -13,7 +18,7 @@ class ZathuraPdfMupdf < Formula
depends_on "zathura"

def install
inreplace "meson.build", "zathura.get_pkgconfig_variable('plugindir')", "prefix"
inreplace "meson.build", "zathura.get_variable(pkgconfig: 'plugindir')", "prefix"
mkdir "build" do
system "meson", *std_meson_args, ".."
system "ninja"
Expand Down
12 changes: 9 additions & 3 deletions Formula/zathura-pdf-poppler.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
class ZathuraPdfPoppler < Formula
desc "Poppler backend plugin for zathura"
homepage "https://pwmt.org/projects/zathura-pdf-poppler/"
url "https://github.com/pwmt/zathura-pdf-poppler/archive/0.3.0.tar.gz"
sha256 "2034f70a936d458ddc9276f769e77ff308ba3bb1b7a7cdc87bab8b9ef7ade84a"
url "https://github.com/pwmt/zathura-pdf-poppler/archive/refs/tags/0.3.3.tar.gz"
sha256 "bff865c712920c64d1393f87811b66bf79909fa7ee82364cf0cde7d5552613ea"
license "Zlib"

livecheck do
url :stable
regex(/^v?(\d+(?:\.\d+)+)$/i)
end

depends_on "cmake" => :build
depends_on "meson" => :build
Expand All @@ -12,7 +18,7 @@ class ZathuraPdfPoppler < Formula
depends_on "zathura"

def install
inreplace "meson.build", "zathura.get_pkgconfig_variable('plugindir')", "prefix"
inreplace "meson.build", "zathura.get_variable(pkgconfig: 'plugindir')", "prefix"
mkdir "build" do
system "meson", *std_meson_args, ".."
system "ninja"
Expand Down
12 changes: 9 additions & 3 deletions Formula/zathura-ps.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
class ZathuraPs < Formula
desc "Postscript backend plugin for zathura"
homepage "https://pwmt.org/projects/zathura-ps/"
url "https://github.com/pwmt/zathura-ps/archive/0.2.6.tar.gz"
sha256 "08c1927bfb8a40e201fa3638f9523d4b6d70e3444ef070bd4aa8a869b6574567"
url "https://github.com/pwmt/zathura-ps/archive/refs/tags/0.2.8.tar.gz"
sha256 "b8b42c4517e4bdaee4c84c1c6e7298cabf00fc40b9b95f59feee0f61fe780b54"
license "Zlib"

livecheck do
url :stable
regex(/^v?(\d+(?:\.\d+)+)$/i)
end

depends_on "cmake" => :build
depends_on "meson" => :build
Expand All @@ -12,7 +18,7 @@ class ZathuraPs < Formula
depends_on "zathura"

def install
inreplace "meson.build", "zathura.get_pkgconfig_variable('plugindir')", "'#{prefix}'"
inreplace "meson.build", "zathura.get_variable(pkgconfig: 'plugindir')", "'#{prefix}'"
mkdir "build" do
system "meson", *std_meson_args, ".."
system "ninja"
Expand Down
12 changes: 9 additions & 3 deletions Formula/zathura.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
class Zathura < Formula
desc "PDF viewer"
homepage "https://pwmt.org/projects/zathura/"
url "https://github.com/pwmt/zathura/archive/0.5.2.tar.gz"
sha256 "7be256b94d0e517dca5d3e0d0f7835e9ff4801c5e5df8a5e5e3034b25c7c2e74"
revision 0
url "https://github.com/pwmt/zathura/archive/refs/tags/0.5.11.tar.gz"
sha256 "32540747a6fe3c4189ec9d5de46a455862c88e11e969adb5bc0ce8f9b25b52d4"
license "Zlib"
head "https://github.com/pwmt/zathura.git", branch: "develop"

livecheck do
url :stable
regex(/^v?(\d+(?:\.\d+)+)$/i)
end

depends_on "cmake" => :build
depends_on "meson" => :build
depends_on "ninja" => :build
Expand All @@ -20,6 +25,7 @@ class Zathura < Formula
depends_on "libmagic"
depends_on "synctex" => :optional
on_macos do
depends_on "gtk+3"
depends_on "gtk-mac-integration"
end

Expand Down
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,25 @@ brew tap zegervdv/zathura
brew install zathura
```

With Synctex:
```
brew install zathura --with-synctex
```

### Install and link one of the two plugins

For poppler:
```
$ brew install zathura-pdf-poppler
$ mkdir -p $(brew --prefix zathura)/lib/zathura
$ ln -s $(brew --prefix zathura-pdf-poppler)/libpdf-poppler.dylib $(brew --prefix zathura)/lib/zathura/libpdf-poppler.dylib
brew install zathura-pdf-poppler
mkdir -p $(brew --prefix zathura)/lib/zathura
ln -s $(brew --prefix zathura-pdf-poppler)/libpdf-poppler.dylib $(brew --prefix zathura)/lib/zathura/libpdf-poppler.dylib
```

For mupdf:
```
$ brew install zathura-pdf-mupdf
$ mkdir -p $(brew --prefix zathura)/lib/zathura
$ ln -s $(brew --prefix zathura-pdf-mupdf)/libpdf-mupdf.dylib $(brew --prefix zathura)/lib/zathura/libpdf-mupdf.dylib
brew install zathura-pdf-mupdf
mkdir -p $(brew --prefix zathura)/lib/zathura
ln -s $(brew --prefix zathura-pdf-mupdf)/libpdf-mupdf.dylib $(brew --prefix zathura)/lib/zathura/libpdf-mupdf.dylib
```

### OSX_native_integration
Expand Down