Commits

Takanori Yamamoto authored cbf831ee37f
New port: dejavu-fonts

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@50043 d073be05-634f-4543-b044-5fe20cf6d1d6
No tags

x11/dejavu-fonts/Portfile

Added
1 +# $Id$
2 +
3 +PortSystem 1.0
4 +
5 +name dejavu-fonts
6 +version 2.29
7 +categories x11 fonts
8 +maintainers takanori openmaintainer
9 +description The DejaVu fonts are a font family based on the Vera Fonts.
10 +long_description ${description} \
11 + Its purpose is to provide a wider range of characters while \
12 + maintaining the original look and feel through the process of \
13 + collaborative development (see authors), under a Free license.
14 +platforms darwin
15 +homepage http://dejavu-fonts.org/
16 +master_sites sourceforge:dejavu:
17 +distname ${name}-ttf-${version}
18 +use_bzip2 yes
19 +checksums rmd160 2b675489d902847d15ab9dd770f07c040b7dfca2
20 +
21 +depends_run port:fontconfig
22 +
23 +use_configure no
24 +
25 +build {}
26 +
27 +destroot {
28 + set fontsdir ${destroot}${prefix}/share/fonts/${name}
29 + xinstall -d -m 755 ${fontsdir}
30 + eval xinstall -m 644 [glob ${worksrcpath}/ttf/*.ttf] ${fontsdir}
31 +
32 + xinstall -d -m 755 ${destroot}${prefix}/etc/fonts/conf.avail
33 + xinstall -d -m 755 ${destroot}${prefix}/etc/fonts/conf.d
34 + foreach f { 20-unhint-small-dejavu-sans-mono.conf
35 + 20-unhint-small-dejavu-sans.conf
36 + 20-unhint-small-dejavu-serif.conf
37 + 57-dejavu-sans-mono.conf
38 + 57-dejavu-sans.conf
39 + 57-dejavu-serif.conf } {
40 + xinstall -m 644 ${worksrcpath}/fontconfig/${f} ${destroot}${prefix}/etc/fonts/conf.avail
41 + ln -s ../conf.avail/${f} ${destroot}${prefix}/etc/fonts/conf.d/${f}
42 + }
43 +}
44 +post-destroot {
45 + xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
46 + xinstall -m 644 -W ${worksrcpath} AUTHORS BUGS LICENSE NEWS README langcover.txt status.txt unicover.txt ${destroot}${prefix}/share/doc/${name}
47 +}
48 +
49 +post-activate {
50 + system "${prefix}/bin/fc-cache -fv ${prefix}/share/fonts"
51 +}
52 +
53 +universal_variant no

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut