aboutsummaryrefslogtreecommitdiff
path: root/ports/argtable2
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/argtable2
parent81ae2ed94bf51fdd453b383135a809dea3d45cce (diff)
downloadvcpkg-a0e0c57f865937cdda81c21ad9327e606f7dc930.tar.gz
vcpkg-a0e0c57f865937cdda81c21ad9327e606f7dc930.zip
[vcpkg] Add vcpkg_from_sourceforge (1/2) (#11899)
Diffstat (limited to 'ports/argtable2')
-rw-r--r--ports/argtable2/CONTROL3
-rw-r--r--ports/argtable2/portfile.cmake18
2 files changed, 8 insertions, 13 deletions
diff --git a/ports/argtable2/CONTROL b/ports/argtable2/CONTROL
index 69ddd4bc3..7a953dd14 100644
--- a/ports/argtable2/CONTROL
+++ b/ports/argtable2/CONTROL
@@ -1,3 +1,4 @@
Source: argtable2
-Version: 2.13-4
+Version: 2.13-5
+Homepage: http://argtable.sourceforge.net
Description: Argtable is an ANSI C library for parsing GNU style command line options with a minimum of fuss.
diff --git a/ports/argtable2/portfile.cmake b/ports/argtable2/portfile.cmake
index c98dfcfb5..05f3f015c 100644
--- a/ports/argtable2/portfile.cmake
+++ b/ports/argtable2/portfile.cmake
@@ -1,18 +1,12 @@
-include(vcpkg_common_functions)
-
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
-vcpkg_download_distfile(ARCHIVE
- URLS "http://prdownloads.sourceforge.net/argtable/argtable2-13.tar.gz"
- FILENAME "argtable-2.13.zip"
- SHA512 3d8303f3ba529e3241d918c0127a16402ece951efb964d14a06a3a7d29a252812ad3c44e96da28798871e9923e73a2cfe7ebc84139c1397817d632cae25c4585
-)
-
-vcpkg_extract_source_archive_ex(
+vcpkg_from_sourceforge(
OUT_SOURCE_PATH SOURCE_PATH
- ARCHIVE ${ARCHIVE}
- PATCHES
- fix-install-dirs.patch
+ REPO argtable/argtable
+ REF argtable-2.13
+ FILENAME "argtable2-13.tar.gz"
+ SHA512 3d8303f3ba529e3241d918c0127a16402ece951efb964d14a06a3a7d29a252812ad3c44e96da28798871e9923e73a2cfe7ebc84139c1397817d632cae25c4585
+ PATCHES fix-install-dirs.patch
)
vcpkg_configure_cmake(