git.patch 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. Index: cogito-0.18.2/Makefile
  2. --- cogito-0.18.2/Makefile.orig 2006-11-17 01:37:24 +0100
  3. +++ cogito-0.18.2/Makefile 2007-10-05 09:53:14 +0200
  4. @@ -2,8 +2,8 @@
  5. prefix="$(HOME)"
  6. bindir=$(prefix)/bin
  7. -libdir=$(prefix)/lib/cogito
  8. -sharedir=$(prefix)/share/cogito
  9. +libdir=$(prefix)/lib/git/cogito
  10. +sharedir=$(prefix)/share/git/cogito
  11. INSTALL?=install
  12. Index: git-1.5.3.6/Makefile
  13. --- git-1.5.3.6/Makefile.orig 2007-10-03 21:44:53 +0200
  14. +++ git-1.5.3.6/Makefile 2007-10-05 09:53:14 +0200
  15. @@ -145,7 +145,7 @@
  16. bindir = $(prefix)/bin
  17. gitexecdir = $(bindir)
  18. sharedir = $(prefix)/share
  19. -template_dir = $(sharedir)/git-core/templates
  20. +template_dir = $(sharedir)/git/core/templates
  21. ifeq ($(prefix),/usr)
  22. sysconfdir = /etc
  23. else
  24. @@ -507,10 +507,10 @@
  25. ifndef NO_CURL
  26. ifdef CURLDIR
  27. # Try "-Wl,-rpath=$(CURLDIR)/$(lib)" in such a case.
  28. - BASIC_CFLAGS += -I$(CURLDIR)/include
  29. - CURL_LIBCURL = -L$(CURLDIR)/$(lib) $(CC_LD_DYNPATH)$(CURLDIR)/$(lib) -lcurl
  30. + BASIC_CFLAGS += `$(CURLDIR)/bin/curl-config --cflags`
  31. + CURL_LIBCURL = `$(CURLDIR)/bin/curl-config --libs`
  32. else
  33. - CURL_LIBCURL = -lcurl
  34. + CURL_LIBCURL = -lcurl -lssl -lcrypto
  35. endif
  36. PROGRAMS += git-http-fetch$X
  37. curl_check := $(shell (echo 070908; curl-config --vernum) | sort -r | sed -ne 2p)
  38. Index: git-1.5.3.6/perl/Makefile.PL
  39. --- git-1.5.3.6/perl/Makefile.PL.orig 2007-10-03 21:44:53 +0200
  40. +++ git-1.5.3.6/perl/Makefile.PL 2007-10-05 09:56:53 +0200
  41. @@ -29,6 +29,6 @@
  42. VERSION_FROM => 'Git.pm',
  43. PM => \%pm,
  44. MAKEFILE => 'perl.mak',
  45. - INSTALLSITEMAN3DIR => '$(SITEPREFIX)/share/man/man3',
  46. + INSTALLSITEMAN3DIR => '$(SITEPREFIX)/man/man3',
  47. %extra
  48. );
  49. Index: stgit-0.13/setup.py
  50. --- stgit-0.13/setup.py.orig 2007-02-13 23:27:01 +0100
  51. +++ stgit-0.13/setup.py 2007-10-05 09:53:14 +0200
  52. @@ -15,10 +15,10 @@
  53. long_description = 'Push/pop utility on top of GIT',
  54. scripts = ['stg'],
  55. packages = ['stgit', 'stgit.commands'],
  56. - data_files = [('share/stgit/templates', glob.glob('templates/*.tmpl')),
  57. - ('share/stgit/examples', glob.glob('examples/*.tmpl')),
  58. - ('share/stgit/examples', ['examples/gitconfig']),
  59. - ('share/stgit/contrib', ['contrib/diffcol.sh',
  60. + data_files = [('share/git/stgit/templates', glob.glob('templates/*.tmpl')),
  61. + ('share/git/stgit/examples', glob.glob('examples/*.tmpl')),
  62. + ('share/git/stgit/examples', ['examples/gitconfig']),
  63. + ('share/git/stgit/contrib', ['contrib/diffcol.sh',
  64. 'contrib/stgbashprompt.sh',
  65. 'contrib/stgit-completion.bash']),
  66. ('share/doc/stgit', glob.glob('doc/*.txt'))]
  67. Index: stgit-0.13/stg
  68. --- stgit-0.13/stg.orig 2006-04-07 23:38:54 +0200
  69. +++ stgit-0.13/stg 2007-10-05 09:53:14 +0200
  70. @@ -26,12 +26,13 @@
  71. # It is assumed that the user installed StGIT using the --prefix= option
  72. prefix, bin = os.path.split(sys.path[0])
  73. -if bin == 'bin' and prefix != sys.prefix:
  74. +if bin == 'bin':
  75. sys.prefix = prefix
  76. sys.exec_prefix = prefix
  77. major, minor = sys.version_info[0:2]
  78. - local_path = [os.path.join(prefix, 'lib', 'python'),
  79. + local_path = [os.path.join(prefix, 'lib', 'git'),
  80. + os.path.join(prefix, 'lib', 'python'),
  81. os.path.join(prefix, 'lib', 'python%s.%s' % (major, minor)),
  82. os.path.join(prefix, 'lib', 'python%s.%s' % (major, minor),
  83. 'site-packages')]