From 211bc6919e41535a393edb13984bf9054a361ca9 Mon Sep 17 00:00:00 2001 From: lebarjack Date: Fri, 12 Mar 2010 08:32:57 +0000 Subject: dev-php/awl: New version for the awl library svn path=/sunrise/; revision=10282 --- dev-php/awl/awl-0.42.ebuild | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 dev-php/awl/awl-0.42.ebuild (limited to 'dev-php/awl/awl-0.42.ebuild') diff --git a/dev-php/awl/awl-0.42.ebuild b/dev-php/awl/awl-0.42.ebuild new file mode 100644 index 000000000..8c6b337d9 --- /dev/null +++ b/dev-php/awl/awl-0.42.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit depend.php php-lib-r1 + +DESCRIPTION="Andrew McMillan's web libraries: A collection of generic classes +used by the davical calendar server" +HOMEPAGE="http://andrew.mcmillan.net.nz/projects/awl" +SRC_URI="http://debian.mcmillan.net.nz/packages/awl/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +DEPEND="dev-lang/php[pcre,pdo,postgres,xml] + doc? ( dev-php/PEAR-PhpDocumentor )" +RDEPEND="${DEPEND}" + +need_php5 + +src_compile() { + if use doc ; then + ebegin "Generating documentation" + phpdoc -c "docs/api/phpdoc.ini" || die "Documentation failed to build" + fi +} + +src_install() { + local docs="debian/README.Debian debian/changelog" + dodoc-php ${docs} || die "dodoc failed" + + if use doc ; then + dohtml -r "docs/api/" || die "dohtml failed" + fi + + insinto /usr/share/awl + doins -r dba || die "doins failed" + + php-lib-r1_src_install ./inc `find ./inc -type f -print | sed -e "s|./inc||g"` +} -- cgit v1.2.3-65-gdbad