# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-python/web2py/web2py-1.98.1.ebuild,v 1.4 2011/08/03 15:53:00 smt Exp $ EAPI="3" PYTHON_DEPEND="2" SUPPORT_PYTHON_ABIS="1" RESTRICT_PYTHON_ABIS="3.*" inherit eutils DESCRIPTION="Python framework for rapid development of database-driven web-based applications." HOMEPAGE="http://www.web2py.com/" SRC_URI="http://web2py.com/examples/static/${PV}/web2py_src.zip" LICENSE="LGPL-3" SLOT="0" KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" IUSE="doc mysql postgres sqlite test" RDEPEND="dev-python/imaging sqlite? ( || ( dev-lang/python:2.7[sqlite] dev-lang/python:2.6[sqlite] dev-lang/python:2.5[sqlite] dev-python/pysqlite:2 ) ) postgres? ( dev-python/psycopg )" DEPEND="${RDEPEND}" #src_prepare() { # epatch "${FILESDIR}"/web2py-no-admin-check.patch #} src_install() { # init script stuff newinitd "${FILESDIR}"/web2py.initd web2py || die newconfd "${FILESDIR}"/web2py.confd web2py || die # configuration files insinto /etc/web2py newins "web2py/options_std.py" "options.py" || die "installing config files failed" # move applications to var/lib #keepdir "/var/lib/web2py/" insinto "/var/lib/web2py/" doins -r "web2py/applications" || die "installing applications failed" rm -R "web2py/applications" # install web2py insinto "/usr/lib/web2py" doins -r "web2py"/* || die "installing gluon failed" }