Date: Thu, 21 Apr 2011 22:14:47 -0700 From: Jason Helfman <jhelfman@e-e.com> To: Bruce Albrecht <bruce@freebsd.zuhause.org> Cc: FreeBSD Ports Mailing List <ports@freebsd.org> Subject: Re: Java version and JRuby port Message-ID: <20110422051447.GA55720@eggman.experts-exchange.com> In-Reply-To: <4DAFCE85.8080600@freebsd.zuhause.org> References: <4DAFCE85.8080600@freebsd.zuhause.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline On Thu, Apr 21, 2011 at 01:28:21AM -0500, Bruce Albrecht thus spake: >When the JRuby port is installed, it updates the jruby script to force >the JAVA_HOME to be the JAVA_HOME the port was built with. I've got >both diablo-jdk1.6.0 and openjdk6 installed, but I can't figure out how >to force the JRuby port to use openjdk6, and I can't override the >JAVA_HOME unless I'm willing to modify the jruby script. Why is this >port set up this way? What's the rationale for not allowing JAVA_HOME >to be overridden? >_______________________________________________ >freebsd-ports@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-ports >To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > Add this to lang/jruby: JAVA_VENDOR?= freebsd And then extract this shar into your ports tree. This should build against openjdk. Then build your port/pkg in the new directory. cd /usr/ports; sh ~/vendor.txt; cd lang/jruby-vendor; make install Let me know if this works, and if so, I will clean it up and submit it as a PR for possible inclusion in the portstree. Thanks, Jason -- Jason Helfman System Administrator experts-exchange.com http://www.experts-exchange.com/M_4830110.html E4AD 7CF1 1396 27F6 79DD 4342 5E92 AD66 8C8C FBA5 --9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="vendor.txt" # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # lang/jruby-vendor # lang/jruby-vendor/Makefile # echo c - lang/jruby-vendor mkdir -p lang/jruby-vendor > /dev/null 2>&1 echo x - lang/jruby-vendor/Makefile sed 's/^X//' >lang/jruby-vendor/Makefile << 'da5a2bee2bc11dc15f37bb7ef05c35c7' X# New ports collection makefile for: jruby-vendor X# Date created: 2011-04-21 X# Whom: Jason Helfman <jhelfman@experts-exchange.com> X# X# $FreeBSD$ X# X XMASTERDIR= ${.CURDIR}/../jruby X XMAINTAINER= ports@freebsd.org X XJAVA_VENDOR?= openjdk XPKGNAMESUFFIX:= -${JAVA_VENDOR} X XLATEST_LINK= jruby-${JAVA_VENDOR} XDESCR= ${MASTERDIR}/pkg-descr X X.include "${MASTERDIR}/Makefile" da5a2bee2bc11dc15f37bb7ef05c35c7 exit --9amGYk9869ThD9tj--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110422051447.GA55720>