diff options
author | glewis <glewis@FreeBSD.org> | 2004-03-24 02:23:57 +0800 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2004-03-24 02:23:57 +0800 |
commit | d910548a1ef4c7dc33959601fd21a29a669659e2 (patch) | |
tree | 536f9ebbbde93f12e8fbba89e4aac47d75169618 /java/java-cup/Makefile | |
parent | cc1fcf82965de0525060e8a255d55f21c3c94596 (diff) | |
download | freebsd-ports-gnome-d910548a1ef4c7dc33959601fd21a29a669659e2.tar.gz freebsd-ports-gnome-d910548a1ef4c7dc33959601fd21a29a669659e2.tar.zst freebsd-ports-gnome-d910548a1ef4c7dc33959601fd21a29a669659e2.zip |
. Update to 10.k.
. Make this port act more like the other java ports.
The actual change is based on the followup submitted by Conor McDermottroe
plus some tweaks from the patch in the PR and myself.
PR: 63582
Submitted by: Conor McDermottroe <ports@mcdermottroe.com>
Matthew West <mwest@uct.ac.za>
Approved by: maintainer timeout
Diffstat (limited to 'java/java-cup/Makefile')
-rw-r--r-- | java/java-cup/Makefile | 42 |
1 files changed, 20 insertions, 22 deletions
diff --git a/java/java-cup/Makefile b/java/java-cup/Makefile index 20a689130450..a783fcc379dc 100644 --- a/java/java-cup/Makefile +++ b/java/java-cup/Makefile @@ -6,43 +6,41 @@ # PORTNAME= java_cup -PORTVERSION= 10.g +PORTVERSION= 10.k CATEGORIES= java MASTER_SITES= http://www.cs.princeton.edu/~appel/modern/java/CUP/ -DISTNAME= java_cup_v10g +DISTNAME= ${PORTNAME}_v${PORTVERSION:S|.||} MAINTAINER= nordwick@xcf.berkeley.edu COMMENT= An LALR parser generator in Java -BUILD_DEPENDS= ${JAVADIR}/bin/javac:${PORTSDIR}/java/jdk11 -RUN_DEPENDS= ${JAVADIR}/bin/java:${PORTSDIR}/java/jdk11 - -JAVASUBDIR= jdk1.1.8 -JAVADIR= ${PREFIX}/${JAVASUBDIR} -JAVALIBDIR= ${JAVADIR}/lib - +USE_JAVA= 1.1+ +NEED_JAVAC= yes NO_WRKSUBDIR= yes -PLIST_SUB= JAVASUBDIR=${JAVASUBDIR} +PLIST_SUB= JAVAJARDIR=${JAVAJARDIR:S|^${PREFIX}/||} PORTNAME=${PORTNAME} do-build: - for JSRC in ${WRKSRC}/java_cup/*.java ${WRKSRC}/java_cup/runtime/*.java; \ - do CLASSPATH=${WRKSRC} ${PREFIX}/${JAVASUBDIR}/bin/javac $$JSRC; done + ${JAVAC} -classpath ${WRKSRC} ${WRKSRC}/java_cup/*.java \ + ${WRKSRC}/java_cup/runtime/*.java + cd ${WRKSRC} && \ + ${JAR} cf ${PORTNAME}.jar java_cup/*.class \ + java_cup/runtime/*.class do-install: - ${MKDIR} ${JAVALIBDIR}/java_cup - ${MKDIR} ${JAVALIBDIR}/java_cup/runtime - ${CP} ${WRKSRC}/java_cup/*.class ${JAVALIBDIR}/java_cup - ${CP} ${WRKSRC}/java_cup/runtime/*.class ${JAVALIBDIR}/java_cup/runtime + ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.jar ${JAVAJARDIR} post-install: - ${MKDIR} ${JAVADIR}/cup - ${INSTALL_MAN} ${WRKSRC}/manual.html ${JAVADIR}/cup - ${INSTALL_MAN} ${WRKSRC}/README ${JAVADIR}/cup - ${INSTALL_MAN} ${WRKSRC}/LICENSE ${JAVADIR}/cup - @${ECHO_MSG} "Documentation installed in ${JAVADIR}/cup" - @${ECHO_MSG} " manual.html -- How to build a grammer." +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/manual.html ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/cup_logo.gif ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR} + @${ECHO_MSG} "Documentation installed in ${DOCSDIR}" + @${ECHO_MSG} " manual.html -- How to build a grammar." @${ECHO_MSG} " README -- How to get it working." @${ECHO_MSG} " LICENSE -- How not to get sued." +.endif .include <bsd.port.mk> |