summaryrefslogtreecommitdiff
blob: 74cc94c81823a3a8ba40a3a040b1f23c60537d2a (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pysqlite/pysqlite-1.0.1.ebuild,v 1.10 2008/03/19 14:47:46 hoffie Exp $

inherit distutils

IUSE=""
DESCRIPTION="Python wrapper for the local database Sqlite"
SRC_URI="mirror://sourceforge/pysqlite/pysqlite-${PV}.tar.gz"
HOMEPAGE="http://pysqlite.org/"

KEYWORDS="amd64 ppc sparc x86 ~x86-fbsd"
LICENSE="pysqlite"
SLOT="0"

DEPEND=">=dev-lang/python-2.2
	=dev-db/sqlite-2*"

src_unpack() {
	unpack ${A}
	# distutils expects to find setup.py in ${S}
	mv "${WORKDIR}"/pysqlite "${S}"
}

src_install() {
	distutils_src_install
	# Need to do the examples explicitly since dodoc
	# doesn't do directories properly
	dodir /usr/share/doc/${PF}/examples || die
	cp -r "${S}"/examples/* "${D}"/usr/share/doc/${PF}/examples || die
}