source: trunk/dports/x11/font-misc-ethiopic/Portfile

Last change on this file was 102815, checked in by jmr@…, 5 years ago

font-misc-ethiopic: correct license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 102815 2013-02-08 21:57:25Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                font-misc-ethiopic
6version             1.0.3
7categories          x11 x11-font graphics
8maintainers         jeremyhu openmaintainer
9license             MIT
10supported_archs     noarch
11
12description         X.org Ethiopic TrueType fonts
13long_description    ${description}
14
15platforms           darwin
16
17homepage            http://www.x.org/
18master_sites        xorg:individual/font/
19use_bzip2           yes
20
21checksums           rmd160 d1efa477c72f2522d3213544c838f774275d4c11 \
22                    sha256 53cb1fd83afdbe7939c0eac34003676ee0e6023216892d98054db90b703c98a5
23
24depends_build       port:pkgconfig bin:bdftopcf:bdftopcf port:xorg-font-util \
25                    bin:mkfontscale:mkfontscale bin:mkfontdir:mkfontdir bin:gzip:gzip
26
27set myfontbasedir   ${prefix}/share/fonts
28
29configure.args      --with-ttf-fontdir=${myfontbasedir}/TTF \
30                    --with-otf-fontdir=${myfontbasedir}/OTF
31
32post-destroot {
33   foreach fontsFile {fonts.alias fonts.dir fonts.list fonts.scale fonts.cache-1} {
34      foreach fontType {OTF TTF} {
35         if {[file exists ${destroot}${myfontbasedir}/${fontType}/${fontsFile}]} {
36            delete ${destroot}${myfontbasedir}/${fontType}/${fontsFile}
37         }
38      }
39   }
40}
41
42post-activate {
43   foreach fontType {OTF TTF} {
44      system "mkfontscale ${myfontbasedir}/${fontType}"
45      system "mkfontdir ${myfontbasedir}/${fontType}"
46   }
47}
48
49post-deactivate {
50   foreach fontType {OTF TTF} {
51      system "mkfontscale ${myfontbasedir}/${fontType}"
52      system "mkfontdir ${myfontbasedir}/${fontType}"
53   }
54}
55
56livecheck.type      regex
57livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
58livecheck.url       http://xorg.freedesktop.org/archive/individual/font/?C=M&O=D
Note: See TracBrowser for help on using the repository browser.