summaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
Diffstat (limited to 'devel')
-rw-r--r--devel/apache-ant/Makefile1
-rw-r--r--devel/apache-ant/files/ant29
-rw-r--r--devel/apache-ant/files/ant.sh.in29
3 files changed, 35 insertions, 24 deletions
diff --git a/devel/apache-ant/Makefile b/devel/apache-ant/Makefile
index dd3d69c..971369c 100644
--- a/devel/apache-ant/Makefile
+++ b/devel/apache-ant/Makefile
@@ -7,6 +7,7 @@
PORTNAME= apache-ant
PORTVERSION= 1.6.0
+PORTREVISION= 1
CATEGORIES= devel java
MASTER_SITES= http://apache.mirror.trueserver.nl/dist/ant/binaries/:bin \
http://apache.proserve.nl/dist/ant/binaries/:bin \
diff --git a/devel/apache-ant/files/ant b/devel/apache-ant/files/ant
index 4927ef8..2e3f332 100644
--- a/devel/apache-ant/files/ant
+++ b/devel/apache-ant/files/ant
@@ -1,8 +1,11 @@
#!/bin/sh
#
-# FreeBSD-specific startup script for Jakarta Ant.
+#-*- mode: Fundamental; tab-width: 4; -*-
+# ex:ts=4
#
-# See: http://jakarta.apache.org/ant/
+# FreeBSD-specific startup script for Apache Ant.
+#
+# See: http://ant.apache.org/
#
# $FreeBSD$
#
@@ -81,17 +84,19 @@ for JAR_FILE in "${ANT_LIB}"/*.jar; do
done
# FreeBSD-specific: Add the .jar files from ${PREFIX}/share/java/classes
-for JAR_FILE in "%%PREFIX%%/share/java/classes"/*.jar; do
-
- # If the directory is empty, then the input string is returned
- if [ -f "${JAR_FILE}" ]; then
- if [ -z "${LOCALCLASSPATH}" ]; then
- LOCALCLASSPATH="${JAR_FILE}"
- else
- LOCALCLASSPATH="${JAR_FILE}":"${LOCALCLASSPATH}"
+if [ "${ANT_INCLUDE_SHARED_JARS}" = "YES" ]; then
+ for JAR_FILE in "%%PREFIX%%/share/java/classes"/*.jar; do
+
+ # If the directory is empty, then the input string is returned
+ if [ -f "${JAR_FILE}" ]; then
+ if [ -z "${LOCALCLASSPATH}" ]; then
+ LOCALCLASSPATH="${JAR_FILE}"
+ else
+ LOCALCLASSPATH="${JAR_FILE}":"${LOCALCLASSPATH}"
+ fi
fi
- fi
-done
+ done
+fi
# Add the JDK tools.jar or classes.zip file to the CLASSPATH
if [ -n "${JAVA_HOME}" ]; then
diff --git a/devel/apache-ant/files/ant.sh.in b/devel/apache-ant/files/ant.sh.in
index 4927ef8..2e3f332 100644
--- a/devel/apache-ant/files/ant.sh.in
+++ b/devel/apache-ant/files/ant.sh.in
@@ -1,8 +1,11 @@
#!/bin/sh
#
-# FreeBSD-specific startup script for Jakarta Ant.
+#-*- mode: Fundamental; tab-width: 4; -*-
+# ex:ts=4
#
-# See: http://jakarta.apache.org/ant/
+# FreeBSD-specific startup script for Apache Ant.
+#
+# See: http://ant.apache.org/
#
# $FreeBSD$
#
@@ -81,17 +84,19 @@ for JAR_FILE in "${ANT_LIB}"/*.jar; do
done
# FreeBSD-specific: Add the .jar files from ${PREFIX}/share/java/classes
-for JAR_FILE in "%%PREFIX%%/share/java/classes"/*.jar; do
-
- # If the directory is empty, then the input string is returned
- if [ -f "${JAR_FILE}" ]; then
- if [ -z "${LOCALCLASSPATH}" ]; then
- LOCALCLASSPATH="${JAR_FILE}"
- else
- LOCALCLASSPATH="${JAR_FILE}":"${LOCALCLASSPATH}"
+if [ "${ANT_INCLUDE_SHARED_JARS}" = "YES" ]; then
+ for JAR_FILE in "%%PREFIX%%/share/java/classes"/*.jar; do
+
+ # If the directory is empty, then the input string is returned
+ if [ -f "${JAR_FILE}" ]; then
+ if [ -z "${LOCALCLASSPATH}" ]; then
+ LOCALCLASSPATH="${JAR_FILE}"
+ else
+ LOCALCLASSPATH="${JAR_FILE}":"${LOCALCLASSPATH}"
+ fi
fi
- fi
-done
+ done
+fi
# Add the JDK tools.jar or classes.zip file to the CLASSPATH
if [ -n "${JAVA_HOME}" ]; then
OpenPOWER on IntegriCloud