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 02a37f3fcf4220bd1fa90bc9739c72d8 \ |
---|
21 | update-fonts-dir md5 5aa2601736a6c6f9c2c1b45320b513b5 \ |
---|
22 | update-fonts-scale md5 11e3e9e0059f9cee9f13defc72201082 \ |
---|
23 | update-fonts-alias.8 md5 93c4f30d25c065cb3c06d5ed104f2591 \ |
---|
24 | update-fonts-dir.8 md5 25a24d102bab59262fa8cb49dd231573 \ |
---|
25 | update-fonts-scale.8 md5 b421a934182fd56237a4c0fb8a1a4c38 |
---|
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 | |
---|
66 | |
---|