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