summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Nichols <nichoj@gentoo.org>2007-05-18 20:31:27 +0000
committerJoshua Nichols <nichoj@gentoo.org>2007-05-18 20:31:27 +0000
commit5acd577e237b660c80072c3111337a0d7ceffebf (patch)
treedf1d8b1609a88f6c11f97d5bf2e9f1c411f160b2 /dev-java/jruby
parentAdd ~alpha wrt #159654 (diff)
downloadgentoo-2-5acd577e237b660c80072c3111337a0d7ceffebf.tar.gz
gentoo-2-5acd577e237b660c80072c3111337a0d7ceffebf.tar.bz2
gentoo-2-5acd577e237b660c80072c3111337a0d7ceffebf.zip
Version bump.
(Portage version: 2.1.2.3)
Diffstat (limited to 'dev-java/jruby')
-rw-r--r--dev-java/jruby/ChangeLog7
-rw-r--r--dev-java/jruby/files/digest-jruby-1.0.0_rc23
-rw-r--r--dev-java/jruby/jruby-1.0.0_rc2.ebuild97
3 files changed, 106 insertions, 1 deletions
diff --git a/dev-java/jruby/ChangeLog b/dev-java/jruby/ChangeLog
index c548911c3597..c79da35c72de 100644
--- a/dev-java/jruby/ChangeLog
+++ b/dev-java/jruby/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-java/jruby
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jruby/ChangeLog,v 1.22 2007/05/08 20:57:01 caster Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jruby/ChangeLog,v 1.23 2007/05/18 20:31:27 nichoj Exp $
+
+*jruby-1.0.0_rc2 (18 May 2007)
+
+ 18 May 2007; Joshua Nichols <nichoj@gentoo.org> +jruby-1.0.0_rc2.ebuild:
+ Version bump.
08 May 2007; Vlastimil Babka <caster@gentoo.org> jruby-0.7.0-r1.ebuild,
jruby-0.9.2.ebuild, jruby-0.9.8.ebuild, jruby-0.9.8-r1.ebuild,
diff --git a/dev-java/jruby/files/digest-jruby-1.0.0_rc2 b/dev-java/jruby/files/digest-jruby-1.0.0_rc2
new file mode 100644
index 000000000000..02097d6be5ed
--- /dev/null
+++ b/dev-java/jruby/files/digest-jruby-1.0.0_rc2
@@ -0,0 +1,3 @@
+MD5 3ac5d2213d0a0d756cb7a8f4b5128c0b jruby-src-1.0.0RC2.tar.gz 4194247
+RMD160 0962172af13e37ef32d6a39d0a92a8d4708a0689 jruby-src-1.0.0RC2.tar.gz 4194247
+SHA256 65d72a454c25967272496f9f5b84a6e68b95ae16833b9e95f26abc639dcd390f jruby-src-1.0.0RC2.tar.gz 4194247
diff --git a/dev-java/jruby/jruby-1.0.0_rc2.ebuild b/dev-java/jruby/jruby-1.0.0_rc2.ebuild
new file mode 100644
index 000000000000..9ca72d766e4c
--- /dev/null
+++ b/dev-java/jruby/jruby-1.0.0_rc2.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jruby/jruby-1.0.0_rc2.ebuild,v 1.1 2007/05/18 20:31:27 nichoj Exp $
+
+JAVA_PKG_IUSE="doc source test"
+inherit eutils java-pkg-2 java-ant-2
+
+MY_PV="${PV/_rc/RC}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="Java based ruby interpreter implementation"
+HOMEPAGE="http://jruby.codehaus.org/"
+SRC_URI="http://dist.codehaus.org/${PN}/${PN}-src-${MY_PV}.tar.gz"
+
+LICENSE="|| ( CPL-1.0 GPL-2 LGPL-2.1 )"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="doc source test"
+
+COMMON_DEPEND=">=dev-java/jline-0.9.91
+ =dev-java/asm-2.2*
+ >=dev-java/bsf-2.3
+ dev-java/backport-util-concurrent"
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEPEND}"
+DEPEND=">=virtual/jdk-1.4
+ test? (
+ =dev-java/junit-3*
+ dev-java/ant-junit
+ dev-java/ant-trax
+ )
+ ${COMMON_DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+EANT_DOC_TARGET="create-apidocs"
+
+# only use javac, see http://jira.codehaus.org/browse/JRUBY-675
+JAVA_PKG_FILTER_COMPILER="ecj-3.2 ecj-3.1 jikes"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ # prevents /root/.jruby being created at build time with
+ # FEATURES="-userpriv"
+ # see http://bugs.gentoo.org/show_bug.cgi?id=170058
+ epatch ${FILESDIR}/${PN}-0.9.8-sandbox.patch
+
+ cd ${S}/lib
+ rm *.jar
+
+ java-pkg_jar-from --build-only ant-core ant.jar
+ java-pkg_jar-from asm-2.2 asm.jar
+ java-pkg_jar-from asm-2.2 asm-commons.jar
+ java-pkg_jar-from bsf-2.3
+ java-pkg_jar-from jline
+ java-pkg_jar-from backport-util-concurrent
+ use test && java-pkg_jar-from --build-only junit
+}
+
+src_compile() {
+# addpredict /root/.jruby # http://bugs.gentoo.org/show_bug.cgi?id=170058
+ eant jar $(use_doc create-apidocs) -Djruby.home=${T}/.jruby
+}
+
+src_install() {
+ java-pkg_dojar lib/${PN}.jar
+
+ dodoc README COPYING COPYING.CPL COPYING.GPL COPYING.LGPL
+
+ if use doc; then
+ java-pkg_dojavadoc docs/api
+ docinto docs
+ dodoc docs/*
+ fi
+ use source && java-pkg_dosrc src/org
+ java-pkg_dolauncher ${PN} \
+ --main 'org.jruby.Main' \
+ --java_args '-Djruby.base=/usr/share/jruby -Djruby.home=/usr/share/jruby -Djruby.lib=/usr/share/jruby/lib -Djruby.script=jruby -Djruby.shell=/bin/sh'
+ newbin ${S}/bin/gem jgem
+ newbin ${S}/bin/gem_server jgem_server
+ newbin ${S}/bin/gemlock jgem_lock
+ newbin ${S}/bin/gemri jgemri
+ newbin ${S}/bin/gemwhich jgemwhich
+ newbin ${S}/bin/update_rubygems jupdate_rubygems
+# newbin ${S}/bin/generate_yaml_index.rb jgenerate_yaml_index.rb
+ newbin ${S}/bin/index_gem_repository.rb jindex_gem_repository.rb
+ dobin ${S}/bin/jirb
+
+ dodir "/usr/share/${PN}/lib"
+ insinto "/usr/share/${PN}/lib"
+ doins -r "${S}/lib/ruby"
+}
+
+src_test() {
+ ANT_TASKS="ant-junit ant-trax" eant test
+}