summaryrefslogtreecommitdiff
blob: eaa45de80e51faccb2d1c2afab5db6ee0a7ca870 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/fonttools/fonttools-2.0_beta1-r1.ebuild,v 1.1 2007/07/18 23:07:06 hawking Exp $

inherit distutils eutils

MY_P=${P/_beta/b}
DESCRIPTION="Library for manipulating TrueType, OpenType, AFM and Type1 fonts"
HOMEPAGE="http://fonttools.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~ppc ~x86"
IUSE=""

DEPEND="virtual/python
	>=dev-python/numpy-1.0.2
	dev-python/pyxml"

S=${WORKDIR}/${PN}

DOCS="README.txt Doc/*.txt"

src_unpack() {
	distutils_src_unpack

	epatch "${FILESDIR}/${P}-numpy.patch"
}

src_install() {
	distutils_src_install
	dohtml Doc/*.html
}

pkg_postinst() {
	ewarn "This version has been automatically adapted to use numpy.oldnumeric"
	ewarn "instead of the old numeric module. If this causes any unforeseen"
	ewarn "problems please file a bug on http://bugs.gentoo.org."
}