|
Lines 1-9
Link Here
|
| 1 |
# Copyright 1999-2009 Gentoo Foundation |
1 |
# Copyright 1999-2009 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/gdl-python/gdl-python-2.19.1-r1.ebuild,v 1.10 2009/09/27 13:50:54 nixnut Exp $ |
3 |
# $Header: $ |
| 4 |
|
4 |
|
|
|
5 |
EAPI="2" |
| 5 |
G_PY_PN="gnome-python-extras" |
6 |
G_PY_PN="gnome-python-extras" |
| 6 |
|
|
|
| 7 |
inherit gnome-python-common |
7 |
inherit gnome-python-common |
| 8 |
|
8 |
|
| 9 |
PVP="$(get_version_component_range 1-2)" |
9 |
PVP="$(get_version_component_range 1-2)" |
|
Lines 14-43
Link Here
|
| 14 |
LICENSE="LGPL-2.1" |
14 |
LICENSE="LGPL-2.1" |
| 15 |
SLOT="0" |
15 |
SLOT="0" |
| 16 |
KEYWORDS="alpha ~amd64 hppa ~ia64 ppc ppc64 ~sparc ~x86 ~x86-fbsd" |
16 |
KEYWORDS="alpha ~amd64 hppa ~ia64 ppc ppc64 ~sparc ~x86 ~x86-fbsd" |
| 17 |
IUSE="examples" |
17 |
IUSE="examples static-libs" |
| 18 |
|
18 |
|
| 19 |
RDEPEND=">=dev-libs/gdl-2.24.0" |
19 |
RDEPEND=">=dev-libs/gdl-2.24.0" |
| 20 |
DEPEND="${RDEPEND}" |
20 |
DEPEND="${RDEPEND}" |
| 21 |
|
21 |
|
| 22 |
EXAMPLES="examples/gdl/*" |
22 |
EXAMPLES="examples/gdl/*" |
| 23 |
|
23 |
|
| 24 |
pkg_setup() { |
24 |
src_prepare() { |
| 25 |
# we need gdl-gnome |
|
|
| 26 |
if ! built_with_use --missing true dev-libs/gdl gnome; then |
| 27 |
eerror "If you want to build ${PN} you need to build dev-libs/gdl with" |
| 28 |
eerror "the the 'gnome' USE flag." |
| 29 |
die "gdl must be built with USE='gnome'" |
| 30 |
fi |
| 31 |
|
| 32 |
gnome-python-common_pkg_setup |
| 33 |
} |
| 34 |
|
| 35 |
src_unpack() { |
| 36 |
gnome-python-common_src_unpack |
| 37 |
|
| 38 |
epatch "${WORKDIR}/${G_PY_PN}-${PV}-split.patch" |
25 |
epatch "${WORKDIR}/${G_PY_PN}-${PV}-split.patch" |
| 39 |
eautoreconf |
|
|
| 40 |
|
26 |
|
| 41 |
# Fix build failure with recent gdl |
27 |
# Fix build failure with recent gdl |
| 42 |
epatch "${FILESDIR}/${P}-gdlicons.patch" |
28 |
epatch "${FILESDIR}/${P}-gdlicons.patch" |
|
|
29 |
|
| 30 |
eautoreconf |
| 31 |
} |
| 32 |
src_configure() { |
| 33 |
econf ${EXTRA_ECONF} \ |
| 34 |
$(use_enable static-libs static ) |
| 35 |
|| die "The configure script failed to run properly" |
| 36 |
} |
| 37 |
src_install() { |
| 38 |
gnome-python-common_src_install |
| 39 |
|
| 40 |
# remove useless .la files |
| 41 |
find "${D}" -name '*.la' -delete |
| 43 |
} |
42 |
} |