From e9ddf167b19fb63dd4defaddcfe4cae2f6c223ca Mon Sep 17 00:00:00 2001 From: Eric Mittelette Date: Tue, 8 Nov 2016 13:32:17 -0800 Subject: decimal-for-cpp --- ports/decimal-for-cpp/CONTROL | 4 ++++ ports/decimal-for-cpp/portfile.cmake | 29 +++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 ports/decimal-for-cpp/CONTROL create mode 100644 ports/decimal-for-cpp/portfile.cmake (limited to 'ports/decimal-for-cpp') diff --git a/ports/decimal-for-cpp/CONTROL b/ports/decimal-for-cpp/CONTROL new file mode 100644 index 000000000..40699840c --- /dev/null +++ b/ports/decimal-for-cpp/CONTROL @@ -0,0 +1,4 @@ +Source: decimalforcpp +Version:1.12 +Description: Decimal data type support, for COBOL-like fixed-point operations on currency values. + diff --git a/ports/decimal-for-cpp/portfile.cmake b/ports/decimal-for-cpp/portfile.cmake new file mode 100644 index 000000000..68ce555f8 --- /dev/null +++ b/ports/decimal-for-cpp/portfile.cmake @@ -0,0 +1,29 @@ +# Common Ambient Variables: +# VCPKG_ROOT_DIR = +# TARGET_TRIPLET is the current triplet (x86-windows, etc) +# PORT is the current port name (zlib, etc) +# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT} +# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET} +# + +#header-only library + +include(vcpkg_common_functions) + +vcpkg_download_distfile(HEADER + URLS "https://github.com/vpiotr/decimal_for_cpp/blob/master/include/decimal.h" + FILENAME "decimal.h" + SHA512 46e29d76311df74422d240a4fd36e2689a9b58758da0415ef2a19d1703e35476403671f5801ce8665a8802511cec89e44a8868e144cee19986c2881f52ca6965 +) + +vcpkg_download_distfile(LICENSE + URLS "https://github.com/vpiotr/decimal_for_cpp/blob/master/doc/license.txt" + FILENAME "License.txt" + SHA512 8edf6bb6929008e69f4e17727ded4964f6e036ef66c2909c7070b75b14791023a9c7303ac6e61c0cc746649175ff96c0477aa7593c66b64a5f999f37a1cf7a58 +) + + +file(COPY ${HEADER} DESTINATION ${CURRENT_PACKAGES_DIR}/include ) +file(COPY ${LICENSE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/decimal-for-cpp ) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/decimal-for-cpp/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/decimal-for-cpp/copyright) + -- cgit v1.2.3 From 048b4533d04974ac516e956100246ce68ad9cb8e Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Tue, 8 Nov 2016 16:05:53 -0800 Subject: [decimal-for-cpp] Minor portfile fixes --- ports/decimal-for-cpp/CONTROL | 2 +- ports/decimal-for-cpp/portfile.cmake | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'ports/decimal-for-cpp') diff --git a/ports/decimal-for-cpp/CONTROL b/ports/decimal-for-cpp/CONTROL index 40699840c..72f0355f8 100644 --- a/ports/decimal-for-cpp/CONTROL +++ b/ports/decimal-for-cpp/CONTROL @@ -1,4 +1,4 @@ -Source: decimalforcpp +Source: decimal-for-cpp Version:1.12 Description: Decimal data type support, for COBOL-like fixed-point operations on currency values. diff --git a/ports/decimal-for-cpp/portfile.cmake b/ports/decimal-for-cpp/portfile.cmake index 68ce555f8..3ad2aee46 100644 --- a/ports/decimal-for-cpp/portfile.cmake +++ b/ports/decimal-for-cpp/portfile.cmake @@ -11,19 +11,19 @@ include(vcpkg_common_functions) vcpkg_download_distfile(HEADER - URLS "https://github.com/vpiotr/decimal_for_cpp/blob/master/include/decimal.h" + URLS "https://raw.githubusercontent.com/vpiotr/decimal_for_cpp/98287a0f0f48aaed2cc146d7682396ae08ed0aea/include/decimal.h" FILENAME "decimal.h" - SHA512 46e29d76311df74422d240a4fd36e2689a9b58758da0415ef2a19d1703e35476403671f5801ce8665a8802511cec89e44a8868e144cee19986c2881f52ca6965 + SHA512 9de1208760c74ff1e6b1a74957dabae33981d2f5d0ec402b48f27f4dc24c950ea69219a9ee9831959a8669a9c7908093d833a227924f1955cbe444a9f43c5f3a ) vcpkg_download_distfile(LICENSE - URLS "https://github.com/vpiotr/decimal_for_cpp/blob/master/doc/license.txt" - FILENAME "License.txt" - SHA512 8edf6bb6929008e69f4e17727ded4964f6e036ef66c2909c7070b75b14791023a9c7303ac6e61c0cc746649175ff96c0477aa7593c66b64a5f999f37a1cf7a58 + URLS "https://raw.githubusercontent.com/vpiotr/decimal_for_cpp/98287a0f0f48aaed2cc146d7682396ae08ed0aea/doc/license.txt" + FILENAME "decimal-for-cpp-License.txt" + SHA512 0b2be46b07a0536404887fae9665d6532ffd4cbfefbec42926c14e055f538c1f3a73b6e61ab7fa1584e634ad99304133d18855197df0a914cbb835674cc67677 ) -file(COPY ${HEADER} DESTINATION ${CURRENT_PACKAGES_DIR}/include ) -file(COPY ${LICENSE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/decimal-for-cpp ) -file(RENAME ${CURRENT_PACKAGES_DIR}/share/decimal-for-cpp/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/decimal-for-cpp/copyright) +file(COPY ${HEADER} DESTINATION ${CURRENT_PACKAGES_DIR}/include) +file(COPY ${LICENSE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/decimal-for-cpp) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/decimal-for-cpp/decimal-for-cpp-License.txt ${CURRENT_PACKAGES_DIR}/share/decimal-for-cpp/copyright) -- cgit v1.2.3