Permalink
Fetching contributors…
Cannot retrieve contributors at this time
60 lines (47 sloc) 2 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
name lcdf-typetools
version 2.107
categories print tex
platforms darwin
license GPL-2+
maintainers nomaintainer
description Tools for manipulating fonts.
long_description The LCDF Typetools package contains several \
programs for manipulating PostScript Type 1, \
Type 1 multiple master, and PostScript-flavored \
OpenType fonts.
homepage http://www.lcdf.org/type/
installs_libs no
master_sites ${homepage}
checksums rmd160 af05bd8394b910b0a1ceb22628223ad093b785be \
sha256 46be885f4623e2e595f786c70e03264b680066de57789833db541f947a8edfdb
patch.pre_args -p1
if {${configure.cxx_stdlib} eq {libc++} &&
[string match *clang* ${configure.cxx}]
} then {
configure.cxxflags-append -std=c++11
}
configure.args --without-kpathsea
destroot.target install-strip
post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/doc
xinstall -m 644 -W ${worksrcpath} COPYING INSTALL NEWS.md ONEWS README.md \
${destroot}${prefix}/share/doc/${name}
}
variant texlive description {Link against TeXLive's libkpathsea} {
depends_lib-append port:texlive-bin
configure.args-replace --without-kpathsea \
--with-kpathsea=${prefix}
pre-activate {
# texlive-fontutils used to provide its own copy of
# lcdf-typetools, but now (as of TL2012) depends on this port
if {![catch {set vers [lindex [registry_active texlive-fontutils] 0]}]
&& [vercmp [lindex $vers 1] 26926] < 0} {
registry_deactivate_composite texlive-fontutils "" [list ports_nodepcheck 1]
}
}
}
default_variants +texlive
livecheck.type regex
livecheck.regex ${name}-(\[0-9.\]+)\\.tar