From nobody Mon Aug 26 00:52:34 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WsXFt6vhnz5Ts75; Mon, 26 Aug 2024 00:52:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WsXFt4Kfyz4jhs; Mon, 26 Aug 2024 00:52:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724633554; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yo9bkkuw4FFfTIY/bwwoKzgzT0Av0/jeHd9ERaLboQA=; b=ZuYtZpVBiCO2M1yg1QvW/uQxJIMXX38zJ0W48+eq+Ln2fozOWCslO4Cv9GJhBI8/d2XDVh 4ZLtyK+JZJEvI3m63dgbK3XrjQiMyJMX+WDtpt7q61O87ZoZdD8r0duoYVRXjGvBqUArpA ukEVLRwVv5HrWja7OPO7q8OupFXHGx96prbWAtBZ7G9nPWMdK0ZE6K7I4K2oeijZWevDwg LzPmfwzSp1WrqZCGW+3C1aIPFCzGHiB8n14WvP8+6DvmPPgcAUw2qXLup4EIAOITWybFTt vp8JzdwDrIJLZQaieZ14E2SyLWy/A3KT19bxOrSY/MNS0n6NA3MJQUWODooVTg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724633554; a=rsa-sha256; cv=none; b=uztsWd/N5gQn6iF9JN3KdPBsjhQyyCGqddNXuVHr15a2XcfMX27vm/cXkogjPW6zokkAQ2 q02B9wLU0mOc2SNH6PtjI3v7xziCldoS7/eIXD+YhBsnFeDOW+m2OATbhqWAMwAajOlqzP NEsCwZNyBfbujms2W747jKY8DRtOspsuK1Tq9ql1LFiI8pi0FPVr6WA2TfuambJHTMshqx gxSNd//7DnNtRipg0hmgPovBIUQb1iMPhr8yTXKWtfGV+Exqkcf6Htk1irhieYV7cJalgs g9ucHfpyYLYOXUxbACMPOJKjnNVHolwhgiNTu9ahk0NFRivna6OPI2RdISOEnQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724633554; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yo9bkkuw4FFfTIY/bwwoKzgzT0Av0/jeHd9ERaLboQA=; b=ogxaF3nqLAJ3IX2+w84CLZv9OyfcRMqShqZCOFnt3K4iWJkAlSwCb+2N3gm1jNwr34f9T9 3MgqoydMaDl5BTyZG2/AWN10EG1HIJDyBFMJShFIK2fhncH/XK323RW2TdSmuxspRvigks ctqSNeMF9q1xJwLd+KIUR89CUMZq3Z7l180dUMYKBnDMk/Y1VZSJPMuqaICM0MvZZJFBpj eItePGOliG+C4kOGljo9jBc5KcV3xOLMS6+rBWpqKjsL3oiw3iFUYO6j2qT4C0DBxaYGAE MJmFQ8NNdnAEZBFAhdrXSEcQlVqK1t5jI0l1bY5rc0P6wOGa0hfB7ve6qmcpXg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WsXFt3cW6zl68; Mon, 26 Aug 2024 00:52:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47Q0qY0t090345; Mon, 26 Aug 2024 00:52:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47Q0qYtd090342; Mon, 26 Aug 2024 00:52:34 GMT (envelope-from git) Date: Mon, 26 Aug 2024 00:52:34 GMT Message-Id: <202408260052.47Q0qYtd090342@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 71504af53393 - main - misc/units: New port: C++ library for working with units of measurement List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 71504af53393b5de350ba9cc883a5d5372c22db5 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=71504af53393b5de350ba9cc883a5d5372c22db5 commit 71504af53393b5de350ba9cc883a5d5372c22db5 Author: Yuri Victorovich AuthorDate: 2024-08-25 21:18:02 +0000 Commit: Yuri Victorovich 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 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