# -*- 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
maintainers {@lemzwerg gnu.org:wl} openmaintainer
# the actual license is AGPL 3 with embedded font exception
description URW core35 fonts in various formats
long_description "Recent Ghostscript versions come with a new set\
of URW fonts that have additional support for\
the Greek and Cyrillic scripts (thus superseding\
the fonts contained in the 'urw-fonts' port).\
Ghostscript distributes the URW fonts in Type1\
format; in addition to these files, this port\
also contains the corresponding Type1 metrics\
files (AFM), together with TrueType (TTF) and\
OpenType (OTF) versions of the fonts."
homepage https://www.ghostscript.com
master_sites "https://git.ghostscript.com/?p=urw-core35-fonts.git;a=snapshot;h=${git_version};sf=tgz;dummy="
distname urw-core35-fonts-${git_version}
checksums rmd160 26447c6c906c2fe1320f033b4e3a8b27c015bb1a \
sha256 1e8d2bf93c7aed3301e2a12c672cdcf44ef50f250a57db6534ff2fb298307fa0 \
depends_run port:fontconfig
set fontsdir ${destroot}${prefix}/share/fonts/${name}
xinstall -d -m 755 ${fontsdir}
foreach f {*.afm *.otf *.t1 *.ttf} {
xinstall -m 644 {*}[glob ${worksrcpath}/${distname}/${f}] ${fontsdir}
xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath}/${distname} \
${destroot}${prefix}/share/doc/${name}
# This approach is not so scalable.
system "${prefix}/bin/fc-cache -fv ${prefix}/share/fonts"
livecheck.url "http://git.ghostscript.com/?p=urw-core35-fonts.git;a=shortlog;dummy="
livecheck.regex <i>(\[0-9\-\]+)</i>