git.patch 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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 2009-03-04 22:55:27 +0100
  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: gc-utils/doc/Makefile
  13. --- gc-utils/doc/Makefile.orig 2008-08-01 17:39:15 +0200
  14. +++ gc-utils/doc/Makefile 2009-03-04 22:55:27 +0100
  15. @@ -29,17 +29,17 @@
  16. .PHONY: gen install clean uninstall
  17. -gen:: $(manpagesgz)
  18. +gen:: $(manpages)
  19. $(manpagesgz):
  20. $(QUIET_GEN) cat $(@:../build/%.1.gz=%.1) | sed -e 's,\$$VERSION\$$,$(VERSION_SQ),' | gzip -9 > $@
  21. -install: $(manpagesgz)
  22. +install: $(manpages)
  23. @$(MKINSTALLDIRS) $(DESTDIR)$(man1dir)
  24. ifndef V
  25. - @$(foreach f, $(manpagesgz), $(QUIET_INSTALL) $(INSTALL) -m644 $f "$(DESTDIR)$(man1dir)/$(f:../build/%=%)" ;)
  26. + @$(foreach f, $(manpages), $(QUIET_INSTALL) $(INSTALL) -m644 $f "$(DESTDIR)$(man1dir)/$(f:../build/%=%)" ;)
  27. else
  28. - $(foreach f, $(manpagesgz), $(INSTALL) -m644 $f "$(DESTDIR)$(man1dir)/$(f:../build/%=%)" ;)
  29. + $(foreach f, $(manpages), $(INSTALL) -m644 $f "$(DESTDIR)$(man1dir)/$(f:../build/%=%)" ;)
  30. endif
  31. uninstall:
  32. Index: git-1.6.2.2/Documentation/Makefile
  33. --- git-1.6.2.2/Documentation/Makefile.orig 2009-03-04 09:18:50 +0100
  34. +++ git-1.6.2.2/Documentation/Makefile 2009-03-04 22:59:49 +0100
  35. @@ -50,10 +50,10 @@
  36. infodir?=$(prefix)/share/info
  37. MAKEINFO=makeinfo
  38. INSTALL_INFO=install-info
  39. -DOCBOOK2X_TEXI=docbook2x-texi
  40. +DOCBOOK2X_TEXI=docbook2texi
  41. DBLATEX=dblatex
  42. ifndef PERL_PATH
  43. - PERL_PATH = /usr/bin/perl
  44. + PERL_PATH = perl
  45. endif
  46. -include ../config.mak.autogen
  47. Index: git-1.6.2.2/Makefile
  48. --- git-1.6.2.2/Makefile.orig 2009-03-04 09:18:50 +0100
  49. +++ git-1.6.2.2/Makefile 2009-03-04 23:00:34 +0100
  50. @@ -198,7 +198,7 @@
  51. infodir = share/info
  52. gitexecdir = libexec/git-core
  53. sharedir = $(prefix)/share
  54. -template_dir = share/git-core/templates
  55. +template_dir = share/git/core/templates
  56. htmldir = share/doc/git-doc
  57. ifeq ($(prefix),/usr)
  58. sysconfdir = /etc
  59. @@ -844,10 +844,10 @@
  60. else
  61. ifdef CURLDIR
  62. # Try "-Wl,-rpath=$(CURLDIR)/$(lib)" in such a case.
  63. - BASIC_CFLAGS += -I$(CURLDIR)/include
  64. - CURL_LIBCURL = -L$(CURLDIR)/$(lib) $(CC_LD_DYNPATH)$(CURLDIR)/$(lib) -lcurl
  65. + BASIC_CFLAGS += `$(CURLDIR)/bin/curl-config --cflags`
  66. + CURL_LIBCURL = `$(CURLDIR)/bin/curl-config --libs`
  67. else
  68. - CURL_LIBCURL = -lcurl
  69. + CURL_LIBCURL = -lcurl -lssl -lcrypto
  70. endif
  71. BUILTIN_OBJS += builtin-http-fetch.o
  72. EXTLIBS += $(CURL_LIBCURL)
  73. Index: git-1.6.2.2/perl/Makefile.PL
  74. --- git-1.6.2.2/perl/Makefile.PL.orig 2009-03-04 09:18:50 +0100
  75. +++ git-1.6.2.2/perl/Makefile.PL 2009-03-04 22:55:27 +0100
  76. @@ -26,5 +26,6 @@
  77. VERSION_FROM => 'Git.pm',
  78. PM => \%pm,
  79. MAKEFILE => 'perl.mak',
  80. - INSTALLSITEMAN3DIR => '$(SITEPREFIX)/share/man/man3'
  81. + INSTALLDIRS => 'vendor',
  82. + INSTALLSITEMAN3DIR => '$(SITEPREFIX)/man/man3'
  83. );
  84. Index: stgit-0.14.3/setup.py
  85. --- stgit-0.14.3/setup.py.orig 2008-06-09 00:26:03 +0200
  86. +++ stgit-0.14.3/setup.py 2009-03-04 22:55:27 +0100
  87. @@ -61,10 +61,10 @@
  88. long_description = 'Push/pop utility on top of GIT',
  89. scripts = ['stg'],
  90. packages = ['stgit', 'stgit.commands'],
  91. - data_files = [('share/stgit/templates', glob.glob('templates/*.tmpl')),
  92. - ('share/stgit/examples', glob.glob('examples/*.tmpl')),
  93. - ('share/stgit/examples', ['examples/gitconfig']),
  94. - ('share/stgit/contrib', ['contrib/diffcol.sh',
  95. + data_files = [('share/git/stgit/templates', glob.glob('templates/*.tmpl')),
  96. + ('share/git/stgit/examples', glob.glob('examples/*.tmpl')),
  97. + ('share/git/stgit/examples', ['examples/gitconfig']),
  98. + ('share/git/stgit/contrib', ['contrib/diffcol.sh',
  99. 'contrib/stgbashprompt.sh',
  100. 'contrib/stgit-completion.bash']),
  101. ('share/doc/stgit', glob.glob('doc/*.txt'))]
  102. Index: stgit-0.14.3/stg
  103. --- stgit-0.14.3/stg.orig 2006-04-07 23:38:54 +0200
  104. +++ stgit-0.14.3/stg 2009-03-04 22:55:27 +0100
  105. @@ -26,12 +26,13 @@
  106. # It is assumed that the user installed StGIT using the --prefix= option
  107. prefix, bin = os.path.split(sys.path[0])
  108. -if bin == 'bin' and prefix != sys.prefix:
  109. +if bin == 'bin':
  110. sys.prefix = prefix
  111. sys.exec_prefix = prefix
  112. major, minor = sys.version_info[0:2]
  113. - local_path = [os.path.join(prefix, 'lib', 'python'),
  114. + local_path = [os.path.join(prefix, 'lib', 'git'),
  115. + os.path.join(prefix, 'lib', 'python'),
  116. os.path.join(prefix, 'lib', 'python%s.%s' % (major, minor)),
  117. os.path.join(prefix, 'lib', 'python%s.%s' % (major, minor),
  118. 'site-packages')]