Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/git/, dev-vcs/git/files/
Date: Wed, 30 Nov 2022 07:49:02
Message-Id: 1669792872.e12290707327a6489359e967486570d4b6b0307a.sam@gentoo
1 commit: e12290707327a6489359e967486570d4b6b0307a
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 30 07:21:12 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 30 07:21:12 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1229070
7
8 dev-vcs/git: drop 2.35.1, 2.35.5, 2.37.4, 2.38.0
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-vcs/git/Manifest | 12 -
13 .../files/git-2.31.0-darwin-prefix-gettext.patch | 22 -
14 .../git/files/git-2.33.0_rc0-optional-cvs.patch | 457 --------------
15 dev-vcs/git/git-2.35.1.ebuild | 641 --------------------
16 dev-vcs/git/git-2.35.5.ebuild | 641 --------------------
17 dev-vcs/git/git-2.37.4.ebuild | 647 --------------------
18 dev-vcs/git/git-2.38.0.ebuild | 657 ---------------------
19 7 files changed, 3077 deletions(-)
20
21 diff --git a/dev-vcs/git/Manifest b/dev-vcs/git/Manifest
22 index afa258640c82..854b2a41c6e8 100644
23 --- a/dev-vcs/git/Manifest
24 +++ b/dev-vcs/git/Manifest
25 @@ -1,21 +1,9 @@
26 -DIST git-2.35.1.tar.xz 6874520 BLAKE2B 028ff97b47748871da145720d0d258a0dcf4acc60b10c787dee5703fcab5f6e621c5671ee9e7a25009e82a2830400f35fa232d88c62606a6687260c744680025 SHA512 926c6813ef61931e1a1c43dfd7b15e20dc5878c1752876bd08f039249c9ed09f20f096b2f01947de9c9522c942e9fa8c1363d7d31a488bbe3f93c0cff31fcbcb
27 -DIST git-2.35.5.tar.xz 6879940 BLAKE2B 4e96108611db0cff8b6e74cd2265186a1f906580737462dbcd98efae355f9a62ca17d0530f83149443890dc9b4c4551e42c30274e4cff84f963399f83dadf62a SHA512 f8fab6ca37d42eec74047b95edc1f83deeb6f1d61f7a7785b571bbc32f2615651fec67126900d98cc45d5ed892bbbc6ac5ea3cb7cbe3ebcd46775adbb58fcd67
28 DIST git-2.37.3.tar.xz 6987464 BLAKE2B b672ed0a99532b2e2e69babbea9155e39f05590a76f55791ffed6ce4ef8b68d8e306a0a23819af26f34fcf3d16211c3a10ec58d86d81262f7a1261d0e51b1305 SHA512 9120050b01d8ac8d9f9e85f19cb84dc90c28f3beadc3ea94da94845f2eb5e35aa83eee8447a7ecef5190b8eb5d01be621be2e82bb3020e51e05037cd1fa9b58f
29 -DIST git-2.37.4.tar.xz 6990080 BLAKE2B 731ae7ff4247fd9d300b2b2b27074cce2d62b6333051bbdb161cdf644b4b40247963a978e1ed25a4f8fc9b544b52aa94ef97abf16db46ffcb688efab380efaec SHA512 f13a25548f6463ee0c3e662819a4af13dfafa8d18108534aeaebafd9a36c84dbea913402d781f7bc1436560c9937d76fd78b39cafa5864f576a1278ed96a9a80
30 -DIST git-2.38.0.tar.xz 7086664 BLAKE2B 800f46dc08b5a4df7437e07c7c9c23c29a3bfcbcc624e482590bbd15c046691922799e7d8650ef0b10825363b57060211f4692a639f095dcc1c6dcf0c43d726d SHA512 5c475d25b40a01cc62be28478b9b5a1b0cedf91c3e007d4869019a25bdc980b5ef9b761e7ee02d7c581bff6c7dbf2696a624431a718dcd976bad34a3f2be5cb6
31 DIST git-2.38.1.tar.xz 7088208 BLAKE2B 50e4e9ef04d9eef7c10aba1f0d53d5d15f50ea9a8c344733e7a7865e2f2a833edb4f4b5882f47dd39389dfdedf22a813cfe3d35ab950d6543d21e0294ce17f2d SHA512 e62ca6f54f01d2e4ccffb5f94e8e5cd2f3e098b766d909c694a8daf4d00d5cdeb9cc5ff8e9bc55d888406f292ba99433d334d4da9689c0ce5d7299a3c67c90e0
32 DIST git-2.39.0.rc1.tar.xz 7146844 BLAKE2B 02d457b2c05290de9bd47e85ce55f2bc7e4b649f898bbda971aa447881ba4da3cf750d065a3bb431c974bf4602403c99af92089467a1b7c9d8c6b95c11d6beb1 SHA512 c90496689cf4ef5bd0efe85ac1f52b53527603596bef064470bd6c30f6b5d067e001d4a2f2cbe10f57235f8a74b733d59bc8cd8051f6fa9475b6dfb4df67577e
33 -DIST git-htmldocs-2.35.1.tar.xz 1410148 BLAKE2B 68c3d12341271b861f42135bd4bd6e68ebcc6466931d383378b49aac42f77187f3fadc237974349cb0b50e4c5fb7a8ab185114341dd3012d159e420405d9ef91 SHA512 52a40644a7cd38caddecc43182863ca2f456644fff918ed4c8f826cbf269352c73d6bdc9119d25fcf537bc2fa38750791013329e4b0e32c8d14f0769dab85804
34 -DIST git-htmldocs-2.35.5.tar.xz 1412776 BLAKE2B a76fafacd1f27f6c9e1acbf14a6b924228f1a66b0d69a7e533213aad3e3bacd38a353fb163fcfa3e5eca2a2c5396b4b9f1d34fbd27c3bbe002a8cebd3e3416c5 SHA512 4eca490371d4ba3c917a93f5f1d4a0ccb047ab177bb0080d91db0ba524895923ad7aaf61cd6bf404817d0d17fe7dfca687f44f3e8117df3b0f57dd3d5972d8ef
35 DIST git-htmldocs-2.37.3.tar.xz 1447620 BLAKE2B 4efb86fb5431fd96ec4bcad7ecd9d5ae1d3f81f57f17dab4d8343948758f66b549b2442330b20cdb4ecd96f2029f4e7a376de5561fd9eda70acc46d2cffd7090 SHA512 ecc483a1fecf8c056a57e14a59950dc8a00f7940453dd5e2ccfd8dab966a9fee47178a7bbf8988e2c9a67ea6d84ffc33be790c49f812fb0ba661b57b7ff7b6ef
36 -DIST git-htmldocs-2.37.4.tar.xz 1448376 BLAKE2B 2414b2f18e3c75c377400623f9e804b6fd5623724834ce52d2680cc10839466d52a8407cac9ed0c8c5928d65058963fe62e9ae2e31f1b695ea3a6fc18ea1938a SHA512 638feee014498af63ea083540b065778d3e3b7fdec9bb7f6e915bbc524e1525e0c4056f8af7d859376b60fcc936cb0ac1e6f83ff940e09f822dfa11570465db4
37 -DIST git-htmldocs-2.38.0.tar.xz 1478392 BLAKE2B d90dff60ed0acbf4b86049c06bc2978839906ebcc6aa6a12d8e78408bb79f8f62f38431f58bff18afec69ba99953de9d3815ddc270c3381b7ce7ea62980d9287 SHA512 460720021db8cef9125f9dfdfea54af05986b658958346d68e5dd8b6b13cb21797b3d6393888fb31b509d76b1e722f6e646bc5857daee507fa410dada4273924
38 DIST git-htmldocs-2.38.1.tar.xz 1479360 BLAKE2B 72d33a04c94ccb250def2136a2967fd333f3704f8e525f065b508cee890058546fec4e5b1349285b83768a7bd1513c0fac8d9ca287e5e964e6f1ec0d055ef7de SHA512 740da4546bdc0e9c4131e9dd0775662525aeb30a468fc4be63bb09c728da2903d479da5b7ef25d5ee029690ff5c9640de0271c7defcba1fadfa4a21f96d0aa8b
39 DIST git-htmldocs-2.39.0.rc1.tar.xz 1503072 BLAKE2B fe8beca129e7bc1dfc2198ad304adf92d88d43a6e50609831f8974dd3cc1e76e0317be8fa5fe2172aae930b622de7870e52f7faeb2b0f4715927745631c10be0 SHA512 e9de3cd8fb84d2bbe38b6185f732c9167b375fd12554f92b00d13cf9d772d9b9970fd83d61546251ff984c61c91565942157c32a3f49ebc57d77cbc3ece9ca34
40 -DIST git-manpages-2.35.1.tar.xz 497284 BLAKE2B 2d0d633320982243316575cc278df6c6a9ef181bf45ea9c1c8288e2677e4e71a33af96bada9bd90b03310be7dd33f2762b6b95489e267e2c191dcc7d1a715fe7 SHA512 0f4c46880f0e6d493112dcd4753fbe3702c06aa68be09bcbfc90263a355deba080995a08916b1f2404e4e17d720ee0de46a55e450c6cabeb1c147dcb2cd919d5
41 -DIST git-manpages-2.35.5.tar.xz 497864 BLAKE2B f68b528006e5393435f059f35dccb79250bf27fb79fd80fe72de70fa2e0c5158b8d9f7be95a4ed8c53dd40fa1aae874d529b0c73a1dfd378e85f84e382560d2c SHA512 efb2595a69f2c2548d0a10e6ad692a0da9c2b1b5b480f52ae9dc184f9de4ea4ddf5b05caaf9b567f9a3fbbf3a6b7aa5949b9c62e73f1a11ef40093c34353baf2
42 DIST git-manpages-2.37.3.tar.xz 510096 BLAKE2B 0bc0b8c1818a06a6c7126119c04d2936bd38e997027bb31be5ad6bea2b43d71c5e9a76a29c576d84bd00c11f09bca7a67aa78a72f0171b41b93f6322c3b23808 SHA512 b25d4925f64e4de220dc9133d6e3ed13a397b160c27550c8700b76226f2b3a1611aec9ee24110ae16ebaceedc6617c6a04aa1b44270c7a0f166dd40d8f2f1132
43 -DIST git-manpages-2.37.4.tar.xz 510016 BLAKE2B 03cba56a27039547429eca6a3dfda600d2b1332a6b0da321a1abc8bb311b03e46c389fdbbd7aafc8b5863730e9417ebbd3195ce04408e3f229e646d134a2ac13 SHA512 8cf5ae54ae3e86929f375ea2d229ecda7d8b5c8a7f7fbe790334fcd38069285b58636320b1886030402ac9d46ed324c1d26784fff14077f661c43ef98b5f5ec7
44 -DIST git-manpages-2.38.0.tar.xz 553512 BLAKE2B e2498a2363859ba21b65d7582090725f34e3b50fb7448e847d2711ef0c921aa7ec459e90dd8fa70bf43f04c40efc585d90c285c66241496a354f0cc3b6a37e49 SHA512 45e074a44840b00115546105bfd7bc1c3433234eee5777ecf0698b2f36f34c62effd6b258e06f67a22a8321654a0be5aaab0197c7e2ab615716c7015adfe6693
45 DIST git-manpages-2.38.1.tar.xz 553484 BLAKE2B 991e7f3916106e346921f6ae281df803b663b7fb4584f98f48f61a121030db8e5a1a97ecb147bf1559408893d3c9692c58b2890ff5a5a00bd451d8f20b73efdb SHA512 d2c75efc497ec62733be0ae0092a256dedb2a24b765e516218c9d96466aef34a0f2a118f68618ea457bf0fb39f5986c52022870116de974b21f541e0994c7d67
46 DIST git-manpages-2.39.0.rc1.tar.xz 557232 BLAKE2B 5bc878cccda24dee906f1c7e4f286539f8c8db29dd5d4b5eee111e45d2eb02c380be6cea1c01e34fdd7c9336bd0c476edba3f32121c3c042c938c4e178a9a5f3 SHA512 f43cb08eb00371995e98336f99db6fd0551d6abc069c0db5a1293a8cc4a0d426ea1c2d7f6b7bd4e38db9d82ee0aad24e7e5ff15ed3e2a4cec30e81503c7eb5ec
47
48 diff --git a/dev-vcs/git/files/git-2.31.0-darwin-prefix-gettext.patch b/dev-vcs/git/files/git-2.31.0-darwin-prefix-gettext.patch
49 deleted file mode 100644
50 index df87def6073d..000000000000
51 --- a/dev-vcs/git/files/git-2.31.0-darwin-prefix-gettext.patch
52 +++ /dev/null
53 @@ -1,22 +0,0 @@
54 -Don't examine outside of the prefix for gettext on macOS/Darwin.
55 -https://bugs.gentoo.org/757309
56 ---- a/config.mak.uname
57 -+++ b/config.mak.uname
58 -@@ -136,17 +136,6 @@ ifeq ($(uname_S),Darwin)
59 - HAVE_BSD_SYSCTL = YesPlease
60 - FREAD_READS_DIRECTORIES = UnfortunatelyYes
61 - HAVE_NS_GET_EXECUTABLE_PATH = YesPlease
62 --
63 -- # Workaround for `gettext` being keg-only and not even being linked via
64 -- # `brew link --force gettext`, should be obsolete as of
65 -- # https://github.com/Homebrew/homebrew-core/pull/53489
66 -- ifeq ($(shell test -d /usr/local/opt/gettext/ && echo y),y)
67 -- BASIC_CFLAGS += -I/usr/local/include -I/usr/local/opt/gettext/include
68 -- BASIC_LDFLAGS += -L/usr/local/lib -L/usr/local/opt/gettext/lib
69 -- ifeq ($(shell test -x /usr/local/opt/gettext/bin/msgfmt && echo y),y)
70 -- MSGFMT = /usr/local/opt/gettext/bin/msgfmt
71 -- endif
72 -- endif
73 - endif
74 - ifeq ($(uname_S),SunOS)
75 - NEEDS_SOCKET = YesPlease
76
77 diff --git a/dev-vcs/git/files/git-2.33.0_rc0-optional-cvs.patch b/dev-vcs/git/files/git-2.33.0_rc0-optional-cvs.patch
78 deleted file mode 100644
79 index ad3941a455dd..000000000000
80 --- a/dev-vcs/git/files/git-2.33.0_rc0-optional-cvs.patch
81 +++ /dev/null
82 @@ -1,457 +0,0 @@
83 -From 52dd2a35fece797c9a0bc23dd59154331a6c0472 Mon Sep 17 00:00:00 2001
84 -From: Robin Johnson <robbat2@g.o>
85 -Date: Tue, 14 May 2019 08:53:06 +0200
86 -Subject: [PATCH] Makefile: Add NO_CVS define to disable all CVS interface
87 - utilities
88 -
89 -Forward-ported from 1.7.12 to current git.git v1.8.4
90 -Forward-ported from v1.8.4 to v1.8.5.1
91 -Forward-ported from v1.8.5.3 to v1.9.0_rc3
92 -Forward-ported from 1.9.0_rc3 to current git.git v2.0.0_rc0
93 -Forward-ported from v2.0.0_rc0 to v2.0.0
94 -Forward-ported from v2.0.0 to v2.2.2
95 -Forward-ported from v2.2.2 to v2.8.4
96 -Forward-ported from v2.8.4 to v2.10.0
97 -Forward-ported from v2.10.0 to v2.12.0
98 -Forward-ported from v2.12.0 to v2.17.0-rc1
99 -Forward-ported from v2.17.0-rc1 to v2.18.0-rc1
100 -Forward-ported from v2.18.0-rc1 to v2.22.0-rc0
101 -Forward-ported from v2.22.0-rc0 to v2.31.0-rc0
102 -Forward-ported from v2.31.0-rc0 to v2.33.0-rc0
103 -
104 -Signed-off-by: Lars Wendler <polynomial-c@g.o>
105 ----
106 - Makefile | 50 ++++++++++++++++++++++--------
107 - t/t9200-git-cvsexportcommit.sh | 5 +++
108 - t/t9400-git-cvsserver-server.sh | 8 ++++-
109 - t/t9401-git-cvsserver-crlf.sh | 15 ++++++---
110 - t/t9600-cvsimport.sh | 41 +++++++++++++++---------
111 - t/t9601-cvsimport-vendor-branch.sh | 11 +++++++
112 - t/t9602-cvsimport-branches-tags.sh | 11 +++++++
113 - t/t9603-cvsimport-patchsets.sh | 11 +++++++
114 - t/test-lib.sh | 1 +
115 - 9 files changed, 119 insertions(+), 34 deletions(-)
116 -
117 -diff --git a/Makefile b/Makefile
118 -index c6f6246bf6..e701070b74 100644
119 ---- a/Makefile
120 -+++ b/Makefile
121 -@@ -308,6 +308,8 @@ all::
122 - # Define SANE_TEXT_GREP to "-a" if you use recent versions of GNU grep
123 - # and egrep that are pickier when their input contains non-ASCII data.
124 - #
125 -+# Define NO_CVS if you do not want any CVS interface utilities.
126 -+#
127 - # The TCL_PATH variable governs the location of the Tcl interpreter
128 - # used to optimize git-gui for your system. Only used if NO_TCLTK
129 - # is not set. Defaults to the bare 'tclsh'.
130 -@@ -589,6 +591,7 @@ PROGRAM_OBJS =
131 - PROGRAMS =
132 - EXCLUDED_PROGRAMS =
133 - SCRIPT_PERL =
134 -+SCRIPT_PERL_CVS =
135 - SCRIPT_PYTHON =
136 - SCRIPT_SH =
137 - SCRIPT_LIB =
138 -@@ -622,31 +625,33 @@ SCRIPT_LIB += git-sh-setup
139 -
140 - SCRIPT_PERL += git-add--interactive.perl
141 - SCRIPT_PERL += git-archimport.perl
142 --SCRIPT_PERL += git-cvsexportcommit.perl
143 --SCRIPT_PERL += git-cvsimport.perl
144 --SCRIPT_PERL += git-cvsserver.perl
145 - SCRIPT_PERL += git-send-email.perl
146 - SCRIPT_PERL += git-svn.perl
147 -
148 -+SCRIPT_PERL_CVS += git-cvsexportcommit.perl
149 -+SCRIPT_PERL_CVS += git-cvsimport.perl
150 -+SCRIPT_PERL_CVS += git-cvsserver.perl
151 -+
152 - SCRIPT_PYTHON += git-p4.py
153 -
154 - # Generated files for scripts
155 - SCRIPT_SH_GEN = $(patsubst %.sh,%,$(SCRIPT_SH))
156 - SCRIPT_PERL_GEN = $(patsubst %.perl,%,$(SCRIPT_PERL))
157 -+SCRIPT_PERL_CVS_GEN = $(patsubst %.perl,%,$(SCRIPT_PERL_CVS))
158 - SCRIPT_PYTHON_GEN = $(patsubst %.py,%,$(SCRIPT_PYTHON))
159 -
160 - # Individual rules to allow e.g.
161 - # "make -C ../.. SCRIPT_PERL=contrib/foo/bar.perl build-perl-script"
162 - # from subdirectories like contrib/*/
163 - .PHONY: build-perl-script build-sh-script build-python-script
164 --build-perl-script: $(SCRIPT_PERL_GEN)
165 -+build-perl-script: $(SCRIPT_PERL_GEN) $(SCRIPT_PERL_CVS_GEN)
166 - build-sh-script: $(SCRIPT_SH_GEN)
167 - build-python-script: $(SCRIPT_PYTHON_GEN)
168 -
169 - .PHONY: install-perl-script install-sh-script install-python-script
170 - install-sh-script: $(SCRIPT_SH_GEN)
171 - $(INSTALL) $^ '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
172 --install-perl-script: $(SCRIPT_PERL_GEN)
173 -+install-perl-script: $(SCRIPT_PERL_GEN) $(SCRIPT_PERL_CVS_GEN)
174 - $(INSTALL) $^ '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
175 - install-python-script: $(SCRIPT_PYTHON_GEN)
176 - $(INSTALL) $^ '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
177 -@@ -655,12 +660,13 @@ install-python-script: $(SCRIPT_PYTHON_GEN)
178 - clean-sh-script:
179 - $(RM) $(SCRIPT_SH_GEN)
180 - clean-perl-script:
181 -- $(RM) $(SCRIPT_PERL_GEN)
182 -+ $(RM) $(SCRIPT_PERL_GEN) $(SCRIPT_PERL_CVS_GEN)
183 - clean-python-script:
184 - $(RM) $(SCRIPT_PYTHON_GEN)
185 -
186 - SCRIPTS = $(SCRIPT_SH_GEN) \
187 - $(SCRIPT_PERL_GEN) \
188 -+ $(SCRIPT_PERL_CVS_GEN) \
189 - $(SCRIPT_PYTHON_GEN) \
190 - git-instaweb
191 -
192 -@@ -2299,13 +2305,27 @@ git.res: git.rc GIT-VERSION-FILE GIT-PREFIX
193 - -DGIT_VERSION="\\\"$(GIT_VERSION)\\\"" -i $< -o $@
194 -
195 - # This makes sure we depend on the NO_PERL setting itself.
196 --$(SCRIPT_PERL_GEN): GIT-BUILD-OPTIONS
197 -+$(SCRIPT_PERL_GEN) $(SCRIPT_PERL_CVS_GEN): GIT-BUILD-OPTIONS
198 -+
199 -+_SCRIPT_PERL_GEN =
200 -+_SCRIPT_PERL_NOGEN =
201 -
202 - # Used for substitution in Perl modules. Disabled when using RUNTIME_PREFIX
203 - # since the locale directory is injected.
204 - perl_localedir_SQ = $(localedir_SQ)
205 -
206 - ifndef NO_PERL
207 -+_SCRIPT_PERL_GEN = $(SCRIPT_PERL_GEN)
208 -+
209 -+ifndef NO_CVS
210 -+_SCRIPT_PERL_GEN += $(SCRIPT_PERL_CVS_GEN)
211 -+else
212 -+_SCRIPT_PERL_NOGEN += $(SCRIPT_PERL_CVS_GEN)
213 -+_REASON = NO_CVS
214 -+_REASON_CONTENT = $(NO_CVS)
215 -+endif # NO_CVS
216 -+
217 -+$(_SCRIPT_PERL_GEN):
218 - PERL_HEADER_TEMPLATE = perl/header_templates/fixed_prefix.template.pl
219 - PERL_DEFINES =
220 - PERL_DEFINES += $(PERL_PATH_SQ)
221 -@@ -2329,7 +2349,7 @@ endif
222 -
223 - PERL_DEFINES += $(gitexecdir) $(perllibdir) $(localedir)
224 -
225 --$(SCRIPT_PERL_GEN): % : %.perl GIT-PERL-DEFINES GIT-PERL-HEADER GIT-VERSION-FILE
226 -+$(_SCRIPT_PERL_GEN): % : %.perl GIT-PERL-DEFINES GIT-PERL-HEADER GIT-VERSION-FILE
227 - $(QUIET_GEN) \
228 - sed -e '1{' \
229 - -e ' s|#!.*perl|#!$(PERL_PATH_SQ)|' \
230 -@@ -2375,14 +2395,18 @@ git-instaweb: git-instaweb.sh GIT-SCRIPT-DEFINES
231 - chmod +x $@+ && \
232 - mv $@+ $@
233 - else # NO_PERL
234 --$(SCRIPT_PERL_GEN) git-instaweb: % : unimplemented.sh
235 -- $(QUIET_GEN) \
236 -+_SCRIPT_PERL_NOGEN += $(SCRIPT_PERL_GEN) $(SCRIPT_PERL_CVS_GEN) git-instaweb
237 -+_REASON = NO_PERL
238 -+_REASON_CONTENT = $(NO_PERL)
239 -+endif # NO_PERL
240 -+
241 -+$(_SCRIPT_PERL_NOGEN): % : unimplemented.sh
242 -+ $(QUIET_GEN)$(RM) $@ $@+ && \
243 - sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
244 -- -e 's|@@REASON@@|NO_PERL=$(NO_PERL)|g' \
245 -+ -e 's|@@REASON@@|$(_REASON)=$(_REASON_CONTENT)|g' \
246 - unimplemented.sh >$@+ && \
247 - chmod +x $@+ && \
248 - mv $@+ $@
249 --endif # NO_PERL
250 -
251 - # This makes sure we depend on the NO_PYTHON setting itself.
252 - $(SCRIPT_PYTHON_GEN): GIT-BUILD-OPTIONS
253 -@@ -2650,7 +2674,7 @@ LOCALIZED_C = $(C_OBJ:o=c) $(LIB_H) $(GENERATED_H)
254 - LOCALIZED_SH = $(SCRIPT_SH)
255 - LOCALIZED_SH += git-rebase--preserve-merges.sh
256 - LOCALIZED_SH += git-sh-setup.sh
257 --LOCALIZED_PERL = $(SCRIPT_PERL)
258 -+LOCALIZED_PERL = $(SCRIPT_PERL) $(SCRIPT_PERL_CVS)
259 -
260 - ifdef XGETTEXT_INCLUDE_TESTS
261 - LOCALIZED_C += t/t0200/test.c
262 -diff --git a/t/t9200-git-cvsexportcommit.sh b/t/t9200-git-cvsexportcommit.sh
263 -index c5946cb0b8..223fd5409b 100755
264 ---- a/t/t9200-git-cvsexportcommit.sh
265 -+++ b/t/t9200-git-cvsexportcommit.sh
266 -@@ -11,6 +11,11 @@ if ! test_have_prereq PERL; then
267 - test_done
268 - fi
269 -
270 -+if ! test_have_prereq CVS; then
271 -+ skip_all='skipping git cvsexportcommit tests, cvs not available'
272 -+ test_done
273 -+fi
274 -+
275 - cvs >/dev/null 2>&1
276 - if test $? -ne 1
277 - then
278 -diff --git a/t/t9400-git-cvsserver-server.sh b/t/t9400-git-cvsserver-server.sh
279 -index 2d29d486ee..2ca6db10e0 100755
280 ---- a/t/t9400-git-cvsserver-server.sh
281 -+++ b/t/t9400-git-cvsserver-server.sh
282 -@@ -14,9 +14,15 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
283 - . ./test-lib.sh
284 -
285 - if ! test_have_prereq PERL; then
286 -- skip_all='skipping git cvsserver tests, perl not available'
287 -+ skip_all='skipping git-cvsserver tests, perl not available'
288 - test_done
289 - fi
290 -+
291 -+if ! test_have_prereq CVS; then
292 -+ skip_all='skipping git-cvsserver tests, cvs not available'
293 -+ test_done
294 -+fi
295 -+
296 - cvs >/dev/null 2>&1
297 - if test $? -ne 1
298 - then
299 -diff --git a/t/t9401-git-cvsserver-crlf.sh b/t/t9401-git-cvsserver-crlf.sh
300 -index a34805acdc..0d7759f73b 100755
301 ---- a/t/t9401-git-cvsserver-crlf.sh
302 -+++ b/t/t9401-git-cvsserver-crlf.sh
303 -@@ -60,15 +60,20 @@ check_status_options() {
304 - return $stat
305 - }
306 -
307 --cvs >/dev/null 2>&1
308 --if test $? -ne 1
309 -+if ! test_have_prereq PERL
310 - then
311 -- skip_all='skipping git-cvsserver tests, cvs not found'
312 -+ skip_all='skipping git-cvsserver tests, perl not available'
313 - test_done
314 - fi
315 --if ! test_have_prereq PERL
316 -+if ! test_have_prereq CVS
317 - then
318 -- skip_all='skipping git-cvsserver tests, perl not available'
319 -+ skip_all='skipping git-cvsserver tests, cvs not available'
320 -+ test_done
321 -+fi
322 -+cvs >/dev/null 2>&1
323 -+if test $? -ne 1
324 -+then
325 -+ skip_all='skipping git-cvsserver tests, cvs not found'
326 - test_done
327 - fi
328 - perl -e 'use DBI; use DBD::SQLite' >/dev/null 2>&1 || {
329 -diff --git a/t/t9600-cvsimport.sh b/t/t9600-cvsimport.sh
330 -index 5680849218..7288db820b 100755
331 ---- a/t/t9600-cvsimport.sh
332 -+++ b/t/t9600-cvsimport.sh
333 -@@ -11,14 +11,25 @@ if ! test_have_prereq NOT_ROOT; then
334 - test_done
335 - fi
336 -
337 --test_expect_success PERL 'setup cvsroot environment' '
338 -+if ! test_have_prereq PERL
339 -+then
340 -+ skip_all='skipping git cvsimport tests, perl not available'
341 -+ test_done
342 -+fi
343 -+if ! test_have_prereq CVS
344 -+then
345 -+ skip_all='skipping git cvsimport tests, cvs not available'
346 -+ test_done
347 -+fi
348 -+
349 -+test_expect_success 'setup cvsroot environment' '
350 - CVSROOT=$(pwd)/cvsroot &&
351 - export CVSROOT
352 - '
353 -
354 --test_expect_success PERL 'setup cvsroot' '$CVS init'
355 -+test_expect_success 'setup cvsroot' '$CVS init'
356 -
357 --test_expect_success PERL 'setup a cvs module' '
358 -+test_expect_success 'setup a cvs module' '
359 -
360 - mkdir "$CVSROOT/module" &&
361 - $CVS co -d module-cvs module &&
362 -@@ -50,23 +61,23 @@ EOF
363 - )
364 - '
365 -
366 --test_expect_success PERL 'import a trivial module' '
367 -+test_expect_success 'import a trivial module' '
368 -
369 - git cvsimport -a -R -z 0 -C module-git module &&
370 - test_cmp module-cvs/o_fortuna module-git/o_fortuna
371 -
372 - '
373 -
374 --test_expect_success PERL 'pack refs' '(cd module-git && git gc)'
375 -+test_expect_success 'pack refs' '(cd module-git && git gc)'
376 -
377 --test_expect_success PERL 'initial import has correct .git/cvs-revisions' '
378 -+test_expect_success 'initial import has correct .git/cvs-revisions' '
379 -
380 - (cd module-git &&
381 - git log --format="o_fortuna 1.1 %H" -1) > expected &&
382 - test_cmp expected module-git/.git/cvs-revisions
383 - '
384 -
385 --test_expect_success PERL 'update cvs module' '
386 -+test_expect_success 'update cvs module' '
387 - (cd module-cvs &&
388 - cat <<EOF >o_fortuna &&
389 - O Fortune,
390 -@@ -94,7 +105,7 @@ EOF
391 - )
392 - '
393 -
394 --test_expect_success PERL 'update git module' '
395 -+test_expect_success 'update git module' '
396 -
397 - (cd module-git &&
398 - git config cvsimport.trackRevisions true &&
399 -@@ -105,7 +116,7 @@ test_expect_success PERL 'update git module' '
400 -
401 - '
402 -
403 --test_expect_success PERL 'update has correct .git/cvs-revisions' '
404 -+test_expect_success 'update has correct .git/cvs-revisions' '
405 -
406 - (cd module-git &&
407 - git log --format="o_fortuna 1.1 %H" -1 HEAD^ &&
408 -@@ -113,7 +124,7 @@ test_expect_success PERL 'update has correct .git/cvs-revisions' '
409 - test_cmp expected module-git/.git/cvs-revisions
410 - '
411 -
412 --test_expect_success PERL 'update cvs module' '
413 -+test_expect_success 'update cvs module' '
414 -
415 - (cd module-cvs &&
416 - echo 1 >tick &&
417 -@@ -122,7 +133,7 @@ test_expect_success PERL 'update cvs module' '
418 - )
419 - '
420 -
421 --test_expect_success PERL 'cvsimport.module config works' '
422 -+test_expect_success 'cvsimport.module config works' '
423 -
424 - (cd module-git &&
425 - git config cvsimport.module module &&
426 -@@ -134,7 +145,7 @@ test_expect_success PERL 'cvsimport.module config works' '
427 -
428 - '
429 -
430 --test_expect_success PERL 'second update has correct .git/cvs-revisions' '
431 -+test_expect_success 'second update has correct .git/cvs-revisions' '
432 -
433 - (cd module-git &&
434 - git log --format="o_fortuna 1.1 %H" -1 HEAD^^ &&
435 -@@ -143,7 +154,7 @@ test_expect_success PERL 'second update has correct .git/cvs-revisions' '
436 - test_cmp expected module-git/.git/cvs-revisions
437 - '
438 -
439 --test_expect_success PERL 'import from a CVS working tree' '
440 -+test_expect_success 'import from a CVS working tree' '
441 -
442 - $CVS co -d import-from-wt module &&
443 - (cd import-from-wt &&
444 -@@ -156,12 +167,12 @@ test_expect_success PERL 'import from a CVS working tree' '
445 -
446 - '
447 -
448 --test_expect_success PERL 'no .git/cvs-revisions created by default' '
449 -+test_expect_success 'no .git/cvs-revisions created by default' '
450 -
451 - ! test -e import-from-wt/.git/cvs-revisions
452 -
453 - '
454 -
455 --test_expect_success PERL 'test entire HEAD' 'test_cmp_branch_tree main'
456 -+test_expect_success 'test entire HEAD' 'test_cmp_branch_tree main'
457 -
458 - test_done
459 -diff --git a/t/t9601-cvsimport-vendor-branch.sh b/t/t9601-cvsimport-vendor-branch.sh
460 -index 116cddba3a..a7e7299c81 100755
461 ---- a/t/t9601-cvsimport-vendor-branch.sh
462 -+++ b/t/t9601-cvsimport-vendor-branch.sh
463 -@@ -37,6 +37,17 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
464 -
465 - . ./lib-cvs.sh
466 -
467 -+if ! test_have_prereq PERL
468 -+then
469 -+ skip_all='skipping git cvsimport tests, perl not available'
470 -+ test_done
471 -+fi
472 -+if ! test_have_prereq CVS
473 -+then
474 -+ skip_all='skipping git cvsimport tests, cvs not available'
475 -+ test_done
476 -+fi
477 -+
478 - setup_cvs_test_repository t9601
479 -
480 - test_expect_success PERL 'import a module with a vendor branch' '
481 -diff --git a/t/t9602-cvsimport-branches-tags.sh b/t/t9602-cvsimport-branches-tags.sh
482 -index e5266c9a87..0e1878ffd3 100755
483 ---- a/t/t9602-cvsimport-branches-tags.sh
484 -+++ b/t/t9602-cvsimport-branches-tags.sh
485 -@@ -9,6 +9,17 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
486 -
487 - . ./lib-cvs.sh
488 -
489 -+if ! test_have_prereq PERL
490 -+then
491 -+ skip_all='skipping git cvsimport tests, perl not available'
492 -+ test_done
493 -+fi
494 -+if ! test_have_prereq CVS
495 -+then
496 -+ skip_all='skipping git cvsimport tests, cvs not available'
497 -+ test_done
498 -+fi
499 -+
500 - setup_cvs_test_repository t9602
501 -
502 - test_expect_success PERL 'import module' '
503 -diff --git a/t/t9603-cvsimport-patchsets.sh b/t/t9603-cvsimport-patchsets.sh
504 -index 0e9daa5768..598c8595c5 100755
505 ---- a/t/t9603-cvsimport-patchsets.sh
506 -+++ b/t/t9603-cvsimport-patchsets.sh
507 -@@ -17,6 +17,17 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
508 -
509 - . ./lib-cvs.sh
510 -
511 -+if ! test_have_prereq PERL
512 -+then
513 -+ skip_all='skipping git cvsimport tests, perl not available'
514 -+ test_done
515 -+fi
516 -+if ! test_have_prereq CVS
517 -+then
518 -+ skip_all='skipping git cvsimport tests, cvs not available'
519 -+ test_done
520 -+fi
521 -+
522 - setup_cvs_test_repository t9603
523 -
524 - test_expect_failure PERL 'import with criss cross times on revisions' '
525 -diff --git a/t/test-lib.sh b/t/test-lib.sh
526 -index da13190970..aa4b4aa161 100644
527 ---- a/t/test-lib.sh
528 -+++ b/t/test-lib.sh
529 -@@ -1521,6 +1521,7 @@ esac
530 - test_set_prereq REFFILES
531 -
532 - ( COLUMNS=1 && test $COLUMNS = 1 ) && test_set_prereq COLUMNS_CAN_BE_1
533 -+test -z "$NO_CVS" && test_set_prereq CVS
534 - test -z "$NO_PERL" && test_set_prereq PERL
535 - test -z "$NO_PTHREADS" && test_set_prereq PTHREADS
536 - test -z "$NO_PYTHON" && test_set_prereq PYTHON
537 ---
538 -2.32.0
539 -
540
541 diff --git a/dev-vcs/git/git-2.35.1.ebuild b/dev-vcs/git/git-2.35.1.ebuild
542 deleted file mode 100644
543 index f2fce14c4987..000000000000
544 --- a/dev-vcs/git/git-2.35.1.ebuild
545 +++ /dev/null
546 @@ -1,641 +0,0 @@
547 -# Copyright 1999-2022 Gentoo Authors
548 -# Distributed under the terms of the GNU General Public License v2
549 -
550 -EAPI=8
551 -
552 -GENTOO_DEPEND_ON_PERL=no
553 -
554 -# bug #329479: git-remote-testgit is not multiple-version aware
555 -PYTHON_COMPAT=( python3_{8..10} )
556 -
557 -inherit toolchain-funcs perl-module bash-completion-r1 plocale python-single-r1 systemd
558 -
559 -PLOCALES="bg ca de es fr is it ko pt_PT ru sv vi zh_CN"
560 -if [[ ${PV} == *9999 ]]; then
561 - inherit git-r3
562 - EGIT_REPO_URI="https://git.kernel.org/pub/scm/git/git.git"
563 - # Please ensure that all _four_ 9999 ebuilds get updated; they track the 4 upstream branches.
564 - # See https://git-scm.com/docs/gitworkflows#_graduation
565 - # In order of stability:
566 - # 9999-r0: maint
567 - # 9999-r1: master
568 - # 9999-r2: next
569 - # 9999-r3: seen
570 - case "${PVR}" in
571 - 9999) EGIT_BRANCH=maint ;;
572 - 9999-r1) EGIT_BRANCH=master ;;
573 - 9999-r2) EGIT_BRANCH=next;;
574 - 9999-r3) EGIT_BRANCH=seen ;;
575 - esac
576 -fi
577 -
578 -MY_PV="${PV/_rc/.rc}"
579 -MY_P="${PN}-${MY_PV}"
580 -
581 -DOC_VER="${MY_PV}"
582 -
583 -DESCRIPTION="stupid content tracker: distributed VCS designed for speed and efficiency"
584 -HOMEPAGE="https://www.git-scm.com/"
585 -if [[ ${PV} != *9999 ]]; then
586 - SRC_URI_SUFFIX="xz"
587 - SRC_URI_KORG="https://www.kernel.org/pub/software/scm/git"
588 - [[ "${PV/rc}" != "${PV}" ]] && SRC_URI_KORG+='/testing'
589 - SRC_URI="${SRC_URI_KORG}/${MY_P}.tar.${SRC_URI_SUFFIX}
590 - ${SRC_URI_KORG}/${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
591 - doc? (
592 - ${SRC_URI_KORG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
593 - )"
594 - [[ "${PV}" == *_rc* ]] || \
595 - KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
596 -fi
597 -
598 -LICENSE="GPL-2"
599 -SLOT="0"
600 -IUSE="+blksha1 +curl cgi doc gnome-keyring +gpg highlight +iconv mediawiki mediawiki-experimental +nls +pcre perforce +perl +ppcsha1 selinux subversion tk +threads +webdav xinetd cvs test"
601 -
602 -# Common to both DEPEND and RDEPEND
603 -DEPEND="
604 - gnome-keyring? (
605 - app-crypt/libsecret
606 - dev-libs/glib:2
607 - )
608 - dev-libs/openssl:0=
609 - sys-libs/zlib
610 - pcre? ( dev-libs/libpcre2:= )
611 - perl? ( dev-lang/perl:=[-build(-)] )
612 - tk? ( dev-lang/tk:0= )
613 - curl? (
614 - net-misc/curl
615 - webdav? ( dev-libs/expat )
616 - )
617 - iconv? ( virtual/libiconv )
618 -"
619 -
620 -RDEPEND="${DEPEND}
621 - gpg? ( app-crypt/gnupg )
622 - perl? (
623 - dev-perl/Error
624 - dev-perl/MailTools
625 - dev-perl/Authen-SASL
626 - >=virtual/perl-libnet-3.110.0-r4[ssl]
627 - cgi? (
628 - dev-perl/CGI
629 - highlight? ( app-text/highlight )
630 - )
631 - cvs? (
632 - >=dev-vcs/cvsps-2.1:0
633 - dev-perl/DBI
634 - dev-perl/DBD-SQLite
635 - )
636 - mediawiki? (
637 - dev-perl/DateTime-Format-ISO8601
638 - dev-perl/HTML-Tree
639 - dev-perl/MediaWiki-API
640 - )
641 - subversion? (
642 - dev-vcs/subversion[-dso(-),perl]
643 - dev-perl/libwww-perl
644 - dev-perl/TermReadKey
645 - )
646 - )
647 - perforce? ( ${PYTHON_DEPS} )
648 - selinux? ( sec-policy/selinux-git )
649 -"
650 -
651 -# This is how info docs are created with Git:
652 -# .txt/asciidoc --(asciidoc)---------> .xml/docbook
653 -# .xml/docbook --(docbook2texi.pl)--> .texi
654 -# .texi --(makeinfo)---------> .info
655 -BDEPEND="
656 - doc? (
657 - app-text/asciidoc
658 - app-text/docbook2X
659 - app-text/xmlto
660 - sys-apps/texinfo
661 - )
662 - gnome-keyring? ( virtual/pkgconfig )
663 - nls? ( sys-devel/gettext )
664 - test? ( app-crypt/gnupg )
665 -"
666 -
667 -# Live ebuild builds man pages and HTML docs, additionally
668 -if [[ ${PV} == *9999 ]]; then
669 - BDEPEND="${BDEPEND}
670 - app-text/asciidoc"
671 -fi
672 -
673 -SITEFILE="50${PN}-gentoo.el"
674 -S="${WORKDIR}/${MY_P}"
675 -
676 -REQUIRED_USE="
677 - cgi? ( perl )
678 - cvs? ( perl )
679 - mediawiki? ( perl )
680 - mediawiki-experimental? ( mediawiki )
681 - perforce? ( ${PYTHON_REQUIRED_USE} )
682 - subversion? ( perl )
683 - webdav? ( curl )
684 -"
685 -
686 -RESTRICT="!test? ( test )"
687 -
688 -PATCHES=(
689 - # bug #350330 - automagic CVS when we don't want it is bad.
690 - "${FILESDIR}"/git-2.33.0_rc0-optional-cvs.patch
691 -
692 - # Make submodule output quiet
693 - "${FILESDIR}"/git-2.21.0-quiet-submodules-testcase.patch
694 -)
695 -
696 -pkg_setup() {
697 - if use subversion && has_version "dev-vcs/subversion[dso]" ; then
698 - ewarn "Per Gentoo bugs #223747, #238586, when subversion is built"
699 - ewarn "with USE=dso, there may be weird crashes in git-svn. You"
700 - ewarn "have been warned."
701 - fi
702 -
703 - if use perforce ; then
704 - python-single-r1_pkg_setup
705 - fi
706 -}
707 -
708 -# This is needed because for some obscure reasons future calls to make don't
709 -# pick up these exports if we export them in src_unpack()
710 -exportmakeopts() {
711 - local extlibs myopts
712 -
713 - myopts=(
714 - ASCIIDOC_NO_ROFF=YesPlease
715 - $(usex cvs '' NO_CVS=YesPlease)
716 - $(usex elibc_musl NO_REGEX=YesPlease '')
717 - $(usex iconv '' NO_ICONV=YesPlease)
718 - $(usex nls '' NO_GETTEXT=YesPlease)
719 - $(usex perl 'INSTALLDIRS=vendor NO_PERL_CPAN_FALLBACKS=YesPlease' NO_PERL=YesPlease)
720 - $(usex perforce '' NO_PYTHON=YesPlease)
721 - $(usex subversion '' NO_SVN_TESTS=YesPlease)
722 - $(usex threads '' NO_PTHREADS=YesPlease)
723 - $(usex tk '' NO_TCLTK=YesPlease)
724 - )
725 -
726 - if use blksha1 ; then
727 - myopts+=( BLK_SHA1=YesPlease )
728 - elif use ppcsha1 ; then
729 - myopts+=( PPC_SHA1=YesPlease )
730 - fi
731 -
732 - if use curl ; then
733 - use webdav || myopts+=( NO_EXPAT=YesPlease )
734 - else
735 - myopts+=( NO_CURL=YesPlease )
736 - fi
737 -
738 - # broken assumptions, because of static build system ...
739 - myopts+=(
740 - NO_FINK=YesPlease
741 - NO_DARWIN_PORTS=YesPlease
742 - INSTALL=install
743 - TAR=tar
744 - SHELL_PATH="${EPREFIX}/bin/sh"
745 - SANE_TOOL_PATH=
746 - OLD_ICONV=
747 - NO_EXTERNAL_GREP=
748 - )
749 -
750 - # can't define this to null, since the entire makefile depends on it
751 - sed -i -e '/\/usr\/local/s/BASIC_/#BASIC_/' Makefile || die
752 -
753 - if use pcre; then
754 - myopts+=( USE_LIBPCRE2=YesPlease )
755 - extlibs+=( -lpcre2-8 )
756 - fi
757 - if [[ ${CHOST} == *-solaris* ]]; then
758 - myopts+=(
759 - NEEDS_LIBICONV=YesPlease
760 - HAVE_CLOCK_MONOTONIC=1
761 - )
762 - if grep -Fq getdelim "${EROOT}"/usr/include/stdio.h ; then
763 - myopts+=( HAVE_GETDELIM=1 )
764 - fi
765 - fi
766 -
767 - if has_version '>=app-text/asciidoc-8.0' ; then
768 - myopts+=( ASCIIDOC8=YesPlease )
769 - fi
770 -
771 - export MY_MAKEOPTS="${myopts[@]}"
772 - export EXTLIBS="${extlibs[@]}"
773 -}
774 -
775 -src_unpack() {
776 - if [[ ${PV} != *9999 ]] ; then
777 - unpack ${MY_P}.tar.${SRC_URI_SUFFIX}
778 - cd "${S}" || die
779 - unpack ${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
780 - if use doc ; then
781 - pushd "${S}"/Documentation &>/dev/null || die
782 - unpack ${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
783 - popd &>/dev/null || die
784 - fi
785 - else
786 - git-r3_src_unpack
787 - #cp "${FILESDIR}"/GIT-VERSION-GEN .
788 - fi
789 -
790 -}
791 -
792 -src_prepare() {
793 - # add experimental patches to improve mediawiki support
794 - # see patches for origin
795 - if use mediawiki-experimental ; then
796 - PATCHES+=(
797 - "${FILESDIR}"/git-2.7.0-mediawiki-namespaces.patch
798 - "${FILESDIR}"/git-2.7.0-mediawiki-subpages.patch
799 - "${FILESDIR}"/git-2.7.0-mediawiki-500pages.patch
800 - )
801 - fi
802 -
803 - default
804 -
805 - if use prefix ; then
806 - # bug #757309
807 - eapply "${FILESDIR}"/git-2.31.0-darwin-prefix-gettext.patch
808 - fi
809 -
810 - sed -i \
811 - -e 's:^\(CFLAGS[[:space:]]*=\).*$:\1 $(OPTCFLAGS) -Wall:' \
812 - -e 's:^\(LDFLAGS[[:space:]]*=\).*$:\1 $(OPTLDFLAGS):' \
813 - -e 's:^\(CC[[:space:]]* =\).*$:\1$(OPTCC):' \
814 - -e 's:^\(AR[[:space:]]* =\).*$:\1$(OPTAR):' \
815 - -e "s:\(PYTHON_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \
816 - -e "s:\(PERL_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \
817 - Makefile || die
818 -
819 - # Fix docbook2texi command
820 - sed -r -i 's/DOCBOOK2X_TEXI[[:space:]]*=[[:space:]]*docbook2x-texi/DOCBOOK2X_TEXI = docbook2texi.pl/' \
821 - Documentation/Makefile || die
822 -}
823 -
824 -git_emake() {
825 - # bug #320647: PYTHON_PATH
826 - local PYTHON_PATH=""
827 - use perforce && PYTHON_PATH="${PYTHON}"
828 - emake ${MY_MAKEOPTS} \
829 - prefix="${EPREFIX}"/usr \
830 - htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
831 - perllibdir="$(use perl && perl_get_raw_vendorlib)" \
832 - sysconfdir="${EPREFIX}"/etc \
833 - GIT_TEST_OPTS="--no-color" \
834 - OPTAR="$(tc-getAR)" \
835 - OPTCC="$(tc-getCC)" \
836 - OPTCFLAGS="${CFLAGS}" \
837 - OPTLDFLAGS="${LDFLAGS}" \
838 - PERL_PATH="${EPREFIX}/usr/bin/perl" \
839 - PERL_MM_OPT="" \
840 - PYTHON_PATH="${PYTHON_PATH}" \
841 - V=1 \
842 - "$@"
843 -}
844 -
845 -src_configure() {
846 - exportmakeopts
847 -}
848 -
849 -src_compile() {
850 - git_emake || die "emake failed"
851 -
852 - if use perl && use cgi ; then
853 - git_emake gitweb || die "emake gitweb (cgi) failed"
854 - fi
855 -
856 - if [[ ${CHOST} == *-darwin* ]] && tc-is-clang ; then
857 - pushd contrib/credential/osxkeychain &>/dev/null || die
858 - git_emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" \
859 - || die "emake credential-osxkeychain"
860 - popd &>/dev/null || die
861 - fi
862 -
863 - pushd Documentation &>/dev/null || die
864 - if [[ ${PV} == *9999 ]] ; then
865 - git_emake man || die "emake man failed"
866 - if use doc ; then
867 - git_emake info html || die "emake info html failed"
868 - fi
869 - else
870 - if use doc ; then
871 - git_emake info || die "emake info html failed"
872 - fi
873 - fi
874 - popd &>/dev/null || die
875 -
876 - if use gnome-keyring ; then
877 - pushd contrib/credential/libsecret &>/dev/null || die
878 - git_emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" PKG_CONFIG="$(tc-getPKG_CONFIG)"
879 - popd &>/dev/null || die
880 - fi
881 -
882 - pushd contrib/subtree &>/dev/null || die
883 - git_emake git-subtree || die
884 - # git-subtree.1 requires the full USE=doc dependency stack
885 - use doc && git_emake git-subtree.html git-subtree.1
886 - popd &>/dev/null || die
887 -
888 - pushd contrib/diff-highlight &>/dev/null || die
889 - git_emake || die
890 - popd &>/dev/null || die
891 -
892 - if use mediawiki ; then
893 - pushd contrib/mw-to-git &>/dev/null || die
894 - git_emake || die
895 - popd &>/dev/null || die
896 -
897 - fi
898 -}
899 -
900 -src_install() {
901 - git_emake DESTDIR="${D}" install || die "make install failed"
902 -
903 - if [[ ${CHOST} == *-darwin* ]] && tc-is-clang ; then
904 - dobin contrib/credential/osxkeychain/git-credential-osxkeychain
905 - fi
906 -
907 - # Depending on the tarball and manual rebuild of the documentation, the
908 - # manpages may exist in either OR both of these directories.
909 - find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157]
910 - find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157]
911 - dodoc README* Documentation/{SubmittingPatches,CodingGuidelines}
912 - use doc && dodir /usr/share/doc/${PF}/html
913 - local d
914 - for d in / /howto/ /technical/ ; do
915 - docinto ${d}
916 - dodoc Documentation${d}*.txt
917 - if use doc ; then
918 - docinto ${d}/html
919 - dodoc Documentation${d}*.html
920 - fi
921 - done
922 - docinto /
923 - # Upstream does not ship this pre-built :-(
924 - use doc && doinfo Documentation/{git,gitman}.info
925 -
926 - newbashcomp contrib/completion/git-completion.bash ${PN}
927 - bashcomp_alias git gitk
928 - # Not really a bash-completion file (bug #477920)
929 - # but still needed uncompressed (bug #507480)
930 - insinto /usr/share/${PN}
931 - doins contrib/completion/git-prompt.sh
932 -
933 - #dobin contrib/fast-import/git-p4 # Moved upstream
934 - #dodoc contrib/fast-import/git-p4.txt # Moved upstream
935 - newbin contrib/fast-import/import-tars.perl import-tars
936 - exeinto /usr/libexec/git-core/
937 - newexe contrib/git-resurrect.sh git-resurrect
938 -
939 - # git-subtree
940 - pushd contrib/subtree &>/dev/null || die
941 - git_emake DESTDIR="${D}" install || die "Failed to emake install for git-subtree"
942 - if use doc ; then
943 - # Do not move git subtree install-man outside USE=doc!
944 - git_emake DESTDIR="${D}" install-man install-html || die "Failed to emake install-html install-man for git-subtree"
945 - fi
946 - newdoc README README.git-subtree
947 - dodoc git-subtree.txt
948 - popd &>/dev/null || die
949 -
950 - if use mediawiki ; then
951 - pushd contrib/mw-to-git &>/dev/null || die
952 - git_emake DESTDIR="${D}" install
953 - popd &>/dev/null || die
954 - fi
955 -
956 - # diff-highlight
957 - dobin contrib/diff-highlight/diff-highlight
958 - newdoc contrib/diff-highlight/README README.diff-highlight
959 -
960 - # git-jump
961 - exeinto /usr/libexec/git-core/
962 - doexe contrib/git-jump/git-jump
963 - newdoc contrib/git-jump/README git-jump.txt
964 -
965 - # git-contacts
966 - exeinto /usr/libexec/git-core/
967 - doexe contrib/contacts/git-contacts
968 - dodoc contrib/contacts/git-contacts.txt
969 -
970 - if use gnome-keyring ; then
971 - pushd contrib/credential/libsecret &>/dev/null || die
972 - dobin git-credential-libsecret
973 - popd &>/dev/null || die
974 - fi
975 -
976 - dodir /usr/share/${PN}/contrib
977 - # The following are excluded:
978 - # completion - installed above
979 - # diff-highlight - done above
980 - # emacs - removed upstream
981 - # examples - these are stuff that is not used in Git anymore actually
982 - # git-jump - done above
983 - # gitview - installed above
984 - # p4import - excluded because fast-import has a better one
985 - # patches - stuff the Git guys made to go upstream to other places
986 - # persistent-https - TODO
987 - # mw-to-git - TODO
988 - # subtree - build seperately
989 - # svnimport - use git-svn
990 - # thunderbird-patch-inline - fixes thunderbird
991 - local contrib_objects=(
992 - buildsystems
993 - fast-import
994 - hg-to-git
995 - hooks
996 - remotes2config.sh
997 - rerere-train.sh
998 - stats
999 - workdir
1000 - )
1001 - local i
1002 - for i in "${contrib_objects[@]}" ; do
1003 - cp -rf \
1004 - "${S}"/contrib/${i} \
1005 - "${ED}"/usr/share/${PN}/contrib \
1006 - || die "Failed contrib ${i}"
1007 - done
1008 -
1009 - if use perl && use cgi ; then
1010 - # We used to install in /usr/share/${PN}/gitweb
1011 - # but upstream installs in /usr/share/gitweb
1012 - # so we will install a symlink and use their location for compat with other
1013 - # distros
1014 - dosym ../gitweb /usr/share/${PN}/gitweb
1015 -
1016 - # INSTALL discusses configuration issues, not just installation
1017 - docinto /
1018 - newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
1019 - newdoc "${S}"/gitweb/README README.gitweb
1020 -
1021 - for d in "${ED}"/usr/lib{,64}/perl5/ ; do
1022 - if [[ -d "${d}" ]] ; then
1023 - find "${d}" -name .packlist -delete || die
1024 - fi
1025 - done
1026 - else
1027 - rm -rf "${ED}"/usr/share/gitweb
1028 - fi
1029 -
1030 - if ! use subversion ; then
1031 - rm -f "${ED}"/usr/libexec/git-core/git-svn \
1032 - "${ED}"/usr/share/man/man1/git-svn.1*
1033 - fi
1034 -
1035 - if use xinetd ; then
1036 - insinto /etc/xinetd.d
1037 - newins "${FILESDIR}"/git-daemon.xinetd git-daemon
1038 - fi
1039 -
1040 - if ! use prefix ; then
1041 - newinitd "${FILESDIR}"/git-daemon-r2.initd git-daemon
1042 - newconfd "${FILESDIR}"/git-daemon.confd git-daemon
1043 - systemd_newunit "${FILESDIR}/git-daemon_at-r1.service" \
1044 - "git-daemon@.service"
1045 - systemd_dounit "${FILESDIR}/git-daemon.socket"
1046 - fi
1047 -
1048 - perl_delete_localpod
1049 -
1050 - # Remove disabled linguas
1051 - # we could remove sources in src_prepare, but install does not
1052 - # handle missing locale dir well
1053 - rm_loc() {
1054 - if [[ -e "${ED}/usr/share/locale/${1}" ]] ; then
1055 - rm -r "${ED}/usr/share/locale/${1}" || die
1056 - fi
1057 - }
1058 - plocale_for_each_disabled_locale rm_loc
1059 -}
1060 -
1061 -src_test() {
1062 - local disabled=()
1063 - local tests_cvs=(
1064 - t9200-git-cvsexportcommit.sh
1065 - t9400-git-cvsserver-server.sh
1066 - t9401-git-cvsserver-crlf.sh
1067 - t9402-git-cvsserver-refs.sh
1068 - t9600-cvsimport.sh
1069 - t9601-cvsimport-vendor-branch.sh
1070 - t9602-cvsimport-branches-tags.sh
1071 - t9603-cvsimport-patchsets.sh
1072 - t9604-cvsimport-timestamps.sh
1073 - )
1074 - local tests_perl=(
1075 - t3701-add-interactive.sh
1076 - t5502-quickfetch.sh
1077 - t5512-ls-remote.sh
1078 - t5520-pull.sh
1079 - t7106-reset-unborn-branch.sh
1080 - t7501-commit.sh
1081 - )
1082 - # Bug #225601 - t0004 is not suitable for root perm
1083 - # Bug #219839 - t1004 is not suitable for root perm
1084 - # t0001-init.sh - check for init notices EPERM* fails
1085 - local tests_nonroot=(
1086 - t0001-init.sh
1087 - t0004-unwritable.sh
1088 - t0070-fundamental.sh
1089 - t1004-read-tree-m-u-wf.sh
1090 - t3700-add.sh
1091 - t7300-clean.sh
1092 - )
1093 - # t9100 still fails with symlinks in SVN 1.7
1094 - local test_svn=( t9100-git-svn-basic.sh )
1095 -
1096 - # Unzip is used only for the testcase code, not by any normal parts of Git.
1097 - if ! has_version app-arch/unzip ; then
1098 - einfo "Disabling tar-tree tests"
1099 - disabled+=( t5000-tar-tree.sh )
1100 - fi
1101 -
1102 - local cvs=0
1103 - use cvs && let cvs=${cvs}+1
1104 - if [[ ${EUID} -eq 0 ]] ; then
1105 - if [[ ${cvs} -eq 1 ]] ; then
1106 - ewarn "Skipping CVS tests because CVS does not work as root!"
1107 - ewarn "You should retest with FEATURES=userpriv!"
1108 - disabled+=( ${tests_cvs[@]} )
1109 - fi
1110 - einfo "Skipping other tests that require being non-root"
1111 - disabled+=( ${tests_nonroot[@]} )
1112 - else
1113 - [[ ${cvs} -gt 0 ]] && \
1114 - has_version dev-vcs/cvs && \
1115 - let cvs=${cvs}+1
1116 - [[ ${cvs} -gt 1 ]] && \
1117 - has_version "dev-vcs/cvs[server]" && \
1118 - let cvs=${cvs}+1
1119 - if [[ ${cvs} -lt 3 ]] ; then
1120 - einfo "Disabling CVS tests (needs dev-vcs/cvs[USE=server])"
1121 - disabled+=( ${tests_cvs[@]} )
1122 - fi
1123 - fi
1124 -
1125 - if ! use perl ; then
1126 - einfo "Disabling tests that need Perl"
1127 - disabled+=( ${tests_perl[@]} )
1128 - fi
1129 -
1130 - einfo "Disabling tests that fail with SVN 1.7"
1131 - disabled+=( ${test_svn[@]} )
1132 -
1133 - # Reset all previously disabled tests
1134 - pushd t &>/dev/null || die
1135 - local i
1136 - for i in *.sh.DISABLED ; do
1137 - [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
1138 - done
1139 - einfo "Disabled tests:"
1140 - for i in ${disabled[@]} ; do
1141 - if [[ -f "${i}" ]] ; then
1142 - mv -f "${i}" "${i}.DISABLED" && einfo "Disabled ${i}"
1143 - fi
1144 - done
1145 -
1146 - # Avoid the test system removing the results because we want them ourselves
1147 - sed -e '/^[[:space:]]*$(MAKE) clean/s,^,#,g' -i Makefile || die
1148 -
1149 - # Clean old results first, must always run
1150 - nonfatal git_emake clean
1151 - popd &>/dev/null || die
1152 -
1153 - # Now run the tests, keep going if we hit an error, and don't terminate on
1154 - # failure
1155 - local rc
1156 - einfo "Start test run"
1157 - #MAKEOPTS=-j1
1158 - nonfatal git_emake --keep-going test
1159 - rc=$?
1160 -
1161 - # Display nice results, now print the results
1162 - pushd t &>/dev/null || die
1163 - nonfatal git_emake aggregate-results
1164 -
1165 - # And bail if there was a problem
1166 - [[ ${rc} -eq 0 ]] || die "tests failed. Please file a bug."
1167 -}
1168 -
1169 -showpkgdeps() {
1170 - local pkg=$1
1171 - shift
1172 - elog " $(printf "%-17s:" ${pkg}) ${@}"
1173 -}
1174 -
1175 -pkg_postinst() {
1176 - elog "Please read /usr/share/bash-completion/completions/git for Git bash command"
1177 - elog "completion."
1178 - elog "Please read /usr/share/git/git-prompt.sh for Git bash prompt"
1179 - elog "Note that the prompt bash code is now in that separate script"
1180 - elog "These additional scripts need some dependencies:"
1181 - echo
1182 - showpkgdeps git-quiltimport "dev-util/quilt"
1183 - showpkgdeps git-instaweb \
1184 - "|| ( www-servers/lighttpd www-servers/apache www-servers/nginx )"
1185 - echo
1186 - use mediawiki-experimental && ewarn "Using experimental git-mediawiki patches. The stability of cloned wiki filesystems is not guaranteed."
1187 -}
1188
1189 diff --git a/dev-vcs/git/git-2.35.5.ebuild b/dev-vcs/git/git-2.35.5.ebuild
1190 deleted file mode 100644
1191 index cf66a5432c9c..000000000000
1192 --- a/dev-vcs/git/git-2.35.5.ebuild
1193 +++ /dev/null
1194 @@ -1,641 +0,0 @@
1195 -# Copyright 1999-2022 Gentoo Authors
1196 -# Distributed under the terms of the GNU General Public License v2
1197 -
1198 -EAPI=8
1199 -
1200 -GENTOO_DEPEND_ON_PERL=no
1201 -
1202 -# bug #329479: git-remote-testgit is not multiple-version aware
1203 -PYTHON_COMPAT=( python3_{8..10} )
1204 -
1205 -inherit toolchain-funcs perl-module bash-completion-r1 plocale python-single-r1 systemd
1206 -
1207 -PLOCALES="bg ca de es fr is it ko pt_PT ru sv vi zh_CN"
1208 -if [[ ${PV} == *9999 ]]; then
1209 - inherit git-r3
1210 - EGIT_REPO_URI="https://git.kernel.org/pub/scm/git/git.git"
1211 - # Please ensure that all _four_ 9999 ebuilds get updated; they track the 4 upstream branches.
1212 - # See https://git-scm.com/docs/gitworkflows#_graduation
1213 - # In order of stability:
1214 - # 9999-r0: maint
1215 - # 9999-r1: master
1216 - # 9999-r2: next
1217 - # 9999-r3: seen
1218 - case "${PVR}" in
1219 - 9999) EGIT_BRANCH=maint ;;
1220 - 9999-r1) EGIT_BRANCH=master ;;
1221 - 9999-r2) EGIT_BRANCH=next;;
1222 - 9999-r3) EGIT_BRANCH=seen ;;
1223 - esac
1224 -fi
1225 -
1226 -MY_PV="${PV/_rc/.rc}"
1227 -MY_P="${PN}-${MY_PV}"
1228 -
1229 -DOC_VER="${MY_PV}"
1230 -
1231 -DESCRIPTION="stupid content tracker: distributed VCS designed for speed and efficiency"
1232 -HOMEPAGE="https://www.git-scm.com/"
1233 -if [[ ${PV} != *9999 ]]; then
1234 - SRC_URI_SUFFIX="xz"
1235 - SRC_URI_KORG="https://www.kernel.org/pub/software/scm/git"
1236 - [[ "${PV/rc}" != "${PV}" ]] && SRC_URI_KORG+='/testing'
1237 - SRC_URI="${SRC_URI_KORG}/${MY_P}.tar.${SRC_URI_SUFFIX}
1238 - ${SRC_URI_KORG}/${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
1239 - doc? (
1240 - ${SRC_URI_KORG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
1241 - )"
1242 - [[ "${PV}" == *_rc* ]] || \
1243 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
1244 -fi
1245 -
1246 -LICENSE="GPL-2"
1247 -SLOT="0"
1248 -IUSE="+blksha1 +curl cgi doc gnome-keyring +gpg highlight +iconv mediawiki mediawiki-experimental +nls +pcre perforce +perl +ppcsha1 selinux subversion tk +threads +webdav xinetd cvs test"
1249 -
1250 -# Common to both DEPEND and RDEPEND
1251 -DEPEND="
1252 - gnome-keyring? (
1253 - app-crypt/libsecret
1254 - dev-libs/glib:2
1255 - )
1256 - dev-libs/openssl:0=
1257 - sys-libs/zlib
1258 - pcre? ( dev-libs/libpcre2:= )
1259 - perl? ( dev-lang/perl:=[-build(-)] )
1260 - tk? ( dev-lang/tk:0= )
1261 - curl? (
1262 - net-misc/curl
1263 - webdav? ( dev-libs/expat )
1264 - )
1265 - iconv? ( virtual/libiconv )
1266 -"
1267 -
1268 -RDEPEND="${DEPEND}
1269 - gpg? ( app-crypt/gnupg )
1270 - perl? (
1271 - dev-perl/Error
1272 - dev-perl/MailTools
1273 - dev-perl/Authen-SASL
1274 - >=virtual/perl-libnet-3.110.0-r4[ssl]
1275 - cgi? (
1276 - dev-perl/CGI
1277 - highlight? ( app-text/highlight )
1278 - )
1279 - cvs? (
1280 - >=dev-vcs/cvsps-2.1:0
1281 - dev-perl/DBI
1282 - dev-perl/DBD-SQLite
1283 - )
1284 - mediawiki? (
1285 - dev-perl/DateTime-Format-ISO8601
1286 - dev-perl/HTML-Tree
1287 - dev-perl/MediaWiki-API
1288 - )
1289 - subversion? (
1290 - dev-vcs/subversion[-dso(-),perl]
1291 - dev-perl/libwww-perl
1292 - dev-perl/TermReadKey
1293 - )
1294 - )
1295 - perforce? ( ${PYTHON_DEPS} )
1296 - selinux? ( sec-policy/selinux-git )
1297 -"
1298 -
1299 -# This is how info docs are created with Git:
1300 -# .txt/asciidoc --(asciidoc)---------> .xml/docbook
1301 -# .xml/docbook --(docbook2texi.pl)--> .texi
1302 -# .texi --(makeinfo)---------> .info
1303 -BDEPEND="
1304 - doc? (
1305 - app-text/asciidoc
1306 - app-text/docbook2X
1307 - app-text/xmlto
1308 - sys-apps/texinfo
1309 - )
1310 - gnome-keyring? ( virtual/pkgconfig )
1311 - nls? ( sys-devel/gettext )
1312 - test? ( app-crypt/gnupg )
1313 -"
1314 -
1315 -# Live ebuild builds man pages and HTML docs, additionally
1316 -if [[ ${PV} == *9999 ]]; then
1317 - BDEPEND="${BDEPEND}
1318 - app-text/asciidoc"
1319 -fi
1320 -
1321 -SITEFILE="50${PN}-gentoo.el"
1322 -S="${WORKDIR}/${MY_P}"
1323 -
1324 -REQUIRED_USE="
1325 - cgi? ( perl )
1326 - cvs? ( perl )
1327 - mediawiki? ( perl )
1328 - mediawiki-experimental? ( mediawiki )
1329 - perforce? ( ${PYTHON_REQUIRED_USE} )
1330 - subversion? ( perl )
1331 - webdav? ( curl )
1332 -"
1333 -
1334 -RESTRICT="!test? ( test )"
1335 -
1336 -PATCHES=(
1337 - # bug #350330 - automagic CVS when we don't want it is bad.
1338 - "${FILESDIR}"/git-2.33.0_rc0-optional-cvs.patch
1339 -
1340 - # Make submodule output quiet
1341 - "${FILESDIR}"/git-2.21.0-quiet-submodules-testcase.patch
1342 -)
1343 -
1344 -pkg_setup() {
1345 - if use subversion && has_version "dev-vcs/subversion[dso]" ; then
1346 - ewarn "Per Gentoo bugs #223747, #238586, when subversion is built"
1347 - ewarn "with USE=dso, there may be weird crashes in git-svn. You"
1348 - ewarn "have been warned."
1349 - fi
1350 -
1351 - if use perforce ; then
1352 - python-single-r1_pkg_setup
1353 - fi
1354 -}
1355 -
1356 -# This is needed because for some obscure reasons future calls to make don't
1357 -# pick up these exports if we export them in src_unpack()
1358 -exportmakeopts() {
1359 - local extlibs myopts
1360 -
1361 - myopts=(
1362 - ASCIIDOC_NO_ROFF=YesPlease
1363 - $(usex cvs '' NO_CVS=YesPlease)
1364 - $(usex elibc_musl NO_REGEX=YesPlease '')
1365 - $(usex iconv '' NO_ICONV=YesPlease)
1366 - $(usex nls '' NO_GETTEXT=YesPlease)
1367 - $(usex perl 'INSTALLDIRS=vendor NO_PERL_CPAN_FALLBACKS=YesPlease' NO_PERL=YesPlease)
1368 - $(usex perforce '' NO_PYTHON=YesPlease)
1369 - $(usex subversion '' NO_SVN_TESTS=YesPlease)
1370 - $(usex threads '' NO_PTHREADS=YesPlease)
1371 - $(usex tk '' NO_TCLTK=YesPlease)
1372 - )
1373 -
1374 - if use blksha1 ; then
1375 - myopts+=( BLK_SHA1=YesPlease )
1376 - elif use ppcsha1 ; then
1377 - myopts+=( PPC_SHA1=YesPlease )
1378 - fi
1379 -
1380 - if use curl ; then
1381 - use webdav || myopts+=( NO_EXPAT=YesPlease )
1382 - else
1383 - myopts+=( NO_CURL=YesPlease )
1384 - fi
1385 -
1386 - # broken assumptions, because of static build system ...
1387 - myopts+=(
1388 - NO_FINK=YesPlease
1389 - NO_DARWIN_PORTS=YesPlease
1390 - INSTALL=install
1391 - TAR=tar
1392 - SHELL_PATH="${EPREFIX}/bin/sh"
1393 - SANE_TOOL_PATH=
1394 - OLD_ICONV=
1395 - NO_EXTERNAL_GREP=
1396 - )
1397 -
1398 - # can't define this to null, since the entire makefile depends on it
1399 - sed -i -e '/\/usr\/local/s/BASIC_/#BASIC_/' Makefile || die
1400 -
1401 - if use pcre; then
1402 - myopts+=( USE_LIBPCRE2=YesPlease )
1403 - extlibs+=( -lpcre2-8 )
1404 - fi
1405 - if [[ ${CHOST} == *-solaris* ]]; then
1406 - myopts+=(
1407 - NEEDS_LIBICONV=YesPlease
1408 - HAVE_CLOCK_MONOTONIC=1
1409 - )
1410 - if grep -Fq getdelim "${EROOT}"/usr/include/stdio.h ; then
1411 - myopts+=( HAVE_GETDELIM=1 )
1412 - fi
1413 - fi
1414 -
1415 - if has_version '>=app-text/asciidoc-8.0' ; then
1416 - myopts+=( ASCIIDOC8=YesPlease )
1417 - fi
1418 -
1419 - export MY_MAKEOPTS="${myopts[@]}"
1420 - export EXTLIBS="${extlibs[@]}"
1421 -}
1422 -
1423 -src_unpack() {
1424 - if [[ ${PV} != *9999 ]] ; then
1425 - unpack ${MY_P}.tar.${SRC_URI_SUFFIX}
1426 - cd "${S}" || die
1427 - unpack ${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
1428 - if use doc ; then
1429 - pushd "${S}"/Documentation &>/dev/null || die
1430 - unpack ${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
1431 - popd &>/dev/null || die
1432 - fi
1433 - else
1434 - git-r3_src_unpack
1435 - #cp "${FILESDIR}"/GIT-VERSION-GEN .
1436 - fi
1437 -
1438 -}
1439 -
1440 -src_prepare() {
1441 - # add experimental patches to improve mediawiki support
1442 - # see patches for origin
1443 - if use mediawiki-experimental ; then
1444 - PATCHES+=(
1445 - "${FILESDIR}"/git-2.7.0-mediawiki-namespaces.patch
1446 - "${FILESDIR}"/git-2.7.0-mediawiki-subpages.patch
1447 - "${FILESDIR}"/git-2.7.0-mediawiki-500pages.patch
1448 - )
1449 - fi
1450 -
1451 - default
1452 -
1453 - if use prefix ; then
1454 - # bug #757309
1455 - eapply "${FILESDIR}"/git-2.31.0-darwin-prefix-gettext.patch
1456 - fi
1457 -
1458 - sed -i \
1459 - -e 's:^\(CFLAGS[[:space:]]*=\).*$:\1 $(OPTCFLAGS) -Wall:' \
1460 - -e 's:^\(LDFLAGS[[:space:]]*=\).*$:\1 $(OPTLDFLAGS):' \
1461 - -e 's:^\(CC[[:space:]]* =\).*$:\1$(OPTCC):' \
1462 - -e 's:^\(AR[[:space:]]* =\).*$:\1$(OPTAR):' \
1463 - -e "s:\(PYTHON_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \
1464 - -e "s:\(PERL_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \
1465 - Makefile || die
1466 -
1467 - # Fix docbook2texi command
1468 - sed -r -i 's/DOCBOOK2X_TEXI[[:space:]]*=[[:space:]]*docbook2x-texi/DOCBOOK2X_TEXI = docbook2texi.pl/' \
1469 - Documentation/Makefile || die
1470 -}
1471 -
1472 -git_emake() {
1473 - # bug #320647: PYTHON_PATH
1474 - local PYTHON_PATH=""
1475 - use perforce && PYTHON_PATH="${PYTHON}"
1476 - emake ${MY_MAKEOPTS} \
1477 - prefix="${EPREFIX}"/usr \
1478 - htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
1479 - perllibdir="$(use perl && perl_get_raw_vendorlib)" \
1480 - sysconfdir="${EPREFIX}"/etc \
1481 - GIT_TEST_OPTS="--no-color" \
1482 - OPTAR="$(tc-getAR)" \
1483 - OPTCC="$(tc-getCC)" \
1484 - OPTCFLAGS="${CFLAGS}" \
1485 - OPTLDFLAGS="${LDFLAGS}" \
1486 - PERL_PATH="${EPREFIX}/usr/bin/perl" \
1487 - PERL_MM_OPT="" \
1488 - PYTHON_PATH="${PYTHON_PATH}" \
1489 - V=1 \
1490 - "$@"
1491 -}
1492 -
1493 -src_configure() {
1494 - exportmakeopts
1495 -}
1496 -
1497 -src_compile() {
1498 - git_emake || die "emake failed"
1499 -
1500 - if use perl && use cgi ; then
1501 - git_emake gitweb || die "emake gitweb (cgi) failed"
1502 - fi
1503 -
1504 - if [[ ${CHOST} == *-darwin* ]] && tc-is-clang ; then
1505 - pushd contrib/credential/osxkeychain &>/dev/null || die
1506 - git_emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" \
1507 - || die "emake credential-osxkeychain"
1508 - popd &>/dev/null || die
1509 - fi
1510 -
1511 - pushd Documentation &>/dev/null || die
1512 - if [[ ${PV} == *9999 ]] ; then
1513 - git_emake man || die "emake man failed"
1514 - if use doc ; then
1515 - git_emake info html || die "emake info html failed"
1516 - fi
1517 - else
1518 - if use doc ; then
1519 - git_emake info || die "emake info html failed"
1520 - fi
1521 - fi
1522 - popd &>/dev/null || die
1523 -
1524 - if use gnome-keyring ; then
1525 - pushd contrib/credential/libsecret &>/dev/null || die
1526 - git_emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" PKG_CONFIG="$(tc-getPKG_CONFIG)"
1527 - popd &>/dev/null || die
1528 - fi
1529 -
1530 - pushd contrib/subtree &>/dev/null || die
1531 - git_emake git-subtree || die
1532 - # git-subtree.1 requires the full USE=doc dependency stack
1533 - use doc && git_emake git-subtree.html git-subtree.1
1534 - popd &>/dev/null || die
1535 -
1536 - pushd contrib/diff-highlight &>/dev/null || die
1537 - git_emake || die
1538 - popd &>/dev/null || die
1539 -
1540 - if use mediawiki ; then
1541 - pushd contrib/mw-to-git &>/dev/null || die
1542 - git_emake || die
1543 - popd &>/dev/null || die
1544 -
1545 - fi
1546 -}
1547 -
1548 -src_install() {
1549 - git_emake DESTDIR="${D}" install || die "make install failed"
1550 -
1551 - if [[ ${CHOST} == *-darwin* ]] && tc-is-clang ; then
1552 - dobin contrib/credential/osxkeychain/git-credential-osxkeychain
1553 - fi
1554 -
1555 - # Depending on the tarball and manual rebuild of the documentation, the
1556 - # manpages may exist in either OR both of these directories.
1557 - find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157]
1558 - find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157]
1559 - dodoc README* Documentation/{SubmittingPatches,CodingGuidelines}
1560 - use doc && dodir /usr/share/doc/${PF}/html
1561 - local d
1562 - for d in / /howto/ /technical/ ; do
1563 - docinto ${d}
1564 - dodoc Documentation${d}*.txt
1565 - if use doc ; then
1566 - docinto ${d}/html
1567 - dodoc Documentation${d}*.html
1568 - fi
1569 - done
1570 - docinto /
1571 - # Upstream does not ship this pre-built :-(
1572 - use doc && doinfo Documentation/{git,gitman}.info
1573 -
1574 - newbashcomp contrib/completion/git-completion.bash ${PN}
1575 - bashcomp_alias git gitk
1576 - # Not really a bash-completion file (bug #477920)
1577 - # but still needed uncompressed (bug #507480)
1578 - insinto /usr/share/${PN}
1579 - doins contrib/completion/git-prompt.sh
1580 -
1581 - #dobin contrib/fast-import/git-p4 # Moved upstream
1582 - #dodoc contrib/fast-import/git-p4.txt # Moved upstream
1583 - newbin contrib/fast-import/import-tars.perl import-tars
1584 - exeinto /usr/libexec/git-core/
1585 - newexe contrib/git-resurrect.sh git-resurrect
1586 -
1587 - # git-subtree
1588 - pushd contrib/subtree &>/dev/null || die
1589 - git_emake DESTDIR="${D}" install || die "Failed to emake install for git-subtree"
1590 - if use doc ; then
1591 - # Do not move git subtree install-man outside USE=doc!
1592 - git_emake DESTDIR="${D}" install-man install-html || die "Failed to emake install-html install-man for git-subtree"
1593 - fi
1594 - newdoc README README.git-subtree
1595 - dodoc git-subtree.txt
1596 - popd &>/dev/null || die
1597 -
1598 - if use mediawiki ; then
1599 - pushd contrib/mw-to-git &>/dev/null || die
1600 - git_emake DESTDIR="${D}" install
1601 - popd &>/dev/null || die
1602 - fi
1603 -
1604 - # diff-highlight
1605 - dobin contrib/diff-highlight/diff-highlight
1606 - newdoc contrib/diff-highlight/README README.diff-highlight
1607 -
1608 - # git-jump
1609 - exeinto /usr/libexec/git-core/
1610 - doexe contrib/git-jump/git-jump
1611 - newdoc contrib/git-jump/README git-jump.txt
1612 -
1613 - # git-contacts
1614 - exeinto /usr/libexec/git-core/
1615 - doexe contrib/contacts/git-contacts
1616 - dodoc contrib/contacts/git-contacts.txt
1617 -
1618 - if use gnome-keyring ; then
1619 - pushd contrib/credential/libsecret &>/dev/null || die
1620 - dobin git-credential-libsecret
1621 - popd &>/dev/null || die
1622 - fi
1623 -
1624 - dodir /usr/share/${PN}/contrib
1625 - # The following are excluded:
1626 - # completion - installed above
1627 - # diff-highlight - done above
1628 - # emacs - removed upstream
1629 - # examples - these are stuff that is not used in Git anymore actually
1630 - # git-jump - done above
1631 - # gitview - installed above
1632 - # p4import - excluded because fast-import has a better one
1633 - # patches - stuff the Git guys made to go upstream to other places
1634 - # persistent-https - TODO
1635 - # mw-to-git - TODO
1636 - # subtree - build seperately
1637 - # svnimport - use git-svn
1638 - # thunderbird-patch-inline - fixes thunderbird
1639 - local contrib_objects=(
1640 - buildsystems
1641 - fast-import
1642 - hg-to-git
1643 - hooks
1644 - remotes2config.sh
1645 - rerere-train.sh
1646 - stats
1647 - workdir
1648 - )
1649 - local i
1650 - for i in "${contrib_objects[@]}" ; do
1651 - cp -rf \
1652 - "${S}"/contrib/${i} \
1653 - "${ED}"/usr/share/${PN}/contrib \
1654 - || die "Failed contrib ${i}"
1655 - done
1656 -
1657 - if use perl && use cgi ; then
1658 - # We used to install in /usr/share/${PN}/gitweb
1659 - # but upstream installs in /usr/share/gitweb
1660 - # so we will install a symlink and use their location for compat with other
1661 - # distros
1662 - dosym ../gitweb /usr/share/${PN}/gitweb
1663 -
1664 - # INSTALL discusses configuration issues, not just installation
1665 - docinto /
1666 - newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
1667 - newdoc "${S}"/gitweb/README README.gitweb
1668 -
1669 - for d in "${ED}"/usr/lib{,64}/perl5/ ; do
1670 - if [[ -d "${d}" ]] ; then
1671 - find "${d}" -name .packlist -delete || die
1672 - fi
1673 - done
1674 - else
1675 - rm -rf "${ED}"/usr/share/gitweb
1676 - fi
1677 -
1678 - if ! use subversion ; then
1679 - rm -f "${ED}"/usr/libexec/git-core/git-svn \
1680 - "${ED}"/usr/share/man/man1/git-svn.1*
1681 - fi
1682 -
1683 - if use xinetd ; then
1684 - insinto /etc/xinetd.d
1685 - newins "${FILESDIR}"/git-daemon.xinetd git-daemon
1686 - fi
1687 -
1688 - if ! use prefix ; then
1689 - newinitd "${FILESDIR}"/git-daemon-r2.initd git-daemon
1690 - newconfd "${FILESDIR}"/git-daemon.confd git-daemon
1691 - systemd_newunit "${FILESDIR}/git-daemon_at-r1.service" \
1692 - "git-daemon@.service"
1693 - systemd_dounit "${FILESDIR}/git-daemon.socket"
1694 - fi
1695 -
1696 - perl_delete_localpod
1697 -
1698 - # Remove disabled linguas
1699 - # we could remove sources in src_prepare, but install does not
1700 - # handle missing locale dir well
1701 - rm_loc() {
1702 - if [[ -e "${ED}/usr/share/locale/${1}" ]] ; then
1703 - rm -r "${ED}/usr/share/locale/${1}" || die
1704 - fi
1705 - }
1706 - plocale_for_each_disabled_locale rm_loc
1707 -}
1708 -
1709 -src_test() {
1710 - local disabled=()
1711 - local tests_cvs=(
1712 - t9200-git-cvsexportcommit.sh
1713 - t9400-git-cvsserver-server.sh
1714 - t9401-git-cvsserver-crlf.sh
1715 - t9402-git-cvsserver-refs.sh
1716 - t9600-cvsimport.sh
1717 - t9601-cvsimport-vendor-branch.sh
1718 - t9602-cvsimport-branches-tags.sh
1719 - t9603-cvsimport-patchsets.sh
1720 - t9604-cvsimport-timestamps.sh
1721 - )
1722 - local tests_perl=(
1723 - t3701-add-interactive.sh
1724 - t5502-quickfetch.sh
1725 - t5512-ls-remote.sh
1726 - t5520-pull.sh
1727 - t7106-reset-unborn-branch.sh
1728 - t7501-commit.sh
1729 - )
1730 - # Bug #225601 - t0004 is not suitable for root perm
1731 - # Bug #219839 - t1004 is not suitable for root perm
1732 - # t0001-init.sh - check for init notices EPERM* fails
1733 - local tests_nonroot=(
1734 - t0001-init.sh
1735 - t0004-unwritable.sh
1736 - t0070-fundamental.sh
1737 - t1004-read-tree-m-u-wf.sh
1738 - t3700-add.sh
1739 - t7300-clean.sh
1740 - )
1741 - # t9100 still fails with symlinks in SVN 1.7
1742 - local test_svn=( t9100-git-svn-basic.sh )
1743 -
1744 - # Unzip is used only for the testcase code, not by any normal parts of Git.
1745 - if ! has_version app-arch/unzip ; then
1746 - einfo "Disabling tar-tree tests"
1747 - disabled+=( t5000-tar-tree.sh )
1748 - fi
1749 -
1750 - local cvs=0
1751 - use cvs && let cvs=${cvs}+1
1752 - if [[ ${EUID} -eq 0 ]] ; then
1753 - if [[ ${cvs} -eq 1 ]] ; then
1754 - ewarn "Skipping CVS tests because CVS does not work as root!"
1755 - ewarn "You should retest with FEATURES=userpriv!"
1756 - disabled+=( ${tests_cvs[@]} )
1757 - fi
1758 - einfo "Skipping other tests that require being non-root"
1759 - disabled+=( ${tests_nonroot[@]} )
1760 - else
1761 - [[ ${cvs} -gt 0 ]] && \
1762 - has_version dev-vcs/cvs && \
1763 - let cvs=${cvs}+1
1764 - [[ ${cvs} -gt 1 ]] && \
1765 - has_version "dev-vcs/cvs[server]" && \
1766 - let cvs=${cvs}+1
1767 - if [[ ${cvs} -lt 3 ]] ; then
1768 - einfo "Disabling CVS tests (needs dev-vcs/cvs[USE=server])"
1769 - disabled+=( ${tests_cvs[@]} )
1770 - fi
1771 - fi
1772 -
1773 - if ! use perl ; then
1774 - einfo "Disabling tests that need Perl"
1775 - disabled+=( ${tests_perl[@]} )
1776 - fi
1777 -
1778 - einfo "Disabling tests that fail with SVN 1.7"
1779 - disabled+=( ${test_svn[@]} )
1780 -
1781 - # Reset all previously disabled tests
1782 - pushd t &>/dev/null || die
1783 - local i
1784 - for i in *.sh.DISABLED ; do
1785 - [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
1786 - done
1787 - einfo "Disabled tests:"
1788 - for i in ${disabled[@]} ; do
1789 - if [[ -f "${i}" ]] ; then
1790 - mv -f "${i}" "${i}.DISABLED" && einfo "Disabled ${i}"
1791 - fi
1792 - done
1793 -
1794 - # Avoid the test system removing the results because we want them ourselves
1795 - sed -e '/^[[:space:]]*$(MAKE) clean/s,^,#,g' -i Makefile || die
1796 -
1797 - # Clean old results first, must always run
1798 - nonfatal git_emake clean
1799 - popd &>/dev/null || die
1800 -
1801 - # Now run the tests, keep going if we hit an error, and don't terminate on
1802 - # failure
1803 - local rc
1804 - einfo "Start test run"
1805 - #MAKEOPTS=-j1
1806 - nonfatal git_emake --keep-going test
1807 - rc=$?
1808 -
1809 - # Display nice results, now print the results
1810 - pushd t &>/dev/null || die
1811 - nonfatal git_emake aggregate-results
1812 -
1813 - # And bail if there was a problem
1814 - [[ ${rc} -eq 0 ]] || die "tests failed. Please file a bug."
1815 -}
1816 -
1817 -showpkgdeps() {
1818 - local pkg=$1
1819 - shift
1820 - elog " $(printf "%-17s:" ${pkg}) ${@}"
1821 -}
1822 -
1823 -pkg_postinst() {
1824 - elog "Please read /usr/share/bash-completion/completions/git for Git bash command"
1825 - elog "completion."
1826 - elog "Please read /usr/share/git/git-prompt.sh for Git bash prompt"
1827 - elog "Note that the prompt bash code is now in that separate script"
1828 - elog "These additional scripts need some dependencies:"
1829 - echo
1830 - showpkgdeps git-quiltimport "dev-util/quilt"
1831 - showpkgdeps git-instaweb \
1832 - "|| ( www-servers/lighttpd www-servers/apache www-servers/nginx )"
1833 - echo
1834 - use mediawiki-experimental && ewarn "Using experimental git-mediawiki patches. The stability of cloned wiki filesystems is not guaranteed."
1835 -}
1836
1837 diff --git a/dev-vcs/git/git-2.37.4.ebuild b/dev-vcs/git/git-2.37.4.ebuild
1838 deleted file mode 100644
1839 index a406c1e82c27..000000000000
1840 --- a/dev-vcs/git/git-2.37.4.ebuild
1841 +++ /dev/null
1842 @@ -1,647 +0,0 @@
1843 -# Copyright 1999-2022 Gentoo Authors
1844 -# Distributed under the terms of the GNU General Public License v2
1845 -
1846 -EAPI=8
1847 -
1848 -GENTOO_DEPEND_ON_PERL=no
1849 -
1850 -# bug #329479: git-remote-testgit is not multiple-version aware
1851 -PYTHON_COMPAT=( python3_{8..10} )
1852 -
1853 -inherit toolchain-funcs perl-module bash-completion-r1 plocale python-single-r1 systemd
1854 -
1855 -PLOCALES="bg ca de es fr is it ko pt_PT ru sv vi zh_CN"
1856 -if [[ ${PV} == *9999 ]]; then
1857 - inherit git-r3
1858 - EGIT_REPO_URI="https://git.kernel.org/pub/scm/git/git.git"
1859 - # Please ensure that all _four_ 9999 ebuilds get updated; they track the 4 upstream branches.
1860 - # See https://git-scm.com/docs/gitworkflows#_graduation
1861 - # In order of stability:
1862 - # 9999-r0: maint
1863 - # 9999-r1: master
1864 - # 9999-r2: next
1865 - # 9999-r3: seen
1866 - case "${PVR}" in
1867 - 9999) EGIT_BRANCH=maint ;;
1868 - 9999-r1) EGIT_BRANCH=master ;;
1869 - 9999-r2) EGIT_BRANCH=next;;
1870 - 9999-r3) EGIT_BRANCH=seen ;;
1871 - esac
1872 -fi
1873 -
1874 -MY_PV="${PV/_rc/.rc}"
1875 -MY_P="${PN}-${MY_PV}"
1876 -
1877 -DOC_VER="${MY_PV}"
1878 -
1879 -DESCRIPTION="stupid content tracker: distributed VCS designed for speed and efficiency"
1880 -HOMEPAGE="https://www.git-scm.com/"
1881 -if [[ ${PV} != *9999 ]]; then
1882 - SRC_URI_SUFFIX="xz"
1883 - SRC_URI_KORG="https://www.kernel.org/pub/software/scm/git"
1884 - [[ "${PV/rc}" != "${PV}" ]] && SRC_URI_KORG+='/testing'
1885 - SRC_URI="${SRC_URI_KORG}/${MY_P}.tar.${SRC_URI_SUFFIX}
1886 - ${SRC_URI_KORG}/${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
1887 - doc? (
1888 - ${SRC_URI_KORG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
1889 - )"
1890 - [[ "${PV}" == *_rc* ]] || \
1891 - KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
1892 -fi
1893 -
1894 -LICENSE="GPL-2"
1895 -SLOT="0"
1896 -IUSE="+blksha1 +curl cgi doc gnome-keyring +gpg highlight +iconv mediawiki mediawiki-experimental +nls +pcre perforce +perl +ppcsha1 +safe-directory selinux subversion tk +webdav xinetd cvs test"
1897 -
1898 -# Common to both DEPEND and RDEPEND
1899 -DEPEND="
1900 - gnome-keyring? (
1901 - app-crypt/libsecret
1902 - dev-libs/glib:2
1903 - )
1904 - dev-libs/openssl:0=
1905 - sys-libs/zlib
1906 - pcre? ( dev-libs/libpcre2:= )
1907 - perl? ( dev-lang/perl:=[-build(-)] )
1908 - tk? ( dev-lang/tk:0= )
1909 - curl? (
1910 - net-misc/curl
1911 - webdav? ( dev-libs/expat )
1912 - )
1913 - iconv? ( virtual/libiconv )
1914 -"
1915 -
1916 -RDEPEND="${DEPEND}
1917 - gpg? ( app-crypt/gnupg )
1918 - perl? (
1919 - dev-perl/Error
1920 - dev-perl/MailTools
1921 - dev-perl/Authen-SASL
1922 - >=virtual/perl-libnet-3.110.0-r4[ssl]
1923 - cgi? (
1924 - dev-perl/CGI
1925 - highlight? ( app-text/highlight )
1926 - )
1927 - cvs? (
1928 - >=dev-vcs/cvsps-2.1:0
1929 - dev-perl/DBI
1930 - dev-perl/DBD-SQLite
1931 - )
1932 - mediawiki? (
1933 - dev-perl/DateTime-Format-ISO8601
1934 - dev-perl/HTML-Tree
1935 - dev-perl/MediaWiki-API
1936 - )
1937 - subversion? (
1938 - dev-vcs/subversion[-dso(-),perl]
1939 - dev-perl/libwww-perl
1940 - dev-perl/TermReadKey
1941 - )
1942 - )
1943 - perforce? ( ${PYTHON_DEPS} )
1944 - selinux? ( sec-policy/selinux-git )
1945 -"
1946 -
1947 -# This is how info docs are created with Git:
1948 -# .txt/asciidoc --(asciidoc)---------> .xml/docbook
1949 -# .xml/docbook --(docbook2texi.pl)--> .texi
1950 -# .texi --(makeinfo)---------> .info
1951 -BDEPEND="
1952 - doc? (
1953 - app-text/asciidoc
1954 - app-text/docbook2X
1955 - app-text/xmlto
1956 - sys-apps/texinfo
1957 - )
1958 - gnome-keyring? ( virtual/pkgconfig )
1959 - nls? ( sys-devel/gettext )
1960 - test? ( app-crypt/gnupg )
1961 -"
1962 -
1963 -# Live ebuild builds man pages and HTML docs, additionally
1964 -if [[ ${PV} == *9999 ]]; then
1965 - BDEPEND="${BDEPEND}
1966 - app-text/asciidoc"
1967 -fi
1968 -
1969 -SITEFILE="50${PN}-gentoo.el"
1970 -S="${WORKDIR}/${MY_P}"
1971 -
1972 -REQUIRED_USE="
1973 - cgi? ( perl )
1974 - cvs? ( perl )
1975 - mediawiki? ( perl )
1976 - mediawiki-experimental? ( mediawiki )
1977 - perforce? ( ${PYTHON_REQUIRED_USE} )
1978 - subversion? ( perl )
1979 - webdav? ( curl )
1980 -"
1981 -
1982 -RESTRICT="!test? ( test )"
1983 -
1984 -PATCHES=(
1985 - # bug #350330 - automagic CVS when we don't want it is bad.
1986 - "${FILESDIR}"/git-2.37.0_rc1-optional-cvs.patch
1987 -
1988 - # Make submodule output quiet
1989 - "${FILESDIR}"/git-2.21.0-quiet-submodules-testcase.patch
1990 -)
1991 -
1992 -pkg_setup() {
1993 - if use subversion && has_version "dev-vcs/subversion[dso]" ; then
1994 - ewarn "Per Gentoo bugs #223747, #238586, when subversion is built"
1995 - ewarn "with USE=dso, there may be weird crashes in git-svn. You"
1996 - ewarn "have been warned."
1997 - fi
1998 -
1999 - if use perforce ; then
2000 - python-single-r1_pkg_setup
2001 - fi
2002 -}
2003 -
2004 -# This is needed because for some obscure reasons future calls to make don't
2005 -# pick up these exports if we export them in src_unpack()
2006 -exportmakeopts() {
2007 - local extlibs myopts
2008 -
2009 - myopts=(
2010 - ASCIIDOC_NO_ROFF=YesPlease
2011 - $(usex cvs '' NO_CVS=YesPlease)
2012 - $(usex elibc_musl NO_REGEX=YesPlease '')
2013 - $(usex iconv '' NO_ICONV=YesPlease)
2014 - $(usex nls '' NO_GETTEXT=YesPlease)
2015 - $(usex perl 'INSTALLDIRS=vendor NO_PERL_CPAN_FALLBACKS=YesPlease' NO_PERL=YesPlease)
2016 - $(usex perforce '' NO_PYTHON=YesPlease)
2017 - $(usex subversion '' NO_SVN_TESTS=YesPlease)
2018 - $(usex tk '' NO_TCLTK=YesPlease)
2019 - )
2020 -
2021 - if use blksha1 ; then
2022 - myopts+=( BLK_SHA1=YesPlease )
2023 - elif use ppcsha1 ; then
2024 - myopts+=( PPC_SHA1=YesPlease )
2025 - fi
2026 -
2027 - if use curl ; then
2028 - use webdav || myopts+=( NO_EXPAT=YesPlease )
2029 - else
2030 - myopts+=( NO_CURL=YesPlease )
2031 - fi
2032 -
2033 - # broken assumptions, because of static build system ...
2034 - myopts+=(
2035 - NO_FINK=YesPlease
2036 - NO_DARWIN_PORTS=YesPlease
2037 - INSTALL=install
2038 - TAR=tar
2039 - SHELL_PATH="${EPREFIX}/bin/sh"
2040 - SANE_TOOL_PATH=
2041 - OLD_ICONV=
2042 - NO_EXTERNAL_GREP=
2043 - )
2044 -
2045 - # can't define this to null, since the entire makefile depends on it
2046 - sed -i -e '/\/usr\/local/s/BASIC_/#BASIC_/' Makefile || die
2047 -
2048 - if use pcre; then
2049 - myopts+=( USE_LIBPCRE2=YesPlease )
2050 - extlibs+=( -lpcre2-8 )
2051 - fi
2052 - if [[ ${CHOST} == *-solaris* ]]; then
2053 - myopts+=(
2054 - NEEDS_LIBICONV=YesPlease
2055 - HAVE_CLOCK_MONOTONIC=1
2056 - )
2057 - if grep -Fq getdelim "${EROOT}"/usr/include/stdio.h ; then
2058 - myopts+=( HAVE_GETDELIM=1 )
2059 - fi
2060 - fi
2061 -
2062 - if has_version '>=app-text/asciidoc-8.0' ; then
2063 - myopts+=( ASCIIDOC8=YesPlease )
2064 - fi
2065 -
2066 - export MY_MAKEOPTS="${myopts[@]}"
2067 - export EXTLIBS="${extlibs[@]}"
2068 -}
2069 -
2070 -src_unpack() {
2071 - if [[ ${PV} != *9999 ]] ; then
2072 - unpack ${MY_P}.tar.${SRC_URI_SUFFIX}
2073 - cd "${S}" || die
2074 - unpack ${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
2075 - if use doc ; then
2076 - pushd "${S}"/Documentation &>/dev/null || die
2077 - unpack ${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
2078 - popd &>/dev/null || die
2079 - fi
2080 - else
2081 - git-r3_src_unpack
2082 - #cp "${FILESDIR}"/GIT-VERSION-GEN .
2083 - fi
2084 -
2085 -}
2086 -
2087 -src_prepare() {
2088 - # add experimental patches to improve mediawiki support
2089 - # see patches for origin
2090 - if use mediawiki-experimental ; then
2091 - PATCHES+=(
2092 - "${FILESDIR}"/git-2.7.0-mediawiki-namespaces.patch
2093 - "${FILESDIR}"/git-2.7.0-mediawiki-subpages.patch
2094 - "${FILESDIR}"/git-2.7.0-mediawiki-500pages.patch
2095 - )
2096 - fi
2097 - if ! use safe-directory ; then
2098 - # This patch neuters the "safe directory" detection.
2099 - # bugs #838271, #838223
2100 - PATCHES+=(
2101 - "${FILESDIR}"/git-2.37.2-unsafe-directory.patch
2102 - )
2103 - fi
2104 -
2105 - default
2106 -
2107 - if use prefix ; then
2108 - # bug #757309
2109 - eapply "${FILESDIR}"/git-2.37.2-darwin-prefix-gettext.patch
2110 - fi
2111 -
2112 - sed -i \
2113 - -e 's:^\(CFLAGS[[:space:]]*=\).*$:\1 $(OPTCFLAGS) -Wall:' \
2114 - -e 's:^\(LDFLAGS[[:space:]]*=\).*$:\1 $(OPTLDFLAGS):' \
2115 - -e 's:^\(CC[[:space:]]* =\).*$:\1$(OPTCC):' \
2116 - -e 's:^\(AR[[:space:]]* =\).*$:\1$(OPTAR):' \
2117 - -e "s:\(PYTHON_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \
2118 - -e "s:\(PERL_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \
2119 - Makefile || die
2120 -
2121 - # Fix docbook2texi command
2122 - sed -r -i 's/DOCBOOK2X_TEXI[[:space:]]*=[[:space:]]*docbook2x-texi/DOCBOOK2X_TEXI = docbook2texi.pl/' \
2123 - Documentation/Makefile || die
2124 -}
2125 -
2126 -git_emake() {
2127 - # bug #320647: PYTHON_PATH
2128 - local PYTHON_PATH=""
2129 - use perforce && PYTHON_PATH="${PYTHON}"
2130 - emake ${MY_MAKEOPTS} \
2131 - prefix="${EPREFIX}"/usr \
2132 - htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
2133 - perllibdir="$(use perl && perl_get_raw_vendorlib)" \
2134 - sysconfdir="${EPREFIX}"/etc \
2135 - GIT_TEST_OPTS="--no-color" \
2136 - OPTAR="$(tc-getAR)" \
2137 - OPTCC="$(tc-getCC)" \
2138 - OPTCFLAGS="${CFLAGS}" \
2139 - OPTLDFLAGS="${LDFLAGS}" \
2140 - PERL_PATH="${EPREFIX}/usr/bin/perl" \
2141 - PERL_MM_OPT="" \
2142 - PYTHON_PATH="${PYTHON_PATH}" \
2143 - V=1 \
2144 - "$@"
2145 -}
2146 -
2147 -src_configure() {
2148 - exportmakeopts
2149 -}
2150 -
2151 -src_compile() {
2152 - git_emake || die "emake failed"
2153 -
2154 - if use perl && use cgi ; then
2155 - git_emake gitweb || die "emake gitweb (cgi) failed"
2156 - fi
2157 -
2158 - if [[ ${CHOST} == *-darwin* ]] && tc-is-clang ; then
2159 - pushd contrib/credential/osxkeychain &>/dev/null || die
2160 - git_emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" \
2161 - || die "emake credential-osxkeychain"
2162 - popd &>/dev/null || die
2163 - fi
2164 -
2165 - pushd Documentation &>/dev/null || die
2166 - if [[ ${PV} == *9999 ]] ; then
2167 - git_emake man || die "emake man failed"
2168 - if use doc ; then
2169 - git_emake info html || die "emake info html failed"
2170 - fi
2171 - else
2172 - if use doc ; then
2173 - git_emake info || die "emake info html failed"
2174 - fi
2175 - fi
2176 - popd &>/dev/null || die
2177 -
2178 - if use gnome-keyring ; then
2179 - pushd contrib/credential/libsecret &>/dev/null || die
2180 - git_emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" PKG_CONFIG="$(tc-getPKG_CONFIG)"
2181 - popd &>/dev/null || die
2182 - fi
2183 -
2184 - pushd contrib/subtree &>/dev/null || die
2185 - git_emake git-subtree || die
2186 - # git-subtree.1 requires the full USE=doc dependency stack
2187 - use doc && git_emake git-subtree.html git-subtree.1
2188 - popd &>/dev/null || die
2189 -
2190 - pushd contrib/diff-highlight &>/dev/null || die
2191 - git_emake || die
2192 - popd &>/dev/null || die
2193 -
2194 - if use mediawiki ; then
2195 - pushd contrib/mw-to-git &>/dev/null || die
2196 - git_emake || die
2197 - popd &>/dev/null || die
2198 -
2199 - fi
2200 -}
2201 -
2202 -src_install() {
2203 - git_emake DESTDIR="${D}" install || die "make install failed"
2204 -
2205 - if [[ ${CHOST} == *-darwin* ]] && tc-is-clang ; then
2206 - dobin contrib/credential/osxkeychain/git-credential-osxkeychain
2207 - fi
2208 -
2209 - # Depending on the tarball and manual rebuild of the documentation, the
2210 - # manpages may exist in either OR both of these directories.
2211 - find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157]
2212 - find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157]
2213 - dodoc README* Documentation/{SubmittingPatches,CodingGuidelines}
2214 - use doc && dodir /usr/share/doc/${PF}/html
2215 - local d
2216 - for d in / /howto/ /technical/ ; do
2217 - docinto ${d}
2218 - dodoc Documentation${d}*.txt
2219 - if use doc ; then
2220 - docinto ${d}/html
2221 - dodoc Documentation${d}*.html
2222 - fi
2223 - done
2224 - docinto /
2225 - # Upstream does not ship this pre-built :-(
2226 - use doc && doinfo Documentation/{git,gitman}.info
2227 -
2228 - newbashcomp contrib/completion/git-completion.bash ${PN}
2229 - bashcomp_alias git gitk
2230 - # Not really a bash-completion file (bug #477920)
2231 - # but still needed uncompressed (bug #507480)
2232 - insinto /usr/share/${PN}
2233 - doins contrib/completion/git-prompt.sh
2234 -
2235 - #dobin contrib/fast-import/git-p4 # Moved upstream
2236 - #dodoc contrib/fast-import/git-p4.txt # Moved upstream
2237 - newbin contrib/fast-import/import-tars.perl import-tars
2238 - exeinto /usr/libexec/git-core/
2239 - newexe contrib/git-resurrect.sh git-resurrect
2240 -
2241 - # git-subtree
2242 - pushd contrib/subtree &>/dev/null || die
2243 - git_emake DESTDIR="${D}" install || die "Failed to emake install for git-subtree"
2244 - if use doc ; then
2245 - # Do not move git subtree install-man outside USE=doc!
2246 - git_emake DESTDIR="${D}" install-man install-html || die "Failed to emake install-html install-man for git-subtree"
2247 - fi
2248 - newdoc README README.git-subtree
2249 - dodoc git-subtree.txt
2250 - popd &>/dev/null || die
2251 -
2252 - if use mediawiki ; then
2253 - pushd contrib/mw-to-git &>/dev/null || die
2254 - git_emake DESTDIR="${D}" install
2255 - popd &>/dev/null || die
2256 - fi
2257 -
2258 - # diff-highlight
2259 - dobin contrib/diff-highlight/diff-highlight
2260 - newdoc contrib/diff-highlight/README README.diff-highlight
2261 -
2262 - # git-jump
2263 - exeinto /usr/libexec/git-core/
2264 - doexe contrib/git-jump/git-jump
2265 - newdoc contrib/git-jump/README git-jump.txt
2266 -
2267 - # git-contacts
2268 - exeinto /usr/libexec/git-core/
2269 - doexe contrib/contacts/git-contacts
2270 - dodoc contrib/contacts/git-contacts.txt
2271 -
2272 - if use gnome-keyring ; then
2273 - pushd contrib/credential/libsecret &>/dev/null || die
2274 - dobin git-credential-libsecret
2275 - popd &>/dev/null || die
2276 - fi
2277 -
2278 - dodir /usr/share/${PN}/contrib
2279 - # The following are excluded:
2280 - # completion - installed above
2281 - # diff-highlight - done above
2282 - # emacs - removed upstream
2283 - # examples - these are stuff that is not used in Git anymore actually
2284 - # git-jump - done above
2285 - # gitview - installed above
2286 - # p4import - excluded because fast-import has a better one
2287 - # patches - stuff the Git guys made to go upstream to other places
2288 - # persistent-https - TODO
2289 - # mw-to-git - TODO
2290 - # subtree - build seperately
2291 - # svnimport - use git-svn
2292 - # thunderbird-patch-inline - fixes thunderbird
2293 - local contrib_objects=(
2294 - buildsystems
2295 - fast-import
2296 - hg-to-git
2297 - hooks
2298 - remotes2config.sh
2299 - rerere-train.sh
2300 - stats
2301 - workdir
2302 - )
2303 - local i
2304 - for i in "${contrib_objects[@]}" ; do
2305 - cp -rf \
2306 - "${S}"/contrib/${i} \
2307 - "${ED}"/usr/share/${PN}/contrib \
2308 - || die "Failed contrib ${i}"
2309 - done
2310 -
2311 - if use perl && use cgi ; then
2312 - # We used to install in /usr/share/${PN}/gitweb
2313 - # but upstream installs in /usr/share/gitweb
2314 - # so we will install a symlink and use their location for compat with other
2315 - # distros
2316 - dosym ../gitweb /usr/share/${PN}/gitweb
2317 -
2318 - # INSTALL discusses configuration issues, not just installation
2319 - docinto /
2320 - newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
2321 - newdoc "${S}"/gitweb/README README.gitweb
2322 -
2323 - for d in "${ED}"/usr/lib{,64}/perl5/ ; do
2324 - if [[ -d "${d}" ]] ; then
2325 - find "${d}" -name .packlist -delete || die
2326 - fi
2327 - done
2328 - else
2329 - rm -rf "${ED}"/usr/share/gitweb
2330 - fi
2331 -
2332 - if ! use subversion ; then
2333 - rm -f "${ED}"/usr/libexec/git-core/git-svn \
2334 - "${ED}"/usr/share/man/man1/git-svn.1*
2335 - fi
2336 -
2337 - if use xinetd ; then
2338 - insinto /etc/xinetd.d
2339 - newins "${FILESDIR}"/git-daemon.xinetd git-daemon
2340 - fi
2341 -
2342 - if ! use prefix ; then
2343 - newinitd "${FILESDIR}"/git-daemon-r2.initd git-daemon
2344 - newconfd "${FILESDIR}"/git-daemon.confd git-daemon
2345 - systemd_newunit "${FILESDIR}/git-daemon_at-r1.service" \
2346 - "git-daemon@.service"
2347 - systemd_dounit "${FILESDIR}/git-daemon.socket"
2348 - fi
2349 -
2350 - perl_delete_localpod
2351 -
2352 - # Remove disabled linguas
2353 - # we could remove sources in src_prepare, but install does not
2354 - # handle missing locale dir well
2355 - rm_loc() {
2356 - if [[ -e "${ED}/usr/share/locale/${1}" ]] ; then
2357 - rm -r "${ED}/usr/share/locale/${1}" || die
2358 - fi
2359 - }
2360 - plocale_for_each_disabled_locale rm_loc
2361 -}
2362 -
2363 -src_test() {
2364 - local disabled=()
2365 - local tests_cvs=(
2366 - t9200-git-cvsexportcommit.sh
2367 - t9400-git-cvsserver-server.sh
2368 - t9401-git-cvsserver-crlf.sh
2369 - t9402-git-cvsserver-refs.sh
2370 - t9600-cvsimport.sh
2371 - t9601-cvsimport-vendor-branch.sh
2372 - t9602-cvsimport-branches-tags.sh
2373 - t9603-cvsimport-patchsets.sh
2374 - t9604-cvsimport-timestamps.sh
2375 - )
2376 - local tests_perl=(
2377 - t3701-add-interactive.sh
2378 - t5502-quickfetch.sh
2379 - t5512-ls-remote.sh
2380 - t5520-pull.sh
2381 - t7106-reset-unborn-branch.sh
2382 - t7501-commit.sh
2383 - )
2384 - # Bug #225601 - t0004 is not suitable for root perm
2385 - # Bug #219839 - t1004 is not suitable for root perm
2386 - # t0001-init.sh - check for init notices EPERM* fails
2387 - local tests_nonroot=(
2388 - t0001-init.sh
2389 - t0004-unwritable.sh
2390 - t0070-fundamental.sh
2391 - t1004-read-tree-m-u-wf.sh
2392 - t3700-add.sh
2393 - t7300-clean.sh
2394 - )
2395 - # t9100 still fails with symlinks in SVN 1.7
2396 - local test_svn=( t9100-git-svn-basic.sh )
2397 -
2398 - # Unzip is used only for the testcase code, not by any normal parts of Git.
2399 - if ! has_version app-arch/unzip ; then
2400 - einfo "Disabling tar-tree tests"
2401 - disabled+=( t5000-tar-tree.sh )
2402 - fi
2403 -
2404 - local cvs=0
2405 - use cvs && let cvs=${cvs}+1
2406 - if [[ ${EUID} -eq 0 ]] ; then
2407 - if [[ ${cvs} -eq 1 ]] ; then
2408 - ewarn "Skipping CVS tests because CVS does not work as root!"
2409 - ewarn "You should retest with FEATURES=userpriv!"
2410 - disabled+=( ${tests_cvs[@]} )
2411 - fi
2412 - einfo "Skipping other tests that require being non-root"
2413 - disabled+=( ${tests_nonroot[@]} )
2414 - else
2415 - [[ ${cvs} -gt 0 ]] && \
2416 - has_version dev-vcs/cvs && \
2417 - let cvs=${cvs}+1
2418 - [[ ${cvs} -gt 1 ]] && \
2419 - has_version "dev-vcs/cvs[server]" && \
2420 - let cvs=${cvs}+1
2421 - if [[ ${cvs} -lt 3 ]] ; then
2422 - einfo "Disabling CVS tests (needs dev-vcs/cvs[USE=server])"
2423 - disabled+=( ${tests_cvs[@]} )
2424 - fi
2425 - fi
2426 -
2427 - if ! use perl ; then
2428 - einfo "Disabling tests that need Perl"
2429 - disabled+=( ${tests_perl[@]} )
2430 - fi
2431 -
2432 - einfo "Disabling tests that fail with SVN 1.7"
2433 - disabled+=( ${test_svn[@]} )
2434 -
2435 - # Reset all previously disabled tests
2436 - pushd t &>/dev/null || die
2437 - local i
2438 - for i in *.sh.DISABLED ; do
2439 - [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
2440 - done
2441 - einfo "Disabled tests:"
2442 - for i in ${disabled[@]} ; do
2443 - if [[ -f "${i}" ]] ; then
2444 - mv -f "${i}" "${i}.DISABLED" && einfo "Disabled ${i}"
2445 - fi
2446 - done
2447 -
2448 - # Avoid the test system removing the results because we want them ourselves
2449 - sed -e '/^[[:space:]]*$(MAKE) clean/s,^,#,g' -i Makefile || die
2450 -
2451 - # Clean old results first, must always run
2452 - nonfatal git_emake clean
2453 - popd &>/dev/null || die
2454 -
2455 - # Now run the tests, keep going if we hit an error, and don't terminate on
2456 - # failure
2457 - local rc
2458 - einfo "Start test run"
2459 - #MAKEOPTS=-j1
2460 - nonfatal git_emake --keep-going test
2461 - rc=$?
2462 -
2463 - # Display nice results, now print the results
2464 - pushd t &>/dev/null || die
2465 - nonfatal git_emake aggregate-results
2466 -
2467 - # And bail if there was a problem
2468 - [[ ${rc} -eq 0 ]] || die "tests failed. Please file a bug."
2469 -}
2470 -
2471 -showpkgdeps() {
2472 - local pkg=$1
2473 - shift
2474 - elog " $(printf "%-17s:" ${pkg}) ${@}"
2475 -}
2476 -
2477 -pkg_postinst() {
2478 - elog "Please read /usr/share/bash-completion/completions/git for Git bash command"
2479 - elog "completion."
2480 - elog "Please read /usr/share/git/git-prompt.sh for Git bash prompt"
2481 - elog "Note that the prompt bash code is now in that separate script"
2482 - elog "These additional scripts need some dependencies:"
2483 - echo
2484 - showpkgdeps git-quiltimport "dev-util/quilt"
2485 - showpkgdeps git-instaweb \
2486 - "|| ( www-servers/lighttpd www-servers/apache www-servers/nginx )"
2487 - echo
2488 - use mediawiki-experimental && ewarn "Using experimental git-mediawiki patches. The stability of cloned wiki filesystems is not guaranteed."
2489 -}
2490
2491 diff --git a/dev-vcs/git/git-2.38.0.ebuild b/dev-vcs/git/git-2.38.0.ebuild
2492 deleted file mode 100644
2493 index f68fb68b1f50..000000000000
2494 --- a/dev-vcs/git/git-2.38.0.ebuild
2495 +++ /dev/null
2496 @@ -1,657 +0,0 @@
2497 -# Copyright 1999-2022 Gentoo Authors
2498 -# Distributed under the terms of the GNU General Public License v2
2499 -
2500 -EAPI=8
2501 -
2502 -GENTOO_DEPEND_ON_PERL=no
2503 -
2504 -# bug #329479: git-remote-testgit is not multiple-version aware
2505 -PYTHON_COMPAT=( python3_{8..10} )
2506 -
2507 -inherit toolchain-funcs perl-module bash-completion-r1 optfeature plocale python-single-r1 systemd
2508 -
2509 -PLOCALES="bg ca de es fr is it ko pt_PT ru sv vi zh_CN"
2510 -
2511 -if [[ ${PV} == *9999 ]]; then
2512 - EGIT_REPO_URI="https://git.kernel.org/pub/scm/git/git.git"
2513 -
2514 - inherit git-r3
2515 - # Please ensure that all _four_ 9999 ebuilds get updated; they track the 4 upstream branches.
2516 - # See https://git-scm.com/docs/gitworkflows#_graduation
2517 - # In order of stability:
2518 - # 9999-r0: maint
2519 - # 9999-r1: master
2520 - # 9999-r2: next
2521 - # 9999-r3: seen
2522 - case ${PVR} in
2523 - 9999) EGIT_BRANCH=maint ;;
2524 - 9999-r1) EGIT_BRANCH=master ;;
2525 - 9999-r2) EGIT_BRANCH=next;;
2526 - 9999-r3) EGIT_BRANCH=seen ;;
2527 - esac
2528 -fi
2529 -
2530 -MY_PV="${PV/_rc/.rc}"
2531 -MY_P="${PN}-${MY_PV}"
2532 -
2533 -DOC_VER="${MY_PV}"
2534 -
2535 -DESCRIPTION="Stupid content tracker: distributed VCS designed for speed and efficiency"
2536 -HOMEPAGE="https://www.git-scm.com/"
2537 -
2538 -if [[ ${PV} != *9999 ]]; then
2539 - SRC_URI_SUFFIX="xz"
2540 - SRC_URI_KORG="https://www.kernel.org/pub/software/scm/git"
2541 -
2542 - [[ ${PV/rc} != ${PV} ]] && SRC_URI_KORG+='/testing'
2543 -
2544 - SRC_URI="${SRC_URI_KORG}/${MY_P}.tar.${SRC_URI_SUFFIX}"
2545 - SRC_URI+=" ${SRC_URI_KORG}/${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}"
2546 - SRC_URI+=" doc? ( ${SRC_URI_KORG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX} )"
2547 -
2548 - if [[ ${PV} != *_rc* ]] ; then
2549 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
2550 - fi
2551 -fi
2552 -
2553 -S="${WORKDIR}"/${MY_P}
2554 -
2555 -LICENSE="GPL-2"
2556 -SLOT="0"
2557 -IUSE="+blksha1 +curl cgi doc gnome-keyring +gpg highlight +iconv mediawiki mediawiki-experimental +nls +pcre perforce +perl +safe-directory selinux subversion tk +webdav xinetd cvs test"
2558 -
2559 -# Common to both DEPEND and RDEPEND
2560 -DEPEND="
2561 - dev-libs/openssl:=
2562 - sys-libs/zlib
2563 - curl? (
2564 - net-misc/curl
2565 - webdav? ( dev-libs/expat )
2566 - )
2567 - gnome-keyring? (
2568 - app-crypt/libsecret
2569 - dev-libs/glib:2
2570 - )
2571 - iconv? ( virtual/libiconv )
2572 - pcre? ( dev-libs/libpcre2:= )
2573 - perl? ( dev-lang/perl:=[-build(-)] )
2574 - tk? ( dev-lang/tk:= )
2575 -"
2576 -RDEPEND="
2577 - ${DEPEND}
2578 - gpg? ( app-crypt/gnupg )
2579 - perl? (
2580 - dev-perl/Error
2581 - dev-perl/MailTools
2582 - dev-perl/Authen-SASL
2583 - >=virtual/perl-libnet-3.110.0-r4[ssl]
2584 - cgi? (
2585 - dev-perl/CGI
2586 - highlight? ( app-text/highlight )
2587 - )
2588 - cvs? (
2589 - >=dev-vcs/cvsps-2.1:0
2590 - dev-perl/DBI
2591 - dev-perl/DBD-SQLite
2592 - )
2593 - mediawiki? (
2594 - dev-perl/DateTime-Format-ISO8601
2595 - dev-perl/HTML-Tree
2596 - dev-perl/MediaWiki-API
2597 - )
2598 - subversion? (
2599 - dev-vcs/subversion[-dso(-),perl]
2600 - dev-perl/libwww-perl
2601 - dev-perl/TermReadKey
2602 - )
2603 - )
2604 - perforce? ( ${PYTHON_DEPS} )
2605 - selinux? ( sec-policy/selinux-git )
2606 -"
2607 -
2608 -# This is how info docs are created with Git:
2609 -# .txt/asciidoc --(asciidoc)---------> .xml/docbook
2610 -# .xml/docbook --(docbook2texi.pl)--> .texi
2611 -# .texi --(makeinfo)---------> .info
2612 -BDEPEND="
2613 - doc? (
2614 - app-text/asciidoc
2615 - app-text/docbook2X
2616 - app-text/xmlto
2617 - sys-apps/texinfo
2618 - )
2619 - gnome-keyring? ( virtual/pkgconfig )
2620 - nls? ( sys-devel/gettext )
2621 - test? ( app-crypt/gnupg )
2622 -"
2623 -
2624 -# Live ebuild builds man pages and HTML docs, additionally
2625 -if [[ ${PV} == *9999 ]]; then
2626 - BDEPEND+=" app-text/asciidoc"
2627 -fi
2628 -
2629 -SITEFILE="50${PN}-gentoo.el"
2630 -
2631 -REQUIRED_USE="
2632 - cgi? ( perl )
2633 - cvs? ( perl )
2634 - mediawiki? ( perl )
2635 - mediawiki-experimental? ( mediawiki )
2636 - perforce? ( ${PYTHON_REQUIRED_USE} )
2637 - subversion? ( perl )
2638 - webdav? ( curl )
2639 -"
2640 -
2641 -RESTRICT="!test? ( test )"
2642 -
2643 -PATCHES=(
2644 - # Avoid automagic CVS, bug #350330
2645 - "${FILESDIR}"/git-2.37.0_rc1-optional-cvs.patch
2646 -
2647 - # Make submodule output quiet
2648 - "${FILESDIR}"/git-2.21.0-quiet-submodules-testcase.patch
2649 -)
2650 -
2651 -pkg_setup() {
2652 - if use subversion && has_version "dev-vcs/subversion[dso]" ; then
2653 - ewarn "Per Gentoo bugs #223747, #238586, when subversion is built"
2654 - ewarn "with USE=dso, there may be weird crashes in git-svn. You"
2655 - ewarn "have been warned!"
2656 - fi
2657 -
2658 - if use perforce ; then
2659 - python-single-r1_pkg_setup
2660 - fi
2661 -}
2662 -
2663 -# This is needed because for some obscure reasons future calls to make don't
2664 -# pick up these exports if we export them in src_unpack()
2665 -exportmakeopts() {
2666 - local extlibs myopts
2667 -
2668 - myopts=(
2669 - ASCIIDOC_NO_ROFF=YesPlease
2670 -
2671 - $(usex perl 'INSTALLDIRS=vendor NO_PERL_CPAN_FALLBACKS=YesPlease' NO_PERL=YesPlease)
2672 -
2673 - $(usev elibc_musl NO_REGEX=YesPlease)
2674 - $(usev !cvs NO_CVS=YesPlease)
2675 - $(usev !iconv NO_ICONV=YesPlease)
2676 - $(usev !nls NO_GETTEXT=YesPlease)
2677 - $(usev !perforce NO_PYTHON=YesPlease)
2678 - $(usev !subversion NO_SVN_TESTS=YesPlease)
2679 - $(usev !tk NO_TCLTK=YesPlease)
2680 - )
2681 -
2682 - if use blksha1 ; then
2683 - myopts+=( BLK_SHA1=YesPlease )
2684 - fi
2685 -
2686 - if use curl ; then
2687 - use webdav || myopts+=( NO_EXPAT=YesPlease )
2688 - else
2689 - myopts+=( NO_CURL=YesPlease )
2690 - fi
2691 -
2692 - # Broken assumptions because of static build system
2693 - myopts+=(
2694 - NO_FINK=YesPlease
2695 - NO_DARWIN_PORTS=YesPlease
2696 - INSTALL=install
2697 - TAR=tar
2698 - SHELL_PATH="${EPREFIX}/bin/sh"
2699 - SANE_TOOL_PATH=
2700 - OLD_ICONV=
2701 - NO_EXTERNAL_GREP=
2702 - )
2703 -
2704 - # Can't define this to null, since the entire makefile depends on it
2705 - sed -i -e '/\/usr\/local/s/BASIC_/#BASIC_/' Makefile || die
2706 -
2707 - if use pcre; then
2708 - myopts+=( USE_LIBPCRE2=YesPlease )
2709 - extlibs+=( -lpcre2-8 )
2710 - fi
2711 -
2712 - if [[ ${CHOST} == *-solaris* ]]; then
2713 - myopts+=(
2714 - NEEDS_LIBICONV=YesPlease
2715 - HAVE_CLOCK_MONOTONIC=1
2716 - )
2717 -
2718 - if grep -Fq getdelim "${ESYSROOT}"/usr/include/stdio.h ; then
2719 - myopts+=( HAVE_GETDELIM=1 )
2720 - fi
2721 - fi
2722 -
2723 - myopts+=( ASCIIDOC8=YesPlease )
2724 -
2725 - export MY_MAKEOPTS="${myopts[@]}"
2726 - export EXTLIBS="${extlibs[@]}"
2727 -}
2728 -
2729 -src_unpack() {
2730 - if [[ ${PV} != *9999 ]] ; then
2731 - unpack ${MY_P}.tar.${SRC_URI_SUFFIX}
2732 -
2733 - cd "${S}" || die
2734 - unpack ${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
2735 -
2736 - if use doc ; then
2737 - pushd "${S}"/Documentation &>/dev/null || die
2738 - unpack ${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
2739 - popd &>/dev/null || die
2740 - fi
2741 - else
2742 - git-r3_src_unpack
2743 - #cp "${FILESDIR}"/GIT-VERSION-GEN . || die
2744 - fi
2745 -
2746 -}
2747 -
2748 -src_prepare() {
2749 - # Add experimental patches to improve mediawiki support,
2750 - # see patches for origin.
2751 - if use mediawiki-experimental ; then
2752 - PATCHES+=(
2753 - "${FILESDIR}"/git-2.7.0-mediawiki-namespaces.patch
2754 - "${FILESDIR}"/git-2.7.0-mediawiki-subpages.patch
2755 - "${FILESDIR}"/git-2.7.0-mediawiki-500pages.patch
2756 - )
2757 - fi
2758 -
2759 - if ! use safe-directory ; then
2760 - # This patch neuters the "safe directory" detection.
2761 - # bugs #838271, #838223
2762 - PATCHES+=(
2763 - "${FILESDIR}"/git-2.37.2-unsafe-directory.patch
2764 - )
2765 - fi
2766 -
2767 - default
2768 -
2769 - if use prefix ; then
2770 - # bug #757309
2771 - eapply "${FILESDIR}"/git-2.37.2-darwin-prefix-gettext.patch
2772 - fi
2773 -
2774 - sed -i \
2775 - -e 's:^\(CFLAGS[[:space:]]*=\).*$:\1 $(OPTCFLAGS) -Wall:' \
2776 - -e 's:^\(LDFLAGS[[:space:]]*=\).*$:\1 $(OPTLDFLAGS):' \
2777 - -e 's:^\(CC[[:space:]]* =\).*$:\1$(OPTCC):' \
2778 - -e 's:^\(AR[[:space:]]* =\).*$:\1$(OPTAR):' \
2779 - -e "s:\(PYTHON_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \
2780 - -e "s:\(PERL_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \
2781 - Makefile || die
2782 -
2783 - # Fix docbook2texi command
2784 - sed -r -i 's/DOCBOOK2X_TEXI[[:space:]]*=[[:space:]]*docbook2x-texi/DOCBOOK2X_TEXI = docbook2texi.pl/' \
2785 - Documentation/Makefile || die
2786 -}
2787 -
2788 -git_emake() {
2789 - # bug #320647: PYTHON_PATH
2790 - local PYTHON_PATH=""
2791 - use perforce && PYTHON_PATH="${PYTHON}"
2792 -
2793 - local mymakeargs=(
2794 - ${MY_MAKEOPTS}
2795 -
2796 - prefix="${EPREFIX}"/usr
2797 - htmldir="${EPREFIX}"/usr/share/doc/${PF}/html
2798 - perllibdir="$(use perl && perl_get_raw_vendorlib)"
2799 - sysconfdir="${EPREFIX}"/etc
2800 -
2801 - CC="$(tc-getCC)"
2802 - CFLAGS="${CFLAGS}"
2803 - PKG_CONFIG="$(tc-getPKG_CONFIG)"
2804 -
2805 - # TODO: --verbose?
2806 - GIT_TEST_OPTS="--no-color"
2807 -
2808 - OPTAR="$(tc-getAR)"
2809 - OPTCC="$(tc-getCC)"
2810 - OPTCFLAGS="${CFLAGS}"
2811 - OPTLDFLAGS="${LDFLAGS}"
2812 -
2813 - PERL_PATH="${EPREFIX}/usr/bin/perl"
2814 - PERL_MM_OPT=""
2815 -
2816 - PYTHON_PATH="${PYTHON_PATH}"
2817 -
2818 - V=1
2819 - "$@"
2820 - )
2821 -
2822 - emake "${mymakeargs[@]}"
2823 -}
2824 -
2825 -src_configure() {
2826 - exportmakeopts
2827 -}
2828 -
2829 -src_compile() {
2830 - git_emake
2831 -
2832 - if use perl && use cgi ; then
2833 - git_emake gitweb
2834 - fi
2835 -
2836 - if [[ ${CHOST} == *-darwin* ]] && tc-is-clang ; then
2837 - git_emake -C contrib/credential/osxkeychain
2838 - fi
2839 -
2840 - pushd Documentation &>/dev/null || die
2841 - if [[ ${PV} == *9999 ]] ; then
2842 - git_emake man
2843 - if use doc ; then
2844 - git_emake info html
2845 - fi
2846 - else
2847 - if use doc ; then
2848 - git_emake info
2849 - fi
2850 - fi
2851 - popd &>/dev/null || die
2852 -
2853 - if use gnome-keyring ; then
2854 - git_emake -C contrib/credential/libsecret
2855 - fi
2856 -
2857 - pushd contrib/subtree &>/dev/null || die
2858 - git_emake git-subtree
2859 - # git-subtree.1 requires the full USE=doc dependency stack
2860 - use doc && git_emake git-subtree.html git-subtree.1
2861 - popd &>/dev/null || die
2862 -
2863 - git_emake -C contrib/diff-highlight
2864 -
2865 - if use mediawiki ; then
2866 - git_emake -C contrib/mw-to-git
2867 - fi
2868 -}
2869 -
2870 -src_test() {
2871 - local disabled=(
2872 - # We make safe-directory optional
2873 - t0033-safe-directory.sh
2874 - )
2875 -
2876 - local tests_cvs=(
2877 - t9200-git-cvsexportcommit.sh
2878 - t9400-git-cvsserver-server.sh
2879 - t9401-git-cvsserver-crlf.sh
2880 - t9402-git-cvsserver-refs.sh
2881 - t9600-cvsimport.sh
2882 - t9601-cvsimport-vendor-branch.sh
2883 - t9602-cvsimport-branches-tags.sh
2884 - t9603-cvsimport-patchsets.sh
2885 - t9604-cvsimport-timestamps.sh
2886 - )
2887 -
2888 - local tests_perl=(
2889 - t3701-add-interactive.sh
2890 - t5502-quickfetch.sh
2891 - t5512-ls-remote.sh
2892 - t5520-pull.sh
2893 - t7106-reset-unborn-branch.sh
2894 - t7501-commit.sh
2895 - )
2896 - # Bug #225601 - t0004 is not suitable for root perm
2897 - # Bug #219839 - t1004 is not suitable for root perm
2898 - # t0001-init.sh - check for init notices EPERM* fails
2899 - local tests_nonroot=(
2900 - t0001-init.sh
2901 - t0004-unwritable.sh
2902 - t0070-fundamental.sh
2903 - t1004-read-tree-m-u-wf.sh
2904 - t3700-add.sh
2905 - t7300-clean.sh
2906 - )
2907 - # t9100 still fails with symlinks in SVN 1.7
2908 - local test_svn=( t9100-git-svn-basic.sh )
2909 -
2910 - # Unzip is used only for the testcase code, not by any normal parts of Git.
2911 - if ! has_version app-arch/unzip ; then
2912 - einfo "Disabling tar-tree tests"
2913 - disabled+=( t5000-tar-tree.sh )
2914 - fi
2915 -
2916 - local cvs=0
2917 - use cvs && let cvs=${cvs}+1
2918 - if [[ ${EUID} -eq 0 ]] ; then
2919 - if [[ ${cvs} -eq 1 ]] ; then
2920 - ewarn "Skipping CVS tests because CVS does not work as root!"
2921 - ewarn "You should retest with FEATURES=userpriv!"
2922 - disabled+=( ${tests_cvs[@]} )
2923 - fi
2924 - einfo "Skipping other tests that require being non-root"
2925 - disabled+=( ${tests_nonroot[@]} )
2926 - else
2927 - if [[ ${cvs} -gt 0 ]] && has_version dev-vcs/cvs ; then
2928 - let cvs=${cvs}+1
2929 - fi
2930 -
2931 - if [[ ${cvs} -gt 1 ]] && has_version "dev-vcs/cvs[server]" ; then
2932 - let cvs=${cvs}+1
2933 - fi
2934 -
2935 - if [[ ${cvs} -lt 3 ]] ; then
2936 - einfo "Disabling CVS tests (needs dev-vcs/cvs[USE=server])"
2937 - disabled+=( ${tests_cvs[@]} )
2938 - fi
2939 - fi
2940 -
2941 - if ! use perl ; then
2942 - einfo "Disabling tests that need Perl"
2943 - disabled+=( ${tests_perl[@]} )
2944 - fi
2945 -
2946 - einfo "Disabling tests that fail with SVN 1.7"
2947 - disabled+=( ${test_svn[@]} )
2948 -
2949 - # Reset all previously disabled tests
2950 - pushd t &>/dev/null || die
2951 - local i
2952 - for i in *.sh.DISABLED ; do
2953 - [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
2954 - done
2955 - einfo "Disabled tests:"
2956 - for i in ${disabled[@]} ; do
2957 - if [[ -f "${i}" ]] ; then
2958 - mv -f "${i}" "${i}.DISABLED" && einfo "Disabled ${i}"
2959 - fi
2960 - done
2961 -
2962 - # Avoid the test system removing the results because we want them ourselves
2963 - sed -e '/^[[:space:]]*$(MAKE) clean/s,^,#,g' -i Makefile || die
2964 -
2965 - # Clean old results first, must always run
2966 - nonfatal git_emake clean
2967 - popd &>/dev/null || die
2968 -
2969 - # Now run the tests, keep going if we hit an error, and don't terminate on
2970 - # failure
2971 - local rc
2972 - einfo "Start test run"
2973 - #MAKEOPTS=-j1
2974 - nonfatal git_emake --keep-going test
2975 - rc=$?
2976 -
2977 - # Display nice results, now print the results
2978 - pushd t &>/dev/null || die
2979 - nonfatal git_emake aggregate-results
2980 -
2981 - # And bail if there was a problem
2982 - [[ ${rc} -eq 0 ]] || die "Tests failed. Please file a bug!"
2983 -}
2984 -
2985 -src_install() {
2986 - git_emake DESTDIR="${D}" install
2987 -
2988 - if [[ ${CHOST} == *-darwin* ]] && tc-is-clang ; then
2989 - dobin contrib/credential/osxkeychain/git-credential-osxkeychain
2990 - fi
2991 -
2992 - # Depending on the tarball and manual rebuild of the documentation, the
2993 - # manpages may exist in either OR both of these directories.
2994 - find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157]
2995 - find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157]
2996 - dodoc README* Documentation/{SubmittingPatches,CodingGuidelines}
2997 - use doc && dodir /usr/share/doc/${PF}/html
2998 - local d
2999 - for d in / /howto/ /technical/ ; do
3000 - docinto ${d}
3001 - dodoc Documentation${d}*.txt
3002 - if use doc ; then
3003 - docinto ${d}/html
3004 - dodoc Documentation${d}*.html
3005 - fi
3006 - done
3007 - docinto /
3008 - # Upstream does not ship this pre-built :-(
3009 - use doc && doinfo Documentation/{git,gitman}.info
3010 -
3011 - newbashcomp contrib/completion/git-completion.bash ${PN}
3012 - bashcomp_alias git gitk
3013 - # Not really a bash-completion file (bug #477920)
3014 - # but still needed uncompressed (bug #507480)
3015 - insinto /usr/share/${PN}
3016 - doins contrib/completion/git-prompt.sh
3017 -
3018 - #dobin contrib/fast-import/git-p4 # Moved upstream
3019 - #dodoc contrib/fast-import/git-p4.txt # Moved upstream
3020 - newbin contrib/fast-import/import-tars.perl import-tars
3021 - exeinto /usr/libexec/git-core/
3022 - newexe contrib/git-resurrect.sh git-resurrect
3023 -
3024 - # git-subtree
3025 - pushd contrib/subtree &>/dev/null || die
3026 - git_emake DESTDIR="${D}" install
3027 - if use doc ; then
3028 - # Do not move git subtree install-man outside USE=doc!
3029 - git_emake DESTDIR="${D}" install-man install-html
3030 - fi
3031 - newdoc README README.git-subtree
3032 - dodoc git-subtree.txt
3033 - popd &>/dev/null || die
3034 -
3035 - if use mediawiki ; then
3036 - git_emake -C contrib/mw-to-git DESTDIR="${D}" install
3037 - fi
3038 -
3039 - # diff-highlight
3040 - dobin contrib/diff-highlight/diff-highlight
3041 - newdoc contrib/diff-highlight/README README.diff-highlight
3042 -
3043 - # git-jump
3044 - exeinto /usr/libexec/git-core/
3045 - doexe contrib/git-jump/git-jump
3046 - newdoc contrib/git-jump/README git-jump.txt
3047 -
3048 - # git-contacts
3049 - exeinto /usr/libexec/git-core/
3050 - doexe contrib/contacts/git-contacts
3051 - dodoc contrib/contacts/git-contacts.txt
3052 -
3053 - if use gnome-keyring ; then
3054 - pushd contrib/credential/libsecret &>/dev/null || die
3055 - dobin git-credential-libsecret
3056 - popd &>/dev/null || die
3057 - fi
3058 -
3059 - dodir /usr/share/${PN}/contrib
3060 - # The following are excluded:
3061 - # completion - installed above
3062 - # diff-highlight - done above
3063 - # emacs - removed upstream
3064 - # examples - these are stuff that is not used in Git anymore actually
3065 - # git-jump - done above
3066 - # gitview - installed above
3067 - # p4import - excluded because fast-import has a better one
3068 - # patches - stuff the Git guys made to go upstream to other places
3069 - # persistent-https - TODO
3070 - # mw-to-git - TODO
3071 - # subtree - build seperately
3072 - # svnimport - use git-svn
3073 - # thunderbird-patch-inline - fixes thunderbird
3074 - local contrib_objects=(
3075 - buildsystems
3076 - fast-import
3077 - hg-to-git
3078 - hooks
3079 - remotes2config.sh
3080 - rerere-train.sh
3081 - stats
3082 - workdir
3083 - )
3084 - local i
3085 - for i in "${contrib_objects[@]}" ; do
3086 - cp -rf "${S}"/contrib/${i} "${ED}"/usr/share/${PN}/contrib || die "Failed contrib ${i}"
3087 - done
3088 -
3089 - if use perl && use cgi ; then
3090 - # We used to install in /usr/share/${PN}/gitweb
3091 - # but upstream installs in /usr/share/gitweb
3092 - # so we will install a symlink and use their location for compat with other
3093 - # distros
3094 - dosym ../gitweb /usr/share/${PN}/gitweb
3095 -
3096 - # INSTALL discusses configuration issues, not just installation
3097 - docinto /
3098 - newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
3099 - newdoc "${S}"/gitweb/README README.gitweb
3100 -
3101 - for d in "${ED}"/usr/lib{,64}/perl5/ ; do
3102 - if [[ -d "${d}" ]] ; then
3103 - find "${d}" -name .packlist -delete || die
3104 - fi
3105 - done
3106 - else
3107 - rm -rf "${ED}"/usr/share/gitweb
3108 - fi
3109 -
3110 - if ! use subversion ; then
3111 - rm -f "${ED}"/usr/libexec/git-core/git-svn \
3112 - "${ED}"/usr/share/man/man1/git-svn.1*
3113 - fi
3114 -
3115 - if use xinetd ; then
3116 - insinto /etc/xinetd.d
3117 - newins "${FILESDIR}"/git-daemon.xinetd git-daemon
3118 - fi
3119 -
3120 - if ! use prefix ; then
3121 - newinitd "${FILESDIR}"/git-daemon-r2.initd git-daemon
3122 - newconfd "${FILESDIR}"/git-daemon.confd git-daemon
3123 - systemd_newunit "${FILESDIR}/git-daemon_at-r1.service" "git-daemon@.service"
3124 - systemd_dounit "${FILESDIR}/git-daemon.socket"
3125 - fi
3126 -
3127 - perl_delete_localpod
3128 -
3129 - # Remove disabled linguas
3130 - # we could remove sources in src_prepare, but install does not
3131 - # handle missing locale dir well
3132 - rm_loc() {
3133 - if [[ -e "${ED}/usr/share/locale/${1}" ]] ; then
3134 - rm -r "${ED}/usr/share/locale/${1}" || die
3135 - fi
3136 - }
3137 - plocale_for_each_disabled_locale rm_loc
3138 -}
3139 -
3140 -pkg_postinst() {
3141 - if [[ -z ${REPLACING_VERSIONS} ]] ; then
3142 - elog "Please read /usr/share/bash-completion/completions/git for Git bash command"
3143 - elog "completion."
3144 - elog "Please read /usr/share/git/git-prompt.sh for Git bash prompt"
3145 - elog "Note that the prompt bash code is now in that separate script"
3146 - fi
3147 -
3148 - optfeature_header "Some scripts require additional dependencies:"
3149 - optfeature git-quiltimport dev-util/quilt
3150 - optfeature git-instaweb www-servers/lighttpd www-servers/apache www-servers/nginx
3151 -
3152 - use mediawiki-experimental && ewarn "Using experimental git-mediawiki patches. The stability of cloned wiki filesystems is not guaranteed."
3153 -}