summaryrefslogtreecommitdiff
blob: eb049b1a1c362d6538a5c9b70283dc113587b99e (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-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/gdl-python/gdl-python-2.19.1.ebuild,v 1.12 2009/05/14 23:14:08 gengor Exp $

G_PY_PN="gnome-python-extras"

inherit gnome-python-common

PVP="$(get_version_component_range 1-2)"
SRC_URI="mirror://gnome/sources/${G_PY_PN}/${PVP}/${G_PY_PN}-${PV}.tar.bz2
	mirror://gentoo/${G_PY_PN}-${PV}-split.patch.gz"

DESCRIPTION="Python bindings for GDL"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="alpha amd64 ~hppa ia64 ppc ppc64 sparc x86"
IUSE="examples"

RDEPEND=">=dev-libs/gdl-0.6.1"
DEPEND="${RDEPEND}"

EXAMPLES="examples/gdl/*"

pkg_setup() {
	# we need gdl-gnome
	if ! built_with_use --missing true dev-libs/gdl gnome; then
		eerror "If you want to build ${PN} you need to build dev-libs/gdl with"
		eerror "the the 'gnome' USE flag."
		die "gdl must be built with USE='gnome'"
	fi

	gnome-python-common_pkg_setup
}

src_unpack() {
	gnome-python-common_src_unpack

	epatch "${WORKDIR}/${G_PY_PN}-${PV}-split.patch"
	eautoreconf
}