Werkzeug

wsgi utility collection


Werkzeug live ebuild for Gentoo

As Gentoo comes with powerful package management system, then one of the best ways to install latest Werkzeug tip into your system is to use live ebuild. In order to do it, you should save file below to werkzeug-9999.ebuild, move it into your local overlay under dev-python and then fix its keywords (either directly in the ebuild or use /etc/portage/package.keywords).

Good Luck :)

dev-python/werkzeug-9999.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit distutils mercurial

DESCRIPTION="Collection of various utilities for WSGI applications"
HOMEPAGE="http://werkzeug.pocoo.org/"
SRC_URI=""
EHG_REPO_URI="http://dev.pocoo.org/hg/werkzeug-main"

LICENSE="BSD"
SLOT="0"
KEYWORDS=""
IUSE="test"

DEPEND=">=dev-python/setuptools-0.6_rc5
        test? ( dev-python/py
                dev-python/lxml
                dev-python/simplejson )"
RDEPEND=""
DOCS="CHANGES THANKS"

S=${WORKDIR}/${PN}-main

src_unpack() {
        mercurial_src_unpack
        cd ${S}
}

src_test() {
        distutils_python_version
        # path gets set correctly in conftest.py
        cd tests
        py.test || die "tests failed"
}