singular-3.1.0-gentoo.patch 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. --- kernel/feResource.cc.orig 2010-04-30 10:20:14.000000000 +0000
  2. +++ kernel/feResource.cc 2010-10-11 09:19:01.431179334 +0000
  3. @@ -41,7 +41,7 @@
  4. #define SINGULAR_DEFAULT_DIR "/usr/local/Singular/"S_VERSION1
  5. #endif
  6. #else // ! defined(MAKE_DISTRIBUTION)
  7. -#define SINGULAR_DEFAULT_DIR S_ROOT_DIR
  8. +#define SINGULAR_DEFAULT_DIR "@GENTOO_PORTAGE_EPREFIX@/usr"
  9. #endif // defined(MAKE_DISTRIBUTION)
  10. /*****************************************************************
  11. @@ -73,33 +73,31 @@
  12. {
  13. {"SearchPath", 's', feResPath, NULL,
  14. "$SINGULARPATH;"
  15. - "%b/LIB;"
  16. - "%b/MOD;"
  17. + "%r/share/singular/MOD;"
  18. "%r/LIB;"
  19. - "%r/../LIB;"
  20. + "%r/share/singular/LIB;"
  21. "%d/LIB;"
  22. - "%d/../LIB"
  23. ""},
  24. - {"Singular", 'S', feResBinary,"SINGULAR_EXECUTABLE", "%d/"S_UNAME"/Singular",(char *)""},
  25. - {"BinDir", 'b', feResDir, "SINGULAR_BIN_DIR", "%d/"S_UNAME, (char *)""},
  26. - {"RootDir", 'r', feResDir, "SINGULAR_ROOT_DIR", "%b/..", (char *)""},
  27. + {"Singular", 'S', feResBinary,"SINGULAR_EXECUTABLE", "%d/bin/Singular",(char *)""},
  28. + {"BinDir", 'b', feResDir, "SINGULAR_BIN_DIR", "%d/bin", (char *)""},
  29. + {"RootDir", 'r', feResDir, "SINGULAR_ROOT_DIR", "%d", (char *)""},
  30. {"DefaultDir",'d', feResDir, "SINGULAR_DEFAULT_DIR", SINGULAR_DEFAULT_DIR, (char *)""},
  31. - {"InfoFile", 'i', feResFile, "SINGULAR_INFO_FILE", "%r/info/singular.hlp", (char *)""},
  32. - {"IdxFile", 'x', feResFile, "SINGULAR_IDX_FILE", "%r/doc/singular.idx", (char *)""},
  33. - {"HtmlDir", 'h', feResDir, "SINGULAR_HTML_DIR", "%r/html", (char *)""},
  34. + {"InfoFile", 'i', feResFile, "SINGULAR_INFO_FILE", "%r/share/info/singular.info.bz2", (char *)""},
  35. + {"IdxFile", 'x', feResFile, "SINGULAR_IDX_FILE", "%r/share/singular/singular.idx", (char *)""},
  36. + {"HtmlDir", 'h', feResDir, "SINGULAR_HTML_DIR", "%r/share/doc/PFSUBST/html", (char *)""},
  37. #ifdef ix86_Win
  38. {"HtmlHelpFile",'C', feResFile, "SINGULAR_CHM_FILE", "%r/doc/Manual.chm", (char *)""},
  39. #endif
  40. {"ManualUrl", 'u', feResUrl, "SINGULAR_URL", "http://www.singular.uni-kl.de/Manual/"S_VERSION1, (char *)""},
  41. - {"ExDir", 'm', feResDir, "SINGULAR_EXAMPLES_DIR","%r/examples", (char *)""},
  42. + {"ExDir", 'm', feResDir, "SINGULAR_EXAMPLES_DIR","%r/share/doc/PFSUBST/examples", (char *)""},
  43. {"Path", 'p', feResPath, NULL, "%b;$PATH", (char *)""},
  44. #ifdef ESINGULAR
  45. {"emacs", 'E', feResBinary,"ESINGULAR_EMACS", "%b/emacs", (char *)""},
  46. {"xemacs", 'A', feResBinary,"ESINGULAR_EMACS", "%b/xemacs", (char *)""},
  47. {"SingularEmacs",'M', feResBinary,"ESINGULAR_SINGULAR", "%b/Singular", (char *)""},
  48. - {"EmacsLoad", 'l', feResFile, "ESINGULAR_EMACS_LOAD", "%e/.emacs-singular", (char *)""},
  49. - {"EmacsDir", 'e', feResDir, "ESINGULAR_EMACS_DIR", "%r/emacs", (char *)""},
  50. + {"EmacsLoad", 'l', feResFile, "ESINGULAR_EMACS_LOAD", "%r/share/emacs/site-lisp/singular/.emacs-singular", (char *)""},
  51. + {"EmacsDir", 'e', feResDir, "ESINGULAR_EMACS_DIR", "%r/share/emacs/site-lisp/singular", (char *)""},
  52. #elif defined(TSINGULAR)
  53. {"SingularXterm",'M', feResBinary,"TSINGULAR_SINGULAR", "%b/Singular", (char *)""},
  54. #ifdef ix86_Win
  55. @@ -108,7 +106,7 @@
  56. {"xterm", 'X', feResBinary,"XTERM", "%b/xterm", (char *)""},
  57. #endif
  58. #else
  59. - {"EmacsDir", 'e', feResDir, "SINGULAR_EMACS_DIR", "%r/emacs", (char *)""},
  60. + {"EmacsDir", 'e', feResDir, "SINGULAR_EMACS_DIR", "%r/share/emacs/site-lisp/singular", (char *)""},
  61. #endif
  62. {NULL, 0, feResUndef, NULL, NULL, NULL}, // must be the last record
  63. };
  64. --- kernel/mod_raw.cc.orig 2009-11-02 10:12:22.000000000 +0000
  65. +++ kernel/mod_raw.cc 2010-10-11 09:19:01.432179264 +0000
  66. @@ -109,11 +109,11 @@
  67. void* dynl_open_binary_warn(const char* binary_name, const char* msg)
  68. {
  69. void* handle = NULL;
  70. - const char* bin_dir = feGetResource('b');
  71. + const char* bin_dir = feGetResource('r');
  72. if (bin_dir != NULL)
  73. {
  74. char path_name[MAXPATHLEN];
  75. - sprintf(path_name, "%s%s%s.%s", bin_dir, DIR_SEPP, binary_name,
  76. + sprintf(path_name, "%s%s%s%s.%s", bin_dir,"/lib/singular", DIR_SEPP, binary_name,
  77. DL_TAIL);
  78. handle = dynl_open(path_name);
  79. if (handle == NULL && ! warn_handle)