summaryrefslogtreecommitdiff
blob: bfc04c3e615519818fe4c5f1d6c5403ed4606f3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php5/onphp/onphp-0.2.6.ebuild,v 1.1 2005/11/24 18:53:34 voxus Exp $

inherit php-lib-r1

DESCRIPTION="onPHP is the GPL'ed multi-purpose object-oriented PHP framework."
HOMEPAGE="http://onphp.org/"
SRC_URI="http://onphp.org/download/${P}.tar.bz2
	doc? ( http://onphp.org/download/${PN}-api-${PV}.tar.bz2 )"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="doc"

need_php_by_category

src_install() {
	if use doc ; then
		for doc in `find doc -maxdepth 1 -type f -print`; do
			dodoc ${doc}
		done

		dohtml -r ${WORKDIR}/${PN}-api-${PV}/*
	fi

	cp global.inc.php.tpl global.inc.php
	php-lib-r1_src_install ./ global.inc.php
	php-lib-r1_src_install ./ `find core -type f -print`
	php-lib-r1_src_install ./ `find main -type f -print`
}