mirror of
https://git.freebsd.org/ports.git
synced 2025-06-14 17:20:29 -04:00
Port changes: * Remove the overriding patch of boost::asio: now EINPROGRESS is handled properly, before it was not. * Remove the overriding patch of websocketpp: added an equivalent patch into cadabra2 source, it is easier this way. Before such function didn't exist in the websocketpp interface. * Add the patch for pull/82: missing #include / removal of unnecessary prefix calculation. * Change cmake -> cmake:outsource. * Switch to python3 because it links to python3 anyway, even though it claims to support python2. * Add DOS2UNIX_FILES for cmake/version.cmake for one patched file. * Remove post-patch: added a similar patch under files/ * Remove post-install: stripping is now done by the project. * Remove post-install-GUI-on: icons are now installed by the project. Testing: * Runs fine, shows correct results for examples from the online manual.
31 lines
1.7 KiB
Text
31 lines
1.7 KiB
Text
--- frontend/gtkmm/CMakeLists.txt.orig 2018-03-30 09:33:27 UTC
|
|
+++ frontend/gtkmm/CMakeLists.txt
|
|
@@ -126,11 +126,11 @@ install(FILES ${PROJECT_SOURCE_DIR}/.
|
|
# there anyway.
|
|
# - gtk-update-icon-cache is broken and only works half of the time.
|
|
|
|
-if(APPLE)
|
|
+#if(APPLE)
|
|
set(ICON_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
|
-else()
|
|
- set(ICON_PREFIX "/usr")
|
|
-endif()
|
|
+#else()
|
|
+# set(ICON_PREFIX "/usr")
|
|
+#endif()
|
|
|
|
#set(ICON_THEME ${ICON_PREFIX}/share/icons/hicolor/index.theme)
|
|
#if(EXISTS "${ICON_THEME}")
|
|
@@ -144,9 +144,9 @@ install(FILES ${PROJECT_SOURCE_DIR}/.
|
|
install(FILES ${PROJECT_SOURCE_DIR}/../../images/256x256/cadabra2-gtk.png DESTINATION ${ICON_PREFIX}/share/icons/hicolor/256x256/apps)
|
|
install(FILES ${PROJECT_SOURCE_DIR}/../../images/cadabra2-gtk.svg DESTINATION ${ICON_PREFIX}/share/icons/hicolor/scalable/apps)
|
|
install(FILES ${PROJECT_SOURCE_DIR}/../../config/cadabra2-gtk.desktop DESTINATION ${ICON_PREFIX}/share/applications)
|
|
-install(CODE "execute_process(COMMAND touch ${ICON_PREFIX}/share/icons/hicolor/icon-theme.cache)")
|
|
-install(CODE "execute_process(COMMAND gtk-update-icon-cache-3.0 ${ICON_PREFIX}/share/icons/hicolor)")
|
|
-install(CODE "execute_process(COMMAND chmod go+r ${ICON_PREFIX}/share/icons/hicolor/icon-theme.cache)")
|
|
+#install(CODE "execute_process(COMMAND touch ${ICON_PREFIX}/share/icons/hicolor/icon-theme.cache)")
|
|
+#install(CODE "execute_process(COMMAND gtk-update-icon-cache-3.0 ${ICON_PREFIX}/share/icons/hicolor)")
|
|
+#install(CODE "execute_process(COMMAND chmod go+r ${ICON_PREFIX}/share/icons/hicolor/icon-theme.cache)")
|
|
|
|
# Install shared libraries on Windows.
|
|
# https://stackoverflow.com/questions/32662215/how-do-you-install-gtk-3-0-on-windows
|