# $Id$ PNAME="pysqlite" PVER="2.5.5" PBUILD="r2" PCATEGORIE="dev-python" STATE="unstable" DESCRIPTION="A DB-API 2.0 database interface for Python and SQLite." HOMEPAGE="http://code.google.com/p/pysqlite/" DEPEND=">= dev-lang/python-2.6 >= dev-db/sqlite-3.6" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude python SRC_URI=( http://${PNAME}.googlecode.com/files/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd ${HOMEPAGE} | lasttarball gz" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix encoding - trac needs this, see: # http://www.mail-archive.com/trac-users@googlegroups.com/msg07793.html # and # http://trac.edgewall.org/changeset/6223 sed -i "s/\(coding: \)ISO-8859-1/\1utf-8/" pysqlite2/__init__.py pysqlite2/dbapi2.py || die }