Sun Jan 16 08:40:28 2011 UTC ()
Document PKG_JAVA_HOME, from Francois Tigeot.


(wiz)
diff -r1.102 -r1.103 pkgsrc/doc/guide/files/fixes.xml

cvs diff -r1.102 -r1.103 pkgsrc/doc/guide/files/fixes.xml (expand / switch to unified diff)

--- pkgsrc/doc/guide/files/fixes.xml 2010/01/05 08:55:32 1.102
+++ pkgsrc/doc/guide/files/fixes.xml 2011/01/16 08:40:28 1.103
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1<!-- $NetBSD: fixes.xml,v 1.102 2010/01/05 08:55:32 adam Exp $ --> 1<!-- $NetBSD: fixes.xml,v 1.103 2011/01/16 08:40:28 wiz Exp $ -->
2 2
3<chapter id="fixes"> <?dbhtml filename="fixes.html"?> 3<chapter id="fixes"> <?dbhtml filename="fixes.html"?>
4<title>Making your package work</title> 4<title>Making your package work</title>
5 5
6<sect1 id="general-operation"> 6<sect1 id="general-operation">
7 <title>General operation</title> 7 <title>General operation</title>
8 8
9 <sect2 id="portability-of-packages"> 9 <sect2 id="portability-of-packages">
10 <title>Portability of packages</title> 10 <title>Portability of packages</title>
11 11
12 <para>One appealing feature of pkgsrc is that it runs on many 12 <para>One appealing feature of pkgsrc is that it runs on many
13 different platforms. As a result, it is important to ensure, 13 different platforms. As a result, it is important to ensure,
14 where possible, that packages in pkgsrc are portable. This 14 where possible, that packages in pkgsrc are portable. This
@@ -1038,26 +1038,33 @@ pre-configure: @@ -1038,26 +1038,33 @@ pre-configure:
1038 dependency on the JDK is added. If 1038 dependency on the JDK is added. If
1039 <varname>USE_JAVA</varname> is set to <quote>run</quote>, then 1039 <varname>USE_JAVA</varname> is set to <quote>run</quote>, then
1040 there is only a runtime dependency on the JDK. The default is 1040 there is only a runtime dependency on the JDK. The default is
1041 <quote>yes</quote>, which also adds a build dependency on the 1041 <quote>yes</quote>, which also adds a build dependency on the
1042 JDK.</para></listitem> 1042 JDK.</para></listitem>
1043 1043
1044 <listitem><para>Set <varname>USE_JAVA2</varname> to declare that 1044 <listitem><para>Set <varname>USE_JAVA2</varname> to declare that
1045 a package needs a Java2 implementation. The supported values 1045 a package needs a Java2 implementation. The supported values
1046 are <quote>yes</quote>, <quote>1.4</quote>, and 1046 are <quote>yes</quote>, <quote>1.4</quote>, and
1047 <quote>1.5</quote>. <quote>yes</quote> accepts any Java2 1047 <quote>1.5</quote>. <quote>yes</quote> accepts any Java2
1048 implementation, <quote>1.4</quote> insists on versions 1.4 or 1048 implementation, <quote>1.4</quote> insists on versions 1.4 or
1049 above, and <quote>1.5</quote> only accepts versions 1.5 or 1049 above, and <quote>1.5</quote> only accepts versions 1.5 or
1050 above. This variable is not set by default.</para></listitem> 1050 above. This variable is not set by default.</para></listitem>
 1051
 1052 <listitem><para><varname>PKG_JAVA_HOME</varname> is
 1053 automatically set to the runtime location of the used Java
 1054 implementation dependency. It may be used to set
 1055 <varname>JAVA_HOME</varname> to a good value if the program
 1056 needs this variable to be defined.
 1057 </para></listitem>
1051 <!-- XXX: describe PKG_JVM_DEFAULT and PKG_JVMS_ACCEPTED, but 1058 <!-- XXX: describe PKG_JVM_DEFAULT and PKG_JVMS_ACCEPTED, but
1052 not here --> 1059 not here -->
1053 </itemizedlist> 1060 </itemizedlist>
1054 </sect2> 1061 </sect2>
1055 1062
1056 <sect2 id="perl-scripts"> 1063 <sect2 id="perl-scripts">
1057 <title>Packages containing perl scripts</title> 1064 <title>Packages containing perl scripts</title>
1058 1065
1059 <para>If your package contains interpreted perl scripts, add 1066 <para>If your package contains interpreted perl scripts, add
1060 <quote>perl</quote> to the <varname>USE_TOOLS</varname> variable 1067 <quote>perl</quote> to the <varname>USE_TOOLS</varname> variable
1061 and set <varname>REPLACE_PERL</varname> to ensure that the proper 1068 and set <varname>REPLACE_PERL</varname> to ensure that the proper
1062 interpreter path is set. <varname>REPLACE_PERL</varname> should 1069 interpreter path is set. <varname>REPLACE_PERL</varname> should
1063 contain a list of scripts, relative to <varname>WRKSRC</varname>, 1070 contain a list of scripts, relative to <varname>WRKSRC</varname>,