# $Id: Portfile,v 1.1 2004/03/17 17:21:44 olegb Exp $

PortSystem		1.0
name			bitstream-vera
version			1.10
categories		graphics
maintainers		jbenninghoff@mac.com
description		Bitstream Vera Fonts for use with Freetype/Fontconfig

long_description \
	Bittream Vera Fonts consist of four monospace and sans faces (normal, \
	oblique, bold, bold oblique) and two serif faces (normal and bold). \
	They are designed to be an attractive default font for GNOME-based \
	X11 apps. (GTK2/Xft2/Freetype/Fontconfig)

homepage		http://www.gnome.org/fonts/

master_sites	http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/1.10/
distname		ttf-${name}-${version}

platforms		darwin
checksums		md5 52559ed969e74f5fca83e527163156df

patchfiles		patch-local.conf

configure {}
build {
	reinplace "s|%FONTSDIR%|${prefix}/share/fonts|" \
		${worksrcpath}/local.conf
}
destroot {
	xinstall -d ${destroot}${prefix}/share/fonts
	system "install -m 444 ${worksrcpath}/*.ttf \
		${destroot}${prefix}/share/fonts"

	xinstall -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} COPYRIGHT.TXT README.TXT \
		RELEASENOTES.TXT local.conf \
		${destroot}${prefix}/share/doc/${name}
}

post-install {
        ui_msg "------------------------------------------------------------------
--------"
        ui_msg "Requires modifications to ${prefix}/etc/fonts/local.conf. "
	ui_msg "Replacement file provided at ${prefix}/share/doc/bitstream-vera/local.conf."
        ui_msg "------------------------------------------------------------------
--------"
 }

