summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/flask-mail/flask-mail-0.9.0.ebuild')
-rw-r--r--dev-python/flask-mail/flask-mail-0.9.0.ebuild17
1 files changed, 13 insertions, 4 deletions
diff --git a/dev-python/flask-mail/flask-mail-0.9.0.ebuild b/dev-python/flask-mail/flask-mail-0.9.0.ebuild
index 07f80daf69e6..e108d939300b 100644
--- a/dev-python/flask-mail/flask-mail-0.9.0.ebuild
+++ b/dev-python/flask-mail/flask-mail-0.9.0.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/flask-mail/flask-mail-0.9.0.ebuild,v 1.1 2013/09/10 06:09:16 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/flask-mail/flask-mail-0.9.0.ebuild,v 1.2 2014/06/14 07:13:30 idella4 Exp $
EAPI=5
-PYTHON_COMPAT=( python2_7 )
+PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
inherit distutils-r1
@@ -17,7 +17,7 @@ SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="test"
+IUSE="doc test"
RDEPEND="dev-python/flask[${PYTHON_USEDEP}]
dev-python/blinker[${PYTHON_USEDEP}]"
@@ -29,6 +29,15 @@ DEPEND="${RDEPEND}
S="${WORKDIR}/${MY_P}"
+python_compile_all() {
+ use doc && emake -C docs html
+}
+
python_test() {
nosetests || die "Testing failed with ${EPYTHON}"
}
+
+python_install_all() {
+ use doc && HTML_DOCS=( docs/_build/html/. )
+ distutils-r1_python_install_all
+}