diff --git a/en_US.ISO8859-1/books/porters-handbook/book.sgml b/en_US.ISO8859-1/books/porters-handbook/book.sgml index d28e75e935..071a56c5a8 100644 --- a/en_US.ISO8859-1/books/porters-handbook/book.sgml +++ b/en_US.ISO8859-1/books/porters-handbook/book.sgml @@ -1536,7 +1536,11 @@ PORTEPOCH= 1 java Software related to the Java language. - + The java category shall not be + the only one for a port. Save for ports directly related to + the Java language, porters are also encouraged not to + use java as the main category of a + port. @@ -4297,7 +4301,10 @@ LDCONFIG_DIRS= %%PREFIX%%/lib/foo %%PREFIX%%/lib/bar jikes (by setting 'no' or 'yes'). In the later case, devel/jikes will be added to build - dependencies of the port. + dependencies of the port. In any case that jikes + is actually used in place of javac, then the + HAVE_JIKES variable is defined by + bsd.java.mk. @@ -4435,6 +4442,11 @@ LDCONFIG_DIRS= %%PREFIX%%/lib/foo %%PREFIX%%/lib/bar JDKs used ${JAVA_HOME}/lib/classes.zip. + + HAVE_JIKES + Defined whenever jikes is used by + the port (see USE_JIKES above). + @@ -4469,10 +4481,40 @@ LDCONFIG_DIRS= %%PREFIX%%/lib/foo %%PREFIX%%/lib/bar Default: ${JAVASHAREDIR}/classes. + + JAVALIBDIR + The directory where JAR files installed by other + ports are located. Default: + ${LOCALBASE}/share/java/classes. + + The related entries are defined in both + PLIST_SUB (documented in + ) and + SUB_LIST. + + + + + Building with Ant + + When the port is to be built using Apache Ant, it has to + define USE_ANT. Ant is thus considered to be + the sub-make command. When no do-build target + is defined by the port, a default one will be set that simply + runs Ant according to MAKE_ENV, + MAKE_ARGS and ALL_TARGETS. + This is similar to the USE_GMAKE mechanism, + which is documented in . + + If jikes is used in place of + javac (see USE_JIKES in + ), then Ant will automatically + use it to build the port. + @@ -4487,7 +4529,7 @@ LDCONFIG_DIRS= %%PREFIX%%/lib/foo %%PREFIX%%/lib/bar statement (where myport.jar is the name of the JAR file installed as part of the port): - PLIST_FILES+= ${JAVAJARDIR:S,^${PREFIX}/,,}/myport.jar + PLIST_FILES+= %%JAVAJARDIR%%/myport.jar When porting a Java application, the port usually installs everything under a single directory (including its JAR @@ -4518,8 +4560,8 @@ LDCONFIG_DIRS= %%PREFIX%%/lib/foo %%PREFIX%%/lib/bar idea to override DATADIR to ${JAVASHAREDIR}/${PORTNAME} for Java ports. Indeed, DATADIR is automatically addded to - PLIST_SUB (documented here) so you may use + PLIST_SUB (documented in ) so you may use %%DATADIR%% directly in pkg-plist. @@ -4548,6 +4590,10 @@ LDCONFIG_DIRS= %%PREFIX%%/lib/foo %%PREFIX%%/lib/bar the issue you are trying to resolve is related to either a JDK implementation or bsd.java.mk. + Similarly, there is a defined policy regarding the + CATEGORIES of a Java port, which is detailed + in . +