diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-01-16 23:34:29 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-01-16 23:34:29 +0000 |
commit | ea84e7c1848351a4a4f1102f2bd48e60983e26b5 (patch) | |
tree | f20c54e4d152a53c49ab9801dc3f6951ee07f415 /dev-java | |
parent | Revision bump, install the shared object with the stub library as well, other... (diff) | |
download | historical-ea84e7c1848351a4a4f1102f2bd48e60983e26b5.tar.gz historical-ea84e7c1848351a4a4f1102f2bd48e60983e26b5.tar.bz2 historical-ea84e7c1848351a4a4f1102f2bd48e60983e26b5.zip |
Improve unbundled jar workings, make jffi and jna working as intended. Drop ppc keyword so that proper keywording request can be filed. Take co-maintainership with ruby team.
Package-Manager: portage-2.2_rc61/cvs/Linux x86_64
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/jruby/ChangeLog | 12 | ||||
-rw-r--r-- | dev-java/jruby/Manifest | 14 | ||||
-rw-r--r-- | dev-java/jruby/files/jruby-1.4.0-system-jars.patch | 101 | ||||
-rw-r--r-- | dev-java/jruby/files/jruby-1.4.0-system-nailgun.patch | 18 | ||||
-rw-r--r-- | dev-java/jruby/jruby-1.4.0-r3.ebuild (renamed from dev-java/jruby/jruby-1.4.0-r2.ebuild) | 8 | ||||
-rw-r--r-- | dev-java/jruby/metadata.xml | 1 |
6 files changed, 124 insertions, 30 deletions
diff --git a/dev-java/jruby/ChangeLog b/dev-java/jruby/ChangeLog index 6c7070b9c4fb..f44c8bb485fa 100644 --- a/dev-java/jruby/ChangeLog +++ b/dev-java/jruby/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for dev-java/jruby # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/jruby/ChangeLog,v 1.49 2010/01/16 21:14:07 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/jruby/ChangeLog,v 1.50 2010/01/16 23:34:28 flameeyes Exp $ + +*jruby-1.4.0-r3 (16 Jan 2010) + + 16 Jan 2010; Diego E. Pettenò <flameeyes@gentoo.org> + -jruby-1.4.0-r2.ebuild, +jruby-1.4.0-r3.ebuild, + +files/jruby-1.4.0-system-jars.patch, + -files/jruby-1.4.0-system-nailgun.patch, metadata.xml: + Improve unbundled jar workings, make jffi and jna working as intended. + Drop ppc keyword so that proper keywording request can be filed. Take + co-maintainership with ruby team. *jruby-1.4.0-r2 (16 Jan 2010) diff --git a/dev-java/jruby/Manifest b/dev-java/jruby/Manifest index b93b77e2df30..faa88b4b1827 100644 --- a/dev-java/jruby/Manifest +++ b/dev-java/jruby/Manifest @@ -7,7 +7,7 @@ AUX ftype-test-fixes.patch 2738 RMD160 9de8f9e14469967b736fbcf48c28a2ee9c366d6e AUX gentoo.rb 257 RMD160 3dd119c675829a9196e374f0c290ceac37ddc7c6 SHA1 de86d6471533efb97bbfe24ecb4847610bc1ea42 SHA256 6868b148829f218ff4c739af05e81b1d9da5d295507d99cb1f074ed88d72a1dc AUX jruby 97 RMD160 500ca93e1a23897fb3d9ebd0b1a6ba7caec9be1d SHA1 ae79a6d60a9e28034fb08b394cba443fd66ceacf SHA256 579b36ea120de4fc04e384937ecc567a090bb64f276b07cc059d072a5a7d2e60 AUX jruby-0.9.8-sandbox.patch 522 RMD160 f9aebe3469edb3d2d22d641e616691ff14def7db SHA1 9d983c1bd7cb35239d85af445f5aa7c5d1c143a3 SHA256 1c2701881674a978c9ddc32e2e126cf25690e86011c6301e7f825407fb5810a2 -AUX jruby-1.4.0-system-nailgun.patch 614 RMD160 dfd85eeca56d07ca9774c655592c98cd5c45184b SHA1 42756fac79f7a090ffd33be03b341ec63758084d SHA256 2ff4f4cf0169ffa03352f4342f2fb5a3acfcf091c9d38c93970b6028ca45660c +AUX jruby-1.4.0-system-jars.patch 3113 RMD160 40963d8db934dd5a9a81456af513ba59367317bb SHA1 5d6a571751f06d81f2b0625f82bc0726342f33a9 SHA256 62718a29caf01f5e72670206e1390f94c30011d2bdb6b7903333c134612713a8 AUX user-test-fixes.patch 5147 RMD160 6258879413ae81a18d0c6bcaa3b0661d86a0d14a SHA1 32d3f80db383cf664c9ad1f9e52c2688ae3cbe5c SHA256 f21469d41de9f9b5fb1682596f64899a71c92332db24bf27e8c50dbb1896a92e DIST jruby-src-1.0.3.tar.gz 5218289 RMD160 b717863f8455ea5f323dd2b73824c39732dbd7df SHA1 38c091dbd28102013b61b10d1d24c6c237f44937 SHA256 3d10f92d8fd0815529a2ddefc291af288b8f2f51749c347c29006b84a30a2c0a DIST jruby-src-1.0.tar.gz 4840184 RMD160 3de4dfa558a12a1643fa2357f3e144e34c5a718d SHA1 f4e18c6c112e1741024d76b10528fef7a242a018 SHA256 80088e32cceb929b0cd0d0115ed800577b7b800d42dca3356e840d1123047b03 @@ -19,13 +19,13 @@ EBUILD jruby-1.0.3.ebuild 4462 RMD160 83c55f4dd8b7d4c2c92843dd26608da2485b004d S EBUILD jruby-1.2.0-r1.ebuild 5023 RMD160 8239a5ba7e717c3a434e98a81eb60875f97e3055 SHA1 e02cefc8138981f6d100bf6e633f04db3327000a SHA256 513ec2c93efaa444220c5ca1c2bfeb46c1244de43b900b38386e8d63f9f94d52 EBUILD jruby-1.3.1-r1.ebuild 5502 RMD160 94388e24d29a24d3b23013125ae38e5a0e3f4846 SHA1 4c66c6df3aab698f950dc28e57208a4c94d523c7 SHA256 b5b064f8bec2f7ab2c045c684dda9171e57d7942dd22dfaec715dbeba3adc620 EBUILD jruby-1.3.1.ebuild 5552 RMD160 fd6520487dd38cc12dbc5204b985117c700d454f SHA1 5208c74e8b4a45d8198ccf93c2283bc9b2fe7d69 SHA256 af93273763993cf81cfc14efe1735eb00d1fbf256c2164c74602eceb4eafd1bd -EBUILD jruby-1.4.0-r2.ebuild 5974 RMD160 2f4409b614f298cf19cdb70e2a3cacbdc8d2168a SHA1 a1ed0c03cc12048970a774401abed49a8e2a6ec1 SHA256 00aecc9151db7f621df58526679b0393d11cbc2449fdf6303e19ed9e946af6ae -MISC ChangeLog 8576 RMD160 73eaf22bef68826655b0bcad86a9788bb0fbd8b3 SHA1 b2e556cd6571b75d0a0b2344ff2627cd3530bc09 SHA256 9d679c88644eccc3504e9003949a048470f08054f6fb2bbae51272bbb431aeed -MISC metadata.xml 159 RMD160 7da5c733c224383ffe350605bc36721a3ff2536f SHA1 99c2655c7bbee2cbc8c79edb2d00d481d62faf95 SHA256 a4ced33e98b00e3a3f725c4c40ef8e76c338db53389465ef871105fbe6e8cbbb +EBUILD jruby-1.4.0-r3.ebuild 5979 RMD160 4a7a381dbc1044209821823ba9c238256afe6b8d SHA1 658ea797f6d4d9a1a4dba95036759a42d66ac3a4 SHA256 fcf5a1af6b541ea78eb7624590d2362b6d024297a7e52a76b07e147d1a920942 +MISC ChangeLog 8992 RMD160 0d39a4820437f0165a67cd15598c030de969ccd5 SHA1 16c48e937fa8be7c9dba772d570a7d3a586ea648 SHA256 b5005bab226f2579da657323b5a58e986a758a56018923c0d90f2b62cdd1289a +MISC metadata.xml 179 RMD160 3813d8d3651faaf99042cb3c776d0bc59ad7b5b4 SHA1 421371d5338c6b9b8b4950c44d78a9dbe79cf64d SHA256 0df27adc265ef6596f973641d25b64b7291c87f1b114d6895f69d222049bed1b -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) -iEYEARECAAYFAktSK/YACgkQAiZjviIA2Xg0gQCg2Owy1a8fE57GXgqV/P0yG4Gm -KYwAoKOrows1mDsInS/wmdlKUwyV2BeI -=G7oe +iEYEARECAAYFAktSTNkACgkQAiZjviIA2XgG1gCgvjJ7nyek4RJNL8s468vFSjWO +J4wAoMb+eqp4S/DBS05v1XTMY7xAPjyr +=Z9hV -----END PGP SIGNATURE----- diff --git a/dev-java/jruby/files/jruby-1.4.0-system-jars.patch b/dev-java/jruby/files/jruby-1.4.0-system-jars.patch new file mode 100644 index 000000000000..ae0f4b278199 --- /dev/null +++ b/dev-java/jruby/files/jruby-1.4.0-system-jars.patch @@ -0,0 +1,101 @@ +Index: jruby-1.4.0/bin/jruby +=================================================================== +--- jruby-1.4.0.orig/bin/jruby ++++ jruby-1.4.0/bin/jruby +@@ -19,16 +19,6 @@ case "`uname`" in + Darwin) darwin=true;; + esac + +-# +-# Figure out the OS and cpu the same as JNA would, so the library path can be set +-# +-case "`uname -m`" in +- i[34567]86) JNA_CPU=i386; JNA_ALT_CPU=amd64;; +- i86pc) JNA_CPU="x86"; JNA_ALT_CPU=amd64;; +- amd64|x86_64) JNA_CPU=amd64; JNA_ALT_CPU=i386;; +- sparc*) JNA_CPU=sparc; JNA_ALT_CPU=sparcv9;; +-esac +- + # ----- Verify and Set Required Environment Variables ------------------------- + + ## resolve links - $0 may be a link to home +@@ -49,12 +39,17 @@ while [ -h "$PRG" ] ; do + fi + done + +-JRUBY_HOME_1=`dirname "$PRG"` # the ./bin dir +-if [ "$JRUBY_HOME_1" = '.' ] ; then +- cwd=`pwd` +- JRUBY_HOME=`dirname $cwd` # JRUBY-2699 +-else +- JRUBY_HOME=`dirname "$JRUBY_HOME_1"` # the . dir ++# This will be filled in by the ebuild after install ++JRUBY_HOME= ++ ++if [ -z "$JRUBY_HOME" ]; then ++ JRUBY_HOME_1=`dirname "$PRG"` # the ./bin dir ++ if [ "$JRUBY_HOME_1" = '.' ] ; then ++ cwd=`pwd` ++ JRUBY_HOME=`dirname $cwd` # JRUBY-2699 ++ else ++ JRUBY_HOME=`dirname "$JRUBY_HOME_1"` # the . dir ++ fi + fi + + if [ -z "$JRUBY_OPTS" ] ; then +@@ -122,14 +117,7 @@ if [ "$JRUBY_PARENT_CLASSPATH" != "" ]; + # Use same classpath propagated from parent jruby + CP=$JRUBY_PARENT_CLASSPATH + else +- # add other jars in lib to CP for command-line execution +- for j in "$JRUBY_HOME"/lib/*.jar; do +- if [ "$CP" ]; then +- CP="$CP$CP_DELIMITER$j" +- else +- CP="$j" +- fi +- done ++ CP=$(java-config -d -p jruby) + + if $cygwin; then + CP=`cygpath -p -w "$CP"` +@@ -270,23 +258,9 @@ ruby_args=("${ruby_args[@]}" "$@") + set -- "${ruby_args[@]}" + + JAVA_OPTS="$JAVA_OPTS $JAVA_MEM $JAVA_STACK" +-JNA_OS="`uname -s | tr '[:upper:]' '[:lower:]'`" +-case "$JNA_OS" in +-darwin) JNA_PATH="$JRUBY_HOME/lib/native/darwin";; +- *) JNA_PATH="$JRUBY_HOME/lib/native/${JNA_OS}-${JNA_CPU}:$JRUBY_HOME/lib/native/${JNA_OS}-${JNA_ALT_CPU}";; +-esac +-#JAVA_OPTS="$JAVA_OPTS -Djna.boot.library.path=$JNA_PATH" +-JAVA_JNA="-Djna.boot.library.path=$JNA_PATH" ++JAVA_JNA="-Djna.boot.library.path=$(java-config -i jna)" + +-JFFI_BOOT="" +-for d in $JRUBY_HOME/lib/native/*`uname -s`; do +- if [ -z "$JFFI_BOOT" ]; then +- JFFI_BOOT="$d" +- else +- JFFI_BOOT="$JFFI_BOOT:$d" +- fi +-done +-JFFI_OPTS="-Djffi.boot.library.path=$JFFI_BOOT" ++JFFI_OPTS="-Djffi.boot.library.path=$(java-config -i jffi-0.4)" + + if $cygwin; then + JRUBY_HOME=`cygpath --mixed "$JRUBY_HOME"` +@@ -308,12 +282,7 @@ if $cygwin; then + fi + + if [ "$nailgun_client" != "" ]; then +- if [ -f $JRUBY_HOME/tool/nailgun/ng ]; then +- exec $JRUBY_HOME/tool/nailgun/ng org.jruby.util.NailMain $JRUBY_OPTS "$@" +- else +- echo "error: ng executable not found; run 'make' in ${JRUBY_HOME}/tool/nailgun" +- exit 1 +- fi ++ exec /usr/bin/ng org.jruby.util.NailMain $JRUBY_OPTS "$@" + else + if [ "$VERIFY_JRUBY" != "" ]; then + if [ "$PROFILE_ARGS" != "" ]; then diff --git a/dev-java/jruby/files/jruby-1.4.0-system-nailgun.patch b/dev-java/jruby/files/jruby-1.4.0-system-nailgun.patch deleted file mode 100644 index f8fef66fd823..000000000000 --- a/dev-java/jruby/files/jruby-1.4.0-system-nailgun.patch +++ /dev/null @@ -1,18 +0,0 @@ -Index: jruby-1.4.0/bin/jruby -=================================================================== ---- jruby-1.4.0.orig/bin/jruby -+++ jruby-1.4.0/bin/jruby -@@ -308,12 +308,7 @@ if $cygwin; then - fi - - if [ "$nailgun_client" != "" ]; then -- if [ -f $JRUBY_HOME/tool/nailgun/ng ]; then -- exec $JRUBY_HOME/tool/nailgun/ng org.jruby.util.NailMain $JRUBY_OPTS "$@" -- else -- echo "error: ng executable not found; run 'make' in ${JRUBY_HOME}/tool/nailgun" -- exit 1 -- fi -+ exec /usr/bin/ng org.jruby.util.NailMain $JRUBY_OPTS "$@" - else - if [ "$VERIFY_JRUBY" != "" ]; then - if [ "$PROFILE_ARGS" != "" ]; then diff --git a/dev-java/jruby/jruby-1.4.0-r2.ebuild b/dev-java/jruby/jruby-1.4.0-r3.ebuild index e86f875ed017..8492ce0bc3f8 100644 --- a/dev-java/jruby/jruby-1.4.0-r2.ebuild +++ b/dev-java/jruby/jruby-1.4.0-r3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/jruby/jruby-1.4.0-r2.ebuild,v 1.1 2010/01/16 21:14:07 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/jruby/jruby-1.4.0-r3.ebuild,v 1.1 2010/01/16 23:34:28 flameeyes Exp $ EAPI="2" JAVA_PKG_IUSE="doc source test" @@ -13,7 +13,7 @@ HOMEPAGE="http://jruby.codehaus.org/" SRC_URI="http://jruby.kenai.com/downloads/${PV}/${PN}-src-${MY_PV}.tar.gz" LICENSE="|| ( CPL-1.0 GPL-2 LGPL-2.1 )" SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" +KEYWORDS="~amd64 ~x86" IUSE="bsf java6 ssl" CDEPEND=">=dev-java/bytelist-1.0.2:0 @@ -24,7 +24,7 @@ CDEPEND=">=dev-java/bytelist-1.0.2:0 >=dev-java/jvyamlb-0.2.5:0 >=dev-java/asm-3.2:3 dev-java/jcodings:0 - dev-java/jffi:0.4 + >=dev-java/jffi-0.6.0.2-r1:0.4 dev-java/jna:0 dev-java/joda-time:0 dev-util/jay:0[java] @@ -97,7 +97,7 @@ pkg_setup() { java_prepare() { epatch "${FILESDIR}/ftype-test-fixes.patch" epatch "${FILESDIR}/user-test-fixes.patch" - epatch "${FILESDIR}"/${P}-system-nailgun.patch + epatch "${FILESDIR}"/${P}-system-jars.patch # We don't need to use Retroweaver. There is a jarjar and a regular jar # target but even with jarjarclean, both are a pain. The latter target diff --git a/dev-java/jruby/metadata.xml b/dev-java/jruby/metadata.xml index 250f2d1940ea..0b153778e653 100644 --- a/dev-java/jruby/metadata.xml +++ b/dev-java/jruby/metadata.xml @@ -2,4 +2,5 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>java</herd> + <herd>ruby</herd> </pkgmetadata> |