git.patch 4.8 KB

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