1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Rename jar based on version

- Tweak ecj.sh to handle version and compilation
- bump PORTREVISION

Submitted by:	jkim@, glewis@, pitpalme+unix@gmail.com (emails)
Feature safe:	yes
This commit is contained in:
Jason Helfman 2012-03-21 00:51:25 +00:00
parent dcb4a07d17
commit 773538423a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=293619
2 changed files with 6 additions and 5 deletions

View File

@ -6,6 +6,7 @@
PORTNAME= ecj
PORTVERSION= 3.7.2
PORTREVISION= 1
CATEGORIES= java devel
MASTER_SITES= ECLIPSE
MASTER_SITE_SUBDIR= R-${PORTVERSION}-${DROPDATE}
@ -24,16 +25,16 @@ EXTRACT_AFTER_ARGS= -C ${WRKDIR}
USE_ANT= yes
USE_JAVA= yes
BUILD_WRKSRC= ${WRKDIR}
SUB_FILES= ecj.sh
SUB_LIST= JAVAC=${JAVAC}
SUB_LIST= PORTVERSION=${PORTVERSION}
NO_WRKSUBDIR= yes
DROPDATE= 201202080800
PLIST_FILES= bin/${PORTNAME}.sh \
%%JAVAJARDIR%%/${PORTNAME}.jar
%%JAVAJARDIR%%/${PORTNAME}-${PORTVERSION}.jar
do-install:
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.jar ${JAVAJARDIR}/${PORTNAME}.jar
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.jar ${JAVAJARDIR}/${PORTNAME}-${PORTVERSION}.jar
${INSTALL_SCRIPT} ${WRKDIR}/ecj.sh ${PREFIX}/bin
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
#!/bin/sh
%%JAVAC%% -classpath %%JAVAJARDIR%%/ecj.jar $1
%%LOCALBASE%%/bin/java -classpath %%JAVAJARDIR%%/ecj-%%PORTVERSION%%.jar org.eclipse.jdt.internal.compiler.batch.Main ${@:--help}