dev-python/twill: Move to virtual/dnspython
authorJustin Lecher <jlec@gentoo.org>
Fri, 30 Oct 2015 11:59:28 +0000 (12:59 +0100)
committerJustin Lecher <jlec@gentoo.org>
Fri, 30 Oct 2015 12:03:49 +0000 (13:03 +0100)
QA:
add missing die

Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec@gentoo.org>
dev-python/twill/metadata.xml
dev-python/twill/twill-0.9-r1.ebuild

index 9d2a9281f413fff61868013696458d62c2165892..a67d0418f87b894c29da494ae0f9db9fc25f16b6 100644 (file)
@@ -6,4 +6,3 @@
                twill is a simple language that allows users to browse the Web from a command-line interface. With twill, you can navigate through Web sites that use forms, cookies, and most standard Web features.  twill supports automated Web testing and has a simple Python interface. Check out the examples! twill is open source and written in Python.
        </longdescription>
 </pkgmetadata>
-
index 1d397df7a63cf8b036c8b6a6d68f2d99c3628d23..d69c8f7477928a60d91c18935f05118fb1f68f9a 100644 (file)
@@ -3,6 +3,7 @@
 # $Id$
 
 EAPI="5"
+
 PYTHON_COMPAT=( python2_7 pypy )
 
 inherit distutils-r1
@@ -19,18 +20,24 @@ SLOT="0"
 KEYWORDS="amd64 ~arm ppc ~ppc64 x86"
 IUSE="doc examples"
 
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
-       doc? ( $(python_gen_cond_dep 'dev-python/epydoc[${PYTHON_USEDEP}]' python2_7)
-               $(python_gen_cond_dep 'dev-python/dnspython[${PYTHON_USEDEP}]' python2_7) )"
+DEPEND="
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       doc? (
+               $(python_gen_cond_dep 'dev-python/epydoc[${PYTHON_USEDEP}]' python2_7)
+               || (
+                       dev-python/dnspython:0[${PYTHON_USEDEP}]
+                       virtual/dnspython:0[${PYTHON_USEDEP}]
+               )
+       )"
 
 S="${WORKDIR}/${MY_P}"
 
 python_compile_all() {
        if use doc; then
-               pushd doc > /dev/null
-               chmod +x make-epydoc.sh
-               ./make-epydoc.sh
-               popd> /dev/null
+               pushd doc > /dev/null || die
+               chmod +x make-epydoc.sh || die
+               ./make-epydoc.sh || die
+               popd> /dev/null || die
        fi
 }