summaryrefslogtreecommitdiff
blob: 1f561cef16b19bf2fe391d4a5f75c52364e2c4c2 (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-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libgmail/libgmail-0.0.8.ebuild,v 1.4 2005/02/02 16:26:31 squinky86 Exp $

inherit python

DESCRIPTION="Python bindings to access Google's gmail service"
HOMEPAGE="http://libgmail.sourceforge.net/"
SRC_URI="mirror://sourceforge/libgmail/${P}.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~ppc"

IUSE=""

DEPEND=">=sys-apps/sed-4"

RDEPEND="dev-python/logging
	virtual/python"

src_unpack() {
	unpack ${A}
	cd ${S}
	sed -i -e 's:import sys:import logging\nimport sys:g' demos/gmailpopd.py
}

src_install() {
	python_version
	exeinto /usr/lib/python${PYVER}/site-packages
	doexe libgmail.py constants.py mkconstants.py
	exeinto /usr/share/doc/${PF}/demos
	doexe -r demos/*
	dodoc ANNOUNCE CHANGELOG README
}