summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2011-12-30 12:46:30 +0000
committerHans de Graaff <graaff@gentoo.org>2011-12-30 12:46:30 +0000
commit0ec611e4684b7ff1e69907843a91ee9240b0a39a (patch)
tree83da97b33e6c58e77195510926efed34489a2f00 /dev-ruby/uglifier
parentInitial commit wrt #374741 by Marcel Partap (diff)
downloadgentoo-2-0ec611e4684b7ff1e69907843a91ee9240b0a39a.tar.gz
gentoo-2-0ec611e4684b7ff1e69907843a91ee9240b0a39a.tar.bz2
gentoo-2-0ec611e4684b7ff1e69907843a91ee9240b0a39a.zip
Initial import. Needed for default Rails 3.1 asset pipeline.
(Portage version: 2.1.10.41/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/uglifier')
-rw-r--r--dev-ruby/uglifier/ChangeLog10
-rw-r--r--dev-ruby/uglifier/metadata.xml5
-rw-r--r--dev-ruby/uglifier/uglifier-1.2.1.ebuild34
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
+}