aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2020-04-16 12:36:20 -0700
committerGitHub <noreply@github.com>2020-04-16 12:36:20 -0700
commit22850feaef82f71c0f992b04dce5aa2e99d19c03 (patch)
tree67835aa74cee03fd8aab5c1355c51baa3932e950
parentd6b093963a48f1b1c97394e5a5cd3e3eccbc2093 (diff)
parentf99b18d573f0966e9c432a83c76ce2a20485dcd4 (diff)
downloadvcpkg-22850feaef82f71c0f992b04dce5aa2e99d19c03.tar.gz
vcpkg-22850feaef82f71c0f992b04dce5aa2e99d19c03.zip
Merge pull request #10758 from Neumann-A/update_gsl_2_6
[gsl] update to 2.6
-rw-r--r--ports/gsl/CMakeLists.txt9
-rw-r--r--ports/gsl/CONTROL2
-rw-r--r--ports/gsl/portfile.cmake4
3 files changed, 8 insertions, 7 deletions
diff --git a/ports/gsl/CMakeLists.txt b/ports/gsl/CMakeLists.txt
index 0027fe291..2d37f37e9 100644
--- a/ports/gsl/CMakeLists.txt
+++ b/ports/gsl/CMakeLists.txt
@@ -9,7 +9,8 @@ function(extract_from_makefile PATTERN RETURN FILEPATH)
string(REGEX MATCH "${PATTERN}" CONTENTS "${MAKEFILE_CONTENT}")
set(CONTENTS ${CMAKE_MATCH_1})
# Split string into list
- string(REGEX REPLACE "[ \t]+" ";" CONTENTS "${CONTENTS}")
+ string(REGEX REPLACE "([\t ]+(\\\\\n)?)+" ";" CONTENTS "${CONTENTS}")
+ string(REGEX REPLACE "[\t ]*\\\\\n[\t ]*;" "" CONTENTS "${CONTENTS}")
if("${CONTENTS}" STREQUAL "")
message(AUTHOR_WARNING "No match for \"${PATTERN}\" found in file ${FILEPATH}")
endif()
@@ -19,8 +20,8 @@ endfunction(extract_from_makefile)
# Function to extract C sources from makefile
function(extract_sources SUBFOLDER ALLSOURCES)
- extract_from_makefile("lib[a-zA-Z1-9_]*_la_SOURCES[ \t]*=[ \t]*([^\n]*)" SOURCEFILES "${SUBFOLDER}/Makefile.am")
- # Add the folder in front of the file names
+ extract_from_makefile("lib[a-zA-Z1-9_]*_la_SOURCES[ \t]*=[ \t]*(((\\\\\n)?[^\n])*)" SOURCEFILES "${SUBFOLDER}/Makefile.am")
+ # Add the folder in front of the file names
string(REGEX REPLACE "([^;]+)" "${SUBFOLDER}/\\1" SOURCEFILES "${SOURCEFILES}")
# Return
set(${ALLSOURCES} ${${ALLSOURCES}} ${SOURCEFILES} PARENT_SCOPE)
@@ -28,7 +29,7 @@ endfunction(extract_sources)
set(SOURCES)
set(CBLAS_SOURCES)
-extract_from_makefile("SUBDIRS = ([^\n]*)" FOLDERS "./Makefile.am")
+extract_from_makefile("SUBDIRS = (((\\\\\n)?[^\n])*)" FOLDERS "./Makefile.am")
extract_sources("." SOURCES)
foreach(DIR IN LISTS FOLDERS)
if("${DIR}" STREQUAL "cblas")
diff --git a/ports/gsl/CONTROL b/ports/gsl/CONTROL
index 0ec3fc2e9..62c5efb26 100644
--- a/ports/gsl/CONTROL
+++ b/ports/gsl/CONTROL
@@ -1,4 +1,4 @@
Source: gsl
-Version: 2.4-5
+Version: 2.6
Homepage: https://www.gnu.org/software/gsl/
Description: The GNU Scientific Library is a numerical library for C and C++ programmers
diff --git a/ports/gsl/portfile.cmake b/ports/gsl/portfile.cmake
index 8e692e70f..3069c44b2 100644
--- a/ports/gsl/portfile.cmake
+++ b/ports/gsl/portfile.cmake
@@ -1,9 +1,9 @@
-set(GSL_VERSION 2.4)
+set(GSL_VERSION 2.6)
vcpkg_download_distfile(ARCHIVE
URLS "https://ftp.gnu.org/gnu/gsl/gsl-${GSL_VERSION}.tar.gz" "https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/gsl/gsl-${GSL_VERSION}.tar.gz"
FILENAME "gsl-${GSL_VERSION}.tar.gz"
- SHA512 12442b023dd959e8b22a9c486646b5cedec7fdba0daf2604cda365cf96d10d99aefdec2b42e59c536cc071da1525373454e5ed6f4b15293b305ca9b1dc6db130
+ SHA512 0be8240715f0b86aba2c63d9f12da4dba4719d4e350e9308d279e0dd3b2f0519ea26fd2e38a17f3e8cf43aacbaa2455207a7ca0d6c305f3b8725e8ece2250a74
)
vcpkg_extract_source_archive_ex(