1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

misc/units: New port: C++ library for working with units of measurement

This commit is contained in:
Yuri Victorovich 2024-08-25 14:18:02 -07:00
parent 231f81d412
commit 71504af533
5 changed files with 52 additions and 0 deletions

View File

@ -639,6 +639,7 @@
SUBDIR += unclutter
SUBDIR += unclutter-xfixes
SUBDIR += unicode-emoji
SUBDIR += units
SUBDIR += upclient
SUBDIR += urh
SUBDIR += usbids

26
misc/units/Makefile Normal file
View File

@ -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>

3
misc/units/distinfo Normal file
View File

@ -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

9
misc/units/pkg-descr Normal file
View File

@ -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.

13
misc/units/pkg-plist Normal file
View File

@ -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