forked from macports/macports-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Portfile
43 lines (41 loc) · 1.48 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
PortSystem 1.0
name efont-unicode
version 0.4.2
revision 1
categories x11 fonts
maintainers nomaintainer
description efont Unicode Bitmap Fonts
long_description {*}${description}
homepage http://openlab.ring.gr.jp/efont/unicode/
master_sites http://openlab.ring.gr.jp/efont/dist/unicode-bdf/
distname ${name}-bdf-${version}
platforms any
supported_archs noarch
depends_build \
bin:gzip:gzip \
bin:bdftopcf:bdftopcf \
port:mkfontscale
use_bzip2 yes
checksums md5 0c0acbb40e44d899472001302b1c9e48
set bdf_src {b10 b10_i b10_b b10_bi b12 b12_i b12_b b12_bi \
b14 b14_i b14_b b14_bi b16 b16_i b16_b b16_bi \
b24 b24_i b24_b b24_bi f10 f10_i f10_b f10_bi \
f12 f12_i f12_b f12_bi f16 f16_i f16_b f16_bi \
f24 f24_i f24_b f24_bi}
use_configure no
build {
foreach BDF ${bdf_src} {
system "echo ${BDF} && cd ${worksrcpath} && bdftopcf -o ${BDF}.pcf ${BDF}.bdf && gzip -9 ${BDF}.pcf"
}
}
destroot {
set fontsdir ${destroot}${prefix}/share/fonts/${name}
xinstall -d -m 755 ${fontsdir} ${destroot}${prefix}/share/doc/${name}
foreach BDF ${bdf_src} {
xinstall -m 644 ${worksrcpath}/${BDF}.pcf.gz ${fontsdir}
}
xinstall -m 644 -W ${worksrcpath} COPYRIGHT ChangeLog List.html README \
README.baekmuk README.contrib README.etl-unicode README.naga10 \
README.shinonome README.ucs-fonts ${destroot}${prefix}/share/doc/${name}
system "mkfontscale ${fontsdir} && mkfontdir ${fontsdir}"
}