aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLily <47812810+LilyWangL@users.noreply.github.com>2020-01-07 07:01:33 +0800
committerdan-shaw <51385773+dan-shaw@users.noreply.github.com>2020-01-06 15:01:33 -0800
commit9c860988ab67312761246b9d55242ee995596c1b (patch)
tree19a9c08f7a523164d5be09f4ffb6cad672b2c8b5
parenteab8812ac5f78fe115f4717beb364b4e1f9cf220 (diff)
downloadvcpkg-9c860988ab67312761246b9d55242ee995596c1b.tar.gz
vcpkg-9c860988ab67312761246b9d55242ee995596c1b.zip
[otl] Fix header file name and version number (#9107)
-rw-r--r--ports/otl/CONTROL2
-rw-r--r--ports/otl/portfile.cmake15
2 files changed, 11 insertions, 6 deletions
diff --git a/ports/otl/CONTROL b/ports/otl/CONTROL
index 668e812af..0f3a4dc20 100644
--- a/ports/otl/CONTROL
+++ b/ports/otl/CONTROL
@@ -1,4 +1,4 @@
Source: otl
-Version: 4.0.448
+Version: 4.0.448-1
Description: Oracle, Odbc and DB2-CLI Template Library
Homepage: http://otl.sourceforge.net/
diff --git a/ports/otl/portfile.cmake b/ports/otl/portfile.cmake
index a5a7a6048..b7f5b6386 100644
--- a/ports/otl/portfile.cmake
+++ b/ports/otl/portfile.cmake
@@ -1,8 +1,8 @@
-include(vcpkg_common_functions)
+set(OTL_VERSION 40448)
vcpkg_download_distfile(ARCHIVE
- URLS "http://otl.sourceforge.net/otlv4_40448.zip"
- FILENAME "otlv4_h2-4.0.448.zip"
+ URLS "http://otl.sourceforge.net/otlv4_${OTL_VERSION}.zip"
+ FILENAME "otl-v${OTL_VERSION}.zip"
SHA512 285bf8bb0fa38ab3030af09a2939fd8e2eaadd14e65d05c6e18f4bc12070ba4e112c41e2d38c546338d51bdf09748b158b1799599f5ed9a7959a7799869b1305
)
@@ -12,5 +12,10 @@ vcpkg_extract_source_archive_ex(
NO_REMOVE_ONE_LEVEL
)
-file(INSTALL ${SOURCE_PATH}/otlv40448.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/otl)
-file(INSTALL ${SOURCE_PATH}/otlv40448.h DESTINATION ${CURRENT_PACKAGES_DIR}/share/otl RENAME copyright)
+file(INSTALL "${SOURCE_PATH}/otlv${OTL_VERSION}.h"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/include/otl"
+ RENAME otlv4.h)
+
+file(INSTALL "${SOURCE_PATH}/otlv${OTL_VERSION}.h"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/share/otl"
+ RENAME copyright)