Giter Site home page Giter Site logo

homebrew-zathura's Introduction

Zathura

Homebrew formulae to install zathura and plugins on Mac OS X

Installation steps

Tap the repository

brew tap zegervdv/zathura

Install zathura

brew install zathura

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

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

OSX_native_integration

The OSX native integration (dock, window manager) has been added to the develop branch of zathura. You can install it by

# unlink installed zathura and girara
brew unlink girara
brew unlink zathura

# install HEAD
brew install girara --HEAD
brew install zathura --HEAD
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

Copying to clipboard

Add the following to your ~/.config/zathura/zathurarc:

set selection-clipboard clipboard

Thanks to geigi (see #5)

Operation not supported error

If you are seeing errors like this:

error: Can not copy to temporary file: Operation not supported

Try using an absolute path to the document:

$ zathura document.pdf
error: Can not copy to temporary file: Operation not supported
# Try:
$ zathura /path/to/document.pdf

Known Issues

Currently plugins are installed in the zathura folder, which means that uninstalling a plugin does not work.

homebrew-zathura's People

Contributors

anntzer avatar dakeryas avatar drselump14 avatar geigi avatar joaquincorradi avatar rfeng2004 avatar rpapallas avatar vectorsss avatar xrisk avatar ynakao avatar zegervdv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebrew-zathura's Issues

font size in zathura

Dear zathura developers and users,
I have two problems with using zathura regarding the size of its user interface elements.
The command line text (say when I type :set recolor is much to small for my eyes.
Secondly, the font size of the outline (when I hit the Tab key) is also too small for my eyes.
I have spent lot's of time trying to find information regarding this related to zathura and also XQuartz but I din't find anything useful.
Best,
Markus

Dependency "girara-gtk3" not found, tried pkgconfig and cmake

$ brew info zathura
zegervdv/zathura/zathura: stable 0.4.3
https://pwmt.org/projects/zathura/
Not installed
From: https://github.com/zegervdv/homebrew-zathura/blob/master/zathura.rb
==> Dependencies
Required: pkg-config ✔, libmagic ✔, gettext ✔, girara ✔, gnome-icon-theme ✔, glib ✔, desktop-file-utils ✔, intltool ✔, sphinx-doc ✔, meson --head ✔
Optional: synctex ✘
==> Requirements
Required: x11 ✔
==> Options
--with-synctex
        Build with synctex support

Brew info shows that all dependencies are met. But, while installing it is not finding one (girara-gtk3)

$ brew install zathura
Updating Homebrew...
==> Installing zathura from zegervdv/zathura
==> Downloading https://github.com/pwmt/zathura/archive/0.4.3.tar.gz
Already downloaded: /home/nikhil/.cache/Homebrew/downloads/805e8ef758797bf5f1aa56d6133c776105bcaf9d306c54b8321d668217a178e8--zathura-0.4.3.tar.gz
==> mkdir build
==> meson build --prefix /home/linuxbrew/.linuxbrew/Cellar/zathura/0.4.3
Last 15 lines from /home/nikhil/.cache/Homebrew/Logs/zathura/02.0.4.3:
Build dir: /tmp/zathura-20190417-15553-iaixga/zathura-0.4.3/build
Build type: native build
Project name: zathura
Project version: 0.4.3
Native C compiler: gcc-5 (gcc 5.5.0 "gcc-5 (Homebrew gcc 5.5.0_4) 5.5.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Library m found: YES
Found pkg-config: /home/linuxbrew/.linuxbrew/opt/pkg-config/bin/pkg-config (0.29.2)
Found CMake: /usr/bin/cmake (3.10.2)
Dependency girara-gtk3 found: NO (tried pkgconfig and cmake)

meson.build:40:0: ERROR: Dependency "girara-gtk3" not found, tried pkgconfig and cmake

Is it opened in the terminal?

I've seen many videos in which they use zathura on Linux. It seems that zathura is opened in the terminal (maybe I am wrong because I am not familiar with it). But I am using MacOS, when I open zathura, it just open a new window and displays the pdf in that window. Is it its behavior?

Cannot install zathura

Get the following message:

==> Pouring msgpack-3.0.1.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/msgpack/3.0.1: 731 files, 5.2MB
==> Upgrading zegervdv/zathura/zathura-pdf-poppler
==> Installing dependencies for zegervdv/zathura/zathura-pdf-poppler: zathura
==> Installing zegervdv/zathura/zathura-pdf-poppler dependency: zathura
==> Downloading https://pwmt.org/projects/zathura/download/zathura-0.3.9.tar.xz
Already downloaded: /Users/ian/Library/Caches/Homebrew/zathura-0.3.9.tar.xz
==> mkdir build
==> meson build --prefix /usr/local/Cellar/zathura/0.3.9
==> cd build && ninja && ninja install
Last 15 lines from /Users/ian/Library/Logs/Homebrew/zathura/03.cd:
    fix_darwin(fname, new_rpath)
  File "/usr/local/lib/python3.6/site-packages/mesonbuild/scripts/depfixer.py", line 376, in fix_darwin
    subprocess.check_call(['install_name_tool', '-add_rpath', new_rpath, fname])
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 286, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 267, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 1275, in _execute_child
    restore_signals, start_new_session, preexec_fn)
TypeError: expected str, bytes or os.PathLike object, not NoneType
FAILED: meson-install
/usr/local/opt/python/bin/python3.6 /usr/local/Cellar/meson/0.46.0/libexec/bin/meson --internal install /private/tmp/zathura-20180514-87722-1jr9i9b/zathura-0.3.9/build/meson-private/install.dat
ninja: build stopped: subcommand failed.

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/zegervdv/homebrew-zathura/issues

These open issues may also help:
cannot install zathura using --with-synctex https://github.com/zegervdv/homebrew-zathura/issues/28

zathura windows on macOS

When a zathura windows is opened, I can't control it with my shortcuts from BetterTouchTool and I can't close it with the standard macOS shortcuts CMD+w. So it seams like the window is not considered a "normal" window for macOS. Is there any possiblity to let it eather be treated as a normal window or at least let it spawn in a certain position on screen (defined by pixels)?

Also it would be nice if I could remove the titlebar at the top of the window (where the name of the file is displayed) completely. But that's not really an issue.

Add support for djvu

Hi, there is djvu plugin available for Linux zathura. Is there a chance that it can be added to this formula?

The only issue I remember with this plugin is that it requires a patch from macports to run on macOS. It would be great if this patch can be included here.

Thanks.

Problem with reinstalling zathura-pdf-poppler

I got the following error message while trying to upgrade/reinstall zathura-pdf-poppler:

Reinstalling zegervdv/zathura/zathura-pdf-poppler 
==> Downloading https://pwmt.org/projects/zathura-pdf-poppler/download/zathura-pdf-poppler-0.2.5.tar.gz
Already downloaded: /Users/maxim/Library/Caches/Homebrew/zathura-pdf-poppler-0.2.5.tar.gz
==> Downloading https://raw.githubusercontent.com/zegervdv/homebrew-zathura/master/zathura-pdf-poppler-config.mk.diff
Already downloaded: /Users/maxim/Library/Caches/Homebrew/zathura-pdf-poppler--patch-7acaaeeb5e75bf7cff864a850fc763d17a6a34dcbd3e11487d4d04a2904c8f49.diff
==> Downloading https://raw.githubusercontent.com/zegervdv/homebrew-zathura/master/zathura-pdf-poppler-Makefile.diff
Already downloaded: /Users/maxim/Library/Caches/Homebrew/zathura-pdf-poppler--patch-a3ee7155707028806e1abb9e4bdf88bfc7bd71cebd10e6ac741285b8e26b0e05.diff
==> Patching
==> Applying zathura-pdf-poppler-config.mk.diff
patching file config.mk
==> Applying zathura-pdf-poppler-Makefile.diff
patching file Makefile
==> make
==> make install
Last 15 lines from /Users/maxim/Library/Logs/Homebrew/zathura-pdf-poppler/02.make:
2017-08-13 22:18:46 +0200

make install

pdf build options:
CFLAGS  = -std=c99 -fPIC -pedantic -Wall -Wno-format-zero-length -I/usr/local/Cellar/pcre/8.41/include -I/usr/local/Cellar/glib/2.52.3/include/glib-2.0 -I/usr/local/Cellar/glib/2.52.3/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/libpng/1.6.31/include/libpng16 -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/fontconfig/2.12.4/include -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/pixman/0.34.0_1/include/pixman-1 -I/usr/local/Cellar/cairo/1.14.10/include/cairo -D_REENTRANT -I/usr/local/Cellar/pcre/8.41/include -I/usr/local/Cellar/glib/2.52.3/include/glib-2.0 -I/usr/local/Cellar/glib/2.52.3/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/libpng/1.6.31/include/libpng16 -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/fontconfig/2.12.4/include -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/pixman/0.34.0_1/include/pixman-1 -I/usr/local/Cellar/cairo/1.14.10/include/cairo -I/usr/local/Cellar/poppler/0.57.0_1/include/poppler/glib -I/usr/local/Cellar/poppler/0.57.0_1/include/poppler -D_REENTRANT -I/usr/local/Cellar/pcre/8.41/include -I/usr/local/Cellar/glib/2.52.3/include/gio-unix-2.0/ -I/usr/local/Cellar/glib/2.52.3/include/glib-2.0 -I/usr/local/Cellar/glib/2.52.3/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/libpng/1.6.31/include/libpng16 -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/fontconfig/2.12.4/include -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/pixman/0.34.0_1/include/pixman-1 -I/usr/local/Cellar/cairo/1.14.10/include/cairo -I/usr/local/Cellar/gdk-pixbuf/2.36.8/include/gdk-pixbuf-2.0 -I/usr/local/Cellar/atk/2.24.0/include/atk-1.0 -I/usr/local/Cellar/libepoxy/1.4.3/include -I/usr/local/Cellar/graphite2/1.3.10/include -I/usr/local/Cellar/harfbuzz/1.4.8_1/include/harfbuzz -I/usr/local/Cellar/pango/1.40.9/include/pango-1.0 -I/usr/local/Cellar/gtk+3/3.22.18/include/gtk-3.0 -I/usr/local/Cellar/girara/0.2.7/include -I/usr/local/Cellar/zathura/0.3.7/include -D_REENTRANT -I/usr/local/Cellar/pcre/8.41/include -I/usr/local/Cellar/glib/2.52.3/include/gio-unix-2.0/ -I/usr/local/Cellar/glib/2.52.3/include/glib-2.0 -I/usr/local/Cellar/glib/2.52.3/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/libpng/1.6.31/include/libpng16 -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/fontconfig/2.12.4/include -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/pixman/0.34.0_1/include/pixman-1 -I/usr/local/Cellar/cairo/1.14.10/include/cairo -I/usr/local/Cellar/gdk-pixbuf/2.36.8/include/gdk-pixbuf-2.0 -I/usr/local/Cellar/atk/2.24.0/include/atk-1.0 -I/usr/local/Cellar/libepoxy/1.4.3/include -I/usr/local/Cellar/graphite2/1.3.10/include -I/usr/local/Cellar/harfbuzz/1.4.8_1/include/harfbuzz -I/usr/local/Cellar/pango/1.40.9/include/pango-1.0 -I/usr/local/Cellar/gtk+3/3.22.18/include/gtk-3.0 -I/usr/local/Cellar/girara/0.2.7/include
LDFLAGS = -fPIC -fno-common
DFLAGS  = -g
CC      = clang
installing pdf plugin
cp: /usr/local/Cellar/zathura/0.3.7/lib/zathura/pdf.dylib: Operation not permitted
make: *** [install] Error 1

Which is really weird since brew does have all the necessary permissions in /usr/local/...

Installation instructions do not put plugins in the correct place

I followed the installation instructions and I got this error when launching zathura:

error: could not open plugin directory: /usr/local/Cellar/zathura/0.3.9/lib/zathura
error: Unknown file type: 'application/pdf'

It seems the brew --prefix zathura does not return the Cellar path:

% brew --prefix zathura
/usr/local/opt/zathura

I manually created the directory and linked the plugin in the Cellar and zathura now works.

Opening a link does not work

Opening a link with CMD+click fails with following message (translated, might be a bit different in english):
Could not run xdg-open.

Scrolling very slow

Hello,

I'm not sure this is the right place to get help but I figured fellow zathura macOS users could help me.
I installed zathura using this formulae, it works but I have a problem with the scrolling.
It's very slow. I tried changing scroll-step to various values, enabling smooth-scroll and changing the backend (poppler and mupdf) but it doesn't seem to change anything.

Here's a video where we can see the issue: https://dsh.re/b8daf

I have a Macbook Pro 2017 (3,1 GHz Intel Core i5 and 16 GB of RAM) and I am using zathura in full screen on a 4K screen. On smaller screens it's a bit faster.

Did anyone have this issue?

Thanks

--with-synctex installation failed

brew install zathura --with-synctex gives me this error

warning: Could not find remote branch 2017 to clone.
fatal: Remote branch 2017 not found in upstream origin
Error: An exception occurred within a child process:
  DownloadError: Failed to download resource "synctex"
Failure while executing; `git clone --depth 1 --branch 2017 https://github.com/jlaurens/synctex /Users/dr_selump14/Library/Caches/Homebrew/synctex--git` exited with 128. Here's the output:
Cloning into '/Users/dr_selump14/Library/Caches/Homebrew/synctex--git'...
warning: Could not find remote branch 2017 to clone.
fatal: Remote branch 2017 not found in upstream origin

It seems the owner of repository has removed the branch recently.
Is the 2017 branch really necessary?

Zathura Warning Message

When I open a pdf with Zathura I get the following error message:

Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.

I am running OS X 10.10.5

zathura-pdf-poppler failed to install (Calling <<-EOS.undent is disabled!)

==> Installing zegervdv/zathura/zathura-pdf-poppler
==> Downloading https://pwmt.org/projects/zathura-pdf-poppler/download/
######################################################################## 100.0%
==> make
==> make install
Error: Calling <<-EOS.undent is disabled!
Use <<~EOS instead.
/usr/local/Homebrew/Library/Taps/zegervdv/homebrew-zathura/zathura-pdf-poppler.rb:47:in `caveats'
Please report this to the zegervdv/zathura tap!
Or, even better, submit a PR to fix it!

zathura-pdf-poppler's download link from macport seems broken

cannot install zathura-pdf-poppler because download link is invalid...

➜ app brew install zathura-pdf-poppler ==> Installing zathura-pdf-poppler from zegervdv/homebrew-zathura
==> Downloading https://pwmt.org/projects/zathura-pdf-poppler/download/zathura-p ######################################################################## 100.0%
==> Downloading https://trac.macports.org/browser/trunk/dports/office/zathura-pl curl: (28) Operation timed out after 0 milliseconds with 0 out of 0 bytes received

Zathura opening pdf: Unknown file type

When i try to use Zathura to open any .pdf file i get an error, i followed install guide with the following:
$brew install Zathura
$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

Now when i try to open a pdf, i get an error message in terminal, and zathura opens with a black screen.
Command i used to open pdf:
$zathura Uge50.pdf
i also tried a pdf i made in vimtex, with the same result.
Error message:
error: Unknown file type: 'dyn.agq80g2psr311kkdtsbw06kdaf741g3pwsq10c5dftbu063dfsm2gn8pytk11n35fgy2c66deq2xwandsr6uhg7pdraugq4pqqyug86vaqvy1e3pdsv11e8mm'

Upon seeing this issue
I have now done
$brew install zathura-pdf-mupdf
and afterwards:
$ln -s $(brew --prefix zathura-pdf-mupdf)/libpdf-mupdf.dylib $(brew --prefix zathura)/lib/zathura/libpdf-mupdf.dylib

Which still doesent resolve the issue.

While installing `zathura-pdf-poppler`, meson can't find zathura!

While installing zathura-pdf-poppler, meson can't find zathura!

$ brew reinstall zathura
==> Reinstalling zegervdv/zathura/zathura 
==> Downloading https://github.com/pwmt/zathura/archive/0.4.4.tar.gz
Already downloaded: /home/nikhil/.cache/Homebrew/downloads/d034fb89f7ee33fcb9548afdb0fc5a3ba1c720d7e3f94407e6d6255b03b3ac20--zathura-0.4.4.tar.gz
==> mkdir build
==> meson build --prefix /home/linuxbrew/.linuxbrew/Cellar/zathura/0.4.4 --libdir Cellar
==> cd build && ninja && ninja install
==> Caveats
zsh completions have been installed to:
  /home/linuxbrew/.linuxbrew/share/zsh/site-functions
==> Summary
🍺  /home/linuxbrew/.linuxbrew/Cellar/zathura/0.4.4: 52 files, 1.3MB, built in 46 seconds
$ brew install zathura-pdf-poppler
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
No changes to formulae.

==> Installing zathura-pdf-poppler from zegervdv/zathura
==> Downloading https://github.com/pwmt/zathura-pdf-poppler/archive/0.2.9.tar.gz
Already downloaded: /home/nikhil/.cache/Homebrew/downloads/8a85c4842f8407b9b75cf74a6eac8c7e91db224a0bf36dd9efe09813c3ac6d16--zathura-pdf-poppler-0.2.9.tar.gz
==> mkdir build
==> meson build --prefix /home/linuxbrew/.linuxbrew/Cellar/zathura-pdf-poppler/0.2.9
Last 15 lines from /home/nikhil/.cache/Homebrew/Logs/zathura-pdf-poppler/02.0.2.9:
Build dir: /tmp/zathura-pdf-poppler-20200130-19999-4y5uup/zathura-pdf-poppler-0.2.9/build
Build type: native build
Project name: zathura-pdf-poppler
Project version: 0.2.9
C compiler for the host machine: gcc-5 (gcc 5.5.0 "gcc-5 (Homebrew GCC 5.5.0_7) 5.5.0")
C linker for the host machine: gcc-5 GNU ld.bfd 2.33.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /home/linuxbrew/.linuxbrew/opt/pkg-config/bin/pkg-config (0.29.2)
Found CMake: /home/linuxbrew/.linuxbrew/opt/cmake/bin/cmake (3.16.3)
Run-time dependency zathura found: NO (tried pkgconfig and cmake)

meson.build:18:0: ERROR: Dependency "zathura" not found, tried pkgconfig and cmake

A full log can be found at /tmp/zathura-pdf-poppler-20200130-19999-4y5uup/zathura-pdf-poppler-0.2.9/build/meson-logs/meson-log.txt

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/zegervdv/homebrew-zathura/issues

Zathura not opening PDFs, throwing error on -v

$ zathura test.pdf

error: could not open plugin directory: /usr/local/Cellar/zathura/0.4.5/lib/zathura

error: Could not determine file type.

— and hangs.

$ zathura -v

error: could not open plugin directory: /usr/local/Cellar/zathura/0.4.5/lib/zathura

zathura 0.4.5

girara 0.3.4 (runtime: 0.3.4)

Reinstalling etc. doesn't help.

synctex support

I am unable to compile zathura with synctex support.

I have just installed MacTex2016 using the pkg from their site and linked with FixLink.pkg

This is the output of --help:

Usage:
  zathura [OPTION…]  [file1] [file2] [...]

Help Options:
  -h, --help                  Show help options

Application Options:
  -e, --reparent=xid          Reparents to window specified by xid (X11)
  -c, --config-dir=path       Path to the config directory
  -d, --data-dir=path         Path to the data directory
  --cache-dir=path            Path to the cache directory
  -p, --plugins-dir=path      Path to the directories containing plugins
  --fork                      Fork into the background
  -w, --password=password     Document password
  -P, --page=number           Page number to go to
  -l, --log-level=level       Log level (debug, info, warning, error)
  -v, --version               Print version information
  --mode=mode                 Start in a non-default mode

Looking at the makefile, it checks for synctex with pkg-config synctex, which fails, disabling synctex. If it is enabled, <synctex/synctex_parser.h> is included, which doesn't exist on my system.

Is there any way to compile with synctex support?

brew install fails trying to install dependency glib

➜ zathura git:(master) brew install zathura
==> Installing zathura from zegervdv/homebrew-zathura
==> Installing dependencies for zegervdv/zathura/zathura: glib, gobject-intros
==> Installing zegervdv/zathura/zathura dependency: glib
==> Downloading https://download.gnome.org/sources/glib/2.44/glib-2.44.1.tar.xz
curl: (35) error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112)
Error: Failed to download resource "glib"
Download failed: https://download.gnome.org/sources/glib/2.44/glib-2.44.1.tar.xz
➜ zathura git:(master)

Any key doesn't work in commande

Hello
I installed zathura with brew on my el capitan but none keys work in commande line.
The j,k,h,l,o and other key work correctly in normal mode. The only key to work in commande line is Esc.
An idea from this isue?

ld: library not found for -lmagic

Here is the Homebrew log of the build. It fails when trying to link -lmagic

2016-08-01 14:19:18 +1000

make

zathura build options:
CFLAGS  = -std=c11 -pedantic -Wall -Wno-format-zero-length -Wextra -D_REENTRANT -I/usr/local/Cellar/pcre/8.39/include -I/usr/local/Cellar/glib/2.48.1/include/gio-unix-2.0/ -I/usr/local/Cellar/glib/2.48.1/include/glib-2.0 -I/usr/local/Cellar/glib/2.48.1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/libpng/1.6.23/include/libpng16 -I/usr/local/Cellar/freetype/2.6.5/include/freetype2 -I/usr/local/Cellar/fontconfig/2.11.1_4/include -I/usr/local/Cellar/freetype/2.6.5/include/freetype2 -I/usr/local/Cellar/pixman/0.34.0/include/pixman-1 -I/usr/local/Cellar/cairo/1.14.6_1/include/cairo -I/usr/local/Cellar/gdk-pixbuf/2.34.0/include/gdk-pixbuf-2.0 -I/usr/local/Cellar/atk/2.20.0/include/atk-1.0 -I/usr/local/Cellar/libepoxy/1.3.1/include -I/usr/local/Cellar/harfbuzz/1.2.7/include/harfbuzz -I/usr/local/Cellar/pango/1.40.1/include/pango-1.0 -I/usr/local/Cellar/gtk+3/3.20.6/include/gtk-3.0 -I/usr/local/Cellar/girara/0.2.6/include -D_REENTRANT -I/usr/local/Cellar/pcre/8.39/include -I/usr/local/Cellar/glib/2.48.1/include/gio-unix-2.0/ -I/usr/local/Cellar/glib/2.48.1/include/glib-2.0 -I/usr/local/Cellar/glib/2.48.1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/libpng/1.6.23/include/libpng16 -I/usr/local/Cellar/freetype/2.6.5/include/freetype2 -I/usr/local/Cellar/fontconfig/2.11.1_4/include -I/usr/local/Cellar/freetype/2.6.5/include/freetype2 -I/usr/local/Cellar/pixman/0.34.0/include/pixman-1 -I/usr/local/Cellar/cairo/1.14.6_1/include/cairo -I/usr/local/Cellar/gdk-pixbuf/2.34.0/include/gdk-pixbuf-2.0 -I/usr/local/Cellar/atk/2.20.0/include/atk-1.0 -I/usr/local/Cellar/libepoxy/1.3.1/include -I/usr/local/Cellar/harfbuzz/1.2.7/include/harfbuzz -I/usr/local/Cellar/pango/1.40.1/include/pango-1.0 -I/usr/local/Cellar/gtk+3/3.20.6/include/gtk-3.0 -D_REENTRANT -I/usr/local/Cellar/pcre/8.39/include -I/usr/local/Cellar/glib/2.48.1/include/glib-2.0 -I/usr/local/Cellar/glib/2.48.1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -D_REENTRANT -I/usr/local/Cellar/pcre/8.39/include -I/usr/local/Cellar/glib/2.48.1/include/glib-2.0 -I/usr/local/Cellar/glib/2.48.1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.39/include -I/usr/local/Cellar/glib/2.48.1/include/glib-2.0 -I/usr/local/Cellar/glib/2.48.1/lib/glib-2.0/include -I/usr/local/opt/gettext/include  
LIBS    = -L/usr/local/Cellar/girara/0.2.6/lib -lgirara-gtk3 -L/usr/local/Cellar/glib/2.48.1/lib -L/usr/local/opt/gettext/lib -L/usr/local/Cellar/cairo/1.14.6_1/lib -L/usr/local/Cellar/gdk-pixbuf/2.34.0/lib -L/usr/local/Cellar/atk/2.20.0/lib -L/usr/local/Cellar/pango/1.40.1/lib -L/usr/local/Cellar/gtk+3/3.20.6/lib -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl -L/usr/local/Cellar/glib/2.48.1/lib -L/usr/local/opt/gettext/lib -lgthread-2.0 -lglib-2.0 -lintl -L/usr/local/Cellar/glib/2.48.1/lib -L/usr/local/opt/gettext/lib -lgmodule-2.0 -lglib-2.0 -lintl -L/usr/local/Cellar/glib/2.48.1/lib -L/usr/local/opt/gettext/lib -lglib-2.0 -lintl -lpthread -lm -lsqlite3 -lmagic
DFLAGS  = -g
CC      = clang
make[1]: Nothing to be done for `man'.
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/adjustment.c�[34m �(B�[m
�[34m [�[1m�[33mMSGFMT�[34m] �[1m�[32mca�[34m �(B�[m
�[34m [�[1m�[33mMSGFMT�[34m] �[1m�[32mcs�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/bookmarks.c�[34m �(B�[m
�[34m [�[1m�[33mMSGFMT�[34m] �[1m�[32mde�[34m �(B�[m
�[34m [�[1m�[33mMSGFMT�[34m] �[1m�[32mel�[34m �(B�[m
�[34m [�[1m�[33mMSGFMT�[34m] �[1m�[32meo�[34m �(B�[m
�[34m [�[1m�[33mMSGFMT�[34m] �[1m�[32mes�[34m �(B�[m
�[34m [�[1m�[33mMSGFMT�[34m] �[1m�[32mes_CL�[34m �(B�[m
�[34m [�[1m�[33mMSGFMT�[34m] �[1m�[32met�[34m �(B�[m
�[34m [�[1m�[33mMSGFMT�[34m] �[1m�[32mfr�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/callbacks.c�[34m �(B�[m
�[34m [�[1m�[33mMSGFMT�[34m] �[1m�[32mhe�[34m �(B�[m
�[34m [�[1m�[33mMSGFMT�[34m] �[1m�[32mhr�[34m �(B�[m
�[34m [�[1m�[33mMSGFMT�[34m] �[1m�[32mid_ID�[34m �(B�[m
�[34m [�[1m�[33mMSGFMT�[34m] �[1m�[32mit�[34m �(B�[m
�[34m [�[1m�[33mMSGFMT�[34m] �[1m�[32mlt�[34m �(B�[m
�[34m [�[1m�[33mMSGFMT�[34m] �[1m�[32mno�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/commands.c�[34m �(B�[m
�[34m [�[1m�[33mMSGFMT�[34m] �[1m�[32mpl�[34m �(B�[m
�[34m [�[1m�[33mMSGFMT�[34m] �[1m�[32mpt_BR�[34m �(B�[m
�[34m [�[1m�[33mMSGFMT�[34m] �[1m�[32mru�[34m �(B�[m
�[34m [�[1m�[33mMSGFMT�[34m] �[1m�[32mta_IN�[34m �(B�[m
�[34m [�[1m�[33mMSGFMT�[34m] �[1m�[32mtr�[34m �(B�[m
�[34m [�[1m�[33mMSGFMT�[34m] �[1m�[32muk_UA�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/completion.c�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/config.c�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/content-type.c�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/database-plain.c�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/database-sqlite.c�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/database.c�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/dbus-interface.c�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/document.c�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/jumplist.c�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/links.c�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/main.c�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/marks.c�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/page-widget.c�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/page.c�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/plugin.c�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/print.c�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/render.c�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/shortcuts.c�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/synctex.c�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/types.c�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/utils.c�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/zathura.c�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/css-definitions.c�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mzathura/dbus-interface-definitions.c�[34m �(B�[m
�[34m [�[1m�[33mCC�[34m] �[1m�[32mbuild/release/bin/zathura�[34m �(B�[m
ld: library not found for -lmagic
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [build/release/bin/zathura] Error 1

HOMEBREW_VERSION: 0.9.9
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: cdf4f42ab951214fb7fac0781091783552415944
Last commit: 3 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 8d95ccdd5168d89e500d49222af001f13cf5430c
Core tap last commit: 3 weeks ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.0.0-p481
GCC-4.2: build 5666
Clang: 7.0 build 700
Git: 2.5.4 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: 1.8.0_60, 1.8.0_11
OS X: 10.10.5-x86_64
Xcode: 7.2.1
CLT: 7.2.0.0.1.1447826929
X11: 2.7.8 => /opt/X11

HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /usr/local/opt/gettext:/usr/local/opt/libffi:/usr/local/opt/icu4c:/usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/opt/X11/include:/opt/X11/include/freetype2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /opt/X11/lib:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
MACOSX_DEPLOYMENT_TARGET: 10.10
PKG_CONFIG_PATH: /usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/pcre/lib/pkgconfig:/usr/local/opt/glib/lib/pkgconfig:/usr/local/opt/libtiff/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig:/usr/local/opt/fontconfig/lib/pkgconfig:/usr/local/opt/pixman/lib/pkgconfig:/usr/local/opt/cairo/lib/pkgconfig:/usr/local/opt/gobject-introspection/lib/pkgconfig:/usr/local/opt/gdk-pixbuf/lib/pkgconfig:/usr/local/opt/atk/lib/pkgconfig:/usr/local/opt/libepoxy/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/harfbuzz/lib/pkgconfig:/usr/local/opt/pango/lib/pkgconfig:/usr/local/opt/gtk+3/lib/pkgconfig:/usr/local/opt/girara/lib/pkgconfig:/usr/local/opt/gsettings-desktop-schemas/share/pkgconfig:/usr/local/opt/gnome-icon-theme/share/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.10:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig
ACLOCAL_PATH: /usr/local/opt/gettext/share/aclocal:/usr/local/share/aclocal:/opt/X11/share/aclocal
PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/pkg-config/bin:/usr/local/opt/gettext/bin:/usr/local/opt/pcre/bin:/usr/local/opt/glib/bin:/usr/local/opt/jpeg/bin:/usr/local/opt/libtiff/bin:/usr/local/opt/libpng/bin:/usr/local/opt/freetype/bin:/usr/local/opt/fontconfig/bin:/usr/local/opt/cairo/bin:/usr/local/opt/gobject-introspection/bin:/usr/local/opt/gdk-pixbuf/bin:/usr/local/opt/icu4c/bin:/usr/local/opt/harfbuzz/bin:/usr/local/opt/pango/bin:/usr/local/opt/gtk+3/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin

Zathura crashing on segmentation fault

I'm not sure if this is on my end or not, but after opening up a .pdf file from a directory in my terminal (iTerm 2 w/ zsh) about 20 seconds or so I crash with the error saying

"[1] 76878 segmentation fault zathura pdfFileName.pdf"

Any ideas what's this from, such as anything from my end?

On Mac OS with the newest update.

Can't open pdf Mojave

I've installed Zathura + zathura-pdf-poppler following the instruccion and it works fine. Then when I tried to open a pdf it prompts: objc[123]: +[NSResponder initialize] may have been in progress in another thread when fork() was called.
I found a workaround at link: export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
But now it prompts:
The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec().
Break on THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC() to debug

I reinstalled Zathura but still dont work

The commands:
516 brew tap zegervdv/zathura
517 brew install zathura
518 brew reinstall zathura
519 brew install zathura-pdf-poppler
520 brew reinstall zathura-pdf-poppler
521 vim ~/.config/zathura/zathurarc
522 zathura --version
523 mkdir -p $(brew --prefix zathura)/lib/zathura
524 ln -s $(brew --prefix zathura-pdf-poppler)/libpdf-poppler.dylib $(brew --prefix zathura)/lib/zathura/libpdf-poppler.dylib
525 zathura --version
526 cd ./Downloads
527 zathura - ./constancia.pdf

MacBook Pro (13-inch, Mid 2012)
macOS Mojave 10.14.4

New windows do not autofocus

When opening any document with zathura, the window does not gain focus automatically, and I have to use CMD+Tab to switch to the zathura window manually each time.

I'm wondering, is this the normal behaviour on MacOS?

Thank you.

brew install fails, on installation of dependency "GLIB"

➜ zathura git:(master) brew install zathura
==> Installing zathura from zegervdv/homebrew-zathura
==> Installing dependencies for zegervdv/zathura/zathura: glib, gobject-intros
==> Installing zegervdv/zathura/zathura dependency: glib
==> Downloading https://download.gnome.org/sources/glib/2.44/glib-2.44.1.tar.xz
curl: (35) error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112)
Error: Failed to download resource "glib"
Download failed: https://download.gnome.org/sources/glib/2.44/glib-2.44.1.tar.xz
➜ zathura git:(master)

Cannot install zathura

When I try to install zathura I get the following error message:

Last 15 lines from /Users/arwed/Library/Logs/Homebrew/zathura/03.cd:
fix_darwin(fname, new_rpath)
File "/usr/local/lib/python3.6/site-packages/mesonbuild/scripts/depfixer.py", line 376, in fix_darwin
subprocess.check_call(['install_name_tool', '-add_rpath', new_rpath, fname])
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 286, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 267, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 709, in init
restore_signals, start_new_session)
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 1275, in _execute_child
restore_signals, start_new_session, preexec_fn)
TypeError: expected str, bytes or os.PathLike object, not NoneType
FAILED: meson-install
/usr/local/opt/python/bin/python3.6 /usr/local/Cellar/meson/0.46.0/libexec/bin/meson --internal install /private/tmp/zathura-20180504-35446-jipb5h/zathura-0.3.9/build/meson-private/install.dat
ninja: build stopped: subcommand failed.

zathura not reading the zathurarc file

Hi,

first of all, thanks a lot for the formula! I really struggle to make meson build work (girara-gtk3 isn't found) and your formula saved me.

the thing is, zathura doesn't load the zathurarc file no matter where I place it (~/.config/zathura/zathurarc , ~/etc/zathurarc , ~/.local/share/zathura/zathurarc which is where it logs command history and such..)
the developers have released a new version which logs the files zathura is trying to load when launching. could you update the formula so it would include the new version?

or on the other hand, if altering the formula is a pesky task, is there a way to install the new version using your existing formula? maybe with some modifications on my side?

Failed to install zathura-djvu after upgrading to zathura 0.3.9

On MacOS High Sierra 10.13.4.

==> Installing zathura-djvu from zegervdv/zathura
==> Downloading https://pwmt.org/projects/zathura-djvu/download/zathura-djvu-0.2.6.tar.gz
Already downloaded: /Users/hsw/Library/Caches/Homebrew/zathura-djvu-0.2.6.tar.gz
==> Downloading https://github.com/zegervdv/homebrew-zathura/raw/master/zathura-djvu-patch-Makefile.diff
Already downloaded: /Users/hsw/Library/Caches/Homebrew/zathura-djvu--patch-e26dbf219c58e1d3537ac2a478b0275ea4d50b9ccea05005d93f297f901da751.diff
==> Downloading https://github.com/zegervdv/homebrew-zathura/raw/master/zathura-djvu-patch-config.mk.diff
Already downloaded: /Users/hsw/Library/Caches/Homebrew/zathura-djvu--patch-1528cf683de8c6af2425c9f1ec062acfddd5e558f8017a4c50f679e09aaac0c8.diff
==> Patching
==> Applying zathura-djvu-patch-Makefile.diff
patching file Makefile
==> Applying zathura-djvu-patch-config.mk.diff
patching file config.mk
Hunk #1 succeeded at 46 with fuzz 2 (offset 3 lines).
==> make install
Last 15 lines from /Users/hsw/Library/Logs/Homebrew/zathura-djvu/01.make:
CC page-text.c
djvu.c:40:3: error: expected parameter declarator
  "djvu",
  ^
djvu.c:40:3: error: expected ')'
djvu.c:39:24: note: to match this '('
ZATHURA_PLUGIN_REGISTER(
                       ^
djvu.c:46:2: error: expected ';' after top level declarator
)
 ^
 ;
3 errors generated.
make: *** [djvu.o] Error 1
make: *** Waiting for unfinished jobs....

Installation of Zathura via Brew stopped on dependency GTK+3

➜ ~ brew install zathura
==> Installing zathura from zegervdv/homebrew-zathura
==> Installing dependencies for zegervdv/zathura/zathura: gtk+3, girara
==> Installing zegervdv/zathura/zathura dependency: gtk+3
==> Downloading https://download.gnome.org/sources/gtk+/3.16/gtk+-3.16.3.tar.xz
Already downloaded: /Library/Caches/Homebrew/gtk+3-3.16.3.tar.xz
==> ./configure --prefix=/usr/local/Cellar/gtk+3/3.16.3 --disable-glibtest --ena
==> make install
gtksettings.c:910: Warning: Gtk: unexpected annotation: element-type
Command '['/private/tmp/gtk+320150604-28348-qf2q3w/gtk+-3.16.3/gtk/tmp-introspectSKIjS0/Gtk-3.0', '--introspect-dump=/private/tmp/gtk+320150604-28348-qf2q3w/gtk+-3.16.3/gtk/tmp-introspectSKIjS0/functions.txt,/private/tmp/gtk+320150604-28348-qf2q3w/gtk+-3.16.3/gtk/tmp-introspectSKIjS0/dump.xml']' returned non-zero exit status -11
make[2]: *** [Gtk-3.0.gir] Error 1
make[1]: *** [install] Error 2
make: *** [install-recursive] Error 1

READ THIS: https://git.io/brew-troubleshooting

Any idea on how to get through this error. I can post brew doctor output if you want it.

Errors when upgrading zathura

On MacOS High Sierra 10.13.4, I get the following error when trying to update zathura.

==> Upgrading 1 outdated package, with result:
zegervdv/zathura/zathura 0.3.7 -> 0.3.9
==> Upgrading zegervdv/zathura/zathura
==> Downloading https://pwmt.org/projects/zathura/download/zathura-0.3.9.tar.xz
Already downloaded: /Users/hsw/Library/Caches/Homebrew/zathura-0.3.9.tar.xz
==> Downloading https://github.com/zegervdv/homebrew-zathura/raw/master/zathura-meson.patch
Already downloaded: /Users/hsw/Library/Caches/Homebrew/zathura--patch-e63a5cd92e3e4a6aa735714032fe1f7a12a513286f91d162670d09f930aea60c.patch
==> Patching
==> Applying zathura-meson.patch
patching file meson.build
==> mkdir build
==> meson build --prefix /usr/local/Cellar/zathura/0.3.9
==> cd build && ninja && ninja install
Last 15 lines from /Users/hsw/Library/Logs/Homebrew/zathura/03.cd:
fix_darwin(fname, new_rpath)
File "/usr/local/lib/python3.6/site-packages/mesonbuild/scripts/depfixer.py", line 376, in fix_darwin
subprocess.check_call(['install_name_tool', '-add_rpath', new_rpath, fname])
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 286, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 267, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 709, in init
restore_signals, start_new_session)
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 1275, in _execute_child
restore_signals, start_new_session, preexec_fn)
TypeError: expected str, bytes or os.PathLike object, not NoneType
FAILED: meson-install
/usr/local/opt/python/bin/python3.6 /usr/local/Cellar/meson/0.46.0/libexec/bin/meson --internal install /private/tmp/zathura-20180506-87267-zvy834/zathura-0.3.9/build/meson-private/install.dat
ninja: build stopped: subcommand failed.

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/zegervdv/homebrew-zathura/issues

cannot install zathura using --with-synctex

I'm trying to install zathura with syntex for use with vimtex.

brew doctor is clean. Here's the output of brew install zathura --with-synctex :

mccec0678:~ user$ brew install zathura --with-synctex
Updating Homebrew...
==> Installing zathura from zegervdv/zathura
==> Installing dependencies for zegervdv/zathura/zathura: synctex
==> Installing zegervdv/zathura/zathura dependency: synctex
==> Downloading https://github.com/barracks510/synctexdir/archive/master.zip
Already downloaded: /Users/user/Library/Caches/Homebrew/synctex-1.18.0.zip
==> gcc -D__SYNCTEX_WORK__ -Wall -I. -lz -shared synctex_parser.c synctex_parser_utils.c -o libsynctex.dylib
Last 15 lines from /Users/user/Library/Logs/Homebrew/synctex/01.gcc:
2018-05-14 14:06:22 +0200
gcc -D__SYNCTEX_WORK__ -Wall -I. -lz -shared synctex_parser.c synctex_parser_utils.c -o libsynctex.dylib
synctex_parser.c:270:12: fatal error: '/usr/include/zlib.h' file not found
# include "/usr/include/zlib.h"
__________ ^~~~~~~~~~~~~~~~~~~~~
1 error generated.
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/zegervdv/homebrew-zathura/issues

Any suggestions? Thanks

Synctex option not showing up

Hi, I have been using zathura as my main PDF viewer and absolutely love it. I am now trying to set it up for synctex with VSCode.

However, even after installing zathura with brew install zathura --with-synctex, the synctex still do not show up when I issue zathura -h.

How do I get synctex to work with zathura?

Any help will be greatly appreciated, thank you!

install as an app

Is it possible to use brew cask to install zathura as a macOS application?

zathura isn't launched from ViM without --with-synctex

Hello,

I am using ViM with vimtex and zathura on macOS (Catalina), and I've always had issues making zathura work properly through vim. it would simply not open an instance after hitting \ll (continuous compilation by vimtex).

Eventually I found out it won't work if synctex isn't installed properly. I must install zathura with synctex arg
brew install zathura --with-synctex
This way it works seamlessly, with forward-backward search, manage windows etc.

Without the synctex arg, it would work perfectly, refreshing and everything, if I launch zathura from the terminal
zathura "file path"
and it would also load correctly if I'd run it from vim with the following command(but I couldn't edit the vim file until I finish the task which closes the window)
:!zathura %:r.pdf

Also, some zathura versions didn't have synctex (I think 4.3) and installing with this arg would fail. so I had to
brew edit zathura
change the version and link version to 4.2, than install, homebrew would say the excepted sha256 is not as the actual one, copy the actual one, "brew edit zathura" and replace the sha256. this would install the specified version and allow me to use synctex.

Am I doing something wrong that causes this? If not, I would strongly suggest that you'd add the --with-synctex arg to the installation guide.

Thanks a ton for porting zathura to macOS. I love this viewer!

Failed to download resource "girara"

is it just me or there is an error downloading this package.. is there another way to complete installation.

curl: (22) The requested URL returned error: 504
Error: Failed to download resource "girara"
Download failed: https://pwmt.org/projects/girara/download/girara-0.2.9.tar.xz
zsh: exit 1     brew install zathura

thanks

~$ brew install zathura-pdf-mupdf fails on macOS 10.14.6

==> Installing zathura-pdf-mupdf from zegervdv/zathura ==> Downloading https://github.com/pwmt/zathura-pdf-mupdf/archive/0.3.4.tar.gz ==> Downloading from https://codeload.github.com/pwmt/zathura-pdf-mupdf/tar.gz/0.3.4 ######################################################################## 100.0% ==> mkdir build ==> meson build --prefix /usr/local/Cellar/zathura-pdf-mupdf/0.3.4 ==> cd build && ninja && ninja install Last 15 lines from /Users/marekkowalczyk/Library/Logs/Homebrew/zathura-pdf-mupdf/03.cd: [6/11] Compiling C object 'pdf-mupdf@sha/zathura-pdf-mupdf_document.c.o'. [7/11] Compiling C object 'pdf-mupdf@sha/zathura-pdf-mupdf_utils.c.o'. [8/11] Compiling C object 'pdf-mupdf@sha/zathura-pdf-mupdf_select.c.o'. [9/11] Compiling C object 'pdf-mupdf@sha/zathura-pdf-mupdf_render.c.o'. [10/11] Compiling C object 'pdf-mupdf@sha/zathura-pdf-mupdf_search.c.o'. FAILED: pdf-mupdf@sha/zathura-pdf-mupdf_search.c.o clang -Ipdf-mupdf@sha -I. -I.. -I/usr/local/Cellar/libffi/3.2.1/lib/libffi-3.2.1/include -I/usr/local/Cellar/pcre/8.44/include -I/usr/local/Cellar/glib/2.62.5/include/gio-unix-2.0 -I/usr/local/Cellar/glib/2.62.5/include -I/usr/local/Cellar/glib/2.62.5/include/glib-2.0 -I/usr/local/Cellar/glib/2.62.5/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/atk/2.34.1/include/atk-1.0 -I/usr/local/Cellar/libpng/1.6.37/include/libpng16 -I/usr/local/Cellar/gdk-pixbuf/2.40.0/include/gdk-pixbuf-2.0 -I/usr/local/Cellar/libepoxy/1.5.4/include -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/fontconfig/2.13.1/include -I/usr/local/Cellar/pixman/0.38.4/include/pixman-1 -I/usr/local/Cellar/cairo/1.16.0_2/include/cairo -I/usr/local/Cellar/fribidi/1.0.8/include/fribidi -I/usr/local/Cellar/graphite2/1.3.13/include -I/usr/local/Cellar/harfbuzz/2.6.4/include/harfbuzz -I/usr/local/Cellar/pango/1.44.7/include/pango-1.0 -I/usr/local/Cellar/gtk+3/3.24.14/include/gtk-3.0 -I/usr/local/Cellar/girara/0.3.3/include -I/usr/local/Cellar/zathura/0.4.4/include -Xclang -fcolor-diagnostics -pipe -Wall -Winvalid-pch -std=c11 -g -DVERSION_MAJOR=0 -DVERSION_MINOR=3 -DVERSION_REV=4 -D_DEFAULT_SOURCE -Wall -Wextra -pedantic -Werror=implicit-function-declaration -Werror=vla -fvisibility=hidden -MD -MQ 'pdf-mupdf@sha/zathura-pdf-mupdf_search.c.o' -MF 'pdf-mupdf@sha/zathura-pdf-mupdf_search.c.o.d' -o 'pdf-mupdf@sha/zathura-pdf-mupdf_search.c.o' -c ../zathura-pdf-mupdf/search.c ../zathura-pdf-mupdf/search.c:42:23: error: expected expression fz_quad* hit_bbox = fz_malloc_array(mupdf_page->ctx, N_SEARCH_RESULTS, sizeof(fz_quad)); ^ /usr/local/include/mupdf/fitz/context.h:296:9: note: expanded from macro 'fz_malloc_array' ((TYPE*)Memento_label(fz_malloc(CTX, (COUNT) * sizeof(TYPE)), #TYPE "[]")) ^ 1 error generated. ninja: build stopped: subcommand failed.

Cannot install zathura-pdf-mupdf

Terminal output as below

==> mkdir build
==> meson build --prefix /usr/local/Cellar/zathura-pdf-mupdf/0.3.5
==> cd build && ninja && ninja install
Last 15 lines from /Users/a123/Library/Logs/Homebrew/zathura-pdf-mupdf/03.cd:
      target.page_number      = fz_resolve_link(ctx, document, outline->uri, &x, &y);
                              ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[3/11] Compiling C object 'pdf-mupdf@sha/zathura-pdf-mupdf_page.c.o'
[4/11] Compiling C object 'pdf-mupdf@sha/zathura-pdf-mupdf_links.c.o'
FAILED: pdf-mupdf@sha/zathura-pdf-mupdf_links.c.o 
clang -Ipdf-mupdf@sha -I. -I.. -I/usr/local/Cellar/libffi/3.3/include -I/usr/local/Cellar/pcre/8.44/include -I/usr/local/Cellar/glib/2.64.2_1/include/gio-unix-2.0 -I/usr/local/Cellar/glib/2.64.2_1/include -I/usr/local/Cellar/glib/2.64.2_1/include/glib-2.0 -I/usr/local/Cellar/glib/2.64.2_1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/atk/2.36.0/include/atk-1.0 -I/usr/local/Cellar/libpng/1.6.37/include/libpng16 -I/usr/local/Cellar/gdk-pixbuf/2.40.0/include/gdk-pixbuf-2.0 -I/usr/local/Cellar/libepoxy/1.5.4/include -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/fontconfig/2.13.1/include -I/usr/local/Cellar/pixman/0.40.0/include/pixman-1 -I/usr/local/Cellar/cairo/1.16.0_3/include/cairo -I/usr/local/Cellar/fribidi/1.0.9/include/fribidi -I/usr/local/Cellar/graphite2/1.3.14/include -I/usr/local/Cellar/harfbuzz/2.6.5_1/include/harfbuzz -I/usr/local/Cellar/pango/1.44.7/include/pango-1.0 -I/usr/local/Cellar/gtk+3/3.24.18_1/include/gtk-3.0 -I/usr/local/Cellar/girara/0.3.4/include -I/usr/local/Cellar/zathura/0.4.5/include -Xclang -fcolor-diagnostics -pipe -Wall -Winvalid-pch -std=c11 -g -DVERSION_MAJOR=0 -DVERSION_MINOR=3 -DVERSION_REV=5 -D_DEFAULT_SOURCE -Wall -Wextra -pedantic -Werror=implicit-function-declaration -Werror=vla -fvisibility=hidden -MD -MQ 'pdf-mupdf@sha/zathura-pdf-mupdf_links.c.o' -MF 'pdf-mupdf@sha/zathura-pdf-mupdf_links.c.o.d' -o 'pdf-mupdf@sha/zathura-pdf-mupdf_links.c.o' -c ../zathura-pdf-mupdf/links.c
../zathura-pdf-mupdf/links.c:59:31: error: assigning to 'unsigned int' from incompatible type 'fz_location'
      target.page_number      = fz_resolve_link(mupdf_document->ctx,
                              ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[5/11] Compiling C object 'pdf-mupdf@sha/zathura-pdf-mupdf_document.c.o'
[6/11] Compiling C object 'pdf-mupdf@sha/zathura-pdf-mupdf_image.c.o'
[7/11] Compiling C object 'pdf-mupdf@sha/zathura-pdf-mupdf_render.c.o'
ninja: build stopped: subcommand failed.

Cannot install zathura 0.3.9 (meson.build: Unknown variable "m")

==> mkdir build
==> meson build --prefix /usr/local/Cellar/zathura/0.3.9
Last 15 lines from /Users/skrattaren/Library/Logs/Homebrew/zathura/02.0.3.9:
The Meson build system
Version: 0.47.0.dev1
Source dir: /private/tmp/zathura-20180506-33509-ppm5sr/zathura-0.3.9
Build dir: /private/tmp/zathura-20180506-33509-ppm5sr/zathura-0.3.9/build
Build type: native build
Project name: zathura
Native C compiler: clang (clang 9.1.0 "Apple LLVM version 9.1.0 (clang-902.0.39.1)")
Build machine cpu family: x86_64
Build machine cpu: x86_64
WARNING: Passed invalid keyword argument "required".
WARNING: This will become a hard error in the future.

meson.build:39:0: ERROR:  Unknown variable "m".

zathura-pdf-poppler: Utils::InreplaceError: inreplace failed

I had updated brew twice and ran brew doctor, which shows no errors or warnings. Then,

$ brew install zathura-pdf-poppler
==> Installing zathura-pdf-poppler from zegervdv/zathura
==> Installing dependencies for zegervdv/zathura/zathura-pdf-poppler: qt and poppler
==> Installing zegervdv/zathura/zathura-pdf-poppler dependency: qt
==> Downloading https://download.qt.io/official_releases/qt/5.12/5.12.2/single/qt-everywhere-src-
Already downloaded: /home/nikhil/.cache/Homebrew/downloads/e5a2d7ee7f598b577626dc985c25e12295b25bda81034b73b235541875d3bd4d--qt-everywhere-src-5.12.2.tar.xz
Error: An exception occurred within a child process:
  Utils::InreplaceError: inreplace failedqtbase/src/gui/configure.json:
  expected replacement of "[ \"xcb/xcb.h\", \"X11/Xlib.h\", \"X11/Xlib-xcb.h\" ]," with "[ \"xcb/xcb.h\", \"X11/Xlib.h\", \"X11/Xlib-xcb.h\", \"xcb/shm.h\" ],"

Update

Hello it's possible to update the repository?
The actual version is 0.3.6 and your repository is on 0.3.4

Thank you

Copy text not working

First: Thanks for this formula!

Now to the issue: when dragging with the mouse over text zathura copies the text to the clipboard. This seems not to work because when pasting the text somewhere else the text is not in the clipboard.

Running 10.10.4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.