# $Id: Portfile 59685 2009-10-19 23:09:21Z jeremyhu@macports.org $ PortSystem 1.0 name font-misc-ethiopic version 1.0.1 categories x11 x11-font graphics maintainers jeremyhu openmaintainer description X.org Ethiopic TrueType fonts long_description ${description} platforms darwin homepage http://www.x.org/ master_sites ${homepage}pub/individual/font/ use_bzip2 yes checksums md5 4c88c79b8e5d47af90b21e948d42755f \ sha1 2677191fd8b515c53bde6402513249fc0f48d53a \ rmd160 af4cf0787335ac2ad75f03717391ec8a70d3002b depends_build port:pkgconfig bin:bdftopcf:bdftopcf port:xorg-font-util \ bin:mkfontscale:mkfontscale bin:mkfontdir:mkfontdir bin:gzip:gzip set myfontbasedir ${prefix}/share/fonts configure.args --with-ttf-fontdir=${myfontbasedir}/TTF \ --with-otf-fontdir=${myfontbasedir}/OTF post-destroot { foreach fontsFile {fonts.alias fonts.dir fonts.list fonts.scale fonts.cache-1} { foreach fontType {OTF TTF} { if {[file exists ${destroot}${myfontbasedir}/${fontType}/${fontsFile}]} { delete ${destroot}${myfontbasedir}/${fontType}/${fontsFile} } } } } post-activate { foreach fontType {OTF TTF} { system "mkfontscale ${myfontbasedir}/${fontType}" system "mkfontdir ${myfontbasedir}/${fontType}" } } # This should be done when uninstalling, but deactivate doesn't currently work #post-deactivate { # foreach fontType {OTF TTF} { # system "mkfontscale ${myfontbasedir}/${fontType}" # system "mkfontdir ${myfontbasedir}/${fontType}" # } #} livecheck.type regex livecheck.regex ${name}-(\[\\d.\]+)${extract.suffix} livecheck.url ${master_sites}