summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2010-05-30 11:00:08 +0000
committerDirkjan Ochtman <djc@gentoo.org>2010-05-30 11:00:08 +0000
commit7bbdfcbf13a6ef374497867fd2a816c73da0c36a (patch)
treebb18cc57dfb31f060b0748fd9cb9e7bd3b8e1952 /dev-python/flask
parentFixing build with forced --as-needed and automagic dependency on media-libs/q... (diff)
downloadgentoo-2-7bbdfcbf13a6ef374497867fd2a816c73da0c36a.tar.gz
gentoo-2-7bbdfcbf13a6ef374497867fd2a816c73da0c36a.tar.bz2
gentoo-2-7bbdfcbf13a6ef374497867fd2a816c73da0c36a.zip
Initial version, contributed by plaes@plaes.org.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/flask')
-rw-r--r--dev-python/flask/ChangeLog10
-rw-r--r--dev-python/flask/flask-0.3.1.ebuild60
-rw-r--r--dev-python/flask/metadata.xml5
3 files changed, 75 insertions, 0 deletions
diff --git a/dev-python/flask/ChangeLog b/dev-python/flask/ChangeLog
new file mode 100644
index 000000000000..964d123693e5
--- /dev/null
+++ b/dev-python/flask/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-python/flask
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/flask/ChangeLog,v 1.1 2010/05/30 11:00:08 djc Exp $
+
+*flask-0.3.1 (30 May 2010)
+
+ 30 May 2010; Dirkjan Ochtman <djc@gentoo.org> +flask-0.3.1.ebuild,
+ +metadata.xml:
+ Initial version, contributed by plaes@plaes.org.
+
diff --git a/dev-python/flask/flask-0.3.1.ebuild b/dev-python/flask/flask-0.3.1.ebuild
new file mode 100644
index 000000000000..1d9f6dc116fb
--- /dev/null
+++ b/dev-python/flask/flask-0.3.1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/flask/flask-0.3.1.ebuild,v 1.1 2010/05/30 11:00:08 djc Exp $
+
+EAPI=3
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+
+inherit distutils
+
+MY_PN="Flask"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="A microframework based on Werkzeug, Jinja2 and good intentions"
+HOMEPAGE="http://pypi.python.org/pypi/Flask/"
+SRC_URI="http://pypi.python.org/packages/source/F/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc test"
+
+RDEPEND="
+ dev-python/setuptools
+ >=dev-python/jinja-2.4
+ >=dev-python/werkzeug-0.6.1"
+DEPEND="${RDEPEND}
+ doc? ( >=dev-python/sphinx-0.6 )"
+
+S=${WORKDIR}/${MY_P}
+
+src_compile() {
+ distutils_src_compile
+
+ if use doc; then
+ cd docs && einfo "Generation of documentation"
+ PYTHONPATH=".." emake html || die "Building of documentation failed"
+ fi
+}
+
+src_install() {
+ distutils_src_install
+ python_clean_installation_image
+
+ if use doc; then
+ dohtml -r docs/_build/html/* || die "Installation of documentation failed"
+ fi
+
+ if use examples; then
+ insinto "/usr/share/doc/${PF}"
+ doins -r examples || die "Failed to install examples"
+ fi
+}
+
+src_test() {
+ testing() {
+ PYTHONPATH=. "$(PYTHON)" tests/flask_tests.py
+ }
+ python_execute_function testing
+}
diff --git a/dev-python/flask/metadata.xml b/dev-python/flask/metadata.xml
new file mode 100644
index 000000000000..ee7e8b2450a8
--- /dev/null
+++ b/dev-python/flask/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>python</herd>
+</pkgmetadata>