# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/cgikit/cgikit-1.2.0.ebuild,v 1.8 2007/04/14 06:02:56 graaff Exp $

RUBY_BUG_145222=yes
inherit ruby

DESCRIPTION="CGIKit is a web application framework written in Ruby. The architecture is similar to WebObjects"
HOMEPAGE="http://www.spice-of-life.net/cgikit/index_en.html"
SRC_URI="http://www.spice-of-life.net/cgikit/archive/${P}.tar.gz"
LICENSE="Ruby"
SLOT="0"
KEYWORDS="alpha ia64 ppc x86"
IUSE="examples"
USE_RUBY="ruby18 ruby19"

DEPEND=">=dev-lang/ruby-1.8.0"

src_compile() {
	ruby install.rb config || die
}

src_install() {
	ruby install.rb install --prefix=${D} || die
	erubydoc
}