Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: ebffb3fb4a
Fetching contributors…

Cannot retrieve contributors at this time

58 lines (44 sloc) 1.257 kb
# Copyright 1999-2007 Gentoo Foundation, 2010 W-Mark Kubacki
# Distributed under the terms of the GNU General Public License v2
# $Header: $
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
inherit distutils subversion eutils
MY_PN=SQLObject
MY_P=${MY_PN}-${PV}
DESCRIPTION="Object-relational mapper for Python"
HOMEPAGE="http://sqlobject.org/"
ESVN_REPO_URI="http://svn.colorstudy.com/SQLObject/branches/0.9"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
IUSE="postgres mysql sqlite firebird doc"
RDEPEND="postgres? ( dev-python/psycopg )
mysql? ( >=dev-python/mysql-python-1.2.2 )
sqlite? ( <dev-python/pysqlite-2.0 )
firebird? ( >=dev-python/kinterbasdb-3.0.2 )
>=dev-python/formencode-0.2.2"
DEPEND="${RDEPEND}
dev-python/setuptools"
S=${WORKDIR}/${MY_P}
src_unpack() {
subversion_src_unpack
cd "${S}"
epatch "${FILESDIR}/mysql_charset_hack.patch"
epatch "${FILESDIR}/UnicodeStringValidator.patch"
sed -i \
-e '/use_setuptools/d' \
-e '/install_requires=/d' \
-e '/extras_require/, /},/d' \
setup.py || die "sed failed"
}
src_install() {
distutils_src_install
if use doc; then
cd "${S}/docs"
dodoc *.txt
dohtml -r presentation-2004-11
insinto /usr/share/doc/${PF}
doins -r europython
fi
}
Jump to Line
Something went wrong with that request. Please try again.