You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-ruby/archive-tar-minitar/archive-tar-minitar-0.5.3-r...

45 lines
1.2 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/archive-tar-minitar/archive-tar-minitar-0.5.3-r2.ebuild,v 1.2 2012/06/26 18:16:59 graaff Exp $
EAPI=4
USE_RUBY="ruby18 ree18 ruby19 jruby"
RUBY_FAKEGEM_TASK_TEST=""
RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_EXTRADOC="README ChangeLog"
# We don't use RUBY_FAKEGEM_NAME here since for now we want to keep the
# same gem name.
inherit ruby-fakegem
DESCRIPTION="Provides POSIX tarchive management from Ruby programs."
HOMEPAGE="http://rubyforge.org/projects/ruwiki/"
SRC_URI="mirror://rubygems/minitar-${PV}.gem"
LICENSE="|| ( GPL-2 Ruby )"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
IUSE=""
# Tests are broken but this was already the case with 0.5.2 and it seems
# that only the test case is broken:
# https://github.com/halostatue/minitar/issues/9
RESTRICT="test"
RUBY_PATCHES=(
${PN}-0.5.2-gentoo.patch
${P}-pipes.patch
)
all_ruby_prepare() {
# ignore faulty metadata
rm ../metadata
}
each_ruby_test() {
${RUBY} -Itests -Ctests testall.rb || die
}