diff options
Diffstat (limited to 'dev-php5/onphp/onphp-0.6.0.ebuild')
-rw-r--r-- | dev-php5/onphp/onphp-0.6.0.ebuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-php5/onphp/onphp-0.6.0.ebuild b/dev-php5/onphp/onphp-0.6.0.ebuild new file mode 100644 index 000000000000..883b78d07bf8 --- /dev/null +++ b/dev-php5/onphp/onphp-0.6.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-php5/onphp/onphp-0.6.0.ebuild,v 1.1 2006/07/21 15:39:23 voxus Exp $ + +inherit php-lib-r1 + +KEYWORDS="~x86 ~amd64" +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" +IUSE="doc" + +# since need_php51 is missing +DEPEND=">=dev-lang/php-5.1" +RDEPEND=">=dev-lang/php-5.1" +PHP_VERSION="5" +PHP_SHARED_CAT="php5" + +src_install() { + has_php + + 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 + + php-lib-r1_src_install ./ global.inc.php.tpl + php-lib-r1_src_install ./ `find core main meta -type f -print` +} |