summaryrefslogtreecommitdiff
blob: 879ce537f73622aeade8f830f9e2b6d96a7338ce (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-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit libtool

EAPI=2

DESCRIPTION="Python bindings to the Poppler PDF library."
SRC_URI="http://www.gnome.org/~gianmt/pypoppler-${PV}.tar.gz"
HOMEPAGE="http://launchpad.net/poppler-python"

LICENSE="GPL"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""

S="${WORKDIR}/pypoppler-${PV}"

# Dependency for PyGObbject is 2.11.3 if building docs,
# but this ebuild doesn't provide a USE flag for docs yet.
DEPEND=">=dev-libs/poppler-glib-0.10.0
        >=dev-python/pygobject-2.11.3
	>=dev-python/pygtk-2.10.0
	>=dev-python/pycairo-1.2.0"

src_prepare() {
	elibtoolize
}

src_install() {
	emake DESTDIR="${D}" install
	find "${D}" -name '*.la' -type f -exec rm -f '{}' ';' || die "Removing .la files failed"
}