git: eb54d5ceb1c3 - main - java/apache-commons-collections4: repocopy from java/apache-commons-collections

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Sun, 01 May 2022 20:11:37 UTC
The branch main has been updated by thierry:

URL: https://cgit.FreeBSD.org/ports/commit/?id=eb54d5ceb1c313155155318d41625bfb01f511c8

commit eb54d5ceb1c313155155318d41625bfb01f511c8
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2022-04-29 13:08:27 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2022-05-01 20:09:06 +0000

    java/apache-commons-collections4: repocopy from java/apache-commons-collections
    
    Note: this port use the pre-build jar, to avoid the maven burden.
---
 java/Makefile                              |  1 +
 java/apache-commons-collections4/Makefile  | 37 ++++++++++++++++++++++++++++++
 java/apache-commons-collections4/distinfo  |  3 +++
 java/apache-commons-collections4/pkg-descr |  7 ++++++
 4 files changed, 48 insertions(+)

diff --git a/java/Makefile b/java/Makefile
index 2fdfde899949..a0b73d1deed0 100644
--- a/java/Makefile
+++ b/java/Makefile
@@ -5,6 +5,7 @@
     SUBDIR += apache-commons-cli
     SUBDIR += apache-commons-codec
     SUBDIR += apache-commons-collections
+    SUBDIR += apache-commons-collections4
     SUBDIR += apache-commons-dbcp
     SUBDIR += apache-commons-httpclient
     SUBDIR += apache-commons-lang
diff --git a/java/apache-commons-collections4/Makefile b/java/apache-commons-collections4/Makefile
new file mode 100644
index 000000000000..aa37b7d7110a
--- /dev/null
+++ b/java/apache-commons-collections4/Makefile
@@ -0,0 +1,37 @@
+# Created by: Ernst de Haan <znerd@FreeBSD.org>
+
+PORTNAME=	commons-collections4
+PORTVERSION=	4.4
+CATEGORIES=	java devel
+MASTER_SITES=	APACHE_COMMONS_BINARIES
+MASTER_SITE_SUBDIR=	collections
+PKGNAMEPREFIX=	apache-
+DISTNAME=	${PORTNAME}-${PORTVERSION}-bin
+
+MAINTAINER=	thierry@FreeBSD.org
+COMMENT=	Classes that extend/augment the Java Collections Framework
+
+LICENSE=	APACHE20
+
+USE_JAVA=	yes
+JAVA_VERSION=	8+
+
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
+NO_BUILD=	yes
+NO_ARCH=	yes
+
+PLIST_FILES=	${JAVAJARDIR}/${PORTNAME}.jar
+PORTDOCS=	apidocs
+
+OPTIONS_DEFINE=	DOCS
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
+	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar \
+		${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
+
+do-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC} && ${COPYTREE_SHARE} apidocs ${STAGEDIR}${DOCSDIR})
+
+.include <bsd.port.mk>
diff --git a/java/apache-commons-collections4/distinfo b/java/apache-commons-collections4/distinfo
new file mode 100644
index 000000000000..36824ff9987c
--- /dev/null
+++ b/java/apache-commons-collections4/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1651241454
+SHA256 (commons-collections4-4.4-bin.tar.gz) = 008302a86b1c70d5b01df3b955836fc6a2b323b7b9bb63840b4dc0ff260348c2
+SIZE (commons-collections4-4.4-bin.tar.gz) = 7958124
diff --git a/java/apache-commons-collections4/pkg-descr b/java/apache-commons-collections4/pkg-descr
new file mode 100644
index 000000000000..a807c910c45b
--- /dev/null
+++ b/java/apache-commons-collections4/pkg-descr
@@ -0,0 +1,7 @@
+A suite of classes that extend or augment the Java Collections
+Framework. Commons-Collections seek to build upon the JDK classes
+by providing new interfaces, implementations and utilities.
+
+This port correspond to release 4.x.
+
+WWW: https://commons.apache.org/proper/commons-collections/