Ticket #1672: Portfile.2

File Portfile.2, 2.4 KB (added by toby@…, 20 years ago)

Portfile, take 2

Line 
1# $Id$
2
3PortSystem 1.0
4name            update-fonts-utils
5version         1.0
6categories      sysutils x11
7maintainers     digdog@opendarwin.org
8description     Compiles fonts.alias, fonts.dir, fonts.scale files for X font directories
9long_description update-fonts-utils is a custom collection of utilities that was written \
10                 by Branden Robinson for the Debian Project. This package contains three \
11                 scripts: update-fonts-alias, update-fonts-dir and update-fonts-scale. \
12                 Users can use these scripts to create fonts.dir, assemble fonts.alias, \
13                 fonts.scale files in the X font directory.
14homepage        http://necrotic.deadbeast.net/xsf/XFree86/NEWS.xhtml
15platforms       darwin freebsd
16master_sites    http://necrotic.deadbeast.net/xsf/XFree86/trunk/debian/local/
17distfiles       update-fonts-alias update-fonts-dir update-fonts-scale \
18                update-fonts-alias.8 update-fonts-dir.8 update-fonts-scale.8
19checksums       update-fonts-alias md5 88793cf8f3fd1efe2ba7246f15b05d27 \
20                update-fonts-dir md5 58e74f370c3f94da096277d039f5658c \
21                update-fonts-scale md5 ea4f1b67ef8500f8b6d56a72d16815b2 \
22                update-fonts-alias.8 md5 d69ba367d0a8aa0ed3bcb8500ab4337a \
23                update-fonts-dir.8 md5 78c1de50ae2c6f90226e4ca37d7fed25 \
24                update-fonts-scale.8 md5 565e1fb1be310fe002fca5d0997fb482
25extract.only
26
27#       Please notes that update-fonts-{alias, scale} checks the .alias and .scale files in the
28#       /etc/X11/fonts to reconstruct font.{alias, scale} by default. For DarwinPorts, we moved
29#       it to ${prefix}/etc/X11/fonts to follow the DarwinPorts filesystem hierarchy guideline.
30#       Reference: http://darwinports.opendarwin.org/docs/ch05.html
31
32#       For X11 fonts Portfile maintainers: please make sure your .alias or .scale files were
33#       installed in ${prefix/etc/X11/fonts}, and run these script in post-install to update.
34
35configure       {}
36build           {}
37
38destroot {
39        set prefixPath ${destroot}${prefix}
40        set sbinPath ${prefixPath}/sbin
41        set man8Path ${prefixPath}/share/man/man8
42
43        xinstall -m 755 ${distpath}/update-fonts-alias ${sbinPath}
44        xinstall -m 755 ${distpath}/update-fonts-dir ${sbinPath}
45        xinstall -m 755 ${distpath}/update-fonts-scale ${sbinPath}
46        xinstall -m 644 ${distpath}/update-fonts-alias.8 ${man8Path}
47        xinstall -m 644 ${distpath}/update-fonts-dir.8 ${man8Path}
48        xinstall -m 644 ${distpath}/update-fonts-scale.8 ${man8Path}
49
50        reinplace "s|/etc/X11/fonts|${prefix}/etc/X11/fonts|" \
51                ${sbinPath}/update-fonts-alias \
52                ${sbinPath}/update-fonts-scale \
53                ${man8Path}/update-fonts-alias.8 \
54                ${man8Path}/update-fonts-scale.8
55}