Skip to content

Commit

Permalink
liberation-fonts: new port
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreleaven committed Feb 12, 2017
1 parent f600e5a commit 0d08650
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions x11/liberation-fonts/Portfile
@@ -0,0 +1,54 @@
# -*- 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 liberation-fonts
version 2.00.1
checksums rmd160 99ee3851f3f1ae9a431541de5765312f01ef19d7 \
sha256 7890278a6cd17873c57d9cd785c2d230d9abdea837e96516019c5885dd271504

categories x11 fonts
platforms darwin
supported_archs noarch
maintainers ctreleaven openmaintainer
# See homepage re license -
license SIL

description replacements for the three commonly used fonts on Microsoft systems

long_description The Liberation Fonts are intended to be open font replacements for the \
three most commonly used fonts on Microsoft systems: Times New Roman, \
Arial, and Courier New.

homepage https://fedorahosted.org/liberation-fonts/
master_sites https://fedorahosted.org/releases/l/i/liberation-fonts/

distname ${name}-ttf-${version}

depends_run port:fontconfig

use_configure no

build {}

destroot {
set fontsdir ${destroot}${prefix}/share/fonts/${name}
xinstall -d -m 755 ${fontsdir}
xinstall -m 644 {*}[glob ${worksrcpath}/*.ttf] ${fontsdir}

xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath} \
AUTHORS \
ChangeLog \
LICENSE \
README \
TODO \
${destroot}${prefix}/share/doc/${name}
}

post-activate {
system "${prefix}/bin/fc-cache -fv ${prefix}/share/fonts"
}

livecheck.type regex
livecheck.regex {\-ttf\-([0-9.]+)\.tar}

0 comments on commit 0d08650

Please sign in to comment.