Commit 4903b698a97fd4c0ba6273098c97bc5182c84138

Authored by KOLANICH
Committed by Henry Schreiner
1 parent 4b3a6b62

Enhancements in building deb packages: (#399)

* Fixed building deb packages, broken because of lack contact field.
* Added some missing metadata.
* Set the name according to the convention.
CLI11.CPack.Description.txt 0 → 100644
  1 +CLI11 provides all the features you expect in a powerful command line parser, with a beautiful, minimal syntax and no dependencies beyond C++11. It is header only, and comes in a single file form for easy inclusion in projects. It is easy to use for small projects, but powerful enough for complex command line projects, and can be customized for frameworks.
  2 +
CMakeLists.txt
@@ -271,10 +271,12 @@ endif() @@ -271,10 +271,12 @@ endif()
271 # Packaging support 271 # Packaging support
272 # Packaging support 272 # Packaging support
273 set(CPACK_PACKAGE_VENDOR "github.com/CLIUtils/CLI11") 273 set(CPACK_PACKAGE_VENDOR "github.com/CLIUtils/CLI11")
  274 +set(CPACK_PACKAGE_CONTACT "https://${CPACK_PACKAGE_VENDOR}")
274 set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION}) 275 set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
275 set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Command line parser with simple and intuitive interface") 276 set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Command line parser with simple and intuitive interface")
276 set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE") 277 set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
277 set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md") 278 set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
  279 +set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/CLI11.CPack.Description.txt")
278 set(CPACK_SOURCE_GENERATOR "TGZ;ZIP") 280 set(CPACK_SOURCE_GENERATOR "TGZ;ZIP")
279 # CPack collects *everything* except what's listed here. 281 # CPack collects *everything* except what's listed here.
280 set(CPACK_SOURCE_IGNORE_FILES 282 set(CPACK_SOURCE_IGNORE_FILES
@@ -286,5 +288,10 @@ set(CPACK_SOURCE_IGNORE_FILES @@ -286,5 +288,10 @@ set(CPACK_SOURCE_IGNORE_FILES
286 /var 288 /var
287 /Pipfile.*$ 289 /Pipfile.*$
288 ) 290 )
  291 +
  292 +set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
  293 +set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "all")
  294 +set(CPACK_DEBIAN_COMPRESSION_TYPE "xz")
  295 +set(CPACK_DEBIAN_PACKAGE_NAME "libcli11-dev")
289 include(CPack) 296 include(CPack)
290 297
conanfile.py
@@ -30,6 +30,7 @@ class CLI11Conan(ConanFile): @@ -30,6 +30,7 @@ class CLI11Conan(ConanFile):
30 "extern/*", 30 "extern/*",
31 "cmake/*", 31 "cmake/*",
32 "CMakeLists.txt", 32 "CMakeLists.txt",
  33 + "CLI11.CPack.Description.txt",
33 "tests/*", 34 "tests/*",
34 ) 35 )
35 36