aboutsummaryrefslogtreecommitdiff
path: root/ports/rapidxml
diff options
context:
space:
mode:
authorJack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>2020-06-27 06:06:30 +0800
committerGitHub <noreply@github.com>2020-06-26 15:06:30 -0700
commita0e0c57f865937cdda81c21ad9327e606f7dc930 (patch)
tree86b0d97dd67594d12f3283c1c46cc5e690c1a258 /ports/rapidxml
parent81ae2ed94bf51fdd453b383135a809dea3d45cce (diff)
downloadvcpkg-a0e0c57f865937cdda81c21ad9327e606f7dc930.tar.gz
vcpkg-a0e0c57f865937cdda81c21ad9327e606f7dc930.zip
[vcpkg] Add vcpkg_from_sourceforge (1/2) (#11899)
Diffstat (limited to 'ports/rapidxml')
-rw-r--r--ports/rapidxml/CONTROL2
-rw-r--r--ports/rapidxml/portfile.cmake13
2 files changed, 5 insertions, 10 deletions
diff --git a/ports/rapidxml/CONTROL b/ports/rapidxml/CONTROL
index 672fe47d2..0bc175e71 100644
--- a/ports/rapidxml/CONTROL
+++ b/ports/rapidxml/CONTROL
@@ -1,4 +1,4 @@
Source: rapidxml
-Version: 1.13-1
+Version: 1.13-2
Homepage: https://sourceforge.net/projects/rapidxml
Description: RapidXml is an attempt to create the fastest XML parser possible, while retaining useability, portability and reasonable W3C compatibility.
diff --git a/ports/rapidxml/portfile.cmake b/ports/rapidxml/portfile.cmake
index ef0cd959a..b13d1a2bc 100644
--- a/ports/rapidxml/portfile.cmake
+++ b/ports/rapidxml/portfile.cmake
@@ -1,17 +1,12 @@
#header-only library
-include(vcpkg_common_functions)
-
-vcpkg_download_distfile(ARCHIVE
- URLS "https://sourceforge.net/projects/rapidxml/files/rapidxml/rapidxml%201.13/rapidxml-1.13.zip/download"
+vcpkg_from_sourceforge(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO rapidxml/rapidxml
+ REF rapidxml%201.13
FILENAME "rapidxml-1.13.zip"
SHA512 6c10583e6631ccdb0217d0a5381172cb4c1046226de6ef1acf398d85e81d145228e14c3016aefcd7b70a1db8631505b048d8b4f5d4b0dbf1811d2482eefdd265
)
-vcpkg_extract_source_archive_ex(
- OUT_SOURCE_PATH SOURCE_PATH
- ARCHIVE ${ARCHIVE}
-)
-
# Handle copyright
file(COPY ${SOURCE_PATH}/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/rapidxml)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/rapidxml/license.txt ${CURRENT_PACKAGES_DIR}/share/rapidxml/copyright)