Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 May 2020 11:40:31 +0000 (UTC)
From:      Rene Ladan <rene@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r536291 - in head/java/java-cup: . files
Message-ID:  <202005231140.04NBeVTh011465@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rene
Date: Sat May 23 11:40:31 2020
New Revision: 536291
URL: https://svnweb.freebsd.org/changeset/ports/536291

Log:
  java/java-cup: update to 11.b.20160615 and unexpire
  
  Further changes:
  - use a prebuilt binary instead of building from source
  - change license to SMLNJ in agreement with maintainer
  
  PR:		245466
  Submitted by:	Jashank Jeremy
  Approved by:	maintainer
  MFH:		2020Q2

Added:
  head/java/java-cup/files/
  head/java/java-cup/files/java-cup.sh.in   (contents, props changed)
Modified:
  head/java/java-cup/Makefile
  head/java/java-cup/distinfo
  head/java/java-cup/pkg-descr

Modified: head/java/java-cup/Makefile
==============================================================================
--- head/java/java-cup/Makefile	Sat May 23 11:39:28 2020	(r536290)
+++ head/java/java-cup/Makefile	Sat May 23 11:40:31 2020	(r536291)
@@ -2,36 +2,45 @@
 # $FreeBSD$
 
 PORTNAME=	cup
-PORTVERSION=	11.a
-PORTREVISION=	2
+PORTVERSION=	11b.20160615
 CATEGORIES=	java devel
-MASTER_SITES=	http://www2.cs.tum.edu/projects/cup/ \
-		http://mirrors.mcdermottroe.com/www2.cs.tum.edu/projects/cup/
+MASTER_SITES=	http://www2.cs.tum.edu/projects/cup/releases/
 PKGNAMEPREFIX=	java-
-DISTNAME=	${PKGNAMEPREFIX}${PORTNAME}-v${PORTVERSION:S|.||}-20050516-sources
+DISTNAME=	${PKGNAMEPREFIX}${PORTNAME}-bin-${PORTVERSION:S|.|-|}
 
 MAINTAINER=	eg@fbsd.lt
 COMMENT=	LALR parser generator in Java
 
-BROKEN=		unfetchable
-DEPRECATED=	Broken for more than 6 months
-EXPIRATION_DATE=	2020-05-05
+LICENSE=	SMLNJ
+LICENSE_NAME=	Standard ML of New Jersey License
+LICENSE_TEXT=	The text of the license can be obtained from the following URL:\
+		http://www2.cs.tum.edu/projects/cup/licence.php
+LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
-BROKEN_armv6=		fails to build: build.xml: Java returned: 1
-BROKEN_armv7=		fails to build: build.xml: Java returned: 1
-
 USE_JAVA=	yes
-USE_ANT=	yes
-WRKSRC=		${WRKDIR}/cup-tum
+NO_BUILD=	yes
 
-# Silly hack because the naming in CUP is all over the place
-DISTJARNAME=	${PKGNAMEPREFIX}${PORTNAME}-10k-TUM
+SUB_FILES=	java-cup.sh
+CUP_VERSION=	${PORTVERSION:R}
+SUB_LIST=	CUP_VERSION=${CUP_VERSION}
 
-PLIST_FILES=	%%JAVAJARDIR%%/${DISTJARNAME}.jar \
-		%%JAVAJARDIR%%/${DISTJARNAME}-runtime.jar
+PLIST_FILES=	bin/java-cup \
+		${JAVAJARDIR}/${PKGNAMEPREFIX}${PORTNAME}.jar \
+		${JAVAJARDIR}/${PKGNAMEPREFIX}${PORTNAME}-runtime.jar \
+		${JAVAJARDIR}/${PKGNAMEPREFIX}${PORTNAME}-${CUP_VERSION}.jar \
+		${JAVAJARDIR}/${PKGNAMEPREFIX}${PORTNAME}-${CUP_VERSION}-runtime.jar
 
 do-install:
-	${INSTALL_DATA} ${WRKSRC}/dist/${DISTJARNAME}.jar ${STAGEDIR}${JAVAJARDIR}
-	${INSTALL_DATA} ${WRKSRC}/dist/${DISTJARNAME}-runtime.jar ${STAGEDIR}${JAVAJARDIR}
+	${INSTALL_SCRIPT} ${WRKDIR}/java-cup.sh ${STAGEDIR}${PREFIX}/bin/java-cup
+
+	${INSTALL_DATA} ${WRKDIR}/${PKGNAMEPREFIX}${PORTNAME}-${CUP_VERSION}.jar \
+		${STAGEDIR}${JAVAJARDIR}/${PKGNAMEPREFIX}${PORTNAME}-${CUP_VERSION}.jar
+	${LN} -s ${PKGNAMEPREFIX}${PORTNAME}-${CUP_VERSION}.jar \
+		${STAGEDIR}${JAVAJARDIR}/${PKGNAMEPREFIX}${PORTNAME}.jar
+
+	${INSTALL_DATA} ${WRKDIR}/${PKGNAMEPREFIX}${PORTNAME}-${CUP_VERSION}-runtime.jar \
+		${STAGEDIR}${JAVAJARDIR}/${PKGNAMEPREFIX}${PORTNAME}-${CUP_VERSION}-runtime.jar
+	${LN} -s ${PKGNAMEPREFIX}${PORTNAME}-${CUP_VERSION}-runtime.jar \
+		${STAGEDIR}${JAVAJARDIR}/${PKGNAMEPREFIX}${PORTNAME}-runtime.jar
 
 .include <bsd.port.mk>

Modified: head/java/java-cup/distinfo
==============================================================================
--- head/java/java-cup/distinfo	Sat May 23 11:39:28 2020	(r536290)
+++ head/java/java-cup/distinfo	Sat May 23 11:40:31 2020	(r536291)
@@ -1,2 +1,3 @@
-SHA256 (java-cup-v11a-20050516-sources.tar.gz) = af0a664e4dd4f5fdf8ec546f9560363d1f297114fa0d4612032936267afab203
-SIZE (java-cup-v11a-20050516-sources.tar.gz) = 362129
+TIMESTAMP = 1586399405
+SHA256 (java-cup-bin-11b-20160615.tar.gz) = 3f01d657882380c1e5dc1593d9db7b5ded853429b7e52bc517f9bcbb4a65decc
+SIZE (java-cup-bin-11b-20160615.tar.gz) = 144985

Added: head/java/java-cup/files/java-cup.sh.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/java/java-cup/files/java-cup.sh.in	Sat May 23 11:40:31 2020	(r536291)
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+# Derived from a similar script for ports/java/jflex.
+#
+# $FreeBSD$
+
+# Allow the user to override where java-cup.jar lives
+JAVAJARDIR="${JAVAJARDIR:-"%%JAVAJARDIR%%"}"
+
+exec "%%LOCALBASE%%/bin/java" -jar "${JAVAJARDIR}/java-cup-%%CUP_VERSION%%.jar" "$@"

Modified: head/java/java-cup/pkg-descr
==============================================================================
--- head/java/java-cup/pkg-descr	Sat May 23 11:39:28 2020	(r536290)
+++ head/java/java-cup/pkg-descr	Sat May 23 11:40:31 2020	(r536291)
@@ -1,5 +1,7 @@
-This is the Java based Constructor of Useful Parsers (CUP for short).  It
-serves the same role as the widely used program YAXX and in fact offers most
-of the features of YACC.  However,  CUP is written in Java, uses specifications
-including embedded Java code, and produces parsers which are implemented in
-Java.
+Constructor of Useful Parsers (CUP), a system for generating LALR
+parsers from simple specifications.  It serves the same role as the
+widely-used program `yacc', and in fact offers most of the features of
+`yacc'; however, CUP is written in Java, uses specifications including
+embedded Java code, and produces parsers with are implemented in Java.
+
+WWW: http://www2.cs.tum.edu/projects/cup/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005231140.04NBeVTh011465>