diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-12-02 02:51:11 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-12-02 02:51:11 +0000 |
commit | 9bed5baf115f576802efa575158ed07f0479ea59 (patch) | |
tree | 7ebddaeee3325a24beeea683d9eeda0fedf7783a /eclass/enlightenment.eclass | |
parent | repoman: whitespace cleanup (diff) | |
download | historical-9bed5baf115f576802efa575158ed07f0479ea59.tar.gz historical-9bed5baf115f576802efa575158ed07f0479ea59.tar.bz2 historical-9bed5baf115f576802efa575158ed07f0479ea59.zip |
add doc (gendoc) support
Diffstat (limited to 'eclass/enlightenment.eclass')
-rw-r--r-- | eclass/enlightenment.eclass | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/eclass/enlightenment.eclass b/eclass/enlightenment.eclass index 20e4500b9671..be6dd44d3236 100644 --- a/eclass/enlightenment.eclass +++ b/eclass/enlightenment.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.5 2003/11/15 21:48:08 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.6 2003/12/02 02:51:11 vapier Exp $ # # Author: vapier@gentoo.org @@ -17,9 +17,10 @@ SRC_URI="mirror://gentoo/${P}.tar.bz2 LICENSE="as-is" SLOT="0" KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha ~arm ~hppa ~amd64 ~ia64" -IUSE="nls" +IUSE="nls doc" -DEPEND="nls? ( sys-devel/gettext )" +DEPEND="doc? ( app-doc/doxygen ) + nls? ( sys-devel/gettext )" S=${WORKDIR}/${PN} @@ -68,14 +69,15 @@ enlightenment_src_compile() { fi econf ${MY_ECONF} || die "econf failed" emake || die "emake failed" + [ `use doc` ] && [ -x ./gendoc ] && { ./gendoc || die "gendoc failed" ; } } enlightenment_src_install() { make install DESTDIR=${D} || die - find ${D} -name CVS -type d -exec rm -rf '{}' \; + find ${D} -name CVS -type d -exec rm -rf '{}' \; 2>/dev/null [ -z "${EDOCS}" ] && EDOCS="AUTHORS ChangeLog NEWS README TODO" dodoc ${EDOCS} - [ -d doc ] && dohtml -r doc/* + [ `use doc` ] && [ -d doc ] && dohtml -r doc/* } enlightenment_pkg_postinst() { |