Files
gentoo/net-proxy/shadowsocks-libev/files/shadowsocks-libev-3.3.6-doc.patch
Yixun Lan abab34be75 net-proxy/shadowsocks-libev: doc and Werror fix
guard documentation file installation with USE=doc
drop hard-coded -Werror flag

Closes: https://bugs.gentoo.org/981256
Closes: https://bugs.gentoo.org/981257
Signed-off-by: Yixun Lan <dlan@gentoo.org>
2026-08-23 01:10:10 +00:00

37 lines
1.1 KiB
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 15f0551..901d12e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -36,6 +36,7 @@ endif ()
message(STATUS "Running cmake version ${CMAKE_VERSION}")
+option(WITH_DOCS "build with Documentations." ON)
option(WITH_STATIC "build with static libraries." ON)
option(WITH_EMBEDDED_SRC "build with embedded libcork, libipset, and libbloom source." ON)
option(ENABLE_CONNMARKTOS "Enable saved connmark to IP TOS QoS feature" OFF)
@@ -177,7 +178,10 @@ target_link_libraries(ipset cork bloom)
endif ()
add_subdirectory(src)
+
+if(WITH_DOCS)
add_subdirectory(doc)
+endif()
# Testing
include(CTest)
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 9abd455..76a1993 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -84,7 +84,7 @@ if (NOT WITH_DOC_HTML)
set_target_properties(doc-html PROPERTIES EXCLUDE_FROM_ALL TRUE)
else ()
install(DIRECTORY ${PROJECT_BINARY_DIR}/html/
- DESTINATION share/doc/${PROJECT_NAME})
+ DESTINATION share/doc/${PROJECT_NAME}-${PROJECT_VERSION})
endif ()
# This is required for custom command