2014-03-12 14:33:09 +04:00
|
|
|
# Copyright 1999-2014 Gentoo Foundation
|
2013-11-11 10:37:27 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2014-12-29 09:26:43 +03:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/childlabor/childlabor-0.0.3-r1.ebuild,v 1.6 2014/12/28 09:16:23 graaff Exp $
|
2013-11-11 10:37:27 +04:00
|
|
|
|
|
|
|
EAPI=5
|
2014-10-31 10:24:07 +03:00
|
|
|
USE_RUBY="ruby19 ruby20 ruby21"
|
2013-11-11 10:37:27 +04:00
|
|
|
|
|
|
|
RUBY_FAKEGEM_TASK_DOC=""
|
|
|
|
RUBY_FAKEGEM_TASK_TEST=""
|
|
|
|
RUBY_FAKEGEM_DOCDIR=""
|
|
|
|
RUBY_FAKEGEM_EXTRADOC="README.md"
|
|
|
|
|
|
|
|
inherit ruby-fakegem
|
|
|
|
|
|
|
|
DESCRIPTION="A scripting framework that replaces rake and sake"
|
|
|
|
HOMEPAGE="https://github.com/carllerche/childlabor"
|
|
|
|
COMMIT_ID="6518b939dddbad20c7f05aa075d76e3ca6e70447"
|
|
|
|
SRC_URI="https://github.com/carllerche/childlabor/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
2014-08-13 18:55:29 +04:00
|
|
|
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
|
2013-11-11 10:37:27 +04:00
|
|
|
IUSE="test"
|
|
|
|
|
|
|
|
RUBY_S="${PN}-${COMMIT_ID}"
|
|
|
|
|
2014-12-29 09:26:43 +03:00
|
|
|
ruby_add_bdepend "test? ( dev-ruby/rspec:2 )"
|
2013-11-11 10:37:27 +04:00
|
|
|
|
2014-04-19 20:32:28 +04:00
|
|
|
all_ruby_prepare() {
|
|
|
|
# Avoid failing spec. The signals work, but the stdout handling
|
|
|
|
# doesn't seem to play nice with portage.
|
|
|
|
sed -i -e '/can send signals/,/^ end/ s:^:#:' spec/task_spec.rb || die
|
|
|
|
}
|
|
|
|
|
2013-11-11 10:37:27 +04:00
|
|
|
each_ruby_test() {
|
2014-12-29 09:26:43 +03:00
|
|
|
ruby-ng_rspec -I. spec/task_spec.rb || die
|
2013-11-11 10:37:27 +04:00
|
|
|
}
|