Date: Fri, 14 Sep 2012 21:56:21 +0000 (UTC) From: Jung-uk Kim <jkim@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r304299 - in head/java/classpath: . files Message-ID: <201209142156.q8ELuLri016898@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jkim Date: Fri Sep 14 21:56:20 2012 New Revision: 304299 URL: http://svn.freebsd.org/changeset/ports/304299 Log: Add an option to build with Eclipse Java Compiler. It also adds com.sun.tools.javac implementation in tools.zip. Turned off by default. Added: head/java/classpath/files/ecj.sh.in (contents, props changed) Modified: head/java/classpath/Makefile head/java/classpath/distinfo Modified: head/java/classpath/Makefile ============================================================================== --- head/java/classpath/Makefile Fri Sep 14 21:36:26 2012 (r304298) +++ head/java/classpath/Makefile Fri Sep 14 21:56:20 2012 (r304299) @@ -12,6 +12,7 @@ CATEGORIES= java devel MASTER_SITES= ${MASTER_SITE_GNU} \ ${MASTER_SITE_SAVANNAH} MASTER_SITE_SUBDIR= ${PORTNAME} +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= java@FreeBSD.org COMMENT= A GNU project to create a free Java class library @@ -55,14 +56,27 @@ INFO= cp-hacking cp-tools cp-vmintegrat CONFLICTS= sablevm-classpath-* -OPTIONS_DEFINE= CAIRO GCONF GTK2 QT4 +OPTIONS_DEFINE= CAIRO ECJ GCONF GTK2 QT4 OPTIONS_DEFAULT=GTK2 CAIRO_DESC= Use Gtk+ Cairo based Graphics2D +ECJ_DESC= Build with Eclipse Java Compiler GTK2_DESC= Enable Gtk+ AWT peer QT4_DESC= Enable Qt AWT peer .include <bsd.port.options.mk> +.if ${PORT_OPTIONS:MECJ} +ECJ_VERSION= 4.2 +ECJ_DROPDATE= 201206081400 +ECJ_JAR= ecj-${ECJ_VERSION}.jar +ECJ_SUBDIR= R-${ECJ_VERSION}-${ECJ_DROPDATE} +MASTER_SITES+= http://download.eclipse.org/eclipse/downloads/drops4/${ECJ_SUBDIR}/:ecj +DISTFILES+= ${ECJ_JAR}:ecj +CONFIGURE_ARGS+= --with-ecj-jar="${DISTDIR}/${ECJ_JAR}" +CONFIGURE_ENV+= PATH="${WRKDIR}:${PATH}" +MAKE_ENV+= PATH="${WRKDIR}:${PATH}" +.endif + .if ${PORT_OPTIONS:MGCONF} USE_GNOME+= gconf2 CONFIGURE_ARGS+= --enable-default-preferences-peer=gconf @@ -104,4 +118,12 @@ EXAMPLESDIR= ${DATADIR}/examples CONFIGURE_ARGS+= --disable-examples .endif +.if ${PORT_OPTIONS:MECJ} +post-patch: + @${SED} -e 's|%%ECJ_JAR%%|${DISTDIR}/${ECJ_JAR}|' \ + -e 's|%%JAVA_CMD%%|${JAVA_HOME}/bin/java|' < \ + ${FILESDIR}/ecj.sh.in > ${WRKDIR}/ecj + @${CHMOD} 755 ${WRKDIR}/ecj +.endif + .include <bsd.port.mk> Modified: head/java/classpath/distinfo ============================================================================== --- head/java/classpath/distinfo Fri Sep 14 21:36:26 2012 (r304298) +++ head/java/classpath/distinfo Fri Sep 14 21:56:20 2012 (r304299) @@ -1,2 +1,4 @@ SHA256 (classpath-0.99.tar.gz) = f929297f8ae9b613a1a167e231566861893260651d913ad9b6c11933895fecc8 SIZE (classpath-0.99.tar.gz) = 11078232 +SHA256 (ecj-4.2.jar) = 9694970ac1f8a4a2774b7f64f6be535dc46e25dbecb71d36007b8af2bdce1001 +SIZE (ecj-4.2.jar) = 1796149 Added: head/java/classpath/files/ecj.sh.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/java/classpath/files/ecj.sh.in Fri Sep 14 21:56:20 2012 (r304299) @@ -0,0 +1,2 @@ +#!/bin/sh +"%%JAVA_CMD%%" -classpath "%%ECJ_JAR%%" org.eclipse.jdt.internal.compiler.batch.Main "${@:--help}"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209142156.q8ELuLri016898>