summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2015-05-14 08:17:39 +0000
committerHans de Graaff <graaff@gentoo.org>2015-05-14 08:17:39 +0000
commit7d6c18c9724324a7ff7eeb152acf8314fb2e72d1 (patch)
tree01d5a40a99cae2fbf64f0dac57503922e0cc88b8 /dev-ruby/sprockets
parentEnable the GNOME3 pinentry if gnome-keyring USE flag is set (diff)
downloadgentoo-2-7d6c18c9724324a7ff7eeb152acf8314fb2e72d1.tar.gz
gentoo-2-7d6c18c9724324a7ff7eeb152acf8314fb2e72d1.tar.bz2
gentoo-2-7d6c18c9724324a7ff7eeb152acf8314fb2e72d1.zip
Version bump. Add missing uglifier test dependency.
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
Diffstat (limited to 'dev-ruby/sprockets')
-rw-r--r--dev-ruby/sprockets/ChangeLog8
-rw-r--r--dev-ruby/sprockets/sprockets-2.12.3.ebuild5
-rw-r--r--dev-ruby/sprockets/sprockets-3.1.0.ebuild59
3 files changed, 69 insertions, 3 deletions
diff --git a/dev-ruby/sprockets/ChangeLog b/dev-ruby/sprockets/ChangeLog
index a1404e5469c1..eb786cf1a7d3 100644
--- a/dev-ruby/sprockets/ChangeLog
+++ b/dev-ruby/sprockets/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-ruby/sprockets
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/sprockets/ChangeLog,v 1.32 2015/04/11 05:28:11 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/sprockets/ChangeLog,v 1.33 2015/05/14 08:17:39 graaff Exp $
+
+*sprockets-3.1.0 (14 May 2015)
+
+ 14 May 2015; Hans de Graaff <graaff@gentoo.org> sprockets-2.12.3.ebuild,
+ +sprockets-3.1.0.ebuild:
+ Version bump. Add missing uglifier test dependency.
11 Apr 2015; Hans de Graaff <graaff@gentoo.org> -sprockets-2.1.4.ebuild:
Remove masked ruby19-only packages.
diff --git a/dev-ruby/sprockets/sprockets-2.12.3.ebuild b/dev-ruby/sprockets/sprockets-2.12.3.ebuild
index b0186464c443..4650f9f42a77 100644
--- a/dev-ruby/sprockets/sprockets-2.12.3.ebuild
+++ b/dev-ruby/sprockets/sprockets-2.12.3.ebuild
@@ -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/sprockets/sprockets-2.12.3.ebuild,v 1.1 2014/10/31 07:08:13 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/sprockets/sprockets-2.12.3.ebuild,v 1.2 2015/05/14 08:17:39 graaff Exp $
EAPI=5
USE_RUBY="ruby19 ruby20 ruby21"
@@ -35,6 +35,7 @@ ruby_add_bdepend "test? (
=dev-ruby/coffee-script-2*
=dev-ruby/execjs-2*
=dev-ruby/sass-3* >=dev-ruby/sass-3.1
+ dev-ruby/uglifier
)"
all_ruby_prepare() {
diff --git a/dev-ruby/sprockets/sprockets-3.1.0.ebuild b/dev-ruby/sprockets/sprockets-3.1.0.ebuild
new file mode 100644
index 000000000000..94ad305e61ac
--- /dev/null
+++ b/dev-ruby/sprockets/sprockets-3.1.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/sprockets/sprockets-3.1.0.ebuild,v 1.1 2015/05/14 08:17:39 graaff Exp $
+
+EAPI=5
+USE_RUBY="ruby19 ruby20 ruby21"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_GEMSPEC="sprockets.gemspec"
+
+inherit ruby-fakegem versionator
+
+DESCRIPTION="Ruby library for compiling and serving web assets"
+HOMEPAGE="https://github.com/rails/sprockets"
+SRC_URI="https://github.com/rails/sprockets/archive/v${PV}.tar.gz -> ${P}-git.tgz"
+
+LICENSE="MIT"
+SLOT="$(get_version_component_range 1)"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+
+IUSE=""
+
+ruby_add_rdepend "
+ =dev-ruby/rack-1*:*
+ !!<dev-ruby/sprockets-2.2.2-r1:2.2"
+
+ruby_add_bdepend "test? (
+ dev-ruby/json
+ dev-ruby/rack-test
+ =dev-ruby/coffee-script-2*
+ =dev-ruby/execjs-2*
+ =dev-ruby/sass-3* >=dev-ruby/sass-3.1
+ dev-ruby/uglifier
+ )"
+
+all_ruby_prepare() {
+ # Avoid tests for template types that we currently don't package:
+ # eco and ejs.
+ sed -i -e '/eco templates/,/end/ s:^:#:' \
+ -e '/ejs templates/,/end/ s:^:#:' test/test_environment.rb || die
+ sed -i -e '/.ejs/ s:^:#:' test/test_asset.rb || die
+ rm -f test/test_require.rb test/test_{closure,eco,ejs,yui}_{compressor,processor}.rb || die
+}
+
+each_ruby_prepare() {
+ sed -i -e "s:ruby:${RUBY}:" test/test_sprocketize.rb || die
+}
+
+each_ruby_test() {
+ # Make sure we have completely separate copies. Hardlinks won't work
+ # for this test suite.
+ cp -R test test-new || die
+ rm -rf test || die
+ mv test-new test || die
+
+ each_fakegem_test
+}