diff options
Diffstat (limited to 'dev-ruby/uglifier')
-rw-r--r-- | dev-ruby/uglifier/ChangeLog | 10 | ||||
-rw-r--r-- | dev-ruby/uglifier/metadata.xml | 5 | ||||
-rw-r--r-- | dev-ruby/uglifier/uglifier-1.2.1.ebuild | 34 |
3 files changed, 49 insertions, 0 deletions
diff --git a/dev-ruby/uglifier/ChangeLog b/dev-ruby/uglifier/ChangeLog new file mode 100644 index 000000000000..719b9fe7d092 --- /dev/null +++ b/dev-ruby/uglifier/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-ruby/uglifier +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/uglifier/ChangeLog,v 1.1 2011/12/30 12:46:30 graaff Exp $ + +*uglifier-1.2.1 (30 Dec 2011) + + 30 Dec 2011; Hans de Graaff <graaff@gentoo.org> +uglifier-1.2.1.ebuild, + +metadata.xml: + Initial import. Needed for default Rails 3.1 asset pipeline. + diff --git a/dev-ruby/uglifier/metadata.xml b/dev-ruby/uglifier/metadata.xml new file mode 100644 index 000000000000..852136183369 --- /dev/null +++ b/dev-ruby/uglifier/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>ruby</herd> +</pkgmetadata> diff --git a/dev-ruby/uglifier/uglifier-1.2.1.ebuild b/dev-ruby/uglifier/uglifier-1.2.1.ebuild new file mode 100644 index 000000000000..52bb7d481433 --- /dev/null +++ b/dev-ruby/uglifier/uglifier-1.2.1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/uglifier/uglifier-1.2.1.ebuild,v 1.1 2011/12/30 12:46:30 graaff Exp $ + +EAPI=2 +USE_RUBY="ruby18 ruby19 ree18" + +# Avoid building documentation to avoid dependencies on bundler and jeweler +RUBY_FAKEGEM_TASK_DOC="" + +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +inherit ruby-fakegem + +DESCRIPTION="Ruby wrapper for UglifyJS JavaScript compressor." +HOMEPAGE="https://github.com/lautis/uglifier" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="test" + +# Tests requires additional uglifyjs test code in a vendored git submodule. +RESTRICT="test" + + +ruby_add_bdepend "test? ( dev-ruby/rspec:2 )" + +ruby_add_rdepend ">=dev-ruby/execjs-0.3.0 >=dev-ruby/multi_json-1.0.2" + +each_ruby_test() { + ${RUBY} -S rspec spec || die +} |