From 50eef0fc4a2c5109dea7b199b44782aed9ef4676 Mon Sep 17 00:00:00 2001 From: lebarjack Date: Fri, 14 Jan 2011 07:53:40 +0000 Subject: dev-php/awl: New version of the awl library svn path=/sunrise/; revision=11666 --- dev-php/awl/awl-0.46.ebuild | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 dev-php/awl/awl-0.46.ebuild (limited to 'dev-php/awl/awl-0.46.ebuild') diff --git a/dev-php/awl/awl-0.46.ebuild b/dev-php/awl/awl-0.46.ebuild new file mode 100644 index 000000000..9e8ce2c29 --- /dev/null +++ b/dev-php/awl/awl-0.46.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2011 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/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +DEPEND="|| ( =dev-lang/php-5.3[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-18-g5258