89dcf7c392
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/mds@1906 6952d904-891a-0410-993b-d76249ca496b
46 lines
1.1 KiB
Bash
46 lines
1.1 KiB
Bash
# 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 "phpdoc failed"
|
|
eend $? || 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"`
|
|
}
|