[argtable3] Disable examples (#23655)

* Disable examples

* Fix version

* version

* license, https

* version
This commit is contained in:
Thomas1664 2022-03-21 20:56:32 +01:00 committed by GitHub
parent ce5fa83c6e
commit fd8ffd1ac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 30 additions and 13 deletions

View File

@ -9,24 +9,24 @@ vcpkg_extract_source_archive_ex(
ARCHIVE ${ARCHIVE} ARCHIVE ${ARCHIVE}
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS OPTIONS
-DARGTABLE3_ENABLE_CONAN=OFF -DARGTABLE3_ENABLE_CONAN=OFF
-DARGTABLE3_ENABLE_TESTS=OFF -DARGTABLE3_ENABLE_TESTS=OFF
-DARGTABLE3_ENABLE_EXAMPLES=OFF
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
if(EXISTS ${CURRENT_PACKAGES_DIR}/cmake) if(EXISTS "${CURRENT_PACKAGES_DIR}/cmake")
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake) vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
elseif(EXISTS ${CURRENT_PACKAGES_DIR}/lib/cmake/${PORT}) elseif(EXISTS "${CURRENT_PACKAGES_DIR}/lib/cmake/${PORT}")
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT}) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
endif() endif()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,6 +1,18 @@
{ {
"name": "argtable3", "name": "argtable3",
"version-string": "3.2.1", "version": "3.2.1",
"port-version": 1,
"description": "A single-file, ANSI C, command-line parsing library that parses GNU-style command-line options", "description": "A single-file, ANSI C, command-line parsing library that parses GNU-style command-line options",
"homepage": "www.argtable.org" "homepage": "https://www.argtable.org/",
"license": "BSD-2-Clause-FreeBSD",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
} }

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "acbbb26e54e658b8af673a112fb338274275ad6b",
"version": "3.2.1",
"port-version": 1
},
{ {
"git-tree": "0dc3ede1be6316bee6853f84c5f147340be70ee8", "git-tree": "0dc3ede1be6316bee6853f84c5f147340be70ee8",
"version-string": "3.2.1", "version-string": "3.2.1",

View File

@ -150,7 +150,7 @@
}, },
"argtable3": { "argtable3": {
"baseline": "3.2.1", "baseline": "3.2.1",
"port-version": 0 "port-version": 1
}, },
"argumentum": { "argumentum": {
"baseline": "0.3.1", "baseline": "0.3.1",