From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 718EB59CB2 for ; Sun, 17 Apr 2016 08:07:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6FA5421C1EE; Sun, 17 Apr 2016 08:07:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DAF2A21C1EE for ; Sun, 17 Apr 2016 08:06:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 21035340B27 for ; Sun, 17 Apr 2016 08:06:59 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A661D1FC for ; Sun, 17 Apr 2016 08:06:52 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1460880384.3311da08423e3379c2c5c45e8e52077a6258ad54.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/i18n/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/i18n/i18n-0.7.0-r2.ebuild X-VCS-Directories: dev-ruby/i18n/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 3311da08423e3379c2c5c45e8e52077a6258ad54 X-VCS-Branch: master Date: Sun, 17 Apr 2016 08:06:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: afaeb2dc-c80b-4cb5-98f8-28991ce01f3e X-Archives-Hash: 884f98709032b93b27a7cef7707fa583 commit: 3311da08423e3379c2c5c45e8e52077a6258ad54 Author: Hans de Graaff gentoo org> AuthorDate: Sun Apr 17 08:04:37 2016 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Sun Apr 17 08:06:24 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3311da08 dev-ruby/i18n: add ruby23 Drop ppc keyword due to bug 551722 Package-Manager: portage-2.2.26 dev-ruby/i18n/i18n-0.7.0-r2.ebuild | 56 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/dev-ruby/i18n/i18n-0.7.0-r2.ebuild b/dev-ruby/i18n/i18n-0.7.0-r2.ebuild new file mode 100644 index 0000000..9bb8c86 --- /dev/null +++ b/dev-ruby/i18n/i18n-0.7.0-r2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +USE_RUBY="ruby20 ruby21 ruby22 ruby23" + +RUBY_FAKEGEM_RECIPE_TEST="test" +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem versionator + +DESCRIPTION="Add Internationalization support to your Ruby application" +HOMEPAGE="http://rails-i18n.org/" +SRC_URI="https://github.com/svenfuchs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(get_version_component_range 1-2)" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +RUBY_PATCHES=( ${P}-frozen-classes.patch ) + +ruby_add_bdepend "test? ( + >=dev-ruby/activesupport-3.2 =dev-ruby/mocha-0.13 + dev-ruby/test_declarative )" + +all_ruby_prepare() { + # Remove bundler lock files since we cannot depend on specific + # versions in Gentoo. + rm gemfiles/*.lock || die +} + +each_ruby_test() { + case ${RUBY} in + *ruby22|*ruby23) + versions="4.2" + ;; + *) + versions="3.2 4.0 4.1 4.2" + ;; + esac + + for version in ${versions} ; do + if has_version "dev-ruby/activesupport:${version}" ; then + einfo "Running tests with activesupport ${version}" + BUNDLE_GEMFILE="${S}/gemfiles/Gemfile.rails-${version}.x" ${RUBY} -S bundle exec ${RUBY} -S rake test || die + fi + done +}