# $Id: Portfile 50980 2009-05-14 19:41:55Z and.damore@macports.org $

PortSystem 1.0
name            freefont-ttf
version         20060126
categories      x11 fonts
maintainers     takeshi
description     Free UCS Outline Fonts
long_description \
                a set of free outline fonts covering \
                the ISO 10646/Unicode UCS (Universal Character Set).
platforms       darwin
homepage        http://www.nongnu.org/freefont/
master_sites    http://download.savannah.gnu.org/releases/freefont/ \
                http://ftp.riken.go.jp/pub/FreeBSD/distfiles/
checksums       sha1 f3b53235bc1bebd228a8942068bd049693d71363
worksrcdir      freefont-${version}

post-extract {
    foreach f {fonts.dir fonts.scale} {
        system "bzip2 -dc ${filespath}/${f}.bz2 > ${worksrcpath}/${f}"
    }
}
use_configure   no
build       {}
destroot {
    set fontdir ${destroot}${prefix}/share/fonts/${name}
    xinstall -d -m 755 ${fontdir}
    foreach f {*.ttf fonts.*} {
        eval xinstall -m 644 [glob ${worksrcpath}/${f}] ${fontdir}
    }
}
