Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
80 lines (64 sloc) 2.81 KB
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup compiler_blacklist_versions 1.0
name zathura
version 0.3.7
categories office
platforms darwin
license zlib
maintainers {gmail.com:starkhalo @harciga} \
openmaintainer
description Zathura is a highly customizable and functional document viewer.
long_description \
Zathura is a highly customizable and functional document viewer. It \
provides a minimalistic and space saving interface as well as an easy \
usage that mainly focuses on keyboard interaction. Zathura uses a plug- \
in based system for supported document types. Zathura makes it possible \
to completely view and navigate through different documents without a \
mouse. It supports bi-directional SyncTeX, as well as quickmarks, book- \
marks and automatic document reloading. Almost everything in Zathura is \
customizable.
homepage http://pwmt.org/projects/zathura/
master_sites ${homepage}download/
checksums rmd160 94b1ddf760883b3a8edb02bc57963537815aaccd \
sha256 22afff89f4093f22fb82188417ff9bfa9695b19a4fe894dca05b7c821b390ff0
depends_build port:pkgconfig
depends_lib port:desktop-file-utils \
path:lib/pkgconfig/glib-2.0.pc:glib2 \
port:gtk3 \
port:intltool \
port:sqlite3 \
port:libmagic \
path:lib/libgirara-gtk3.dylib:girara
use_configure no
# blacklist compilers that don't support -std=c11
compiler.blacklist *gcc* {clang < 300}
variant universal {}
build.args PREFIX=${prefix}
if {[vercmp [macports_version] 2.5.99] >= 0} {
build.env CC=${configure.cc} \
CXX=${configure.cxx} \
CPP=${configure.cpp} \
CFLAGS=[get_canonical_archflags cc] \
LDFLAGS=[get_canonical_archflags ld] \
VERBOSE=1
} else {
build.env CC=${configure.cc} \
CXX=${configure.cxx} \
CPP=${configure.cpp} \
CFLAGS="[get_canonical_archflags cc]" \
LDFLAGS="[get_canonical_archflags ld]" \
VERBOSE=1
}
destroot.env {*}${build.env}
destroot.args {*}${build.args}
post-activate {
system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
}
notes "
For handling additional file types, consider installing the various
zathura-plugin-* ports (port search zathura-plugin).
"
livecheck.type regex
livecheck.url ${master_sites}
livecheck.regex (\\d\\.\\d\\.\\d)
You can’t perform that action at this time.