-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
49 lines (39 loc) · 1.69 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
# -*- 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 terminus-font
version 4.49.1
license OFL-1.1 GPL-2+
categories x11
maintainers {gmail.com:emanuele.giaquinta @exg} openmaintainer
set major [lindex [split $version .] 0]
set minor [lindex [split $version .] 1]
set myfontdir ${prefix}/share/fonts/misc
description A clean monospaced font
long_description Terminus Font is designed for long (8 and more hours \
per day) work with computers. It contains a total of \
about 110 language sets. Also included are IBM VGA, \
vt100 and xterm pseudographic characters.
platforms any
supported_archs noarch
homepage http://terminus-font.sourceforge.net/
master_sites sourceforge:project/terminus-font/terminus-font-${major}.${minor}
checksums rmd160 9312fd445f8c452fdf140d119eca03ba41fb2d82 \
sha256 d961c1b781627bf417f9b340693d64fc219e0113ad3a3af1a3424c7aa373ef79 \
size 648345
depends_build port:python39 \
port:bdftopcf
depends_lib port:fontconfig \
port:mkfontscale
configure.args --x11dir=${myfontdir} --otbdir=${myfontdir}
build.target pcf otb
build.args INT=python3.9
destroot.target install-pcf install-otb
post-activate {
system "${prefix}/bin/mkfontdir ${myfontdir}"
system "${prefix}/bin/fc-cache ${myfontdir}"
}
post-deactivate {
system "${prefix}/bin/mkfontdir ${myfontdir}"
system "${prefix}/bin/fc-cache ${myfontdir}"
}
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"