[otl] Update hash (#22668)

* [otl] Update hash

* update version

* you need to change the filename at the same time

* fix license file

Co-authored-by: Lily Wang <v-lilywang@microsoft.com>
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
This commit is contained in:
LilyWangLL 2022-01-22 05:30:52 +08:00 committed by GitHub
parent 3b9d88d70a
commit df40d1c476
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 7 deletions

View File

@ -2,8 +2,8 @@ set(OTL_VERSION 40463)
vcpkg_download_distfile(ARCHIVE
URLS "http://otl.sourceforge.net/otlv4_${OTL_VERSION}.zip"
FILENAME "otlv4_${OTL_VERSION}-9485a0fe15a7.zip"
SHA512 9485a0fe15a737d55b0746a7e289b1a20e9435ed5c69bda7010705f8cde0a456163d83221d0103236a723837596613b578edc6d3d0007ce80a6cc76b4ed83888
FILENAME "otlv4_${OTL_VERSION}-9485a0fe15a7-1.zip"
SHA512 46a50234009ca8e8dba3b0b781f4b496759f4c5697f045d816c7e4eddda61da63d03acf29b4d1f71ee035aba4c6daa72c9a546085a6d7b3c192353b854526392
)
vcpkg_extract_source_archive_ex(
@ -16,6 +16,16 @@ file(INSTALL "${SOURCE_PATH}/otlv${OTL_VERSION}.h"
DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}"
RENAME otlv4.h)
file(INSTALL "${SOURCE_PATH}/otlv${OTL_VERSION}.h"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
RENAME copyright)
file(READ "${SOURCE_PATH}/otlv${OTL_VERSION}.h" copyright_contents)
string(FIND "${copyright_contents}" "#ifndef OTL_H" start_of_source)
if(start_of_source EQUAL "-1")
message(FATAL_ERROR "Could not find start of source; the header file has changed in a way that we cannot get the license text.")
endif()
string(SUBSTRING "${copyright_contents}" 0 "${start_of_source}" copyright_contents)
string(REGEX REPLACE "// ?" "" copyright_contents "${copyright_contents}")
string(REGEX REPLACE "=+\n" "" copyright_contents "${copyright_contents}")
file(WRITE
"${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright"
"${copyright_contents}"
)

View File

@ -1,6 +1,8 @@
{
"name": "otl",
"version": "4.0.463",
"port-version": 1,
"description": "Oracle, Odbc and DB2-CLI Template Library",
"homepage": "http://otl.sourceforge.net/"
"homepage": "http://otl.sourceforge.net/",
"license": "ISC"
}

View File

@ -5142,7 +5142,7 @@
},
"otl": {
"baseline": "4.0.463",
"port-version": 0
"port-version": 1
},
"outcome": {
"baseline": "2.2.2-20211208",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "02a8c353e8a348eb320fdfaf7dfd7d4a40d3d2e1",
"version": "4.0.463",
"port-version": 1
},
{
"git-tree": "bce79d0a6767b5593182564f94f3db98eea61be7",
"version": "4.0.463",