# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 117172 2014-02-18 02:36:38Z jmr@macports.org $

PortSystem			1.0
PortGroup			python 1.0

name            	fonttools
version             2.3
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
license             BSD
maintainers     	nomaintainer
homepage			http://fonttools.sourceforge.net/
master_sites		sourceforge

checksums           sha1    3d434d6192a1feb6605d67975c1e973e084e86d7 \
                    rmd160  df5021ea53b8a7fa016dfd3ff763b1dfaf0d7c4b

python.default_version 26

depends_build		port:py26-numpy

python.link_binaries_suffix

post-destroot {
	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>
