1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name update-fonts-utils |
---|
6 | version 1.0 |
---|
7 | categories sysutils x11 |
---|
8 | maintainers digdog@opendarwin.org |
---|
9 | description Compiles fonts.alias, fonts.dir, fonts.scale files for X font directories |
---|
10 | long_description 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 { cd ${distpath} |
---|
27 | system "cp ${distfiles} ${workpath}"} |
---|
28 | |
---|
29 | # Please notes that update-fonts-{alias, scale} checks the .alias and .scale files in the |
---|
30 | # /etc/X11/fonts to reconstruct font.{alias, scale} by default. For DarwinPorts, we moved |
---|
31 | # it to ${prefix}/etc/X11/fonts to follow the DarwinPorts filesystem hierarchy guideline. |
---|
32 | # Reference: http://darwinports.opendarwin.org/docs/ch05.html |
---|
33 | |
---|
34 | # For X11 fonts Portfile maintainers: please make sure your .alias or .scale files were |
---|
35 | # installed in ${prefix/etc/X11/fonts}, and run these script in post-install to update. |
---|
36 | |
---|
37 | patch { reinplace "s|/etc/X11/fonts|${prefix}/etc/X11/fonts|" ${workpath}/update-fonts-alias |
---|
38 | reinplace "s|/etc/X11/fonts|${prefix}/etc/X11/fonts|" ${workpath}/update-fonts-alias.8 |
---|
39 | reinplace "s|/etc/X11/fonts|${prefix}/etc/X11/fonts|" ${workpath}/update-fonts-scale |
---|
40 | reinplace "s|/etc/X11/fonts|${prefix}/etc/X11/fonts|" ${workpath}/update-fonts-scale.8 } |
---|
41 | configure {} |
---|
42 | build {} |
---|
43 | destroot { xinstall -d ${destroot}${prefix}/etc/X11/fonts |
---|
44 | xinstall -m 755 ${workpath}/update-fonts-alias ${destroot}${prefix}/bin |
---|
45 | xinstall -m 755 ${workpath}/update-fonts-dir ${destroot}${prefix}/bin |
---|
46 | xinstall -m 755 ${workpath}/update-fonts-scale ${destroot}${prefix}/bin |
---|
47 | xinstall -m 444 ${workpath}/update-fonts-alias.8 ${destroot}${prefix}/share/man/man8 |
---|
48 | xinstall -m 444 ${workpath}/update-fonts-dir.8 ${destroot}${prefix}/share/man/man8 |
---|
49 | xinstall -m 444 ${workpath}/update-fonts-scale.8 ${destroot}${prefix}/share/man/man8 } |
---|
50 | |
---|