mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-15 04:40:37 +08:00
[getdns] Disable building docs (#24088)
* [getdns] Disable building docs * version
This commit is contained in:
parent
ac4636dd92
commit
fb8bff9336
42
ports/getdns/disable-docs.patch
Normal file
42
ports/getdns/disable-docs.patch
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index 413709da..d3dd03f0 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -1039,9 +1039,9 @@ configure_file(src/version.c.in version.c)
|
||||||
|
|
||||||
|
set(version ${PACKAGE_VERSION})
|
||||||
|
set(date ${API_VERSION})
|
||||||
|
-file(GLOB mans doc/*.3.in)
|
||||||
|
-file(MAKE_DIRECTORY man3)
|
||||||
|
-foreach (man ${mans})
|
||||||
|
+#file(GLOB mans doc/*.3.in)
|
||||||
|
+#file(MAKE_DIRECTORY man3)
|
||||||
|
+if (FALSE)
|
||||||
|
get_filename_component(out ${man} NAME_WE)
|
||||||
|
configure_file(${man} man3/${out}.3 @ONLY)
|
||||||
|
|
||||||
|
@@ -1061,7 +1061,7 @@ foreach (man ${mans})
|
||||||
|
configure_file(${man} man3/${alt}.3 @ONLY)
|
||||||
|
endif ()
|
||||||
|
endforeach()
|
||||||
|
-endforeach()
|
||||||
|
+endif()
|
||||||
|
|
||||||
|
set(prefix ${CMAKE_INSTALL_PREFIX})
|
||||||
|
configure_file(getdns.pc.in getdns.pc @ONLY)
|
||||||
|
@@ -1099,11 +1099,11 @@ if (BUILD_GETDNS_SERVER_MON)
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/getdns DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||||
|
-install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/man3 DESTINATION share/man)
|
||||||
|
+#install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/man3 DESTINATION share/man)
|
||||||
|
|
||||||
|
-set(docdir share/doc/getdns)
|
||||||
|
-install(FILES AUTHORS ChangeLog COPYING LICENSE NEWS README.md DESTINATION ${docdir})
|
||||||
|
-install(FILES spec/index.html DESTINATION ${docdir}/spec)
|
||||||
|
+#set(docdir share/doc/getdns)
|
||||||
|
+#install(FILES AUTHORS ChangeLog COPYING LICENSE NEWS README.md DESTINATION ${docdir})
|
||||||
|
+#install(FILES spec/index.html DESTINATION ${docdir}/spec)
|
||||||
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/getdns.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
||||||
|
|
||||||
|
install(CODE "message(\"\
|
@ -1,13 +0,0 @@
|
|||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
||||||
index 413709d..cbe330b 100644
|
|
||||||
--- a/CMakeLists.txt
|
|
||||||
+++ b/CMakeLists.txt
|
|
||||||
@@ -1102,7 +1102,7 @@ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/getdns DESTINATION ${CMAKE_INSTALL
|
|
||||||
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/man3 DESTINATION share/man)
|
|
||||||
|
|
||||||
set(docdir share/doc/getdns)
|
|
||||||
-install(FILES AUTHORS ChangeLog COPYING LICENSE NEWS README.md DESTINATION ${docdir})
|
|
||||||
+#install(FILES AUTHORS ChangeLog COPYING LICENSE NEWS README.md DESTINATION ${docdir})
|
|
||||||
install(FILES spec/index.html DESTINATION ${docdir}/spec)
|
|
||||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/getdns.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
|
||||||
|
|
@ -13,7 +13,7 @@ vcpkg_download_distfile(ARCHIVE
|
|||||||
vcpkg_extract_source_archive(
|
vcpkg_extract_source_archive(
|
||||||
SOURCE_PATH
|
SOURCE_PATH
|
||||||
ARCHIVE "${ARCHIVE}"
|
ARCHIVE "${ARCHIVE}"
|
||||||
PATCHES disable-install-COPYING-in-config-step.patch
|
PATCHES disable-docs.patch
|
||||||
)
|
)
|
||||||
|
|
||||||
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
||||||
@ -47,6 +47,6 @@ vcpkg_copy_pdbs()
|
|||||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||||
|
|
||||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
vcpkg_fixup_pkgconfig()
|
||||||
|
|
||||||
vcpkg_fixup_pkgconfig()
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "getdns",
|
"name": "getdns",
|
||||||
"version": "1.7.0",
|
"version": "1.7.0",
|
||||||
"port-version": 2,
|
"port-version": 3,
|
||||||
"description": "GetDNS is a modern asynchronous DNS API",
|
"description": "GetDNS is a modern asynchronous DNS API",
|
||||||
"homepage": "https://getdnsapi.net/",
|
"homepage": "https://getdnsapi.net/",
|
||||||
|
"license": "BSD-3-Clause",
|
||||||
"supports": "!uwp",
|
"supports": "!uwp",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"libidn2",
|
"libidn2",
|
||||||
|
@ -2462,7 +2462,7 @@
|
|||||||
},
|
},
|
||||||
"getdns": {
|
"getdns": {
|
||||||
"baseline": "1.7.0",
|
"baseline": "1.7.0",
|
||||||
"port-version": 2
|
"port-version": 3
|
||||||
},
|
},
|
||||||
"getopt": {
|
"getopt": {
|
||||||
"baseline": "0",
|
"baseline": "0",
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "b604fb24c9b81bf4bc5c30e7ca86e52750a86935",
|
||||||
|
"version": "1.7.0",
|
||||||
|
"port-version": 3
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "877301bc39a398579f0f3f13725afcd4bcd797c4",
|
"git-tree": "877301bc39a398579f0f3f13725afcd4bcd797c4",
|
||||||
"version": "1.7.0",
|
"version": "1.7.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user