File: debianization.patch

package info (click to toggle)
wxmaxima 26.01.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 32,436 kB
  • sloc: cpp: 77,544; xml: 10,497; ansic: 3,651; lisp: 1,900; sh: 28; makefile: 27
file content (131 lines) | stat: -rw-r--r-- 5,283 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
Description: debianization
 Meant to maintain a minimal debian/rules, to fix warnings,
 to address Debian specific stuff in general.
Origin: debian
Forwarded: not-needed
Author: Jerome Benoit <calculus@rezozer.net>
Last-Update: 2026-02-12

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -161,17 +161,17 @@
 include(${wxWidgets_USE_FILE})
 
 
-# Get the git version, if available.
-find_package(Git)
-if(Git_FOUND)
-    if(EXISTS "${CMAKE_SOURCE_DIR}/.git")
-        execute_process(COMMAND ${GIT_EXECUTABLE} rev-parse --short HEAD
-                        WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
-                        OUTPUT_VARIABLE WXMAXIMA_GIT_SHORT_HASH
-                        OUTPUT_STRIP_TRAILING_WHITESPACE)
-        message(STATUS "Building from git development tree, revision: ${WXMAXIMA_GIT_SHORT_HASH}")
-    endif()
-endif()
+### Get the git version, if available.
+##find_package(Git)
+##if(Git_FOUND)
+##    if(EXISTS "${CMAKE_SOURCE_DIR}/.git")
+##        execute_process(COMMAND ${GIT_EXECUTABLE} rev-parse --short HEAD
+##                        WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
+##                        OUTPUT_VARIABLE WXMAXIMA_GIT_SHORT_HASH
+##                        OUTPUT_STRIP_TRAILING_WHITESPACE)
+##        message(STATUS "Building from git development tree, revision: ${WXMAXIMA_GIT_SHORT_HASH}")
+##    endif()
+##endif()
 
 
 
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -310,28 +310,28 @@
     install(FILES "${CMAKE_CURRENT_BINARY_DIR}/wxmaxima.exe.manifest" DESTINATION bin)
 endif()
 
-# Build Packages
-if(WIN32)
-    set(CPACK_GENERATOR "ZIP;NSIS")
-    set(CPACK_NSIS_DEFINES "ManifestDPIAware true")
-    include(InstallRequiredSystemLibraries)
-    install(FILES ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS} DESTINATION bin)
-elseif(APPLE)
-    # If we have generated an .apk bundle we can package this in a DMG image
-    set(CPACK_GENERATOR "DragNDrop")
-    set(CPACK_BINARY_DragNDrop "ON")
-else()
-    set(CPACK_GENERATOR "DEB;TGZ;TBZ2")
-    # build RPMs only if rpmbuild is installed
-    find_program(RPMBUILD_EXECUTABLE rpmbuild)
-    if(NOT RPMBUILD_EXECUTABLE)
-	message(STATUS "rpmbuild not found - no RPM package will be build with: cmake --build . -- package")
-    else()
-	message(STATUS "rpmbuild found - RPM package can be build with: cmake --build . -- package")
-	list(APPEND CPACK_GENERATOR "RPM")
-	list(APPEND CPACK_SOURCE_GENERATOR "RPM")
-    endif()
-endif()
+### Build Packages
+##if(WIN32)
+##    set(CPACK_GENERATOR "ZIP;NSIS")
+##    set(CPACK_NSIS_DEFINES "ManifestDPIAware true")
+##    include(InstallRequiredSystemLibraries)
+##    install(FILES ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS} DESTINATION bin)
+##elseif(APPLE)
+##    # If we have generated an .apk bundle we can package this in a DMG image
+##    set(CPACK_GENERATOR "DragNDrop")
+##    set(CPACK_BINARY_DragNDrop "ON")
+##else()
+##    set(CPACK_GENERATOR "DEB;TGZ;TBZ2")
+##    # build RPMs only if rpmbuild is installed
+##    find_program(RPMBUILD_EXECUTABLE rpmbuild)
+##    if(NOT RPMBUILD_EXECUTABLE)
+##	message(STATUS "rpmbuild not found - no RPM package will be build with: cmake --build . -- package")
+##    else()
+##	message(STATUS "rpmbuild found - RPM package can be build with: cmake --build . -- package")
+##	list(APPEND CPACK_GENERATOR "RPM")
+##	list(APPEND CPACK_SOURCE_GENERATOR "RPM")
+##    endif()
+##endif()
 
 set(CPACK_PACKAGE_VENDOR "The wxMaxima Team")
 set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README.md")
--- a/info/CMakeLists.txt
+++ b/info/CMakeLists.txt
@@ -39,7 +39,7 @@
 			COMMENT "Generating ${FILEBASENAME}.html")
 		add_custom_target(build_${FILEBASENAME}.html DEPENDS ${FILEBASENAME}.html)
 		add_dependencies(html build_${FILEBASENAME}.html)
-		install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${FILEBASENAME}.html" DESTINATION share/doc/wxmaxima OPTIONAL)
+		install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${FILEBASENAME}.html" DESTINATION share/doc/wxmaxima/html OPTIONAL)
 	endfunction()
 
 	function(generate_wxmaxima_documentation_pdf FILEBASENAME)
@@ -119,18 +119,18 @@
 		endforeach()
 	else()
 		foreach(BASENAME ${BASENAMES})
-			install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${BASENAME}.html DESTINATION share/doc/wxmaxima OPTIONAL)
+			install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${BASENAME}.html DESTINATION share/doc/wxmaxima/html OPTIONAL)
 		endforeach()
 	endif()
 else()
     message(STATUS "Pandoc not found. Documentation can not be converted from Markdown. Included HTML documentation will be installed.")
 	file(GLOB WXMAXIMA_HTML_HELP "${CMAKE_CURRENT_SOURCE_DIR}/*.html")
-	install(FILES ${WXMAXIMA_HTML_HELP} DESTINATION share/doc/wxmaxima)
+	install(FILES ${WXMAXIMA_HTML_HELP} DESTINATION share/doc/wxmaxima/html)
 	file(COPY ${WXMAXIMA_HTML_HELP} DESTINATION .)
 endif()
 
 file(GLOB HTMLHELP_ADDITIONAL_FILES *.png *.svg)
-install(FILES ${HTMLHELP_ADDITIONAL_FILES} DESTINATION share/doc/wxmaxima)
+install(FILES ${HTMLHELP_ADDITIONAL_FILES} DESTINATION share/doc/wxmaxima/html)
 file(COPY ${HTMLHELP_ADDITIONAL_FILES} DESTINATION .)
 
 
@@ -146,4 +146,4 @@
   endforeach()
 endif()
 
-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/wxmaxima.css" DESTINATION share/doc/wxmaxima)
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/wxmaxima.css" DESTINATION share/doc/wxmaxima/html)