git.patch 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. Index: cogito-0.18.2/Makefile
  2. --- cogito-0.18.2/Makefile.orig 2006-11-17 01:37:24.000000000 +0100
  3. +++ cogito-0.18.2/Makefile 2010-07-22 09:56:28.000000000 +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.000000000 +0200
  14. +++ gc-utils/doc/Makefile 2010-07-22 09:56:28.000000000 +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.7.4/Documentation/Makefile
  33. --- git-1.7.4/Documentation/Makefile.orig 2010-07-21 23:35:25.000000000 +0200
  34. +++ git-1.7.4/Documentation/Makefile 2010-07-22 09:56:28.000000000 +0200
  35. @@ -52,10 +52,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.7.4/Makefile
  48. --- git-1.7.4/Makefile.orig 2010-07-21 23:35:25.000000000 +0200
  49. +++ git-1.7.4/Makefile 2010-07-22 10:04:28.000000000 +0200
  50. @@ -278,10 +278,10 @@
  51. bindir = $(prefix)/$(bindir_relative)
  52. mandir = share/man
  53. infodir = share/info
  54. -gitexecdir = libexec/git-core
  55. +gitexecdir = libexec/git
  56. sharedir = $(prefix)/share
  57. gitwebdir = $(sharedir)/gitweb
  58. -template_dir = share/git-core/templates
  59. +template_dir = share/git/templates
  60. htmldir = share/doc/git-doc
  61. ifeq ($(prefix),/usr)
  62. sysconfdir = /etc
  63. @@ -1195,10 +1195,10 @@
  64. else
  65. ifdef CURLDIR
  66. # Try "-Wl,-rpath=$(CURLDIR)/$(lib)" in such a case.
  67. - BASIC_CFLAGS += -I$(CURLDIR)/include
  68. - CURL_LIBCURL = -L$(CURLDIR)/$(lib) $(CC_LD_DYNPATH)$(CURLDIR)/$(lib) -lcurl
  69. + BASIC_CFLAGS += `$(CURLDIR)/bin/curl-config --cflags`
  70. + CURL_LIBCURL = `$(CURLDIR)/bin/curl-config --libs`
  71. else
  72. - CURL_LIBCURL = -lcurl
  73. + CURL_LIBCURL = -lcurl -lssl -lcrypto
  74. endif
  75. REMOTE_CURL_PRIMARY = git-remote-http$X
  76. REMOTE_CURL_ALIASES = git-remote-https$X git-remote-ftp$X git-remote-ftps$X
  77. @@ -1239,7 +1239,7 @@
  78. OPENSSL_LINK =
  79. endif
  80. ifdef NEEDS_CRYPTO_WITH_SSL
  81. - OPENSSL_LINK += -lcrypto
  82. + OPENSSL_LIBSSL += -lcrypto
  83. endif
  84. else
  85. BASIC_CFLAGS += -DNO_OPENSSL
  86. Index: git-1.7.4/config.mak.in
  87. --- git-1.7.4/config.mak.in.orig 2010-07-21 23:35:25.000000000 +0200
  88. +++ git-1.7.4/config.mak.in 2010-07-22 09:56:28.000000000 +0200
  89. @@ -15,9 +15,9 @@
  90. prefix = @prefix@
  91. exec_prefix = @exec_prefix@
  92. bindir = @bindir@
  93. -gitexecdir = @libexecdir@/git-core
  94. +gitexecdir = @libexecdir@/git
  95. datarootdir = @datarootdir@
  96. -template_dir = @datadir@/git-core/templates
  97. +template_dir = @datadir@/git/templates
  98. mandir=@mandir@
  99. Index: git-1.7.4/perl/Makefile.PL
  100. --- git-1.7.4/perl/Makefile.PL.orig 2010-07-21 23:35:25.000000000 +0200
  101. +++ git-1.7.4/perl/Makefile.PL 2010-07-22 09:56:28.000000000 +0200
  102. @@ -34,5 +34,6 @@
  103. VERSION_FROM => 'Git.pm',
  104. PM => \%pm,
  105. MAKEFILE => 'perl.mak',
  106. - INSTALLSITEMAN3DIR => '$(SITEPREFIX)/share/man/man3'
  107. + INSTALLDIRS => 'vendor',
  108. + INSTALLSITEMAN3DIR => '$(SITEPREFIX)/man/man3'
  109. );
  110. Index: git-1.7.4/templates/Makefile
  111. --- git-1.7.4/templates/Makefile.orig 2010-07-21 23:35:25.000000000 +0200
  112. +++ git-1.7.4/templates/Makefile 2010-07-22 09:56:28.000000000 +0200
  113. @@ -8,7 +8,7 @@
  114. TAR ?= tar
  115. RM ?= rm -f
  116. prefix ?= $(HOME)
  117. -template_instdir ?= $(prefix)/share/git-core/templates
  118. +template_instdir ?= $(prefix)/share/git/templates
  119. # DESTDIR=
  120. ifndef SHELL_PATH
  121. Index: stgit-0.14.3/setup.py
  122. --- stgit-0.14.3/setup.py.orig 2008-06-09 00:26:03.000000000 +0200
  123. +++ stgit-0.14.3/setup.py 2010-07-22 09:56:28.000000000 +0200
  124. @@ -61,10 +61,10 @@
  125. long_description = 'Push/pop utility on top of GIT',
  126. scripts = ['stg'],
  127. packages = ['stgit', 'stgit.commands'],
  128. - data_files = [('share/stgit/templates', glob.glob('templates/*.tmpl')),
  129. - ('share/stgit/examples', glob.glob('examples/*.tmpl')),
  130. - ('share/stgit/examples', ['examples/gitconfig']),
  131. - ('share/stgit/contrib', ['contrib/diffcol.sh',
  132. + data_files = [('share/git/stgit/templates', glob.glob('templates/*.tmpl')),
  133. + ('share/git/stgit/examples', glob.glob('examples/*.tmpl')),
  134. + ('share/git/stgit/examples', ['examples/gitconfig']),
  135. + ('share/git/stgit/contrib', ['contrib/diffcol.sh',
  136. 'contrib/stgbashprompt.sh',
  137. 'contrib/stgit-completion.bash']),
  138. ('share/doc/stgit', glob.glob('doc/*.txt'))]
  139. Index: stgit-0.14.3/stg
  140. --- stgit-0.14.3/stg.orig 2006-04-07 23:38:54.000000000 +0200
  141. +++ stgit-0.14.3/stg 2010-07-22 09:56:28.000000000 +0200
  142. @@ -26,12 +26,13 @@
  143. # It is assumed that the user installed StGIT using the --prefix= option
  144. prefix, bin = os.path.split(sys.path[0])
  145. -if bin == 'bin' and prefix != sys.prefix:
  146. +if bin == 'bin':
  147. sys.prefix = prefix
  148. sys.exec_prefix = prefix
  149. major, minor = sys.version_info[0:2]
  150. - local_path = [os.path.join(prefix, 'lib', 'python'),
  151. + local_path = [os.path.join(prefix, 'lib', 'git'),
  152. + os.path.join(prefix, 'lib', 'python'),
  153. os.path.join(prefix, 'lib', 'python%s.%s' % (major, minor)),
  154. os.path.join(prefix, 'lib', 'python%s.%s' % (major, minor),
  155. 'site-packages')]