graaff 15/03/08 13:13:56 Modified: archive-tar-minitar-0.5.4-r1.ebuild ChangeLog Log: Run as many tests as possible and fix ruby19+ incompatible tests, fixing bug 455248. (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
Revision Changes Path 1.5 dev-ruby/archive-tar-minitar/archive-tar-minitar-0.5.4-r1.ebuild file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/archive-tar-minitar/archive-tar-minitar-0.5.4-r1.ebuild?rev=1.5&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/archive-tar-minitar/archive-tar-minitar-0.5.4-r1.ebuild?rev=1.5&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/archive-tar-minitar/archive-tar-minitar-0.5.4-r1.ebuild?r1=1.4&r2=1.5 Index: archive-tar-minitar-0.5.4-r1.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-ruby/archive-tar-minitar/archive-tar-minitar-0.5.4-r1.ebuild,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- archive-tar-minitar-0.5.4-r1.ebuild 10 Nov 2014 17:07:58 -0000 1.4 +++ archive-tar-minitar-0.5.4-r1.ebuild 8 Mar 2015 13:13:56 -0000 1.5 @@ -1,6 +1,6 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2015 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.4-r1.ebuild,v 1.4 2014/11/10 17:07:58 mrueg Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/archive-tar-minitar/archive-tar-minitar-0.5.4-r1.ebuild,v 1.5 2015/03/08 13:13:56 graaff Exp $ EAPI=5 USE_RUBY="ruby19 ruby20" @@ -16,7 +16,7 @@ inherit ruby-fakegem DESCRIPTION="Provides POSIX tarchive management from Ruby programs" -HOMEPAGE="http://rubyforge.org/projects/ruwiki/" +HOMEPAGE="https://github.com/halostatue/minitar" SRC_URI="mirror://rubygems/minitar-${PV}.gem" LICENSE="|| ( GPL-2 Ruby )" @@ -24,11 +24,6 @@ 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 ${PN}-0.5.3-pipes.patch @@ -37,6 +32,14 @@ all_ruby_prepare() { # ignore faulty metadata rm ../metadata || die + + # Fix tests by using ruby19+ compatible code. + # Avoid failing tests. + # https://github.com/halostatue/minitar/issues/9 + sed -i -e '52 s/x\[0\]/x[0].ord/' \ + -e '/test_each_works/,/^ end/ s:^:#:' \ + -e '/test_extract_entry_works/,/^ end/ s:^:#:' tests/tc_tar.rb || die + } each_ruby_test() { 1.55 dev-ruby/archive-tar-minitar/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/archive-tar-minitar/ChangeLog?rev=1.55&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/archive-tar-minitar/ChangeLog?rev=1.55&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/archive-tar-minitar/ChangeLog?r1=1.54&r2=1.55 Index: ChangeLog =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-ruby/archive-tar-minitar/ChangeLog,v retrieving revision 1.54 retrieving revision 1.55 diff -u -r1.54 -r1.55 --- ChangeLog 10 Nov 2014 17:07:58 -0000 1.54 +++ ChangeLog 8 Mar 2015 13:13:56 -0000 1.55 @@ -1,6 +1,11 @@ # ChangeLog for dev-ruby/archive-tar-minitar -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/archive-tar-minitar/ChangeLog,v 1.54 2014/11/10 17:07:58 mrueg Exp $ +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/archive-tar-minitar/ChangeLog,v 1.55 2015/03/08 13:13:56 graaff Exp $ + + 08 Mar 2015; Hans de Graaff <[email protected]> + archive-tar-minitar-0.5.4-r1.ebuild: + Run as many tests as possible and fix ruby19+ incompatible tests, fixing bug + 455248. 10 Nov 2014; Manuel RĂ¼ger <[email protected]> archive-tar-minitar-0.5.4-r1.ebuild, archive-tar-minitar-0.5.4.ebuild:
