# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/prawn-layout/prawn-layout-0.1.0.ebuild,v 1.1 2009/07/16 13:28:53 flameeyes Exp $ EAPI=2 GITHUB_USER=sandal inherit ruby DESCRIPTION="An extension to Prawn offering table support, grid layouts and other things" HOMEPAGE="http://github.com/${GITHUB_USER}/${PN}/tree/master" LICENSE="|| ( GPL-2 Ruby )" SLOT="0" KEYWORDS="~amd64" IUSE="doc examples test" SRC_URI="http://github.com/${GITHUB_USER}/${PN}/tarball/${PV} -> ${P}.tgz" USE_RUBY="ruby18" RDEPEND="dev-ruby/prawn" DEPEND="doc? ( dev-ruby/rake ) test? ( dev-ruby/rake dev-ruby/mocha ${RDEPEND} )" S="${WORKDIR}" src_compile() { cd "${WORKDIR}"/${GITHUB_USER}-${PN}-* if use doc; then rake rdoc || die "rake rdoc failed" fi } src_test() { cd "${WORKDIR}"/${GITHUB_USER}-${PN}-* rake test || die "rake test failed" } dofakegemspec() { cat - > "${T}"/${P}.gemspec <