summaryrefslogtreecommitdiff
blob: 04dc475de8eac4ea6915f7c74b6bfdd5af5cf5e6 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/fxpy/fxpy-1.0.5.ebuild,v 1.4 2004/06/25 01:29:49 agriffis Exp $

inherit distutils eutils

MY_P="FXPy-${PV}"
S="${WORKDIR}/${MY_P}"
DESCRIPTION="Fox Toolkit GUI bindings for Python."
HOMEPAGE="http://fxpy.sourceforge.net"
SRC_URI="mirror://sourceforge/fxpy/${MY_P}.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="opengl"
DEPEND=">=dev-lang/python-2.1
	>=x11-libs/fox-1.0.17
	opengl? ( >=dev-python/PyOpenGL-2.0.0.44 )"

src_unpack() {
	unpack ${A} || die
	cd ${S}
	epatch ${FILESDIR}/${P}-gentoo.diff || die "Patch failed."
}

src_install() {
	distutils_src_install
	dohtml doc/*
	insinto /usr/share/doc/${PF}/examples
	doins examples/*
	insinto /usr/share/doc/${PF}/examples/icons
	doins examples/icons/*
	insinto /usr/share/doc/${PF}/contrib
	doins contrib/*
}