wxGTK-3.0.5-collision.patch 6.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. Prevent file collisions between multiple installed SLOTs.
  2. - Don't install wxwin.m4. It is installed with app-eselect/eselect-wxwidgets.
  3. - Version the bakefile preset filenames. Unversioned symlinks to these files
  4. are handled by eselect.
  5. - Version wx-config and wxrc. The unversioned forms are wrapper scripts
  6. installed with eselect-wxwidgets.
  7. - Version wxstd.mo and modify AddStdCatalog to use it.
  8. --- a/Makefile.in
  9. +++ b/Makefile.in
  10. @@ -15213,10 +15213,10 @@ COND_wxUSE_REGEX_builtin___LIB_REGEX_p = \
  11. all: $(__wxregex___depname) $(__wxzlib___depname) $(__wxpng___depname) $(__wxjpeg___depname) $(__wxtiff___depname) $(__wxexpat___depname) $(__wxscintilla___depname) $(__monodll___depname) $(__monolib___depname) $(__basedll___depname) $(__baselib___depname) $(__netdll___depname) $(__netlib___depname) $(__coredll___depname) $(__corelib___depname) $(__advdll___depname) $(__advlib___depname) $(__mediadll___depname) $(__medialib___depname) $(__htmldll___depname) $(__htmllib___depname) $(__webviewdll___depname) $(__webviewlib___depname) $(__qadll___depname) $(__qalib___depname) $(__xmldll___depname) $(__xmllib___depname) $(__xrcdll___depname) $(__xrclib___depname) $(__auidll___depname) $(__auilib___depname) $(__ribbondll___depname) $(__ribbonlib___depname) $(__propgriddll___depname) $(__propgridlib___depname) $(__richtextdll___depname) $(__richtextlib___depname) $(__stcdll___depname) $(__stclib___depname) $(__gldll___depname) $(__gllib___depname) $(__sound_sdl___depname) $(__webkit2_ext___depname) $(__wxrc___depname) $(__cocoa_res___depname)
  12. install: $(__install_wxregex___depname) $(__install_wxzlib___depname) $(__install_wxpng___depname) $(__install_wxjpeg___depname) $(__install_wxtiff___depname) $(__install_wxexpat___depname) $(__install_wxscintilla___depname) $(__install_monodll___depname) $(__install_monolib___depname) $(__install_basedll___depname) $(__install_baselib___depname) $(__install_netdll___depname) $(__install_netlib___depname) $(__install_coredll___depname) $(__install_corelib___depname) $(__install_advdll___depname) $(__install_advlib___depname) $(__install_mediadll___depname) $(__install_medialib___depname) $(__install_htmldll___depname) $(__install_htmllib___depname) $(__install_webviewdll___depname) $(__install_webviewlib___depname) $(__install_qadll___depname) $(__install_qalib___depname) $(__install_xmldll___depname) $(__install_xmllib___depname) $(__install_xrcdll___depname) $(__install_xrclib___depname) $(__install_auidll___depname) $(__install_auilib___depname) $(__install_ribbondll___depname) $(__install_ribbonlib___depname) $(__install_propgriddll___depname) $(__install_propgridlib___depname) $(__install_richtextdll___depname) $(__install_richtextlib___depname) $(__install_stcdll___depname) $(__install_stclib___depname) $(__install_gldll___depname) $(__install_gllib___depname) $(__install_sound_sdl___depname) $(__install_webkit2_ext___depname) $(__install_wxrc___depname) install-wxconfig locale_install locale_msw_install $(__cocoa_res_install___depname)
  13. - $(INSTALL_DIR) $(DESTDIR)$(datadir)/aclocal
  14. - (cd $(srcdir) ; $(INSTALL_DATA) wxwin.m4 $(DESTDIR)$(datadir)/aclocal)
  15. $(INSTALL_DIR) $(DESTDIR)$(datadir)/bakefile/presets
  16. - (cd $(srcdir)/build/bakefiles/wxpresets/presets ; $(INSTALL_DATA) wx.bkl wx_unix.bkl wx_win32.bkl wx_xrc.bkl wx_presets.py $(DESTDIR)$(datadir)/bakefile/presets)
  17. + (cd $(srcdir)/build/bakefiles/wxpresets/presets ; \
  18. + for i in wx.bkl wx_unix.bkl wx_win32.bkl wx_xrc.bkl wx_presets.py ; do \
  19. + $(INSTALL_DATA) $$i $(DESTDIR)$(datadir)/bakefile/presets/wx$(WX_RELEASE_NODOT)$${i##wx} ; done)
  20. $(DYLIB_RPATH_INSTALL)
  21. $(INSTALL_DIR) $(DESTDIR)$(libdir)/wx/include/$(TOOLCHAIN_FULLNAME)/wx
  22. for f in setup.h $(RCDEFS_H); do \
  23. @@ -16101,7 +16101,7 @@ install-wxconfig:
  24. $(INSTALL_DIR) $(DESTDIR)$(bindir)
  25. $(INSTALL_DIR) $(DESTDIR)$(libdir)/wx/config
  26. $(INSTALL_SCRIPT) lib/wx/config/$(TOOLCHAIN_FULLNAME) $(DESTDIR)$(libdir)/wx/config
  27. - (cd $(DESTDIR)$(bindir) && rm -f wx-config && $(LN_S) $(libdir)/wx/config/$(TOOLCHAIN_FULLNAME) wx-config || cp -p $(DESTDIR)$(libdir)/wx/config/$(TOOLCHAIN_FULLNAME) wx-config)
  28. + (cd $(DESTDIR)$(bindir) && rm -f wx-config-$(WX_RELEASE) && $(LN_S) $(libdir)/wx/config/$(TOOLCHAIN_FULLNAME) wx-config-$(WX_RELEASE) || cp -p $(DESTDIR)$(libdir)/wx/config/$(TOOLCHAIN_FULLNAME) wx-config-$(WX_RELEASE))
  29. locale_install:
  30. $(INSTALL_DIR) $(DESTDIR)$(datadir)/locale
  31. @@ -16109,7 +16109,7 @@ locale_install:
  32. $(INSTALL_DIR) $(DESTDIR)$(datadir)/locale/$$l ; \
  33. $(INSTALL_DIR) $(DESTDIR)$(datadir)/locale/$$l/LC_MESSAGES ; \
  34. if test -f $(srcdir)/locale/$$l.mo ; then \
  35. - $(INSTALL_DATA) $(srcdir)/locale/$$l.mo $(DESTDIR)$(datadir)/locale/$$l/LC_MESSAGES/wxstd.mo ; \
  36. + $(INSTALL_DATA) $(srcdir)/locale/$$l.mo $(DESTDIR)$(datadir)/locale/$$l/LC_MESSAGES/wxstd$(WX_RELEASE_NODOT).mo ; \
  37. fi ; \
  38. done
  39. --- a/build/bakefiles/wx.bkl
  40. +++ b/build/bakefiles/wx.bkl
  41. @@ -137,7 +137,7 @@
  42. <using module="gettext"/>
  43. <gettext-catalogs id="locale">
  44. <srcdir>$(SRCDIR)/locale</srcdir>
  45. - <catalog-name>wxstd</catalog-name>
  46. + <catalog-name>wxstd$(WX_RELEASE_NODOT)</catalog-name>
  47. <linguas>
  48. ca cs da de el es fi fr hu id it ja nl pl ru sl sv tr uk
  49. zh zh_CN zh_TW
  50. --- a/src/common/translation.cpp
  51. +++ b/src/common/translation.cpp
  52. @@ -1458,7 +1458,7 @@ wxArrayString wxTranslations::GetAvailableTranslations(const wxString& domain) c
  53. bool wxTranslations::AddStdCatalog()
  54. {
  55. - if ( !AddCatalog(wxS("wxstd")) )
  56. + if ( !AddCatalog(wxS("wxstd" wxSTRINGIZE(wxMAJOR_VERSION) wxSTRINGIZE(wxMINOR_VERSION))) )
  57. return false;
  58. // there may be a catalog with toolkit specific overrides, it is not
  59. --- a/utils/wxrc/Makefile.in
  60. +++ b/utils/wxrc/Makefile.in
  61. @@ -125,7 +125,6 @@ distclean: clean
  62. @COND_USE_XRC_1@ rm -f $(DESTDIR)$(bindir)/wxrc$(EXEEXT) $(DESTDIR)$(bindir)/wxrc-$(WX_RELEASE)
  63. @COND_USE_XRC_1@ $(INSTALL_PROGRAM) wxrc$(EXEEXT) $(DESTDIR)$(bindir)
  64. @COND_USE_XRC_1@ mv -f $(DESTDIR)$(bindir)/wxrc$(EXEEXT) $(DESTDIR)$(bindir)/wxrc-$(WX_RELEASE)
  65. -@COND_USE_XRC_1@ (cd $(DESTDIR)$(bindir) && $(LN_S) wxrc-$(WX_RELEASE) wxrc$(EXEEXT))
  66. @COND_USE_XRC_1@uninstall_wxrc:
  67. @COND_USE_XRC_1@ rm -f $(DESTDIR)$(bindir)/wxrc$(EXEEXT)