pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/math/dragonbox
Module Name: pkgsrc
Committed By: ryoon
Date: Wed Aug 24 12:53:25 UTC 2022
Added Files:
pkgsrc/math/dragonbox: DESCR Makefile PLIST buildlink3.mk distinfo
pkgsrc/math/dragonbox/patches: patch-CMakeLists.txt
Log Message:
math/dragonbox: import dragonbox-1.1.3
This library is a reference implementation of Dragonbox in C++.
Dragonbox is a float-to-string conversion algorithm based on a
beautiful algorithm Schubfach, developed by Raffaello Giulietti in
2017-2018. Dragonbox is further inspired by Grisu and Grisu-Exact.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/math/dragonbox/DESCR \
pkgsrc/math/dragonbox/Makefile pkgsrc/math/dragonbox/PLIST \
pkgsrc/math/dragonbox/buildlink3.mk pkgsrc/math/dragonbox/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/math/dragonbox/patches/patch-CMakeLists.txt
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/math/dragonbox/DESCR
diff -u /dev/null pkgsrc/math/dragonbox/DESCR:1.1
--- /dev/null Wed Aug 24 12:53:25 2022
+++ pkgsrc/math/dragonbox/DESCR Wed Aug 24 12:53:24 2022
@@ -0,0 +1,5 @@
+This library is a reference implementation of Dragonbox in C++.
+
+Dragonbox is a float-to-string conversion algorithm based on a
+beautiful algorithm Schubfach, developed by Raffaello Giulietti in
+2017-2018. Dragonbox is further inspired by Grisu and Grisu-Exact.
Index: pkgsrc/math/dragonbox/Makefile
diff -u /dev/null pkgsrc/math/dragonbox/Makefile:1.1
--- /dev/null Wed Aug 24 12:53:25 2022
+++ pkgsrc/math/dragonbox/Makefile Wed Aug 24 12:53:24 2022
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2022/08/24 12:53:24 ryoon Exp $
+
+DISTNAME= dragonbox-${GITHUB_TAG}
+CATEGORIES= math
+MASTER_SITES= ${MASTER_SITE_GITHUB:=jk-jeon/}
+GITHUB_PROJECT= dragonbox
+GITHUB_TAG= 1.1.3
+
+MAINTAINER= ryoon%NetBSD.org@localhost
+HOMEPAGE= https://github.com/jk-jeon/dragonbox/
+COMMENT= Floating-point to binary-to-decimal conversion library
+LICENSE= boost-license OR apache-2.0 # with LLVM exceptions
+
+USE_CMAKE= yes
+USE_LANGUAGES= c c++
+
+CMAKE_ARGS+= -DBUILD_SHARED_LIBS=ON
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/math/dragonbox/PLIST
diff -u /dev/null pkgsrc/math/dragonbox/PLIST:1.1
--- /dev/null Wed Aug 24 12:53:25 2022
+++ pkgsrc/math/dragonbox/PLIST Wed Aug 24 12:53:24 2022
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1 2022/08/24 12:53:24 ryoon Exp $
+include/${PKGNAME}/dragonbox/dragonbox.h
+include/${PKGNAME}/dragonbox/dragonbox_to_chars.h
+lib/cmake/${PKGNAME}/dragonboxConfig.cmake
+lib/cmake/${PKGNAME}/dragonboxConfigVersion.cmake
+lib/cmake/${PKGNAME}/dragonboxTargets-noconfig.cmake
+lib/cmake/${PKGNAME}/dragonboxTargets.cmake
+lib/libdragonbox_to_chars.so
Index: pkgsrc/math/dragonbox/buildlink3.mk
diff -u /dev/null pkgsrc/math/dragonbox/buildlink3.mk:1.1
--- /dev/null Wed Aug 24 12:53:25 2022
+++ pkgsrc/math/dragonbox/buildlink3.mk Wed Aug 24 12:53:24 2022
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2022/08/24 12:53:24 ryoon Exp $
+
+BUILDLINK_TREE+= dragonbox
+
+.if !defined(DRAGONBOX_BUILDLINK3_MK)
+DRAGONBOX_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.dragonbox+= dragonbox>=1.1.3
+BUILDLINK_PKGSRCDIR.dragonbox?= ../../math/dragonbox
+.endif # DRAGONBOX_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -dragonbox
Index: pkgsrc/math/dragonbox/distinfo
diff -u /dev/null pkgsrc/math/dragonbox/distinfo:1.1
--- /dev/null Wed Aug 24 12:53:25 2022
+++ pkgsrc/math/dragonbox/distinfo Wed Aug 24 12:53:24 2022
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2022/08/24 12:53:24 ryoon Exp $
+
+BLAKE2s (dragonbox-1.1.3.tar.gz) = 8224ccc7037b6f08a5c9fd57d4f46f59b4c97c5ee36e5fd7346532f3157d464e
+SHA512 (dragonbox-1.1.3.tar.gz) = 41ac356ebced3312c0f9ea0f07ff372337ab78af69071f63f63dc12bd2b0088d5d89aae3792276599dd0393bfdfd2b979946c43d36042e43105080bcdcbe089d
+Size (dragonbox-1.1.3.tar.gz) = 4337233 bytes
+SHA1 (patch-CMakeLists.txt) = dd1b4588f79789dead14b2b06af52e9f0fb9a2cd
Index: pkgsrc/math/dragonbox/patches/patch-CMakeLists.txt
diff -u /dev/null pkgsrc/math/dragonbox/patches/patch-CMakeLists.txt:1.1
--- /dev/null Wed Aug 24 12:53:25 2022
+++ pkgsrc/math/dragonbox/patches/patch-CMakeLists.txt Wed Aug 24 12:53:24 2022
@@ -0,0 +1,15 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2022/08/24 12:53:24 ryoon Exp $
+
+* Honor BUILD_SHARED_LIBS.
+
+--- CMakeLists.txt.orig 2022-06-17 23:48:12.000000000 +0000
++++ CMakeLists.txt
+@@ -39,7 +39,7 @@ set(dragonbox_to_chars_headers
+
+ set(dragonbox_to_chars_sources source/dragonbox_to_chars.cpp)
+
+-add_library(dragonbox_to_chars STATIC
++add_library(dragonbox_to_chars
+ ${dragonbox_to_chars_headers}
+ ${dragonbox_to_chars_sources})
+ add_library(dragonbox::dragonbox_to_chars ALIAS dragonbox_to_chars)
Home |
Main Index |
Thread Index |
Old Index