# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 59971 2009-10-28 06:56:05Z pguyot@kallisys.net $

PortSystem			1.0
PortGroup			python26 1.0

name            	fonttools
version         	2.2
description     	XML<->TrueType/OpenType Converter
long_description	TTX is a tool to convert OpenType and TrueType fonts to \
					and from XML. FontTools is a library for manipulating \
					fonts, written in Python. It supports TrueType, OpenType, \
					AFM and to an extent Type 1 and some Mac-specific formats.
platforms       	darwin
categories      	print
maintainers     	nomaintainer
homepage			http://www.letterror.com/code/ttx/
master_sites		sourceforge
checksums			md5     639c68113cc04e8f30ae8997d6cc480a \
					sha1    7f4c63b4c42057a01552f54c392c0e9184e27df0 \
					rmd160  77aa0498acfe8eed19c02e558bd81afe2ff5f713
depends_build		port:py26-numeric

patchfiles			patch-setup.py.diff

post-destroot {
	foreach binfile [glob -tails -directory ${destroot}${python.prefix}/bin *] {
		ln -s ${python.prefix}/bin/${binfile} \
			${destroot}${prefix}/bin/${binfile}
	}
	foreach manfile [glob -tails -directory ${destroot}${python.prefix}/share/man/man1 *] {
		ln -s ${python.prefix}/share/man/man1/${manfile} \
			${destroot}${prefix}/share/man/man1/${manfile}
	}
}

livecheck.regex	<title>FontTools/TTX Source Code (.*) released.*</title>
