git: 3d6e6ac4c7e3 - main - devel/sparsebitset: adding SparseBitSet, an efficient sparse bit set implementation for Java

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

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

commit 3d6e6ac4c7e340500de5fc64f265163db62ea390
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2022-05-01 08:52:12 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2022-05-01 20:09:07 +0000

    devel/sparsebitset: adding SparseBitSet, an efficient sparse bit set implementation for Java
---
 devel/Makefile               |  1 +
 devel/sparsebitset/Makefile  | 28 ++++++++++++++++++++++++++++
 devel/sparsebitset/distinfo  |  3 +++
 devel/sparsebitset/pkg-descr |  6 ++++++
 4 files changed, 38 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index e2f493247f9c..af51c55a65e4 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -7108,6 +7108,7 @@
     SUBDIR += sope
     SUBDIR += sope2
     SUBDIR += sord
+    SUBDIR += sparsebitset
     SUBDIR += sparsehash
     SUBDIR += spatialindex
     SUBDIR += spdlog
diff --git a/devel/sparsebitset/Makefile b/devel/sparsebitset/Makefile
new file mode 100644
index 000000000000..f62855776c3e
--- /dev/null
+++ b/devel/sparsebitset/Makefile
@@ -0,0 +1,28 @@
+# Created by: Thierry Thomas <thierry@pompo.net>
+
+PORTNAME=	SparseBitSet
+PORTVERSION=	1.2
+CATEGORIES=	devel java
+MASTER_SITES=	https://repo1.maven.org/maven2/com/zaxxer/${PORTNAME}/${PORTVERSION}/
+EXTRACT_SUFX=	.jar
+EXTRACT_ONLY=
+
+MAINTAINER=	thierry@FreeBSD.org
+COMMENT=	Efficient sparse bitset implementation for Java
+
+LICENSE=	APACHE20
+
+USE_JAVA=	yes
+JAVA_VERSION=	8+
+
+NO_BUILD=	yes
+NO_ARCH=	yes
+
+PLIST_FILES=	${JAVAJARDIR}/${PORTNAME}.jar
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
+	${INSTALL_DATA} ${DISTDIR}/${DISTFILES}	\
+		${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
+
+.include <bsd.port.mk>
diff --git a/devel/sparsebitset/distinfo b/devel/sparsebitset/distinfo
new file mode 100644
index 000000000000..c1f9a307b108
--- /dev/null
+++ b/devel/sparsebitset/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1651331948
+SHA256 (SparseBitSet-1.2.jar) = 91e6b318c901a0f2dd1f6ce781d62474435ae627d22fbac9b21bbc39ffd804b6
+SIZE (SparseBitSet-1.2.jar) = 24510
diff --git a/devel/sparsebitset/pkg-descr b/devel/sparsebitset/pkg-descr
new file mode 100644
index 000000000000..0f96faa3d047
--- /dev/null
+++ b/devel/sparsebitset/pkg-descr
@@ -0,0 +1,6 @@
+Basically, if you need to set a large number of bits, or bits at extremely high
+offsets, you probably want to use this Sparse BitSet. All other alternatives are
+essentialy off the table; the Java BitSet class is a non-starter. Performance is
+superior in almost all cases to the standard Java BitSet.
+
+WWW: https://github.com/brettwooldridge/SparseBitSet