1999-07-04 00:10:23 +00:00
|
|
|
# New ports collection makefile for: jlex
|
|
|
|
# Date created: 1 June 1999
|
|
|
|
# Whom: jake@checker.org
|
|
|
|
#
|
1999-08-25 06:16:32 +00:00
|
|
|
# $FreeBSD$
|
1999-07-04 00:10:23 +00:00
|
|
|
#
|
|
|
|
|
2000-04-12 06:21:15 +00:00
|
|
|
PORTNAME= jlex
|
2004-01-19 14:33:28 +00:00
|
|
|
PORTVERSION= 1.2.6
|
2007-05-19 20:36:56 +00:00
|
|
|
PORTREVISION= 2
|
2004-02-18 19:58:24 +00:00
|
|
|
CATEGORIES= java devel
|
2004-01-19 14:33:28 +00:00
|
|
|
MASTER_SITES= http://www.cs.princeton.edu/~appel/modern/java/JLex/Archive/1.2.6/
|
2000-04-12 06:21:15 +00:00
|
|
|
DISTNAME= Main
|
1999-07-04 00:10:23 +00:00
|
|
|
EXTRACT_SUFX= .java
|
2002-03-02 14:27:10 +00:00
|
|
|
EXTRACT_ONLY= #
|
1999-07-04 00:10:23 +00:00
|
|
|
|
2003-11-02 03:36:45 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 12:35:09 +00:00
|
|
|
COMMENT= A lexical analyzer generator, written for Java, in Java
|
1999-07-04 00:10:23 +00:00
|
|
|
|
2005-02-03 02:14:53 +00:00
|
|
|
PLIST_FILES= %%JAVAJARDIR%%/jlex.jar bin/jlex
|
|
|
|
USE_JAVA= yes
|
1999-07-04 00:10:23 +00:00
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
2004-01-19 16:26:22 +00:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2005-02-03 02:14:53 +00:00
|
|
|
SUB_FILES= jlex.sh
|
1999-07-04 00:10:23 +00:00
|
|
|
|
|
|
|
do-extract:
|
|
|
|
@${RM} -rf ${WRKDIR}
|
|
|
|
@${MKDIR} ${WRKDIR}
|
|
|
|
@${CP} ${DISTDIR}/Main.java ${WRKDIR}
|
|
|
|
|
|
|
|
do-build:
|
2004-01-19 14:33:28 +00:00
|
|
|
@cd ${WRKDIR} && \
|
|
|
|
${JAVAC} -d . Main.java && \
|
|
|
|
${JAR} cf ${PORTNAME}.jar JLex/*.class
|
1999-07-04 00:10:23 +00:00
|
|
|
|
|
|
|
do-install:
|
2004-01-19 14:33:28 +00:00
|
|
|
@${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.jar ${JAVAJARDIR}
|
2005-02-03 02:14:53 +00:00
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/jlex.sh ${PREFIX}/bin/jlex
|
2004-01-19 16:26:22 +00:00
|
|
|
@${SED} s:%%JAVAJARDIR%%:${JAVAJARDIR}: < ${PKGDIR}/pkg-message \
|
|
|
|
> ${PKGMESSAGE}
|
1999-07-04 00:10:23 +00:00
|
|
|
|
|
|
|
post-install:
|
2004-01-19 16:26:22 +00:00
|
|
|
@${ECHO_MSG}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${ECHO_MSG}
|
1999-07-04 00:10:23 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|