git: 1ff0df1aea00 - main - devel/libthreader: New port

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 28 Aug 2022 20:19:05 UTC
The branch main has been updated by bofh:

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

commit 1ff0df1aea00ecc0945f89f02e853f3732969e9c
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2022-08-28 20:16:23 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2022-08-28 20:18:55 +0000

    devel/libthreader: New port
    
    Libthreadar is a C++ library providing an abstracted set of C++
    *classes*
    to manipulate threads in a very simple and efficient way from your C++
    code.
    
    It's used to support multithreading in the DAR archiver.
    
    WWW: https://libthreadar.sourceforge.net/
    
    PR:             266040
    Reported by:    igorz@yandex.ru
---
 devel/Makefile              |  1 +
 devel/libthreader/Makefile  | 20 ++++++++++++++++++++
 devel/libthreader/distinfo  |  3 +++
 devel/libthreader/pkg-descr |  6 ++++++
 devel/libthreader/pkg-plist | 19 +++++++++++++++++++
 5 files changed, 49 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index cce7951001c2..c5e6850f5af8 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1348,6 +1348,7 @@
     SUBDIR += libtextstyle
     SUBDIR += libthai
     SUBDIR += libthmap
+    SUBDIR += libthreader
     SUBDIR += libtickit
     SUBDIR += libtifiles2
     SUBDIR += libtool
diff --git a/devel/libthreader/Makefile b/devel/libthreader/Makefile
new file mode 100644
index 000000000000..61c64bbda1cb
--- /dev/null
+++ b/devel/libthreader/Makefile
@@ -0,0 +1,20 @@
+PORTNAME=	libthreadar
+PORTVERSION=	1.4.0
+CATEGORIES=	devel sysutils
+MASTER_SITES=	SF/${PORTNAME}/${PORTVERSION}/ \
+		https://dar.edrusb.org/libthreadar/Releases/
+
+MAINTAINER=	bofh@FreeBSD.org
+COMMENT=	Abstracted set of C++ *classes* to manipulate threads
+
+LICENSE=	LGPL3
+LICENSE_FILE=	${WRKSRC}/COPYING.LESSER
+
+USES=		libtool
+USE_LDCONFIG=	yes
+
+GNU_CONFIGURE=	yes
+INSTALL_TARGET=	install-strip
+TEST_TARGET=	check
+
+.include <bsd.port.mk>
diff --git a/devel/libthreader/distinfo b/devel/libthreader/distinfo
new file mode 100644
index 000000000000..72b27a7d2aee
--- /dev/null
+++ b/devel/libthreader/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1661435063
+SHA256 (libthreadar-1.4.0.tar.gz) = 2e4715178027bac973a4883f4bcb063494327ba886710446a82a80860f1a3791
+SIZE (libthreadar-1.4.0.tar.gz) = 445672
diff --git a/devel/libthreader/pkg-descr b/devel/libthreader/pkg-descr
new file mode 100644
index 000000000000..8b636767d6e5
--- /dev/null
+++ b/devel/libthreader/pkg-descr
@@ -0,0 +1,6 @@
+Libthreadar is a C++ library providing an abstracted set of C++ *classes*
+to manipulate threads in a very simple and efficient way from your C++ code.
+
+It's used to support multithreading in the DAR archiver.
+
+WWW: https://libthreadar.sourceforge.net/
diff --git a/devel/libthreader/pkg-plist b/devel/libthreader/pkg-plist
new file mode 100644
index 000000000000..948bc0190d11
--- /dev/null
+++ b/devel/libthreader/pkg-plist
@@ -0,0 +1,19 @@
+include/libthreadar/barrier.hpp
+include/libthreadar/condition.hpp
+include/libthreadar/exceptions.hpp
+include/libthreadar/fast_tampon.hpp
+include/libthreadar/freezer.hpp
+include/libthreadar/libthreadar.hpp
+include/libthreadar/libthreadar_config.h
+include/libthreadar/mutex.hpp
+include/libthreadar/ratelier_gather.hpp
+include/libthreadar/ratelier_scatter.hpp
+include/libthreadar/semaphore.hpp
+include/libthreadar/tampon.hpp
+include/libthreadar/thread.hpp
+lib/libthreadar.a
+lib/libthreadar.so
+lib/libthreadar.so.1000
+lib/libthreadar.so.1000.4.0
+libdata/pkgconfig/libthreadar.pc
+%%DATADIR%%/README