blob: 915fe665ba3a9155b4c90c83980627e3706f8977 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/attic/attic-0.5.3.ebuild,v 1.1 2013/12/25 07:07:28 graaff Exp $
EAPI=5
USE_RUBY="ruby18 ruby19"
RUBY_FAKEGEM_TASK_TEST=""
RUBY_FAKEGEM_TASK_DOC="rdoc"
RUBY_FAKEGEM_DOCDIR="doc"
RUBY_FAKEGEM_EXTRADOC="CHANGES.txt README.rdoc"
RUBY_FAKEGEM_BINWRAP=""
inherit ruby-fakegem eutils
DESCRIPTION="A place for Ruby objects to hide instance variables"
HOMEPAGE="http://solutious.com/"
SRC_URI="https://github.com/delano/${PN}/archive/${PV}.tar.gz -> ${PN}-git-${PV}.tgz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
ruby_add_bdepend "test? ( dev-ruby/tryouts:2 )"
each_ruby_prepare() {
case ${RUBY} in
*ruby18)
# Remove tests failing on ruby18 due to string/symbol
# differences: https://github.com/delano/attic/issues/1
rm try/01_mixins_tryouts.rb try/30_nometaclass_tryouts.rb || die
;;
esac
}
each_ruby_test() {
${RUBY} -Ilib -S try || die "tests failed"
}
|