[getdns] Disable building docs (#24088)

* [getdns] Disable building docs

* version
This commit is contained in:
Thomas1664 2022-04-12 19:36:15 +02:00 committed by GitHub
parent ac4636dd92
commit fb8bff9336
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 53 additions and 18 deletions

View 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(\"\

View File

@ -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)

View File

@ -13,7 +13,7 @@ vcpkg_download_distfile(ARCHIVE
vcpkg_extract_source_archive(
SOURCE_PATH
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)
@ -47,6 +47,6 @@ vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
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)

View File

@ -1,9 +1,10 @@
{
"name": "getdns",
"version": "1.7.0",
"port-version": 2,
"port-version": 3,
"description": "GetDNS is a modern asynchronous DNS API",
"homepage": "https://getdnsapi.net/",
"license": "BSD-3-Clause",
"supports": "!uwp",
"dependencies": [
"libidn2",

View File

@ -2462,7 +2462,7 @@
},
"getdns": {
"baseline": "1.7.0",
"port-version": 2
"port-version": 3
},
"getopt": {
"baseline": "0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "b604fb24c9b81bf4bc5c30e7ca86e52750a86935",
"version": "1.7.0",
"port-version": 3
},
{
"git-tree": "877301bc39a398579f0f3f13725afcd4bcd797c4",
"version": "1.7.0",