summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanno Böck <hanno@gentoo.org>2005-12-20 03:59:51 +0000
committerHanno Böck <hanno@gentoo.org>2005-12-20 03:59:51 +0000
commit4e5defb6c6feacf472c93f3f1221a2e6a1d16da0 (patch)
tree2211777757f74e44bd2e9af926ad5f02233b0487 /media-gfx/freewrl/files/freewrl-1.16.1-use-java-home.patch
parentNew package providing rapid, accurate and fully automated calculation of path... (diff)
downloadgentoo-2-4e5defb6c6feacf472c93f3f1221a2e6a1d16da0.tar.gz
gentoo-2-4e5defb6c6feacf472c93f3f1221a2e6a1d16da0.tar.bz2
gentoo-2-4e5defb6c6feacf472c93f3f1221a2e6a1d16da0.zip
freewrl-1.16.1
(Portage version: 2.1_pre1)
Diffstat (limited to 'media-gfx/freewrl/files/freewrl-1.16.1-use-java-home.patch')
-rw-r--r--media-gfx/freewrl/files/freewrl-1.16.1-use-java-home.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/media-gfx/freewrl/files/freewrl-1.16.1-use-java-home.patch b/media-gfx/freewrl/files/freewrl-1.16.1-use-java-home.patch
new file mode 100644
index 000000000000..232417db8ca7
--- /dev/null
+++ b/media-gfx/freewrl/files/freewrl-1.16.1-use-java-home.patch
@@ -0,0 +1,36 @@
+Index: Makefile.PL
+===================================================================
+RCS file: /cvsroot/freewrl/freewrl/freewrl/Makefile.PL,v
+retrieving revision 1.154
+diff -u -r1.154 Makefile.PL
+--- Makefile.PL 29 Nov 2005 16:31:25 -0000 1.154
++++ Makefile.PL 11 Dec 2005 04:49:51 -0000
+@@ -160,6 +160,12 @@
+ $VRML_CONFIG{LDFLAGS} = join(' ', @ldflags);
+ $VRML_CONFIG{LIBJS_INST} = $sitearchjsdir;
+
++if (defined $VRML_CONFIG{'USE_JAVA_HOME'})
++{
++ $VRML_CONFIG{JAVA} = $ENV{JAVA_HOME}.'/bin/java';
++ $VRML_CONFIG{JAVA_INST} = $ENV{JAVA_HOME};
++}
++
+ # write the Config.pm file.
+ print STDERR "Writing Config.pm\n";
+ open OUT, ">Config.pm" or die("Couldn't write to Config.pm");
+Index: vrml.conf
+===================================================================
+RCS file: /cvsroot/freewrl/freewrl/freewrl/vrml.conf,v
+retrieving revision 1.55
+diff -u -r1.55 vrml.conf
+--- vrml.conf 12 Oct 2005 13:01:07 -0000 1.55
++++ vrml.conf 11 Dec 2005 04:49:51 -0000
+@@ -35,6 +35,8 @@
+ # some wrl/x3d files are zipped; how do we unzip them?
+ UNZIP => "/bin/gunzip",
+
++USE_JAVA_HOME => 1,
++
+ # Java compiler. Java, Jikes, etc is ok, so long as it is not ancient.
+ #if you do not have Java, comment this and the JAVA_INST line below out.
+ JAVA => "/usr/bin/java",