summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2012-07-05 22:17:16 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2012-07-05 22:17:16 +0000
commit12ad4c465a286636cad42e9c7949c68421caa703 (patch)
tree4e3b617d5114f9b33bd39cbb85108ea0f0654b89 /dev-ruby/uglifier
parentRemove obsolete mask of mDNSResponder (diff)
downloadgentoo-2-12ad4c465a286636cad42e9c7949c68421caa703.tar.gz
gentoo-2-12ad4c465a286636cad42e9c7949c68421caa703.tar.bz2
gentoo-2-12ad4c465a286636cad42e9c7949c68421caa703.zip
Version bump; enable tests by downloading a snapshot of uglifyjs for testing purposes only.
(Portage version: 2.2.0_alpha116/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/uglifier')
-rw-r--r--dev-ruby/uglifier/ChangeLog8
-rw-r--r--dev-ruby/uglifier/uglifier-1.2.6.ebuild38
2 files changed, 45 insertions, 1 deletions
diff --git a/dev-ruby/uglifier/ChangeLog b/dev-ruby/uglifier/ChangeLog
index dbdc1e90f453..6cc5691709eb 100644
--- a/dev-ruby/uglifier/ChangeLog
+++ b/dev-ruby/uglifier/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-ruby/uglifier
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/uglifier/ChangeLog,v 1.10 2012/07/05 22:03:43 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/uglifier/ChangeLog,v 1.11 2012/07/05 22:17:16 flameeyes Exp $
+
+*uglifier-1.2.6 (05 Jul 2012)
+
+ 05 Jul 2012; Diego E. Pettenò <flameeyes@gentoo.org> +uglifier-1.2.6.ebuild:
+ Version bump; enable tests by downloading a snapshot of uglifyjs for testing
+ purposes only.
05 Jul 2012; Diego E. Pettenò <flameeyes@gentoo.org> -uglifier-1.2.4.ebuild,
uglifier-1.2.5.ebuild:
diff --git a/dev-ruby/uglifier/uglifier-1.2.6.ebuild b/dev-ruby/uglifier/uglifier-1.2.6.ebuild
new file mode 100644
index 000000000000..3840d63ee585
--- /dev/null
+++ b/dev-ruby/uglifier/uglifier-1.2.6.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/uglifier/uglifier-1.2.6.ebuild,v 1.1 2012/07/05 22:17:16 flameeyes Exp $
+
+EAPI=4
+USE_RUBY="ruby18 ruby19 ree18"
+
+UGLIFYJS_VERSION=1.3.2
+
+# Avoid building documentation to avoid dependencies on bundler and jeweler
+RUBY_FAKEGEM_TASK_DOC=""
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec"
+
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Ruby wrapper for UglifyJS JavaScript compressor."
+HOMEPAGE="https://github.com/lautis/uglifier"
+
+SRC_URI+="
+ test? ( https://github.com/mishoo/UglifyJS/tarball/v${UGLIFYJS_VERSION} )"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x64-macos"
+
+IUSE=""
+
+ruby_add_rdepend ">=dev-ruby/execjs-0.3.0 >=dev-ruby/multi_json-1.0.2"
+
+all_ruby_prepare() {
+ if use test; then
+ mkdir "${S}"/vendor
+ mv "${WORKDIR}"/mishoo-UglifyJS-* "${S}"/uglifyjs
+ fi
+}