git: 71504af53393 - main - misc/units: New port: C++ library for working with units of measurement
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 26 Aug 2024 00:52:34 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=71504af53393b5de350ba9cc883a5d5372c22db5
commit 71504af53393b5de350ba9cc883a5d5372c22db5
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-08-25 21:18:02 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-08-26 00:52:23 +0000
misc/units: New port: C++ library for working with units of measurement
---
misc/Makefile | 1 +
misc/units/Makefile | 26 ++++++++++++++++++++++++++
misc/units/distinfo | 3 +++
misc/units/pkg-descr | 9 +++++++++
misc/units/pkg-plist | 13 +++++++++++++
5 files changed, 52 insertions(+)
diff --git a/misc/Makefile b/misc/Makefile
index d742e71b43fd..f9ccebe31387 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -639,6 +639,7 @@
SUBDIR += unclutter
SUBDIR += unclutter-xfixes
SUBDIR += unicode-emoji
+ SUBDIR += units
SUBDIR += upclient
SUBDIR += urh
SUBDIR += usbids
diff --git a/misc/units/Makefile b/misc/units/Makefile
new file mode 100644
index 000000000000..85397cb3d519
--- /dev/null
+++ b/misc/units/Makefile
@@ -0,0 +1,26 @@
+PORTNAME= units
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.9.1-24
+DISTVERSIONSUFFIX= -g0e7f8ea
+CATEGORIES= misc
+PKGNAMESUFFIX= -library
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= C++ library for working with units of measurement
+WWW= https://units.readthedocs.io/en/latest/
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= cmake:testing
+USE_LDCONFIG= yes
+
+USE_GITHUB= yes
+GH_ACCOUNT= LLNL
+
+CMAKE_ON= UNITS_BUILD_OBJECT_LIBRARY \
+ UNITS_BUILD_SHARED_LIBRARY
+CMAKE_OFF= UNITS_ENABLE_TESTS
+CMAKE_TESTING_ON= UNITS_ENABLE_TESTS # tests expect the googletest source tree, see https://github.com/LLNL/units/issues/340
+
+.include <bsd.port.mk>
diff --git a/misc/units/distinfo b/misc/units/distinfo
new file mode 100644
index 000000000000..a8c405234a32
--- /dev/null
+++ b/misc/units/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1724619218
+SHA256 (LLNL-units-v0.9.1-24-g0e7f8ea_GH0.tar.gz) = 86bb9e2cec9718094232020b4c7bbb262d5f348f5b3bd1fdd862673abfb7dd01
+SIZE (LLNL-units-v0.9.1-24-g0e7f8ea_GH0.tar.gz) = 1953517
diff --git a/misc/units/pkg-descr b/misc/units/pkg-descr
new file mode 100644
index 000000000000..da76a3c77568
--- /dev/null
+++ b/misc/units/pkg-descr
@@ -0,0 +1,9 @@
+The Units library provides a means of working with units of measurement at
+runtime, including conversion to and from strings. It provides a small number
+of types for working with units and measurements and operations necessary for
+user input and output with units.
+
+This software was developed for use in LLNL/GridDyn, and HELICS and is currently
+a work in progress (though getting close). Namespaces, function names, and code
+organization is subject to change though is fairly stable at this point, input
+is welcome.
diff --git a/misc/units/pkg-plist b/misc/units/pkg-plist
new file mode 100644
index 000000000000..4d92b598de84
--- /dev/null
+++ b/misc/units/pkg-plist
@@ -0,0 +1,13 @@
+include/units/commodity_definitions.hpp
+include/units/unit_definitions.hpp
+include/units/units.hpp
+include/units/units_conversion_maps.hpp
+include/units/units_decl.hpp
+include/units/units_export.h
+include/units/units_math.hpp
+include/units/units_util.hpp
+lib/cmake/units/unitsConfig.cmake
+lib/cmake/units/unitsConfigVersion.cmake
+lib/cmake/units/unitsTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/units/unitsTargets.cmake
+lib/libunits.so