summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Cakebread <pythonhead@gentoo.org>2007-04-21 20:12:02 +0000
committerRob Cakebread <pythonhead@gentoo.org>2007-04-21 20:12:02 +0000
commit6ee769d6b1c76f9360e403157b1681bd75638cfc (patch)
treea2ee15f025d07deab1451bca5f6de096c1c5328a /dev-python/python-xlib
parentVersion bumps (diff)
downloadgentoo-2-6ee769d6b1c76f9360e403157b1681bd75638cfc.tar.gz
gentoo-2-6ee769d6b1c76f9360e403157b1681bd75638cfc.tar.bz2
gentoo-2-6ee769d6b1c76f9360e403157b1681bd75638cfc.zip
Fixed docs add doc USE. bug #175475
(Portage version: 2.1.2.4)
Diffstat (limited to 'dev-python/python-xlib')
-rw-r--r--dev-python/python-xlib/ChangeLog6
-rw-r--r--dev-python/python-xlib/python-xlib-0.13.ebuild24
2 files changed, 27 insertions, 3 deletions
diff --git a/dev-python/python-xlib/ChangeLog b/dev-python/python-xlib/ChangeLog
index ff25949976e8..8e3c308c0a6b 100644
--- a/dev-python/python-xlib/ChangeLog
+++ b/dev-python/python-xlib/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/python-xlib
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/python-xlib/ChangeLog,v 1.16 2007/04/21 17:32:13 pythonhead Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/python-xlib/ChangeLog,v 1.17 2007/04/21 20:12:02 pythonhead Exp $
+
+ 21 Apr 2007; Rob Cakebread <pythonhead@gentoo.org>
+ python-xlib-0.13.ebuild:
+ Fixed docs add doc USE. bug #175475
21 Apr 2007; Rob Cakebread <pythonhead@gentoo.org>
python-xlib-0.12-r3.ebuild:
diff --git a/dev-python/python-xlib/python-xlib-0.13.ebuild b/dev-python/python-xlib/python-xlib-0.13.ebuild
index 6a2489569a2e..7da765de1636 100644
--- a/dev-python/python-xlib/python-xlib-0.13.ebuild
+++ b/dev-python/python-xlib/python-xlib-0.13.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/python-xlib/python-xlib-0.13.ebuild,v 1.1 2007/04/21 17:09:37 pythonhead Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/python-xlib/python-xlib-0.13.ebuild,v 1.2 2007/04/21 20:12:02 pythonhead Exp $
inherit distutils
@@ -11,10 +11,30 @@ SRC_URI="mirror://sourceforge/python-xlib/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc ~alpha ~ia64 ~amd64"
-IUSE=""
+IUSE="doc"
+DEPEND="${RDEPEND}
+ doc? ( >=app-text/tetex-2.0.2-r9
+ >=sys-apps/texinfo-4.8-r2 )"
+
+src_compile() {
+ distutils_src_compile
+ if use doc; then
+ cd doc
+ emake || die "make docs failed"
+ fi
+}
+
+src_install () {
+ distutils_src_install
+ if use doc; then
+ dohtml -r doc/html/
+ dodoc doc/ps/python-xlib.ps
+ fi
+}
src_test() {
for pytest in $(ls test/*py); do
PYTHONPATH=. ${python} ${pytest} || die "test failed"
done
}
+