You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.0 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php/awl/awl-0.52.ebuild,v 1.1 2012/06/26 09:36:20 patrick Exp $
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[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
php-lib-r1_src_install . dba/* inc/* scripts/*
}