๐Ÿ“ฆ amake / macports-fonts

๐Ÿ“„ Portfile ยท 40 lines
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# -*- 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

categories          fonts
github.setup        cormullion juliamono 0.062 v
name                JuliaMono
revision            0
github.tarball_from releases

description         A monospaced font designed to work well with the Julia language
long_description    ${description}
homepage            https://juliamono.netlify.app/

platforms           {darwin any}
supported_archs     noarch
maintainers         {amake @amake} openmaintainer
license             OFL

distname            ${name}-ttf
dist_subdir         ${name}/${version}
worksrcdir          .

use_configure       no

checksums           rmd160  1a7f6e455a5bfc30f178522e6e6ae6b474c84a5f \
                    sha256  d686ba37d804a9075240abd555101a5f602e36dee4be17c945c70995116da8ec \
                    size    21686527

build {}

destroot.violate_mtree yes

destroot {
    set target ${destroot}/Library/Fonts/
    xinstall -m 0755 -d ${target}
    copy {*}[glob ${worksrcpath}/*.ttf] ${target}
}