-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
80 lines (64 loc) · 2.38 KB
/
Portfile
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# -*- 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 github 1.0
PortGroup compiler_blacklist_versions 1.0
PortGroup openssl 1.0
github.setup mgieseki dvisvgm 2.12
name dvisvgm-devel
conflicts dvisvgm
set my_name dvisvgm
revision 0
checksums rmd160 037d06784902d1792c901459783ab9817b744ca1 \
sha256 55ecd1014c2e66fae285e41da33e832ab20aa7f2fdc42388b695c1233e7d78e8 \
size 2694386
categories graphics textproc
platforms darwin
license GPL-3+
maintainers {michaelld @michaelld} {mascguy @mascguy} openmaintainer
description DVI to SVG converter
long_description DVI to SVG converter. The command-line utility dvisvgm is a tool \
for TeX/LaTeX users. It converts DVI files to the XML-based scalable \
vector graphics format SVG.
dist_subdir ${my_name}
# Use 'gtouch', rather than macOS 'touch', as latter causes intermittent build hang
patchfiles-append \
patch-gtouch.diff
compiler.cxx_standard 2011
# see https://trac.macports.org/ticket/63553
compiler.blacklist-append {clang < 900}
use_autoconf yes
autoconf.cmd ${worksrcpath}/autogen.sh
# Setting autoconf.cmd to a non-default value after setting
# 'use_autoconf yes' removes the automatic dependencies, so re-add them.
depends_build-append \
port:autoconf \
port:automake \
port:libtool
depends_build-append \
port:asciidoc \
port:pkgconfig
# Needed for 'gtouch'
depends_build-append \
path:libexec/coreutils/libstdbuf.so:coreutils
depends_lib-append \
port:brotli \
port:freetype \
port:ghostscript \
port:potrace \
port:texlive-bin \
port:woff2 \
port:xxhashlib \
port:zlib
# prevent opportunistic dependency on gawk
configure.env-append \
AWK=/usr/bin/awk
test.run yes
test.target check
pre-activate {
if {![catch {set vers [lindex [registry_active texlive-bin-extra] 0]}]
&& ([vercmp [lindex $vers 1] 47446] < 0 ||
[vercmp [lindex $vers 1] 47446] == 0
&& [vercmp [lindex $vers 2] 1] < 1)} {
registry_deactivate_composite texlive-bin-extra "" [list ports_nodepcheck 1]
}
}