# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/calendar_date_select/calendar_date_select-1.15.ebuild,v 1.1 2009/07/20 13:27:19 flameeyes Exp $ EAPI=2 GITHUB_USER=timcharper inherit ruby eutils DESCRIPTION="A popular and flexible JavaScript DatePicker for RubyOnRails" HOMEPAGE="http://code.google.com/p/calendardateselect/" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" IUSE="doc test" SRC_URI="http://github.com/${GITHUB_USER}/${PN}/tarball/${PV} -> ${P}.tgz" USE_RUBY="ruby18" RDEPEND="" DEPEND="doc? ( dev-ruby/rake ) test? ( dev-ruby/rake dev-ruby/rspec ${RDEPEND} )" S="${WORKDIR}" src_compile() { cd "${WORKDIR}"/${GITHUB_USER}-${PN}-* if use doc; then rake redocs || die "rake rdoc failed" fi } src_test() { cd "${WORKDIR}"/${GITHUB_USER}-${PN}-* rake spec || die "rake test failed" } dofakegemspec() { cat - > "${T}"/${P}.gemspec <