# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/metasploit_data_models/metasploit_data_models-0.6.0.ebuild,v 1.4 2013/03/07 19:35:16 zerochaos Exp $ EAPI=5 USE_RUBY="ruby18 ruby19" RUBY_FAKEGEM_TASK_DOC="" RUBY_FAKEGEM_RECIPE_TEST="" inherit ruby-fakegem DESCRIPTION="The database layer for Metasploit" HOMEPAGE="https://github.com/rapid7/metasploit_data_models" SRC_URI="https://github.com/rapid7/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~arm ~x86" IUSE="" #pry isn't available for 1.9 #ruby_add_bdepend "test? ( dev-ruby/rails dev-ruby/pry )" ruby_add_rdepend ">=dev-ruby/activerecord-3.2.10[postgres]" each_ruby_install() { ruby_fakegem_install_gemspec local _gemlibdirs="${RUBY_FAKEGEM_EXTRAINSTALL}" for directory in app bin db lib script spec; do [[ -d ${directory} ]] && _gemlibdirs="${_gemlibdirs} ${directory}" done [[ -n ${_gemlibdirs} ]] && \ ruby_fakegem_doins -r ${_gemlibdirs} }