Browse Source

add gnu-gsl (#684)

* add gnu-gsl

* update libarchive

* update some packages
Hoildkv 3 years ago
parent
commit
1c759cf020

+ 1 - 0
packages/b/bison/xmake.lua

@@ -8,6 +8,7 @@ package("bison")
     add_urls("http://ftp.gnu.org/gnu/bison/bison-$(version).tar.gz")
     add_urls("http://ftp.gnu.org/gnu/bison/bison-$(version).tar.gz")
     add_versions("3.7.4", "fbabc7359ccd8b4b36d47bfe37ebbce44805c052526d5558b95eda125d1677e2")
     add_versions("3.7.4", "fbabc7359ccd8b4b36d47bfe37ebbce44805c052526d5558b95eda125d1677e2")
     add_versions("3.7.6", "69dc0bb46ea8fc307d4ca1e0b61c8c355eb207d0b0c69f4f8462328e74d7b9ea")
     add_versions("3.7.6", "69dc0bb46ea8fc307d4ca1e0b61c8c355eb207d0b0c69f4f8462328e74d7b9ea")
+    add_versions("3.8.2", "06c9e13bdf7eb24d4ceb6b59205a4f67c2c7e7213119644430fe82fbd14a0abb")
 
 
     if is_plat("linux") then
     if is_plat("linux") then
         add_deps("m4")
         add_deps("m4")

+ 1 - 0
packages/f/fftw/xmake.lua

@@ -7,6 +7,7 @@ package("fftw")
     add_urls("http://fftw.org/fftw-$(version).tar.gz")
     add_urls("http://fftw.org/fftw-$(version).tar.gz")
     add_versions("3.3.8", "6113262f6e92c5bd474f2875fa1b01054c4ad5040f6b0da7c03c98821d9ae303")
     add_versions("3.3.8", "6113262f6e92c5bd474f2875fa1b01054c4ad5040f6b0da7c03c98821d9ae303")
     add_versions("3.3.9", "bf2c7ce40b04ae811af714deb512510cc2c17b9ab9d6ddcf49fe4487eea7af3d")
     add_versions("3.3.9", "bf2c7ce40b04ae811af714deb512510cc2c17b9ab9d6ddcf49fe4487eea7af3d")
+    add_versions("3.3.10", "56c932549852cddcfafdab3820b0200c7742675be92179e59e6215b340e26467")
 
 
     add_configs("precision", {description = "Float number precision.", default = "double", type = "string", values = {"float", "double", "quad", "long"}})
     add_configs("precision", {description = "Float number precision.", default = "double", type = "string", values = {"float", "double", "quad", "long"}})
     add_configs("thread", {description = "Thread model used.", default = "fftw", type = "string", values = {"none", "fftw", "openmp"}})
     add_configs("thread", {description = "Thread model used.", default = "fftw", type = "string", values = {"none", "fftw", "openmp"}})

+ 24 - 0
packages/g/gnu-gsl/xmake.lua

@@ -0,0 +1,24 @@
+package("gnu-gsl")
+
+    set_homepage("https://www.gnu.org/software/gsl/")
+    set_description("The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers.")
+    set_license("GPL-3.0")
+
+    add_urls("https://ftp.gnu.org/gnu/gsl/gsl-$(version).tar.gz",
+             "https://ftpmirror.gnu.org/gsl/gsl-$(version).tar.gz")
+    add_versions("2.7", "efbbf3785da0e53038be7907500628b466152dbc3c173a87de1b5eba2e23602b")
+
+    add_links("gsl", "gslcblas")
+    on_install("macosx", "linux", function (package)
+        local configs = {"--disable-dependency-tracking"}
+        table.insert(configs, "--enable-shared=" .. (package:config("shared") and "yes" or "no"))
+        table.insert(configs, "--enable-static=" .. (package:config("shared") and "no" or "yes"))
+        if package:config("pic") ~= false then
+            table.insert(configs, "--with-pic")
+        end
+        import("package.tools.autoconf").install(package, configs, {cppflags = cppflags, ldflags = ldflags})
+    end)
+
+    on_test(function (package)
+        assert(package:has_cfuncs("gsl_isnan", {includes = "gsl/gsl_math.h"}))
+    end)

+ 4 - 2
packages/l/libarchive/xmake.lua

@@ -6,11 +6,13 @@ package("libarchive")
 
 
     add_urls("https://libarchive.org/downloads/libarchive-$(version).tar.gz")
     add_urls("https://libarchive.org/downloads/libarchive-$(version).tar.gz")
     add_versions("3.5.1", "9015d109ec00bb9ae1a384b172bf2fc1dff41e2c66e5a9eeddf933af9db37f5a")
     add_versions("3.5.1", "9015d109ec00bb9ae1a384b172bf2fc1dff41e2c66e5a9eeddf933af9db37f5a")
+    add_versions("3.5.2", "5f245bd5176bc5f67428eb0aa497e09979264a153a074d35416521a5b8e86189")
 
 
     add_deps("cmake")
     add_deps("cmake")
-    add_deps("zlib", "bzip2", "lz4")
+    add_deps("zlib", "bzip2", "lz4", "zstd")
     on_install("windows", "linux", "macosx", function (package)
     on_install("windows", "linux", "macosx", function (package)
-        local configs = {"-DENABLE_TEST=OFF"}
+        io.replace("CMakeLists.txt", "-D_CRT_SECURE_NO_DEPRECATE)", "-D_CRT_SECURE_NO_DEPRECATE)\nADD_DEFINITIONS(-DWIN32_LEAN_AND_MEAN)", {plain = true})
+        local configs = {"-DENABLE_TEST=OFF", "-DENABLE_OPENSSL=OFF", "-DENABLE_PCREPOSIX=OFF", "-DENABLE_LibGCC=OFF", "-DENABLE_CNG=OFF", "-DENABLE_ICONV=OFF", "-DENABLE_ACL=OFF", "-DENABLE_EXPAT=OFF", "-DENABLE_LIBXML2=OFF", "-DENABLE_LIBB2=OFF"}
         table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
         table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
         table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
         table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
         import("package.tools.cmake").install(package, configs)
         import("package.tools.cmake").install(package, configs)

+ 3 - 0
packages/p/pybind11/xmake.lua

@@ -1,13 +1,16 @@
 package("pybind11")
 package("pybind11")
 
 
+    set_kind("library", {headeronly = true})
     set_homepage("https://github.com/pybind/pybind11")
     set_homepage("https://github.com/pybind/pybind11")
     set_description("Seamless operability between C++11 and Python.")
     set_description("Seamless operability between C++11 and Python.")
+    set_license("BSD-3-Clause")
 
 
     add_urls("https://github.com/pybind/pybind11/archive/$(version).zip",
     add_urls("https://github.com/pybind/pybind11/archive/$(version).zip",
              "https://github.com/pybind/pybind11.git")
              "https://github.com/pybind/pybind11.git")
     add_versions("v2.5.0", "1859f121837f6c41b0c6223d617b85a63f2f72132bae3135a2aa290582d61520")
     add_versions("v2.5.0", "1859f121837f6c41b0c6223d617b85a63f2f72132bae3135a2aa290582d61520")
     add_versions("v2.6.2", "0bdb5fd9616fcfa20918d043501883bf912502843d5afc5bc7329a8bceb157b3")
     add_versions("v2.6.2", "0bdb5fd9616fcfa20918d043501883bf912502843d5afc5bc7329a8bceb157b3")
     add_versions("v2.7.1", "350ebf8f4c025687503a80350897c95d8271bf536d98261f0b8ed2c1a697070f")
     add_versions("v2.7.1", "350ebf8f4c025687503a80350897c95d8271bf536d98261f0b8ed2c1a697070f")
+    add_versions("v2.8.1", "90907e50b76c8e04f1b99e751958d18e72c4cffa750474b5395a93042035e4a3")
 
 
     add_deps("cmake", "python 3.x")
     add_deps("cmake", "python 3.x")
 
 

+ 1 - 0
packages/s/spdlog/xmake.lua

@@ -5,6 +5,7 @@ package("spdlog")
 
 
     set_urls("https://github.com/gabime/spdlog/archive/$(version).zip",
     set_urls("https://github.com/gabime/spdlog/archive/$(version).zip",
              "https://github.com/gabime/spdlog.git")
              "https://github.com/gabime/spdlog.git")
+    add_versions("v1.9.2", "130bd593c33e2e2abba095b551db6a05f5e4a5a19c03ab31256c38fa218aa0a6")
     add_versions("v1.9.1", "1a383a1d6bf604759c310a0b464a83afc54cc3147192d61c3d0c59695b38ff79")
     add_versions("v1.9.1", "1a383a1d6bf604759c310a0b464a83afc54cc3147192d61c3d0c59695b38ff79")
     add_versions("v1.9.0", "61f751265cfce8fb17f67e18fa1ad00077280c080008252d9e8f0fbab5c30662")
     add_versions("v1.9.0", "61f751265cfce8fb17f67e18fa1ad00077280c080008252d9e8f0fbab5c30662")
     add_versions("v1.8.5", "6e66c8ed4c014b0fb00c74d34eea95b5d34f6e4b51b746b1ea863dc3c2e854fd")
     add_versions("v1.8.5", "6e66c8ed4c014b0fb00c74d34eea95b5d34f6e4b51b746b1ea863dc3c2e854fd")