summaryrefslogtreecommitdiff
blob: 9ed9d05911f9ed15f4fe5aef0ebce42c842744b6 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-perl/glib-perl/glib-perl-1.102.ebuild,v 1.8 2006/03/31 19:01:19 hansmi Exp $

inherit perl-module eutils

MY_P=Glib-${PV}
S=${WORKDIR}/${MY_P}

DESCRIPTION="Glib - Perl wrappers for the GLib utility and Object libraries"
HOMEPAGE="http://gtk2-perl.sf.net/"
SRC_URI="mirror://cpan/authors/id/T/TS/TSCH/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 hppa ia64 ppc ppc64 sparc x86"
IUSE="xml"
SRC_TEST="do"

RDEPEND=">=x11-libs/gtk+-2
	>=dev-libs/glib-2
	xml? ( dev-perl/XML-Writer
		dev-perl/XML-Parser )"
DEPEND="${RDEPEND}
	dev-util/pkgconfig
	>=dev-perl/extutils-depends-0.205
	>=dev-perl/extutils-pkgconfig-1.07"

src_unpack() {
	unpack ${A}
	cd ${S}

	# The assert macro has changed in perl 5.8.8 from:
	# if (...) { ... }
	# to:
	# (...) ? ((void) 0) : (...)
	# The missing semicolon after calling assert caused compilation problems with perl 5.8.8
	epatch ${FILESDIR}/gtypes.patch
}