--- webapp-config-1.50.16-r3.ebuild 2009-11-23 17:30:40.000000000 +0100 +++ webapp-config-1.50.16-r4.ebuild 2009-11-23 19:33:27.000000000 +0100 @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-admin/webapp-config/webapp-config-1.50.16-r3.ebuild,v 1.2 2008/04/03 10:24:04 hollow Exp $ +EAPI=1 + inherit eutils distutils DESCRIPTION="Gentoo's installer for web-based applications" @@ -11,9 +13,9 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" -IUSE="" +IUSE="+doc" -DEPEND="" +DEPEND="doc? ( app-text/xmlto )" src_unpack() { unpack ${A} @@ -25,6 +27,11 @@ rm -f doc/webapp.eclass.5{,.html} } +src_compile() { + use doc \ + && (ebegin "Compiling xml documentation" && emake -C doc && eend || die) +} + src_install() { # According to this discussion: # http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html @@ -39,9 +46,9 @@ keepdir /usr/share/webapps keepdir /var/db/webapps - dodoc examples/phpmyadmin-2.5.4-r1.ebuild AUTHORS.txt CHANGES.txt examples/postinstall-en.txt - doman doc/*.[58] - dohtml doc/*.[58].html + use doc && dodoc examples/phpmyadmin-2.5.4-r1.ebuild AUTHORS.txt CHANGES.txt examples/postinstall-en.txt + use doc && doman doc/*.[58] + use doc && dohtml doc/*.[58].html } src_test() {