source: trunk/dports/office/zathura/Portfile

Last change on this file was 150508, checked in by devans@…, 16 months ago

zathura: tentative 10.6 build fix, blacklist compilers that don't support -std=c11.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# -*- 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
2# $Id: Portfile 150508 2016-07-20 20:30:49Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           compiler_blacklist_versions 1.0
6
7name                zathura
8version             0.3.6
9categories          office
10platforms           darwin
11license             zlib
12maintainers         gmail.com:starkhalo \
13                    openmaintainer
14description         Zathura is a highly customizable and functional document viewer.
15long_description \
16    Zathura is a highly customizable and functional document viewer. It     \
17    provides a minimalistic and space saving interface as well as an easy   \
18    usage that mainly focuses on keyboard interaction. Zathura uses a plug- \
19    in based system for supported document types. Zathura makes it possible \
20    to completely view and navigate through different documents without a   \
21    mouse. It supports bi-directional SyncTeX, as well as quickmarks, book- \
22    marks and automatic document reloading. Almost everything in Zathura is \
23    customizable.
24
25homepage            http://pwmt.org/projects/zathura/
26
27master_sites        ${homepage}download/
28
29checksums           rmd160  a8614748399daac49a871b345c14d6f3f5390472 \
30                    sha256  086a8be25d538fc6539fbee8f01ecf16d25819dfaad50cd2dbd84e30152ccb3b
31
32depends_build       port:pkgconfig
33
34depends_lib         port:desktop-file-utils \
35                    path:lib/libglib-2.0.dylib:glib2 \
36                    port:gtk3 \
37                    port:intltool \
38                    port:sqlite3 \
39                    port:libmagic \
40                    path:lib/libgirara-gtk3.dylib:girara
41
42use_configure       no
43
44# blacklist compilers that don't support -std=c11
45compiler.blacklist  *gcc* {clang < 300}
46
47variant universal   {}
48
49build.args          PREFIX=${prefix}
50build.env           CC=${configure.cc} \
51                    CXX=${configure.cxx} \
52                    CPP=${configure.cpp} \
53                    CFLAGS="[get_canonical_archflags cc]" \
54                    LDFLAGS="[get_canonical_archflags ld]" \
55                    VERBOSE=1
56
57eval destroot.env   ${build.env}
58eval destroot.args  ${build.args}
59
60post-activate {
61    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
62}
63
64livecheck.type      regex
65livecheck.url       ${master_sites}
66livecheck.regex     (\\d\\.\\d\\.\\d)
Note: See TracBrowser for help on using the repository browser.