# $Id$ PortSystem 1.0 name font-misc-ethiopic version 1.0.0 revision 1 categories x11 x11-font graphics maintainers blb 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 0b271fc617087d77560bdca20c0cdbb0 \ sha1 d598b873ea897574b86167a36b4c151f84d22d68 \ rmd160 53e2176a4073fdceae9b2a5392b252209536372a 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.check regex livecheck.regex ${name}-(\[\\d.\]+)${extract.suffix} livecheck.url ${master_sites}