# $Id: Portfile 85475 2011-10-14 01:55:56Z dports@macports.org $

PortSystem 1.0
name            freefont-ttf
version         20060126
revision        1
categories      x11 fonts
license         GPL-3+
installs_libs   no
maintainers     nomaintainer
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
supported_archs noarch
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}
    }
}
