1 |
commit: d1a70e2b1e6972e6ad713a3bf28036daa67f30ec |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 3 19:18:37 2016 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 3 19:18:37 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1a70e2b |
7 |
|
8 |
dev-vcs/git: Bump to version 2.10.0 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
dev-vcs/git/Manifest | 3 + |
14 |
dev-vcs/git/files/git-2.10.0-optional-cvs.patch | 456 ++++++++++++++++ |
15 |
dev-vcs/git/git-2.10.0.ebuild | 682 ++++++++++++++++++++++++ |
16 |
3 files changed, 1141 insertions(+) |
17 |
|
18 |
diff --git a/dev-vcs/git/Manifest b/dev-vcs/git/Manifest |
19 |
index 73858de..1535d0b 100644 |
20 |
--- a/dev-vcs/git/Manifest |
21 |
+++ b/dev-vcs/git/Manifest |
22 |
@@ -1,3 +1,4 @@ |
23 |
+DIST git-2.10.0.tar.xz 4096264 SHA256 c73364ac00ae85ffc6cfb12ca2700bb0edf30f63262be97be4039be594ff29e7 SHA512 69d031f55141c2cb2cfce69ac808d1765c1502e10867e8f6e8fb2d9ac5e2fa5773f3ba4a8f4b59e313c715e757c97b3cd3f1b13da45c7bc3958bf53026f0718e WHIRLPOOL 7d5aaa0cef6df32941ed05959816dd66613ec100f534dbc877d4a9000813d2c9880634922bf1b4ace3a7a0e1ad09337fc7612caa8b582f75474eb79b4d4d9127 |
24 |
DIST git-2.4.11.tar.xz 3695028 SHA256 ebca2cf93b7200d6d7b9982e3e9857f0b433a05e51338a600c799e97919118e3 SHA512 34c60fa67e336a4c807a5f49e26083442acc52781b0adbd3f9d96b9594c0688686b30ca3a152621047489d59beb65ad99089a2f02cc589d6e3b36a79db1388fe WHIRLPOOL 75e6b3090560e7aef4fcb382413a7432ecb63880a4139466a64dd06d4777441afd34c208a59dba9a01144f0c2f3a3763a267672f9f7155867b462b4c0bf09cba |
25 |
DIST git-2.5.5.tar.xz 3747448 SHA256 82976a05dd85d44405ec9758040dd190507494fa2af322bd2c97163024ce1e82 SHA512 edf223df92298a3d25865140b4a2c2194840b21f96c13e07ac35940d6afa759f766e4d36ad2e2428ba913c4949b4f76283475a6b7aa1cc774523c793cb5794f1 WHIRLPOOL 3ab15f8a0bc54d3865537bc70c9a0d6e3d8f30b9ba8c68c2dadbd77575f892f55e0e010b9ac89af03ca228f034abbccac53a619865c1e8044f61dedef8713501 |
26 |
DIST git-2.6.6.tar.xz 3822260 SHA256 8d53410d60f9c36b0f34c125076634d068c8d812f4143fa10b7130cd7acf7ec2 SHA512 5c77f83f34296f85d1b1f1bf00a59664bced9db7ad222606471d8400772441775b82fdbfae637aa11006164c4fc9912b8218aa2f6f7812112048902ecf5f0000 WHIRLPOOL ffc6d10b166b3d0ff1e51fe44a6809877b2d4a9679fc519b7648897621ea02616e330ae46693a2f306286b40c0b41589b20bc93e240b87d535ac5b9b84b28738 |
27 |
@@ -7,6 +8,7 @@ DIST git-2.7.4.tar.xz 3909636 SHA256 dee574defbe05ec7356a0842ddbda51315926f2fa7e |
28 |
DIST git-2.8.4.tar.xz 3982836 SHA256 120e9a32a1858871dea34165622ec7a63f27887b93093c8d72a18bcf89fe1657 SHA512 92c3b4437d1160cc23612b4df62646b80a1245d4ed482c3543ba19511f754a34d0185d5dd5d16f2a42bc3097bebc47ece0670c45a1c53ca38cbfbff7d43de87b WHIRLPOOL 8be86b1cba51ef549d56014c090dd5844019c2c5ccf15865dce86ed7f28f5628621450d784f23ba03f79282bc87e5a8ee0fad161a157785cf6c5716f8aa1e767 |
29 |
DIST git-2.9.2.tar.xz 4019916 SHA256 f8f546648f77f246f1302e3ec4037c81db25af1f02931597148c5bf61fac2db5 SHA512 4a6e2ac7680b8896dc9c58a3fabad2201c800dbca26f0c117892b9d6149b02ff0335d313037f50771932cea4971913e3d9b9e79f22e075b3ed77a1a69ddc11ac WHIRLPOOL ebd538f1877a362c7bbd0eb98e3c3d9d96b81e75cdb4f587d9aa5be09d66fd61e7b2e400465f64d238fd912a2a3b4be1829a95ba21ec09115be5362347d30878 |
30 |
DIST git-2.9.3.tar.xz 4025288 SHA256 9f1473350c1792310b51af03a9cb5cce841f68202f835b20d46312a30232fa63 SHA512 7152d075b705c92c813e977558b1a6d8d1c9e6ac01b41ee052bcd40c056f08c6fdb030ef0995822c6d22ce44b739935d89026aeae35f8b93fb569773c4b005bb WHIRLPOOL 0117dad19c4a74dcc7a7963dd2ffa60f5a1e10890e4f233b1c92cce87c07e3da270a65464ed152fc20ffbea34f074342a9153f7a328cae2d850b763b3a196c3e |
31 |
+DIST git-htmldocs-2.10.0.tar.xz 1064292 SHA256 b51b7c51c9c50450b233c6461f1987424e8096f05261fc1284bc3c0a8f8da559 SHA512 035de46a751641e5c533d506905951d162b6170c4b0a6361ead49b106c40190520539ed64e44d98236ee70b464b2bfa0239af9fc3c6c75c92b5f287c9d932308 WHIRLPOOL fa2f516504ae79dbbc7fbe962877bbbf5dea8d2ab846dc5d06bd1e6f13fc8ea09d6d523f80c340e164207eaaf7d52f926330be6ac723323311a6fc638f91e53e |
32 |
DIST git-htmldocs-2.4.11.tar.xz 997132 SHA256 2764af41b319f4d11b29832de4bd05392f2887d9a1d3c56c864fb081920eac97 SHA512 d5d2abae9cc303fe8ebeb72ae7078d44db94610d549ca03afffcbbef8b611efda662677423d9ff97a0c7a2384bbd4c3468b01a2ecd7b68f4fdc89e62ad688eb4 WHIRLPOOL 66cd4fc754be7c103ca58a030d4799ba988792419a426e85a39805172e6329ec617b3561696dc74be36801cca0b17a26102a194a1a58d6c7b9ee1ab17752c4a6 |
33 |
DIST git-htmldocs-2.5.5.tar.xz 1010216 SHA256 15de2f234cf419496399f7ad396709544d62537488a8e5200e6e34b0f1a685e7 SHA512 265ddf3835352f85eb2e2ee983eb8aaf37bc7b151968866bdb8b9bb6782cdb72dbd1fefe5d7f694a6825954d49bcf4c799e8bcb4e3b25e3f228f6f97f041fd9b WHIRLPOOL 90da44c0bdb6f9ff428d1673289e612936ed5f26110cd13d155c8cbef8433b13bd8b15cea88f967224a699e4c3a6ac41d70b67be1b25c4d35989879626eb10ad |
34 |
DIST git-htmldocs-2.6.6.tar.xz 1021856 SHA256 897fb0bc7e2eb67a4b582c963f337fda3a6ad2b23bca55e27f23f7d15bad7c5d SHA512 85dcd8514e1ba2cb591512a0003aedf25eafbf185ba1eed01f8adfd9eb467d29b17108e6b087183004004ab17301316d403cd6762619ac2a030a565ea5c776b3 WHIRLPOOL 3cd964f1d0164db98e97e0097813a620911adadd9c50837e23a5ca79eb0f2d988aa68317b5b79fa7b052900564657c36d050e75841a1018d5ff12e1299c01dc6 |
35 |
@@ -15,6 +17,7 @@ DIST git-htmldocs-2.7.4.tar.xz 1032428 SHA256 3fae21e2e68104621ea1405be73192b46b |
36 |
DIST git-htmldocs-2.8.4.tar.xz 1042260 SHA256 78135be591e3a68d1030a76e343d59622e5e40f6990667f4385a01d9dafe9bbd SHA512 5da40db4421f94a969b83bfa0ea6e5ccf3fce8c2085ea2271a2eb3e1b4fc496c36ae8790207cd1814ff747b7633bb27fd53bb9c012f866ea1e7f1cc8065379dd WHIRLPOOL 4f80041ad4ef8b178a6b91313680433a7e07b0ecb15354304436d70880063b2f9cdd875fcd95684a817272d05a57485e1863e9e06c3788eddf0e5f031279ea9a |
37 |
DIST git-htmldocs-2.9.2.tar.xz 1053284 SHA256 6dddb003184f2ab68aa6b54e02e1e55c82c774fe6e74602e9dbefdf06826fb1c SHA512 ab13c3d8339de894084aab1a3db08f4571c22b052f7792235dfcb4ed55ff98ecad84125ec2a083bb0a3df9b8eca0e40fb7085951fbdf10d888eebc0bfbf91a17 WHIRLPOOL 6350a8867aa7f14c0ea70c71c099d8880fc3494152a9bb708a608dd969cb526e1ce015a197a5bc9f27604ad4da7ed035ca9a80381e2c9bfda932ac42c49585dd |
38 |
DIST git-htmldocs-2.9.3.tar.xz 1055980 SHA256 abfa0e160c062a36956beaa5e8bf4d6e2db93f235c892f94681bd6f1feb71865 SHA512 4ce1c00767d485ca4ebec9ea5a3d001d4395eb44c2c82caec36b18dd1df26cbbd5d458d9c2b83b54d572d830eb0bccf2916f28863a96384cd3d6fcb741f1b97f WHIRLPOOL b3c16dd25da7309c4c8302008eda147e113e025081dfa447c6de629ae68fe5369e391c402fe3cdbfba2187040559609082edae5469238af68a1e17bd805acddf |
39 |
+DIST git-manpages-2.10.0.tar.xz 394924 SHA256 3e17997d10ba18f4ad4dcddf58f7175ee78da1514b5afca3a6f198d957d822f9 SHA512 76529a4e14d92f3e80072af38335d7304a57ae42367bd99dc807231538ea67cef242546025176b3174e5b6a5e29a0da6fd598e6ec0f1c35a52b44ef0f296045e WHIRLPOOL 1da8c6fbfa801e280c0d7cb45055ed8a41619d102155d503565a9ed75249cfb18274f94c26e0992433a01b37d6e77873ab006b7ca4727401e89b2dca3f2831b0 |
40 |
DIST git-manpages-2.4.11.tar.xz 373956 SHA256 0a1fff7650e635339f92985a47198f5f6664eda1c233c3cf48e92f22c3735db2 SHA512 78226baf1c8be28c456a84b06f403af9b918cd3e46218917cce18b3b9ce494600bf00014b818ca0dff9f675aca8b17cd9f7893c7063e218d719a9567e81d9040 WHIRLPOOL f8883ca7d327c378937f62287cbb515b5271cb8aeda18d32135f1c7ea71c9f39282fe55b191476f046de4815a994e4f6f98696d9353f0bfcca7994101398786c |
41 |
DIST git-manpages-2.5.5.tar.xz 378304 SHA256 41b66002436add0781618764c3f0c8222bac7d8a636f1d7e2994480b22369930 SHA512 bebcc04fa54080316d01f1bd1ba7b91a1712e6c6a6f95306d9f079cf5858cf0fb2ccea24c606153e9adb99e956c5dbae5a5c7a7a0ed8c643efdf5a5db599cda1 WHIRLPOOL e72873d3f1a404a311e643d89cf65996d884e794e468417272cdda494ef621f0ebf875faa17433e443fcece54608c59a3c094372101bf4342fadcf8395dabce8 |
42 |
DIST git-manpages-2.6.6.tar.xz 381588 SHA256 0f64c1db015e3c74e56eef646a9fdd456cf043cae54714f404ad9b35ddb537a0 SHA512 bd8573f58bd988f78978041b88643e6d0af99ae0df4be6ec80db7de6e042970a23d9a153e84ddb8ffc538724b1482ff6dac7594462e28073067f54d040fdddfd WHIRLPOOL 3e8af6df1b96e3211c5799ace846dab331f30c1133c1d093e344b4576d8f588631e29187909b600112a9f7b42a0de63f56cec953e0d162cc49c2b6efeef0db53 |
43 |
|
44 |
diff --git a/dev-vcs/git/files/git-2.10.0-optional-cvs.patch b/dev-vcs/git/files/git-2.10.0-optional-cvs.patch |
45 |
new file mode 100644 |
46 |
index 00000000..d14aeff |
47 |
--- /dev/null |
48 |
+++ b/dev-vcs/git/files/git-2.10.0-optional-cvs.patch |
49 |
@@ -0,0 +1,456 @@ |
50 |
+From ef6d24be825b2d1d9666c1fc64ce5351d572b3f4 Mon Sep 17 00:00:00 2001 |
51 |
+From: Robin Johnson <robbat2@g.o> |
52 |
+Date: Sat, 3 Sep 2016 21:02:10 +0200 |
53 |
+Subject: [PATCH] Makefile: Add NO_CVS define to disable all CVS interface |
54 |
+ utilities |
55 |
+ |
56 |
+Forward-ported from 1.7.12 to current git.git v1.8.4 |
57 |
+Forward-ported from v1.8.4 to v1.8.5.1 |
58 |
+Forward-ported from v1.8.5.3 to v1.9.0_rc3 |
59 |
+Forward-ported from 1.9.0_rc3 to current git.git v2.0.0_rc0 |
60 |
+Forward-ported from v2.0.0_rc0 to v2.0.0 |
61 |
+Forward-ported from v2.0.0 to v2.2.2 |
62 |
+Forward-ported from v2.2.2 to v2.8.4 |
63 |
+Forward-ported from v2.8.4 to v2.10.0 |
64 |
+ |
65 |
+Signed-off-by: Lars Wendler <polynomial-c@g.o> |
66 |
+--- |
67 |
+ Makefile | 51 ++++++++++++++++++++++++++++---------- |
68 |
+ t/t9200-git-cvsexportcommit.sh | 5 ++++ |
69 |
+ t/t9400-git-cvsserver-server.sh | 8 +++++- |
70 |
+ t/t9401-git-cvsserver-crlf.sh | 15 +++++++---- |
71 |
+ t/t9600-cvsimport.sh | 41 +++++++++++++++++++----------- |
72 |
+ t/t9601-cvsimport-vendor-branch.sh | 11 ++++++++ |
73 |
+ t/t9602-cvsimport-branches-tags.sh | 11 ++++++++ |
74 |
+ t/t9603-cvsimport-patchsets.sh | 11 ++++++++ |
75 |
+ t/test-lib.sh | 1 + |
76 |
+ 9 files changed, 120 insertions(+), 34 deletions(-) |
77 |
+ |
78 |
+diff --git a/Makefile b/Makefile |
79 |
+index d96ecb7..ced6b12 100644 |
80 |
+--- a/Makefile |
81 |
++++ b/Makefile |
82 |
+@@ -267,6 +267,8 @@ all:: |
83 |
+ # Define SANE_TEXT_GREP to "-a" if you use recent versions of GNU grep |
84 |
+ # and egrep that are pickier when their input contains non-ASCII data. |
85 |
+ # |
86 |
++# Define NO_CVS if you do not want any CVS interface utilities. |
87 |
++# |
88 |
+ # The TCL_PATH variable governs the location of the Tcl interpreter |
89 |
+ # used to optimize git-gui for your system. Only used if NO_TCLTK |
90 |
+ # is not set. Defaults to the bare 'tclsh'. |
91 |
+@@ -484,6 +486,7 @@ LIB_OBJS = |
92 |
+ PROGRAM_OBJS = |
93 |
+ PROGRAMS = |
94 |
+ SCRIPT_PERL = |
95 |
++SCRIPT_PERL_CVS = |
96 |
+ SCRIPT_PYTHON = |
97 |
+ SCRIPT_SH = |
98 |
+ SCRIPT_LIB = |
99 |
+@@ -521,13 +524,14 @@ SCRIPT_LIB += git-sh-i18n |
100 |
+ SCRIPT_PERL += git-add--interactive.perl |
101 |
+ SCRIPT_PERL += git-difftool.perl |
102 |
+ SCRIPT_PERL += git-archimport.perl |
103 |
+-SCRIPT_PERL += git-cvsexportcommit.perl |
104 |
+-SCRIPT_PERL += git-cvsimport.perl |
105 |
+-SCRIPT_PERL += git-cvsserver.perl |
106 |
+ SCRIPT_PERL += git-relink.perl |
107 |
+ SCRIPT_PERL += git-send-email.perl |
108 |
+ SCRIPT_PERL += git-svn.perl |
109 |
+ |
110 |
++SCRIPT_PERL_CVS += git-cvsexportcommit.perl |
111 |
++SCRIPT_PERL_CVS += git-cvsimport.perl |
112 |
++SCRIPT_PERL_CVS += git-cvsserver.perl |
113 |
++ |
114 |
+ SCRIPT_PYTHON += git-p4.py |
115 |
+ |
116 |
+ NO_INSTALL += git-remote-testgit |
117 |
+@@ -535,24 +539,26 @@ NO_INSTALL += git-remote-testgit |
118 |
+ # Generated files for scripts |
119 |
+ SCRIPT_SH_GEN = $(patsubst %.sh,%,$(SCRIPT_SH)) |
120 |
+ SCRIPT_PERL_GEN = $(patsubst %.perl,%,$(SCRIPT_PERL)) |
121 |
++SCRIPT_PERL_CVS_GEN = $(patsubst %.perl,%,$(SCRIPT_PERL_CVS)) |
122 |
+ SCRIPT_PYTHON_GEN = $(patsubst %.py,%,$(SCRIPT_PYTHON)) |
123 |
+ |
124 |
+ SCRIPT_SH_INS = $(filter-out $(NO_INSTALL),$(SCRIPT_SH_GEN)) |
125 |
+ SCRIPT_PERL_INS = $(filter-out $(NO_INSTALL),$(SCRIPT_PERL_GEN)) |
126 |
++SCRIPT_PERL_CVS_INS = $(filter-out $(NO_INSTALL),$(SCRIPT_PERL_CVS_GEN)) |
127 |
+ SCRIPT_PYTHON_INS = $(filter-out $(NO_INSTALL),$(SCRIPT_PYTHON_GEN)) |
128 |
+ |
129 |
+ # Individual rules to allow e.g. |
130 |
+ # "make -C ../.. SCRIPT_PERL=contrib/foo/bar.perl build-perl-script" |
131 |
+ # from subdirectories like contrib/*/ |
132 |
+ .PHONY: build-perl-script build-sh-script build-python-script |
133 |
+-build-perl-script: $(SCRIPT_PERL_GEN) |
134 |
++build-perl-script: $(SCRIPT_PERL_GEN) $(SCRIPT_PERL_CVS_GEN) |
135 |
+ build-sh-script: $(SCRIPT_SH_GEN) |
136 |
+ build-python-script: $(SCRIPT_PYTHON_GEN) |
137 |
+ |
138 |
+ .PHONY: install-perl-script install-sh-script install-python-script |
139 |
+ install-sh-script: $(SCRIPT_SH_INS) |
140 |
+ $(INSTALL) $^ '$(DESTDIR_SQ)$(gitexec_instdir_SQ)' |
141 |
+-install-perl-script: $(SCRIPT_PERL_INS) |
142 |
++install-perl-script: $(SCRIPT_PERL_INS) $(SCRIPT_PERL_CVS_INS) |
143 |
+ $(INSTALL) $^ '$(DESTDIR_SQ)$(gitexec_instdir_SQ)' |
144 |
+ install-python-script: $(SCRIPT_PYTHON_INS) |
145 |
+ $(INSTALL) $^ '$(DESTDIR_SQ)$(gitexec_instdir_SQ)' |
146 |
+@@ -561,12 +567,13 @@ install-python-script: $(SCRIPT_PYTHON_INS) |
147 |
+ clean-sh-script: |
148 |
+ $(RM) $(SCRIPT_SH_GEN) |
149 |
+ clean-perl-script: |
150 |
+- $(RM) $(SCRIPT_PERL_GEN) |
151 |
++ $(RM) $(SCRIPT_PERL_GEN) $(SCRIPT_PERL_CVS_GEN) |
152 |
+ clean-python-script: |
153 |
+ $(RM) $(SCRIPT_PYTHON_GEN) |
154 |
+ |
155 |
+ SCRIPTS = $(SCRIPT_SH_INS) \ |
156 |
+ $(SCRIPT_PERL_INS) \ |
157 |
++ $(SCRIPT_PERL_CVS_INS) \ |
158 |
+ $(SCRIPT_PYTHON_INS) \ |
159 |
+ git-instaweb |
160 |
+ |
161 |
+@@ -1811,10 +1818,24 @@ git.res: git.rc GIT-VERSION-FILE |
162 |
+ -DGIT_VERSION="\\\"$(GIT_VERSION)\\\"" $< -o $@ |
163 |
+ |
164 |
+ # This makes sure we depend on the NO_PERL setting itself. |
165 |
+-$(SCRIPT_PERL_GEN): GIT-BUILD-OPTIONS |
166 |
++$(SCRIPT_PERL_GEN) $(SCRIPT_PERL_CVS_GEN): GIT-BUILD-OPTIONS |
167 |
++ |
168 |
++_SCRIPT_PERL_GEN = |
169 |
++_SCRIPT_PERL_NOGEN = |
170 |
+ |
171 |
+ ifndef NO_PERL |
172 |
+-$(SCRIPT_PERL_GEN): perl/perl.mak |
173 |
++ |
174 |
++_SCRIPT_PERL_GEN = $(SCRIPT_PERL_GEN) |
175 |
++ |
176 |
++ifndef NO_CVS |
177 |
++_SCRIPT_PERL_GEN += $(SCRIPT_PERL_CVS_GEN) |
178 |
++else |
179 |
++_SCRIPT_PERL_NOGEN += $(SCRIPT_PERL_CVS_GEN) |
180 |
++_REASON = NO_CVS |
181 |
++_REASON_CONTENT = $(NO_CVS) |
182 |
++endif # NO_CVS |
183 |
++ |
184 |
++$(_SCRIPT_PERL_GEN): perl/perl.mak |
185 |
+ |
186 |
+ perl/perl.mak: perl/PM.stamp |
187 |
+ |
188 |
+@@ -1827,7 +1848,7 @@ perl/perl.mak: GIT-CFLAGS GIT-PREFIX perl/Makefile perl/Makefile.PL |
189 |
+ $(QUIET_SUBDIR0)perl $(QUIET_SUBDIR1) PERL_PATH='$(PERL_PATH_SQ)' prefix='$(prefix_SQ)' $(@F) |
190 |
+ |
191 |
+ PERL_DEFINES = $(PERL_PATH_SQ):$(PERLLIB_EXTRA_SQ) |
192 |
+-$(SCRIPT_PERL_GEN): % : %.perl perl/perl.mak GIT-PERL-DEFINES GIT-VERSION-FILE |
193 |
++$(_SCRIPT_PERL_GEN): % : %.perl perl/perl.mak GIT-PERL-DEFINES GIT-VERSION-FILE |
194 |
+ $(QUIET_GEN)$(RM) $@ $@+ && \ |
195 |
+ INSTLIBDIR=`MAKEFLAGS= $(MAKE) -C perl -s --no-print-directory instlibdir` && \ |
196 |
+ INSTLIBDIR_EXTRA='$(PERLLIB_EXTRA_SQ)' && \ |
197 |
+@@ -1861,14 +1882,18 @@ git-instaweb: git-instaweb.sh GIT-SCRIPT-DEFINES |
198 |
+ chmod +x $@+ && \ |
199 |
+ mv $@+ $@ |
200 |
+ else # NO_PERL |
201 |
+-$(SCRIPT_PERL_GEN) git-instaweb: % : unimplemented.sh |
202 |
++_SCRIPT_PERL_NOGEN += $(SCRIPT_PERL_GEN) $(SCRIPT_PERL_CVS_GEN) git-instaweb |
203 |
++_REASON = NO_PERL |
204 |
++_REASON_CONTENT = $(NO_PERL) |
205 |
++endif # NO_PERL |
206 |
++ |
207 |
++$(_SCRIPT_PERL_NOGEN): % : unimplemented.sh |
208 |
+ $(QUIET_GEN)$(RM) $@ $@+ && \ |
209 |
+ sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \ |
210 |
+- -e 's|@@REASON@@|NO_PERL=$(NO_PERL)|g' \ |
211 |
++ -e 's|@@REASON@@|$(_REASON)=$(_REASON_CONTENT)|g' \ |
212 |
+ unimplemented.sh >$@+ && \ |
213 |
+ chmod +x $@+ && \ |
214 |
+ mv $@+ $@ |
215 |
+-endif # NO_PERL |
216 |
+ |
217 |
+ # This makes sure we depend on the NO_PYTHON setting itself. |
218 |
+ $(SCRIPT_PYTHON_GEN): GIT-BUILD-OPTIONS |
219 |
+@@ -2103,7 +2128,7 @@ LOCALIZED_SH = $(SCRIPT_SH) |
220 |
+ LOCALIZED_SH += git-parse-remote.sh |
221 |
+ LOCALIZED_SH += git-rebase--interactive.sh |
222 |
+ LOCALIZED_SH += git-sh-setup.sh |
223 |
+-LOCALIZED_PERL = $(SCRIPT_PERL) |
224 |
++LOCALIZED_PERL = $(SCRIPT_PERL) $(SCRIPT_PERL_CVS) |
225 |
+ |
226 |
+ ifdef XGETTEXT_INCLUDE_TESTS |
227 |
+ LOCALIZED_C += t/t0200/test.c |
228 |
+diff --git a/t/t9200-git-cvsexportcommit.sh b/t/t9200-git-cvsexportcommit.sh |
229 |
+index bb879a5..17be197 100755 |
230 |
+--- a/t/t9200-git-cvsexportcommit.sh |
231 |
++++ b/t/t9200-git-cvsexportcommit.sh |
232 |
+@@ -11,6 +11,11 @@ if ! test_have_prereq PERL; then |
233 |
+ test_done |
234 |
+ fi |
235 |
+ |
236 |
++if ! test_have_prereq CVS; then |
237 |
++ skip_all='skipping git cvsexportcommit tests, cvs not available' |
238 |
++ test_done |
239 |
++fi |
240 |
++ |
241 |
+ cvs >/dev/null 2>&1 |
242 |
+ if test $? -ne 1 |
243 |
+ then |
244 |
+diff --git a/t/t9400-git-cvsserver-server.sh b/t/t9400-git-cvsserver-server.sh |
245 |
+index 432c61d..6907b3f 100755 |
246 |
+--- a/t/t9400-git-cvsserver-server.sh |
247 |
++++ b/t/t9400-git-cvsserver-server.sh |
248 |
+@@ -11,9 +11,15 @@ cvs CLI client via git-cvsserver server' |
249 |
+ . ./test-lib.sh |
250 |
+ |
251 |
+ if ! test_have_prereq PERL; then |
252 |
+- skip_all='skipping git cvsserver tests, perl not available' |
253 |
++ skip_all='skipping git-cvsserver tests, perl not available' |
254 |
+ test_done |
255 |
+ fi |
256 |
++ |
257 |
++if ! test_have_prereq CVS; then |
258 |
++ skip_all='skipping git-cvsserver tests, cvs not available' |
259 |
++ test_done |
260 |
++fi |
261 |
++ |
262 |
+ cvs >/dev/null 2>&1 |
263 |
+ if test $? -ne 1 |
264 |
+ then |
265 |
+diff --git a/t/t9401-git-cvsserver-crlf.sh b/t/t9401-git-cvsserver-crlf.sh |
266 |
+index 84787ee..eecba88 100755 |
267 |
+--- a/t/t9401-git-cvsserver-crlf.sh |
268 |
++++ b/t/t9401-git-cvsserver-crlf.sh |
269 |
+@@ -57,15 +57,20 @@ check_status_options() { |
270 |
+ return $stat |
271 |
+ } |
272 |
+ |
273 |
+-cvs >/dev/null 2>&1 |
274 |
+-if test $? -ne 1 |
275 |
++if ! test_have_prereq PERL |
276 |
+ then |
277 |
+- skip_all='skipping git-cvsserver tests, cvs not found' |
278 |
++ skip_all='skipping git-cvsserver tests, perl not available' |
279 |
+ test_done |
280 |
+ fi |
281 |
+-if ! test_have_prereq PERL |
282 |
++if ! test_have_prereq CVS |
283 |
+ then |
284 |
+- skip_all='skipping git-cvsserver tests, perl not available' |
285 |
++ skip_all='skipping git-cvsserver tests, cvs not available' |
286 |
++ test_done |
287 |
++fi |
288 |
++cvs >/dev/null 2>&1 |
289 |
++if test $? -ne 1 |
290 |
++then |
291 |
++ skip_all='skipping git-cvsserver tests, cvs not found' |
292 |
+ test_done |
293 |
+ fi |
294 |
+ perl -e 'use DBI; use DBD::SQLite' >/dev/null 2>&1 || { |
295 |
+diff --git a/t/t9600-cvsimport.sh b/t/t9600-cvsimport.sh |
296 |
+index 4c384ff..d601f32 100755 |
297 |
+--- a/t/t9600-cvsimport.sh |
298 |
++++ b/t/t9600-cvsimport.sh |
299 |
+@@ -3,14 +3,25 @@ |
300 |
+ test_description='git cvsimport basic tests' |
301 |
+ . ./lib-cvs.sh |
302 |
+ |
303 |
+-test_expect_success PERL 'setup cvsroot environment' ' |
304 |
++if ! test_have_prereq PERL |
305 |
++then |
306 |
++ skip_all='skipping git cvsimport tests, perl not available' |
307 |
++ test_done |
308 |
++fi |
309 |
++if ! test_have_prereq CVS |
310 |
++then |
311 |
++ skip_all='skipping git cvsimport tests, cvs not available' |
312 |
++ test_done |
313 |
++fi |
314 |
++ |
315 |
++test_expect_success 'setup cvsroot environment' ' |
316 |
+ CVSROOT=$(pwd)/cvsroot && |
317 |
+ export CVSROOT |
318 |
+ ' |
319 |
+ |
320 |
+-test_expect_success PERL 'setup cvsroot' '$CVS init' |
321 |
++test_expect_success 'setup cvsroot' '$CVS init' |
322 |
+ |
323 |
+-test_expect_success PERL 'setup a cvs module' ' |
324 |
++test_expect_success 'setup a cvs module' ' |
325 |
+ |
326 |
+ mkdir "$CVSROOT/module" && |
327 |
+ $CVS co -d module-cvs module && |
328 |
+@@ -42,23 +53,23 @@ EOF |
329 |
+ ) |
330 |
+ ' |
331 |
+ |
332 |
+-test_expect_success PERL 'import a trivial module' ' |
333 |
++test_expect_success 'import a trivial module' ' |
334 |
+ |
335 |
+ git cvsimport -a -R -z 0 -C module-git module && |
336 |
+ test_cmp module-cvs/o_fortuna module-git/o_fortuna |
337 |
+ |
338 |
+ ' |
339 |
+ |
340 |
+-test_expect_success PERL 'pack refs' '(cd module-git && git gc)' |
341 |
++test_expect_success 'pack refs' '(cd module-git && git gc)' |
342 |
+ |
343 |
+-test_expect_success PERL 'initial import has correct .git/cvs-revisions' ' |
344 |
++test_expect_success 'initial import has correct .git/cvs-revisions' ' |
345 |
+ |
346 |
+ (cd module-git && |
347 |
+ git log --format="o_fortuna 1.1 %H" -1) > expected && |
348 |
+ test_cmp expected module-git/.git/cvs-revisions |
349 |
+ ' |
350 |
+ |
351 |
+-test_expect_success PERL 'update cvs module' ' |
352 |
++test_expect_success 'update cvs module' ' |
353 |
+ (cd module-cvs && |
354 |
+ cat <<EOF >o_fortuna && |
355 |
+ O Fortune, |
356 |
+@@ -86,7 +97,7 @@ EOF |
357 |
+ ) |
358 |
+ ' |
359 |
+ |
360 |
+-test_expect_success PERL 'update git module' ' |
361 |
++test_expect_success 'update git module' ' |
362 |
+ |
363 |
+ (cd module-git && |
364 |
+ git config cvsimport.trackRevisions true && |
365 |
+@@ -97,7 +108,7 @@ test_expect_success PERL 'update git module' ' |
366 |
+ |
367 |
+ ' |
368 |
+ |
369 |
+-test_expect_success PERL 'update has correct .git/cvs-revisions' ' |
370 |
++test_expect_success 'update has correct .git/cvs-revisions' ' |
371 |
+ |
372 |
+ (cd module-git && |
373 |
+ git log --format="o_fortuna 1.1 %H" -1 HEAD^ && |
374 |
+@@ -105,7 +116,7 @@ test_expect_success PERL 'update has correct .git/cvs-revisions' ' |
375 |
+ test_cmp expected module-git/.git/cvs-revisions |
376 |
+ ' |
377 |
+ |
378 |
+-test_expect_success PERL 'update cvs module' ' |
379 |
++test_expect_success 'update cvs module' ' |
380 |
+ |
381 |
+ (cd module-cvs && |
382 |
+ echo 1 >tick && |
383 |
+@@ -114,7 +125,7 @@ test_expect_success PERL 'update cvs module' ' |
384 |
+ ) |
385 |
+ ' |
386 |
+ |
387 |
+-test_expect_success PERL 'cvsimport.module config works' ' |
388 |
++test_expect_success 'cvsimport.module config works' ' |
389 |
+ |
390 |
+ (cd module-git && |
391 |
+ git config cvsimport.module module && |
392 |
+@@ -126,7 +137,7 @@ test_expect_success PERL 'cvsimport.module config works' ' |
393 |
+ |
394 |
+ ' |
395 |
+ |
396 |
+-test_expect_success PERL 'second update has correct .git/cvs-revisions' ' |
397 |
++test_expect_success 'second update has correct .git/cvs-revisions' ' |
398 |
+ |
399 |
+ (cd module-git && |
400 |
+ git log --format="o_fortuna 1.1 %H" -1 HEAD^^ && |
401 |
+@@ -135,7 +146,7 @@ test_expect_success PERL 'second update has correct .git/cvs-revisions' ' |
402 |
+ test_cmp expected module-git/.git/cvs-revisions |
403 |
+ ' |
404 |
+ |
405 |
+-test_expect_success PERL 'import from a CVS working tree' ' |
406 |
++test_expect_success 'import from a CVS working tree' ' |
407 |
+ |
408 |
+ $CVS co -d import-from-wt module && |
409 |
+ (cd import-from-wt && |
410 |
+@@ -148,12 +159,12 @@ test_expect_success PERL 'import from a CVS working tree' ' |
411 |
+ |
412 |
+ ' |
413 |
+ |
414 |
+-test_expect_success PERL 'no .git/cvs-revisions created by default' ' |
415 |
++test_expect_success 'no .git/cvs-revisions created by default' ' |
416 |
+ |
417 |
+ ! test -e import-from-wt/.git/cvs-revisions |
418 |
+ |
419 |
+ ' |
420 |
+ |
421 |
+-test_expect_success PERL 'test entire HEAD' 'test_cmp_branch_tree master' |
422 |
++test_expect_success 'test entire HEAD' 'test_cmp_branch_tree master' |
423 |
+ |
424 |
+ test_done |
425 |
+diff --git a/t/t9601-cvsimport-vendor-branch.sh b/t/t9601-cvsimport-vendor-branch.sh |
426 |
+index 827d39f..d730a41 100755 |
427 |
+--- a/t/t9601-cvsimport-vendor-branch.sh |
428 |
++++ b/t/t9601-cvsimport-vendor-branch.sh |
429 |
+@@ -34,6 +34,17 @@ |
430 |
+ test_description='git cvsimport handling of vendor branches' |
431 |
+ . ./lib-cvs.sh |
432 |
+ |
433 |
++if ! test_have_prereq PERL |
434 |
++then |
435 |
++ skip_all='skipping git cvsimport tests, perl not available' |
436 |
++ test_done |
437 |
++fi |
438 |
++if ! test_have_prereq CVS |
439 |
++then |
440 |
++ skip_all='skipping git cvsimport tests, cvs not available' |
441 |
++ test_done |
442 |
++fi |
443 |
++ |
444 |
+ setup_cvs_test_repository t9601 |
445 |
+ |
446 |
+ test_expect_success PERL 'import a module with a vendor branch' ' |
447 |
+diff --git a/t/t9602-cvsimport-branches-tags.sh b/t/t9602-cvsimport-branches-tags.sh |
448 |
+index e1db323..68f0974 100755 |
449 |
+--- a/t/t9602-cvsimport-branches-tags.sh |
450 |
++++ b/t/t9602-cvsimport-branches-tags.sh |
451 |
+@@ -6,6 +6,17 @@ |
452 |
+ test_description='git cvsimport handling of branches and tags' |
453 |
+ . ./lib-cvs.sh |
454 |
+ |
455 |
++if ! test_have_prereq PERL |
456 |
++then |
457 |
++ skip_all='skipping git cvsimport tests, perl not available' |
458 |
++ test_done |
459 |
++fi |
460 |
++if ! test_have_prereq CVS |
461 |
++then |
462 |
++ skip_all='skipping git cvsimport tests, cvs not available' |
463 |
++ test_done |
464 |
++fi |
465 |
++ |
466 |
+ setup_cvs_test_repository t9602 |
467 |
+ |
468 |
+ test_expect_success PERL 'import module' ' |
469 |
+diff --git a/t/t9603-cvsimport-patchsets.sh b/t/t9603-cvsimport-patchsets.sh |
470 |
+index c4c3c49..9b2957d 100755 |
471 |
+--- a/t/t9603-cvsimport-patchsets.sh |
472 |
++++ b/t/t9603-cvsimport-patchsets.sh |
473 |
+@@ -14,6 +14,17 @@ |
474 |
+ test_description='git cvsimport testing for correct patchset estimation' |
475 |
+ . ./lib-cvs.sh |
476 |
+ |
477 |
++if ! test_have_prereq PERL |
478 |
++then |
479 |
++ skip_all='skipping git cvsimport tests, perl not available' |
480 |
++ test_done |
481 |
++fi |
482 |
++if ! test_have_prereq CVS |
483 |
++then |
484 |
++ skip_all='skipping git cvsimport tests, cvs not available' |
485 |
++ test_done |
486 |
++fi |
487 |
++ |
488 |
+ setup_cvs_test_repository t9603 |
489 |
+ |
490 |
+ test_expect_failure PERL 'import with criss cross times on revisions' ' |
491 |
+diff --git a/t/test-lib.sh b/t/test-lib.sh |
492 |
+index d731d66..fcee67a 100644 |
493 |
+--- a/t/test-lib.sh |
494 |
++++ b/t/test-lib.sh |
495 |
+@@ -972,6 +972,7 @@ case $(uname -s) in |
496 |
+ esac |
497 |
+ |
498 |
+ ( COLUMNS=1 && test $COLUMNS = 1 ) && test_set_prereq COLUMNS_CAN_BE_1 |
499 |
++test -z "$NO_CVS" && test_set_prereq CVS |
500 |
+ test -z "$NO_PERL" && test_set_prereq PERL |
501 |
+ test -z "$NO_PYTHON" && test_set_prereq PYTHON |
502 |
+ test -n "$USE_LIBPCRE" && test_set_prereq LIBPCRE |
503 |
+-- |
504 |
+2.9.3 |
505 |
+ |
506 |
|
507 |
diff --git a/dev-vcs/git/git-2.10.0.ebuild b/dev-vcs/git/git-2.10.0.ebuild |
508 |
new file mode 100644 |
509 |
index 00000000..2d9fd8a |
510 |
--- /dev/null |
511 |
+++ b/dev-vcs/git/git-2.10.0.ebuild |
512 |
@@ -0,0 +1,682 @@ |
513 |
+# Copyright 1999-2016 Gentoo Foundation |
514 |
+# Distributed under the terms of the GNU General Public License v2 |
515 |
+# $Id$ |
516 |
+ |
517 |
+EAPI=6 |
518 |
+ |
519 |
+GENTOO_DEPEND_ON_PERL=no |
520 |
+ |
521 |
+# bug #329479: git-remote-testgit is not multiple-version aware |
522 |
+PYTHON_COMPAT=( python2_7 ) |
523 |
+[[ ${PV} == *9999 ]] && SCM="git-r3" |
524 |
+# Please ensure that all _four_ 9999 ebuilds get updated; they track the 4 upstream branches. |
525 |
+# See https://git-scm.com/docs/gitworkflows#_graduation |
526 |
+# In order of stability: |
527 |
+# 9999-r0: maint |
528 |
+# 9999-r1: master |
529 |
+# 9999-r2: next |
530 |
+# 9999-r3: pu |
531 |
+EGIT_REPO_URI="git://git.kernel.org/pub/scm/git/git.git" |
532 |
+EGIT_BRANCH=pu |
533 |
+PLOCALES="bg ca de fr is it ko pt_PT ru sv vi zh_CN" |
534 |
+ |
535 |
+inherit toolchain-funcs eutils elisp-common l10n perl-module bash-completion-r1 python-single-r1 systemd ${SCM} |
536 |
+ |
537 |
+MY_PV="${PV/_rc/.rc}" |
538 |
+MY_P="${PN}-${MY_PV}" |
539 |
+ |
540 |
+DOC_VER=${MY_PV} |
541 |
+ |
542 |
+DESCRIPTION="stupid content tracker: distributed VCS designed for speed and efficiency" |
543 |
+HOMEPAGE="http://www.git-scm.com/" |
544 |
+if [[ ${PV} != *9999 ]]; then |
545 |
+ SRC_URI_SUFFIX="xz" |
546 |
+ SRC_URI_GOOG="https://git-core.googlecode.com/files" |
547 |
+ SRC_URI_KORG="mirror://kernel/software/scm/git" |
548 |
+ SRC_URI="${SRC_URI_GOOG}/${MY_P}.tar.${SRC_URI_SUFFIX} |
549 |
+ ${SRC_URI_KORG}/${MY_P}.tar.${SRC_URI_SUFFIX} |
550 |
+ ${SRC_URI_GOOG}/${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX} |
551 |
+ ${SRC_URI_KORG}/${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX} |
552 |
+ doc? ( |
553 |
+ ${SRC_URI_KORG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX} |
554 |
+ ${SRC_URI_GOOG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX} |
555 |
+ )" |
556 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
557 |
+fi |
558 |
+ |
559 |
+LICENSE="GPL-2" |
560 |
+SLOT="0" |
561 |
+IUSE="+blksha1 +curl cgi doc emacs gnome-keyring +gpg gtk highlight +iconv libressl mediawiki mediawiki-experimental +nls +pcre +perl +python ppcsha1 tk +threads +webdav xinetd cvs subversion test" |
562 |
+ |
563 |
+# Common to both DEPEND and RDEPEND |
564 |
+CDEPEND=" |
565 |
+ !libressl? ( dev-libs/openssl:0= ) |
566 |
+ libressl? ( dev-libs/libressl:= ) |
567 |
+ sys-libs/zlib |
568 |
+ pcre? ( dev-libs/libpcre ) |
569 |
+ perl? ( dev-lang/perl:=[-build(-)] ) |
570 |
+ tk? ( dev-lang/tk:0= ) |
571 |
+ curl? ( |
572 |
+ net-misc/curl |
573 |
+ webdav? ( dev-libs/expat ) |
574 |
+ ) |
575 |
+ emacs? ( virtual/emacs ) |
576 |
+ gnome-keyring? ( gnome-base/libgnome-keyring )" |
577 |
+ |
578 |
+RDEPEND="${CDEPEND} |
579 |
+ gpg? ( app-crypt/gnupg ) |
580 |
+ mediawiki? ( |
581 |
+ dev-perl/DateTime-Format-ISO8601 |
582 |
+ dev-perl/HTML-Tree |
583 |
+ dev-perl/MediaWiki-API |
584 |
+ ) |
585 |
+ perl? ( dev-perl/Error |
586 |
+ dev-perl/Net-SMTP-SSL |
587 |
+ dev-perl/Authen-SASL |
588 |
+ cgi? ( dev-perl/CGI highlight? ( app-text/highlight ) ) |
589 |
+ cvs? ( >=dev-vcs/cvsps-2.1:0 dev-perl/DBI dev-perl/DBD-SQLite ) |
590 |
+ subversion? ( dev-vcs/subversion[-dso,perl] dev-perl/libwww-perl dev-perl/TermReadKey ) |
591 |
+ ) |
592 |
+ python? ( gtk? |
593 |
+ ( |
594 |
+ >=dev-python/pygtk-2.8[${PYTHON_USEDEP}] |
595 |
+ >=dev-python/pygtksourceview-2.10.1-r1:2[${PYTHON_USEDEP}] |
596 |
+ ) |
597 |
+ ${PYTHON_DEPS} )" |
598 |
+ |
599 |
+# This is how info docs are created with Git: |
600 |
+# .txt/asciidoc --(asciidoc)---------> .xml/docbook |
601 |
+# .xml/docbook --(docbook2texi.pl)--> .texi |
602 |
+# .texi --(makeinfo)---------> .info |
603 |
+DEPEND="${CDEPEND} |
604 |
+ doc? ( |
605 |
+ app-text/asciidoc |
606 |
+ app-text/docbook2X |
607 |
+ sys-apps/texinfo |
608 |
+ app-text/xmlto |
609 |
+ ) |
610 |
+ nls? ( sys-devel/gettext ) |
611 |
+ test? ( app-crypt/gnupg )" |
612 |
+ |
613 |
+# Live ebuild builds man pages and HTML docs, additionally |
614 |
+if [[ ${PV} == *9999 ]]; then |
615 |
+ DEPEND="${DEPEND} |
616 |
+ app-text/asciidoc" |
617 |
+fi |
618 |
+ |
619 |
+SITEFILE=50${PN}-gentoo.el |
620 |
+S="${WORKDIR}/${MY_P}" |
621 |
+ |
622 |
+REQUIRED_USE=" |
623 |
+ cgi? ( perl ) |
624 |
+ cvs? ( perl ) |
625 |
+ mediawiki? ( perl ) |
626 |
+ mediawiki-experimental? ( mediawiki ) |
627 |
+ subversion? ( perl ) |
628 |
+ webdav? ( curl ) |
629 |
+ gtk? ( python ) |
630 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
631 |
+" |
632 |
+ |
633 |
+PATCHES=( |
634 |
+ # bug #350330 - automagic CVS when we don't want it is bad. |
635 |
+ "${FILESDIR}"/git-2.10.0-optional-cvs.patch |
636 |
+ |
637 |
+ # install mediawiki perl modules also in vendor_dir |
638 |
+ # hack, needs better upstream solution |
639 |
+ "${FILESDIR}"/git-1.8.5-mw-vendor.patch |
640 |
+ |
641 |
+ "${FILESDIR}"/git-2.2.0-svn-fe-linking.patch |
642 |
+ |
643 |
+ # Bug #493306, where FreeBSD 10.x merged libiconv into its libc. |
644 |
+ "${FILESDIR}"/git-2.5.1-freebsd-10.x-no-iconv.patch |
645 |
+) |
646 |
+ |
647 |
+pkg_setup() { |
648 |
+ if use subversion && has_version "dev-vcs/subversion[dso]"; then |
649 |
+ ewarn "Per Gentoo bugs #223747, #238586, when subversion is built" |
650 |
+ ewarn "with USE=dso, there may be weird crashes in git-svn. You" |
651 |
+ ewarn "have been warned." |
652 |
+ fi |
653 |
+ if use python ; then |
654 |
+ python-single-r1_pkg_setup |
655 |
+ fi |
656 |
+} |
657 |
+ |
658 |
+# This is needed because for some obscure reasons future calls to make don't |
659 |
+# pick up these exports if we export them in src_unpack() |
660 |
+exportmakeopts() { |
661 |
+ local myopts |
662 |
+ |
663 |
+ if use blksha1 ; then |
664 |
+ myopts+=" BLK_SHA1=YesPlease" |
665 |
+ elif use ppcsha1 ; then |
666 |
+ myopts+=" PPC_SHA1=YesPlease" |
667 |
+ fi |
668 |
+ |
669 |
+ if use curl ; then |
670 |
+ use webdav || myopts+=" NO_EXPAT=YesPlease" |
671 |
+ else |
672 |
+ myopts+=" NO_CURL=YesPlease" |
673 |
+ fi |
674 |
+ |
675 |
+ # broken assumptions, because of broken build system ... |
676 |
+ myopts+=" NO_FINK=YesPlease NO_DARWIN_PORTS=YesPlease" |
677 |
+ myopts+=" INSTALL=install TAR=tar" |
678 |
+ myopts+=" SHELL_PATH=${EPREFIX}/bin/sh" |
679 |
+ myopts+=" SANE_TOOL_PATH=" |
680 |
+ myopts+=" OLD_ICONV=" |
681 |
+ myopts+=" NO_EXTERNAL_GREP=" |
682 |
+ |
683 |
+ # For svn-fe |
684 |
+ extlibs="-lz -lssl ${S}/xdiff/lib.a $(usex threads -lpthread '')" |
685 |
+ |
686 |
+ # can't define this to null, since the entire makefile depends on it |
687 |
+ sed -i -e '/\/usr\/local/s/BASIC_/#BASIC_/' Makefile |
688 |
+ |
689 |
+ use iconv \ |
690 |
+ || myopts+=" NO_ICONV=YesPlease" |
691 |
+ use nls \ |
692 |
+ || myopts+=" NO_GETTEXT=YesPlease" |
693 |
+ use tk \ |
694 |
+ || myopts+=" NO_TCLTK=YesPlease" |
695 |
+ use pcre \ |
696 |
+ && myopts+=" USE_LIBPCRE=yes" \ |
697 |
+ && extlibs+=" -lpcre" |
698 |
+ use perl \ |
699 |
+ && myopts+=" INSTALLDIRS=vendor" \ |
700 |
+ || myopts+=" NO_PERL=YesPlease" |
701 |
+ use python \ |
702 |
+ || myopts+=" NO_PYTHON=YesPlease" |
703 |
+ use subversion \ |
704 |
+ || myopts+=" NO_SVN_TESTS=YesPlease" |
705 |
+ use threads \ |
706 |
+ && myopts+=" THREADED_DELTA_SEARCH=YesPlease" \ |
707 |
+ || myopts+=" NO_PTHREADS=YesPlease" |
708 |
+ use cvs \ |
709 |
+ || myopts+=" NO_CVS=YesPlease" |
710 |
+# Disabled until ~m68k-mint can be keyworded again |
711 |
+# if [[ ${CHOST} == *-mint* ]] ; then |
712 |
+# myopts+=" NO_MMAP=YesPlease" |
713 |
+# myopts+=" NO_IPV6=YesPlease" |
714 |
+# myopts+=" NO_STRLCPY=YesPlease" |
715 |
+# myopts+=" NO_MEMMEM=YesPlease" |
716 |
+# myopts+=" NO_MKDTEMP=YesPlease" |
717 |
+# myopts+=" NO_MKSTEMPS=YesPlease" |
718 |
+# fi |
719 |
+ if [[ ${CHOST} == ia64-*-hpux* ]]; then |
720 |
+ myopts+=" NO_NSEC=YesPlease" |
721 |
+ fi |
722 |
+ if [[ ${CHOST} == *-*-aix* ]]; then |
723 |
+ myopts+=" NO_FNMATCH_CASEFOLD=YesPlease" |
724 |
+ fi |
725 |
+ if [[ ${CHOST} == *-solaris* ]]; then |
726 |
+ myopts+=" NEEDS_LIBICONV=YesPlease" |
727 |
+ myopts+=" HAVE_CLOCK_MONOTONIC=1" |
728 |
+ myopts+=" HAVE_GETDELIM=1" |
729 |
+ fi |
730 |
+ |
731 |
+ has_version '>=app-text/asciidoc-8.0' \ |
732 |
+ && myopts+=" ASCIIDOC8=YesPlease" |
733 |
+ myopts+=" ASCIIDOC_NO_ROFF=YesPlease" |
734 |
+ |
735 |
+ # Bug 290465: |
736 |
+ # builtin-fetch-pack.c:816: error: 'struct stat' has no member named 'st_mtim' |
737 |
+ [[ "${CHOST}" == *-uclibc* ]] && \ |
738 |
+ myopts+=" NO_NSEC=YesPlease" |
739 |
+ |
740 |
+ export MY_MAKEOPTS="${myopts}" |
741 |
+ export EXTLIBS="${extlibs}" |
742 |
+} |
743 |
+ |
744 |
+src_unpack() { |
745 |
+ if [[ ${PV} != *9999 ]]; then |
746 |
+ unpack ${MY_P}.tar.${SRC_URI_SUFFIX} |
747 |
+ cd "${S}" |
748 |
+ unpack ${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX} |
749 |
+ use doc && \ |
750 |
+ cd "${S}"/Documentation && \ |
751 |
+ unpack ${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX} |
752 |
+ cd "${S}" |
753 |
+ else |
754 |
+ git-r3_src_unpack |
755 |
+ cd "${S}" |
756 |
+ #cp "${FILESDIR}"/GIT-VERSION-GEN . |
757 |
+ fi |
758 |
+ |
759 |
+} |
760 |
+ |
761 |
+src_prepare() { |
762 |
+ # add experimental patches to improve mediawiki support |
763 |
+ # see patches for origin |
764 |
+ if use mediawiki-experimental ; then |
765 |
+ PATCHES+=( |
766 |
+ "${FILESDIR}"/git-2.7.0-mediawiki-namespaces.patch |
767 |
+ "${FILESDIR}"/git-2.7.0-mediawiki-subpages.patch |
768 |
+ "${FILESDIR}"/git-2.7.0-mediawiki-500pages.patch |
769 |
+ ) |
770 |
+ fi |
771 |
+ |
772 |
+ default |
773 |
+ |
774 |
+ sed -i \ |
775 |
+ -e 's:^\(CFLAGS[[:space:]]*=\).*$:\1 $(OPTCFLAGS) -Wall:' \ |
776 |
+ -e 's:^\(LDFLAGS[[:space:]]*=\).*$:\1 $(OPTLDFLAGS):' \ |
777 |
+ -e 's:^\(CC[[:space:]]* =\).*$:\1$(OPTCC):' \ |
778 |
+ -e 's:^\(AR[[:space:]]* =\).*$:\1$(OPTAR):' \ |
779 |
+ -e "s:\(PYTHON_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \ |
780 |
+ -e "s:\(PERL_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \ |
781 |
+ Makefile contrib/svn-fe/Makefile || die "sed failed" |
782 |
+ |
783 |
+ # Never install the private copy of Error.pm (bug #296310) |
784 |
+ sed -i \ |
785 |
+ -e '/private-Error.pm/s,^,#,' \ |
786 |
+ perl/Makefile.PL |
787 |
+ |
788 |
+ # Fix docbook2texi command |
789 |
+ sed -r -i 's/DOCBOOK2X_TEXI[[:space:]]*=[[:space:]]*docbook2x-texi/DOCBOOK2X_TEXI = docbook2texi.pl/' \ |
790 |
+ Documentation/Makefile || die "sed failed" |
791 |
+ |
792 |
+ # Fix git-subtree missing DESTDIR |
793 |
+ sed -i \ |
794 |
+ -e '/$(INSTALL)/s/ $(libexecdir)/ $(DESTDIR)$(libexecdir)/g' \ |
795 |
+ -e '/$(INSTALL)/s/ $(man1dir)/ $(DESTDIR)$(man1dir)/g' \ |
796 |
+ contrib/subtree/Makefile |
797 |
+} |
798 |
+ |
799 |
+git_emake() { |
800 |
+ # bug #326625: PERL_PATH, PERL_MM_OPT |
801 |
+ # bug #320647: PYTHON_PATH |
802 |
+ PYTHON_PATH="" |
803 |
+ use python && PYTHON_PATH="${PYTHON}" |
804 |
+ emake ${MY_MAKEOPTS} \ |
805 |
+ DESTDIR="${D}" \ |
806 |
+ OPTCFLAGS="${CFLAGS}" \ |
807 |
+ OPTLDFLAGS="${LDFLAGS}" \ |
808 |
+ OPTCC="$(tc-getCC)" \ |
809 |
+ OPTAR="$(tc-getAR)" \ |
810 |
+ prefix="${EPREFIX}"/usr \ |
811 |
+ htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \ |
812 |
+ sysconfdir="${EPREFIX}"/etc \ |
813 |
+ PYTHON_PATH="${PYTHON_PATH}" \ |
814 |
+ PERL_MM_OPT="" \ |
815 |
+ GIT_TEST_OPTS="--no-color" \ |
816 |
+ V=1 \ |
817 |
+ "$@" |
818 |
+ # This is the fix for bug #326625, but it also causes breakage, see bug |
819 |
+ # #352693. |
820 |
+ # PERL_PATH="${EPREFIX}/usr/bin/env perl" \ |
821 |
+} |
822 |
+ |
823 |
+src_configure() { |
824 |
+ exportmakeopts |
825 |
+} |
826 |
+ |
827 |
+src_compile() { |
828 |
+ if use perl ; then |
829 |
+ git_emake perl/PM.stamp || die "emake perl/PM.stamp failed" |
830 |
+ git_emake perl/perl.mak || die "emake perl/perl.mak failed" |
831 |
+ fi |
832 |
+ git_emake || die "emake failed" |
833 |
+ |
834 |
+ if use emacs ; then |
835 |
+ elisp-compile contrib/emacs/git{,-blame}.el |
836 |
+ fi |
837 |
+ |
838 |
+ if use perl && use cgi ; then |
839 |
+ git_emake \ |
840 |
+ gitweb \ |
841 |
+ || die "emake gitweb (cgi) failed" |
842 |
+ fi |
843 |
+ |
844 |
+ if [[ ${CHOST} == *-darwin* ]]; then |
845 |
+ cd "${S}"/contrib/credential/osxkeychain || die |
846 |
+ git_emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" \ |
847 |
+ || die "emake credential-osxkeychain" |
848 |
+ fi |
849 |
+ |
850 |
+ cd "${S}"/Documentation |
851 |
+ if [[ ${PV} == *9999 ]] ; then |
852 |
+ git_emake man \ |
853 |
+ || die "emake man failed" |
854 |
+ if use doc ; then |
855 |
+ git_emake info html \ |
856 |
+ || die "emake info html failed" |
857 |
+ fi |
858 |
+ else |
859 |
+ if use doc ; then |
860 |
+ git_emake info \ |
861 |
+ || die "emake info html failed" |
862 |
+ fi |
863 |
+ fi |
864 |
+ |
865 |
+ if use subversion ; then |
866 |
+ cd "${S}"/contrib/svn-fe |
867 |
+ # by defining EXTLIBS we override the detection for libintl and |
868 |
+ # libiconv, bug #516168 |
869 |
+ local nlsiconv= |
870 |
+ use nls && use !elibc_glibc && nlsiconv+=" -lintl" |
871 |
+ use iconv && use !elibc_glibc && nlsiconv+=" -liconv" |
872 |
+ git_emake EXTLIBS="${EXTLIBS} ${nlsiconv}" || die "emake svn-fe failed" |
873 |
+ if use doc ; then |
874 |
+ git_emake svn-fe.{1,html} || die "emake svn-fe.1 svn-fe.html failed" |
875 |
+ fi |
876 |
+ cd "${S}" |
877 |
+ fi |
878 |
+ |
879 |
+ if use gnome-keyring ; then |
880 |
+ cd "${S}"/contrib/credential/gnome-keyring |
881 |
+ git_emake || die "emake git-credential-gnome-keyring failed" |
882 |
+ fi |
883 |
+ |
884 |
+ cd "${S}"/contrib/subtree |
885 |
+ git_emake |
886 |
+ use doc && git_emake doc |
887 |
+ |
888 |
+ if use mediawiki ; then |
889 |
+ cd "${S}"/contrib/mw-to-git |
890 |
+ git_emake |
891 |
+ fi |
892 |
+} |
893 |
+ |
894 |
+src_install() { |
895 |
+ git_emake \ |
896 |
+ install || \ |
897 |
+ die "make install failed" |
898 |
+ |
899 |
+ if [[ ${CHOST} == *-darwin* ]]; then |
900 |
+ dobin contrib/credential/osxkeychain/git-credential-osxkeychain |
901 |
+ fi |
902 |
+ |
903 |
+ # Depending on the tarball and manual rebuild of the documentation, the |
904 |
+ # manpages may exist in either OR both of these directories. |
905 |
+ find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157] |
906 |
+ find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157] |
907 |
+ dodoc README* Documentation/{SubmittingPatches,CodingGuidelines} |
908 |
+ use doc && dodir /usr/share/doc/${PF}/html |
909 |
+ for d in / /howto/ /technical/ ; do |
910 |
+ docinto ${d} |
911 |
+ dodoc Documentation${d}*.txt |
912 |
+ if use doc ; then |
913 |
+ docinto ${d}/html |
914 |
+ dodoc Documentation${d}*.html |
915 |
+ fi |
916 |
+ done |
917 |
+ docinto / |
918 |
+ # Upstream does not ship this pre-built :-( |
919 |
+ use doc && doinfo Documentation/{git,gitman}.info |
920 |
+ |
921 |
+ newbashcomp contrib/completion/git-completion.bash ${PN} |
922 |
+ bashcomp_alias git gitk |
923 |
+ # Not really a bash-completion file (bug #477920) |
924 |
+ # but still needed uncompressed (bug #507480) |
925 |
+ insinto /usr/share/${PN} |
926 |
+ doins contrib/completion/git-prompt.sh |
927 |
+ |
928 |
+ if use emacs ; then |
929 |
+ elisp-install ${PN} contrib/emacs/git.{el,elc} |
930 |
+ elisp-install ${PN} contrib/emacs/git-blame.{el,elc} |
931 |
+ #elisp-install ${PN}/compat contrib/emacs/vc-git.{el,elc} |
932 |
+ # don't add automatically to the load-path, so the sitefile |
933 |
+ # can do a conditional loading |
934 |
+ touch "${ED}${SITELISP}/${PN}/compat/.nosearch" |
935 |
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE} |
936 |
+ fi |
937 |
+ |
938 |
+ if use python && use gtk ; then |
939 |
+ python_doscript "${S}"/contrib/gitview/gitview |
940 |
+ dodoc "${S}"/contrib/gitview/gitview.txt |
941 |
+ fi |
942 |
+ |
943 |
+ #dobin contrib/fast-import/git-p4 # Moved upstream |
944 |
+ #dodoc contrib/fast-import/git-p4.txt # Moved upstream |
945 |
+ newbin contrib/fast-import/import-tars.perl import-tars |
946 |
+ exeinto /usr/libexec/git-core/ |
947 |
+ newexe contrib/git-resurrect.sh git-resurrect |
948 |
+ |
949 |
+ # git-subtree |
950 |
+ cd "${S}"/contrib/subtree |
951 |
+ git_emake install || die "Failed to emake install git-subtree" |
952 |
+ if use doc ; then |
953 |
+ git_emake install-man install-doc || die "Failed to emake install-doc install-mangit-subtree" |
954 |
+ fi |
955 |
+ newdoc README README.git-subtree |
956 |
+ dodoc git-subtree.txt |
957 |
+ cd "${S}" |
958 |
+ |
959 |
+ if use mediawiki ; then |
960 |
+ cd "${S}"/contrib/mw-to-git |
961 |
+ git_emake install |
962 |
+ cd "${S}" |
963 |
+ fi |
964 |
+ |
965 |
+ # diff-highlight |
966 |
+ dobin contrib/diff-highlight/diff-highlight |
967 |
+ newdoc contrib/diff-highlight/README README.diff-highlight |
968 |
+ |
969 |
+ # git-jump |
970 |
+ exeinto /usr/libexec/git-core/ |
971 |
+ doexe contrib/git-jump/git-jump |
972 |
+ newdoc contrib/git-jump/README git-jump.txt |
973 |
+ |
974 |
+ # git-contacts |
975 |
+ exeinto /usr/libexec/git-core/ |
976 |
+ doexe contrib/contacts/git-contacts |
977 |
+ dodoc contrib/contacts/git-contacts.txt |
978 |
+ |
979 |
+ if use gnome-keyring ; then |
980 |
+ cd "${S}"/contrib/credential/gnome-keyring |
981 |
+ dobin git-credential-gnome-keyring |
982 |
+ fi |
983 |
+ |
984 |
+ if use subversion ; then |
985 |
+ cd "${S}"/contrib/svn-fe |
986 |
+ dobin svn-fe |
987 |
+ dodoc svn-fe.txt |
988 |
+ if use doc ; then |
989 |
+ doman svn-fe.1 |
990 |
+ docinto html |
991 |
+ dodoc svn-fe.html |
992 |
+ fi |
993 |
+ cd "${S}" |
994 |
+ fi |
995 |
+ |
996 |
+ dodir /usr/share/${PN}/contrib |
997 |
+ # The following are excluded: |
998 |
+ # completion - installed above |
999 |
+ # credential/gnome-keyring TODO |
1000 |
+ # diff-highlight - done above |
1001 |
+ # emacs - installed above |
1002 |
+ # examples - these are stuff that is not used in Git anymore actually |
1003 |
+ # git-jump - done above |
1004 |
+ # gitview - installed above |
1005 |
+ # p4import - excluded because fast-import has a better one |
1006 |
+ # patches - stuff the Git guys made to go upstream to other places |
1007 |
+ # persistent-https - TODO |
1008 |
+ # mw-to-git - TODO |
1009 |
+ # subtree - build seperately |
1010 |
+ # svnimport - use git-svn |
1011 |
+ # thunderbird-patch-inline - fixes thunderbird |
1012 |
+ for i in \ |
1013 |
+ buildsystems convert-objects fast-import \ |
1014 |
+ hg-to-git hooks remotes2config.sh rerere-train.sh \ |
1015 |
+ stats workdir \ |
1016 |
+ ; do |
1017 |
+ cp -rf \ |
1018 |
+ "${S}"/contrib/${i} \ |
1019 |
+ "${ED}"/usr/share/${PN}/contrib \ |
1020 |
+ || die "Failed contrib ${i}" |
1021 |
+ done |
1022 |
+ |
1023 |
+ if use perl && use cgi ; then |
1024 |
+ # We used to install in /usr/share/${PN}/gitweb |
1025 |
+ # but upstream installs in /usr/share/gitweb |
1026 |
+ # so we will install a symlink and use their location for compat with other |
1027 |
+ # distros |
1028 |
+ dosym /usr/share/gitweb /usr/share/${PN}/gitweb |
1029 |
+ |
1030 |
+ # INSTALL discusses configuration issues, not just installation |
1031 |
+ docinto / |
1032 |
+ newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb |
1033 |
+ newdoc "${S}"/gitweb/README README.gitweb |
1034 |
+ |
1035 |
+ find "${ED}"/usr/lib64/perl5/ \ |
1036 |
+ -name .packlist \ |
1037 |
+ -exec rm \{\} \; |
1038 |
+ else |
1039 |
+ rm -rf "${ED}"/usr/share/gitweb |
1040 |
+ fi |
1041 |
+ |
1042 |
+ if ! use subversion ; then |
1043 |
+ rm -f "${ED}"/usr/libexec/git-core/git-svn \ |
1044 |
+ "${ED}"/usr/share/man/man1/git-svn.1* |
1045 |
+ fi |
1046 |
+ |
1047 |
+ if use xinetd ; then |
1048 |
+ insinto /etc/xinetd.d |
1049 |
+ newins "${FILESDIR}"/git-daemon.xinetd git-daemon |
1050 |
+ fi |
1051 |
+ |
1052 |
+ if use !prefix ; then |
1053 |
+ newinitd "${FILESDIR}"/git-daemon-r1.initd git-daemon |
1054 |
+ newconfd "${FILESDIR}"/git-daemon.confd git-daemon |
1055 |
+ systemd_newunit "${FILESDIR}/git-daemon_at-r1.service" "git-daemon@.service" |
1056 |
+ systemd_dounit "${FILESDIR}/git-daemon.socket" |
1057 |
+ fi |
1058 |
+ |
1059 |
+ perl_delete_localpod |
1060 |
+ |
1061 |
+ # Remove disabled linguas |
1062 |
+ # we could remove sources in src_prepare, but install does not |
1063 |
+ # handle missing locale dir well |
1064 |
+ rm_loc() { |
1065 |
+ if [[ -e "${ED}/usr/share/locale/${1}" ]]; then |
1066 |
+ rm -r "${ED}/usr/share/locale/${1}" || die |
1067 |
+ fi |
1068 |
+ } |
1069 |
+ l10n_for_each_disabled_locale_do rm_loc |
1070 |
+} |
1071 |
+ |
1072 |
+src_test() { |
1073 |
+ local disabled="" |
1074 |
+ local tests_cvs="t9200-git-cvsexportcommit.sh \ |
1075 |
+ t9400-git-cvsserver-server.sh \ |
1076 |
+ t9401-git-cvsserver-crlf.sh \ |
1077 |
+ t9402-git-cvsserver-refs.sh \ |
1078 |
+ t9600-cvsimport.sh \ |
1079 |
+ t9601-cvsimport-vendor-branch.sh \ |
1080 |
+ t9602-cvsimport-branches-tags.sh \ |
1081 |
+ t9603-cvsimport-patchsets.sh \ |
1082 |
+ t9604-cvsimport-timestamps.sh" |
1083 |
+ local tests_perl="t3701-add-interactive.sh \ |
1084 |
+ t5502-quickfetch.sh \ |
1085 |
+ t5512-ls-remote.sh \ |
1086 |
+ t5520-pull.sh \ |
1087 |
+ t7106-reset-unborn-branch.sh \ |
1088 |
+ t7501-commit.sh" |
1089 |
+ # Bug #225601 - t0004 is not suitable for root perm |
1090 |
+ # Bug #219839 - t1004 is not suitable for root perm |
1091 |
+ # t0001-init.sh - check for init notices EPERM* fails |
1092 |
+ local tests_nonroot="t0001-init.sh \ |
1093 |
+ t0004-unwritable.sh \ |
1094 |
+ t0070-fundamental.sh \ |
1095 |
+ t1004-read-tree-m-u-wf.sh \ |
1096 |
+ t3700-add.sh \ |
1097 |
+ t7300-clean.sh" |
1098 |
+ # t9100 still fails with symlinks in SVN 1.7 |
1099 |
+ local test_svn="t9100-git-svn-basic.sh" |
1100 |
+ |
1101 |
+ # Unzip is used only for the testcase code, not by any normal parts of Git. |
1102 |
+ if ! has_version app-arch/unzip ; then |
1103 |
+ einfo "Disabling tar-tree tests" |
1104 |
+ disabled="${disabled} t5000-tar-tree.sh" |
1105 |
+ fi |
1106 |
+ |
1107 |
+ cvs=0 |
1108 |
+ use cvs && let cvs=$cvs+1 |
1109 |
+ if [[ ${EUID} -eq 0 ]]; then |
1110 |
+ if [[ $cvs -eq 1 ]]; then |
1111 |
+ ewarn "Skipping CVS tests because CVS does not work as root!" |
1112 |
+ ewarn "You should retest with FEATURES=userpriv!" |
1113 |
+ disabled="${disabled} ${tests_cvs}" |
1114 |
+ fi |
1115 |
+ einfo "Skipping other tests that require being non-root" |
1116 |
+ disabled="${disabled} ${tests_nonroot}" |
1117 |
+ else |
1118 |
+ [[ $cvs -gt 0 ]] && \ |
1119 |
+ has_version dev-vcs/cvs && \ |
1120 |
+ let cvs=$cvs+1 |
1121 |
+ [[ $cvs -gt 1 ]] && \ |
1122 |
+ has_version "dev-vcs/cvs[server]" && \ |
1123 |
+ let cvs=$cvs+1 |
1124 |
+ if [[ $cvs -lt 3 ]]; then |
1125 |
+ einfo "Disabling CVS tests (needs dev-vcs/cvs[USE=server])" |
1126 |
+ disabled="${disabled} ${tests_cvs}" |
1127 |
+ fi |
1128 |
+ fi |
1129 |
+ |
1130 |
+ if ! use perl ; then |
1131 |
+ einfo "Disabling tests that need Perl" |
1132 |
+ disabled="${disabled} ${tests_perl}" |
1133 |
+ fi |
1134 |
+ |
1135 |
+ einfo "Disabling tests that fail with SVN 1.7" |
1136 |
+ disabled="${disabled} ${test_svn}" |
1137 |
+ |
1138 |
+ # Reset all previously disabled tests |
1139 |
+ cd "${S}/t" |
1140 |
+ for i in *.sh.DISABLED ; do |
1141 |
+ [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}" |
1142 |
+ done |
1143 |
+ einfo "Disabled tests:" |
1144 |
+ for i in ${disabled} ; do |
1145 |
+ [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i" |
1146 |
+ done |
1147 |
+ |
1148 |
+ # Avoid the test system removing the results because we want them ourselves |
1149 |
+ sed -e '/^[[:space:]]*$(MAKE) clean/s,^,#,g' \ |
1150 |
+ -i "${S}"/t/Makefile |
1151 |
+ |
1152 |
+ # Clean old results first, must always run |
1153 |
+ cd "${S}/t" |
1154 |
+ nonfatal git_emake clean |
1155 |
+ |
1156 |
+ # Now run the tests, keep going if we hit an error, and don't terminate on |
1157 |
+ # failure |
1158 |
+ cd "${S}" |
1159 |
+ einfo "Start test run" |
1160 |
+ #MAKEOPTS=-j1 |
1161 |
+ nonfatal git_emake --keep-going test |
1162 |
+ rc=$? |
1163 |
+ |
1164 |
+ # Display nice results, now print the results |
1165 |
+ cd "${S}/t" |
1166 |
+ nonfatal git_emake aggregate-results |
1167 |
+ |
1168 |
+ # And bail if there was a problem |
1169 |
+ [ $rc -eq 0 ] || die "tests failed. Please file a bug." |
1170 |
+} |
1171 |
+ |
1172 |
+showpkgdeps() { |
1173 |
+ local pkg=$1 |
1174 |
+ shift |
1175 |
+ elog " $(printf "%-17s:" ${pkg}) ${@}" |
1176 |
+} |
1177 |
+ |
1178 |
+pkg_postinst() { |
1179 |
+ use emacs && elisp-site-regen |
1180 |
+ einfo "Please read /usr/share/bash-completion/git for Git bash command completion" |
1181 |
+ einfo "Please read /usr/share/git/git-prompt.sh for Git bash prompt" |
1182 |
+ einfo "Note that the prompt bash code is now in that separate script" |
1183 |
+ elog "These additional scripts need some dependencies:" |
1184 |
+ echo |
1185 |
+ showpkgdeps git-quiltimport "dev-util/quilt" |
1186 |
+ showpkgdeps git-instaweb \ |
1187 |
+ "|| ( www-servers/lighttpd www-servers/apache www-servers/nginx )" |
1188 |
+ echo |
1189 |
+ use mediawiki-experimental && ewarn "Using experimental git-mediawiki patches. The stability of cloned wiki filesystems is not guaranteed." |
1190 |
+} |
1191 |
+ |
1192 |
+pkg_postrm() { |
1193 |
+ use emacs && elisp-site-regen |
1194 |
+} |