source: trunk/dports/x11/dejavu-fonts/Portfile

Last change on this file was 151756, checked in by mps@…, 13 months ago

dejavu-fonts: update to version 2.37.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 151756 2016-08-21 19:33:38Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                dejavu-fonts
6version             2.37
7categories          x11 fonts
8license             BitstreamVera
9maintainers         nomaintainer
10description         The DejaVu fonts are a font family based on the Vera Fonts.
11long_description    ${description} \
12                    Its purpose is to provide a wider range of characters while \
13                    maintaining the original look and feel through the process of \
14                    collaborative development (see authors), under a Free license.
15platforms           darwin
16homepage            http://dejavu-fonts.org/
17master_sites        sourceforge:dejavu:
18distname            ${name}-ttf-${version}
19use_bzip2           yes
20
21checksums           rmd160  437e39fc989ac3e891fa3354d9baa20b9ac6c43c \
22                    sha256  fa9ca4d13871dd122f61258a80d01751d603b4d3ee14095d65453b4e846e17d7
23
24depends_run         port:fontconfig
25
26supported_archs     noarch
27
28use_configure       no
29
30build {}
31
32destroot {
33    set fontsdir ${destroot}${prefix}/share/fonts/${name}
34    xinstall -d -m 755 ${fontsdir}
35    eval xinstall -m 644 [glob ${worksrcpath}/ttf/*.ttf] ${fontsdir}
36
37    xinstall -d -m 755 ${destroot}${prefix}/etc/fonts/conf.avail
38    xinstall -d -m 755 ${destroot}${prefix}/etc/fonts/conf.d
39    foreach f { 20-unhint-small-dejavu-sans-mono.conf
40                20-unhint-small-dejavu-sans.conf
41                20-unhint-small-dejavu-serif.conf
42                57-dejavu-sans-mono.conf
43                57-dejavu-sans.conf
44                57-dejavu-serif.conf } {
45        xinstall -m 644 ${worksrcpath}/fontconfig/${f} ${destroot}${prefix}/etc/fonts/conf.avail
46        ln -s ../conf.avail/${f} ${destroot}${prefix}/etc/fonts/conf.d/${f}
47    }
48}
49post-destroot {
50    xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
51    xinstall -m 644 -W ${worksrcpath} AUTHORS BUGS LICENSE NEWS README.md langcover.txt status.txt unicover.txt ${destroot}${prefix}/share/doc/${name}
52}
53
54post-activate {
55    system "${prefix}/bin/fc-cache -fv ${prefix}/share/fonts"
56}
Note: See TracBrowser for help on using the repository browser.