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/
Date: Sun, 03 Jul 2022 13:48:08
Message-Id: 1656856077.0b1b2b2f3ad06103fc220ffb7a0a9576b083cf9d.sam@gentoo
1 commit: 0b1b2b2f3ad06103fc220ffb7a0a9576b083cf9d
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 3 13:47:41 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 3 13:47:57 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b1b2b2f
7
8 dev-vcs/git: drop 2.37.0_rc2
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-vcs/git/Manifest | 3 -
13 dev-vcs/git/git-2.37.0_rc2.ebuild | 641 --------------------------------------
14 2 files changed, 644 deletions(-)
15
16 diff --git a/dev-vcs/git/Manifest b/dev-vcs/git/Manifest
17 index 5bcc4f48ef1a..1cefe2162fb7 100644
18 --- a/dev-vcs/git/Manifest
19 +++ b/dev-vcs/git/Manifest
20 @@ -6,7 +6,6 @@ DIST git-2.35.2.tar.xz 6876028 BLAKE2B 2d59f0ef195770b3bd57ef8160ab24da5e1402531
21 DIST git-2.35.3.tar.xz 6876328 BLAKE2B f584e9d94d167ba19bd2a00377f04eb4edf69cddbd2993a324178338b2e20e7fd126b51882ac7c7914c5118d0eab1ff9beddeb96a901a18fdfe027e21351ab61 SHA512 c92f8663988c57702bb5ee542ac8f36e8a43d377d16106ee462ce0b0a575b9d51baaafc654bf1821fbea2fe476ffd64d7fb87084c7de4dd8065b01d5083492c5
22 DIST git-2.36.0.tar.xz 7003024 BLAKE2B 72bb148fc5fded2976554788eaf599d20fe9f200ac1dd1ddd4ed89f7f5c8d6c1025907080620bab477b4efadf41d883e890dff73c80d0ff5f0becd83f13ebd88 SHA512 dce0d7dbe684af070271830a01bf1b9cc289182f5106f6e3303b1b3a0d5dc74bebf6ac0174373db05a28f5acc62acb095bc9385dabeeecc1d6e8567dce29b766
23 DIST git-2.36.1.tar.xz 7004044 BLAKE2B 99f54efb4ea1d8db0e3afd3dc9780cb37fc853e4757f4b37d68a6badd90eeed3e2943c97393eaed6adf61c82b97b5d01ca8d015784f5425072b1db14d39144ce SHA512 459432bd0c1d5a87c828a6fbf6d3473f14bf6b95783b3f27ea4f3af1ba9fd0e712a96a41276a16c6ebeb7ac3583a5f445eedd0a9e19fe160c2c8e309ec58818e
24 -DIST git-2.37.0.rc2.tar.xz 7044232 BLAKE2B dca5e02e24ef103dfdc0360e4d2d1cca5ac488ba5ecbebf4e05b6feca7e6828b174eebc4e76c72b5c13ec317359cdcaeb5576a70871d8dc1b56fa98e03351830 SHA512 1b81180f2ed4566a74bc37d47fa9790eb70048c43b5204a9eda03d6fe6dd8c273ccb464d2490877b6ada901845edc9ec7cc1a6d73c064be5d426ff9b9e64e1e5
25 DIST git-2.37.0.tar.xz 6978796 BLAKE2B 204a06a6d35f4f1960d031c09eeef43273982e95c5825ab813899de3d30018c9e8d88425a51ce9447d4ae6183de1270017c6e0ecc9d601df897281e107def145 SHA512 2ae3c845c9d0e0f5245e47f95c958c86a4aa2c47dfe31bff6fc81b2434d2e9402b7eced18700c04ba7158ed6a72807a81c4cde6a26dd30c969b4267b8fce4d0a
26 DIST git-htmldocs-2.32.0.tar.xz 1381664 BLAKE2B d1b47aa99d32a252fd20df26eff44a558044f3a389379b161bb43621eb28375eb0621969849a31938ba7fc9fc58b140d27d703559ea5735d0a0ffd2e93cd9692 SHA512 12b84e342f0d19afe385ab8a685ae625e86c3295d1555992e0c427b361aa2cdfc89a679e7dbc468d3568a325dafbf699468aadcdb02f93e372eff3dd96a7cf7f
27 DIST git-htmldocs-2.33.1.tar.xz 1396744 BLAKE2B cbd65cf08fc7ea466fcd72820ba3e2135ade37f69c436a4ee7276dc71fb62f6270b71e2f46d981f5681a0fd3c30613d61680c2ef2460d0d7d292f7455e114128 SHA512 5b856b919067e1f644539d43a85aab6f602537ea0970b6248b471e3fa6756a8494f0525a69d22ad3795fcf9e106ff8439e0f6716ba0b8c895d7aad8c59e5bd74
28 @@ -16,7 +15,6 @@ DIST git-htmldocs-2.35.2.tar.xz 1411248 BLAKE2B d4f318f6277015bb6aef3a556bbf7a9a
29 DIST git-htmldocs-2.35.3.tar.xz 1411664 BLAKE2B c7d849b9573a257de47fc8d654f7f791d21917cf65315b4ae6909ba2ebbe90970bc9e6c9949266913b1e529e662bfc375acee26ebf9304162eeccc87ce3da067 SHA512 52b97dab838fff1a865ae4d449fbb77fbac3c528666d1b936c73bffac856f16583d1b182379bc4e6851f78bccab519c3ea7e5902fc502b2e8ab7bb85043c7eea
30 DIST git-htmldocs-2.36.0.tar.xz 1426148 BLAKE2B ba121e8f7d6a232f3df2b5a50c0f4a798c80808562c710f306f26fa79c124e5e1580c0626a2fce04f4a17b96d40a2683809550f37028cbc436b359de91100599 SHA512 62ee14c2f1ff34c0fbdf281ea2bb08bf6a24850d1d8dc68ffb12ae15e343c167ac869559395769fb352bd441baa8f2d45d696923a04e2f04bca921c990d75a9d
31 DIST git-htmldocs-2.36.1.tar.xz 1426284 BLAKE2B 2213f870b7fe35cc76ce8654ed8c50c0e9694c58acac4aa2350f826422db6bf2fc238fbd12075f98e84539fdf6ca5624984e21844d1d1c1ceb90e3b090438a7d SHA512 3aa2ca197a789161571a6961dae8c2723ff5ba05a2d8ce7443f7fd9ef46fe5a3d001364831345f3fc4e028140022d20afefbabdf4a82cdeb311167793b292c1f
32 -DIST git-htmldocs-2.37.0.rc2.tar.xz 1444244 BLAKE2B 49a698f988a08448379da541b76ec3319ca3794eb193470b9621996ecfbd35961f494dfea255ff1b809844f783ae9df518fb0c2b498a3827f4b186053a3a3011 SHA512 dbdaaf4fad0f6e67bc6ef194e16094a4ae8e61548aee42555c2c4b423ea525140618ff12db58fdb7ff7c8bdd782c4712d554f469746aa9e4ac2b500bb8f773c8
33 DIST git-htmldocs-2.37.0.tar.xz 1444540 BLAKE2B 9249de4b49d0812cf5f3ceb0a062b396ca4f9482232c69c75177201d19c4094ca79acb61d47c9a80f9db8749ac634bb2cc3bb2fa96bd6b4a34798cf1da2dd74c SHA512 8f9ff2bfdb55db41805f4366c6eb6f116e37774b7dbbac193c4a817357c47c44664eb69eb1b55acfaabc513dbbd2393d7a93295b4443630f65bd6791fc742a87
34 DIST git-manpages-2.32.0.tar.xz 491868 BLAKE2B 7598a864246aed771371924604ee13d3f51b839b10b254bb1159dd47266513f5cd6484aab200a7b4ed427edc76538a98e39a040a17201483965175f5e1c5f484 SHA512 5c9950bd5d6904972cddf4afad534197d843c0dee8198d14ec5a3448873cab37dac88295b2a4df3658749f048bda4800b54fdc850517be7208906c911832c66e
35 DIST git-manpages-2.33.1.tar.xz 494288 BLAKE2B 1f8bd4f23de31a285d3f4327e562dddafdf9f28e8b36334e54f5e280c81fc8170e8b153ca42baa642d02d8e6fdfcac9a8fdd3cee1e32c29bcd53f689d1a6c463 SHA512 d465a7b491046b7a5da6ad1fc6c62b351c69905932e0672263de5a1d3abe1113660cff9fe30c7be1d1695c6170ceca5a11b3f65e9b2d1545f35cc653e4c6ad62
36 @@ -26,5 +24,4 @@ DIST git-manpages-2.35.2.tar.xz 497548 BLAKE2B 5e7c9e85879e57e5b157dc8d0a8b836d8
37 DIST git-manpages-2.35.3.tar.xz 497672 BLAKE2B aef5a7c579392f55fa63f1ce36c03579f4fcce443e867ac2a162a3d72344639ee11949748a51547315579b37e0fc6d5915ea203ddc556b2511125781428ce001 SHA512 25ac8f1690ccbc0e36b7d05115aebde1911909307ac29d930158b61ecd68972b8a9c3af018d73f34251d42cabf8d3d392173a448ec948df0a3119c2a2b87bd60
38 DIST git-manpages-2.36.0.tar.xz 503604 BLAKE2B 438f533dce6628143c0ca348bc372017f049126933bf07a63ce9150114632a048778d8e0876970b406144aa584d512470ae4426be9c5bb8a3a581680ac9443a1 SHA512 67c2fb1c974ffe15aa09b9c36338f3ae9805573b35291e128210fc99c9fd97b1e26be571819d6b073c5adfe4c6f688c15e31790aa9eb62c1effacfb8aa21eb1c
39 DIST git-manpages-2.36.1.tar.xz 503680 BLAKE2B d43fc90584b2f9e3bae30460f0c545b4fb96a5c70ad03c73d655481e5737b75a8d7a293db5bfdd752aabfc835a4a11e77474a5a0f144c8791b2dd433a3e45b70 SHA512 dd2fd6c5186aac53d7834ccf0cb6c380758624bb4583c6c5703b5b7a24c65d4199403fbcf7033c69bd3dcfbe048baaef3e886b9ba99c8afeb375e18e5b3e6e40
40 -DIST git-manpages-2.37.0.rc2.tar.xz 510240 BLAKE2B e300ceb4c0094803a1c4f30e6b701928bfdcabf87f03ebb9c46b24edd25b58b62864b8d8b17b6dc87588dc4c83afd56a935479e3e60af209907c5280abba8a57 SHA512 1a2940cdaeccbfe786a613b800fdafbf73ee6fcc5d4d39cbdc004aea3ccd9577262cde49a79c9cfe34112d407220a18b314cbb56dae9e0ece1fb6041d86ccd6c
41 DIST git-manpages-2.37.0.tar.xz 509992 BLAKE2B 67a1bc6e3a92b69d30b5e977b170cf11ac37d85dc318b35e12b728b8e17d6cfaaca7bbd343da8745be2547be8ad3dd9d930a24c0ba716dcb96aaf0610e25b11d SHA512 d739670caa11b70f3ed50665764e78a5b4c3d3d912976898d22d10d45ba3e2599b9e13d2a2502f97076a9d88b5f9e67bb11d204c8c43149b81e8243d28981711
42
43 diff --git a/dev-vcs/git/git-2.37.0_rc2.ebuild b/dev-vcs/git/git-2.37.0_rc2.ebuild
44 deleted file mode 100644
45 index 6b4a3f2ff057..000000000000
46 --- a/dev-vcs/git/git-2.37.0_rc2.ebuild
47 +++ /dev/null
48 @@ -1,641 +0,0 @@
49 -# Copyright 1999-2022 Gentoo Authors
50 -# Distributed under the terms of the GNU General Public License v2
51 -
52 -EAPI=8
53 -
54 -GENTOO_DEPEND_ON_PERL=no
55 -
56 -# bug #329479: git-remote-testgit is not multiple-version aware
57 -PYTHON_COMPAT=( python3_{8..10} )
58 -
59 -inherit toolchain-funcs perl-module bash-completion-r1 plocale python-single-r1 systemd
60 -
61 -PLOCALES="bg ca de es fr is it ko pt_PT ru sv vi zh_CN"
62 -if [[ ${PV} == *9999 ]]; then
63 - inherit git-r3
64 - EGIT_REPO_URI="https://git.kernel.org/pub/scm/git/git.git"
65 - # Please ensure that all _four_ 9999 ebuilds get updated; they track the 4 upstream branches.
66 - # See https://git-scm.com/docs/gitworkflows#_graduation
67 - # In order of stability:
68 - # 9999-r0: maint
69 - # 9999-r1: master
70 - # 9999-r2: next
71 - # 9999-r3: seen
72 - case "${PVR}" in
73 - 9999) EGIT_BRANCH=maint ;;
74 - 9999-r1) EGIT_BRANCH=master ;;
75 - 9999-r2) EGIT_BRANCH=next;;
76 - 9999-r3) EGIT_BRANCH=seen ;;
77 - esac
78 -fi
79 -
80 -MY_PV="${PV/_rc/.rc}"
81 -MY_P="${PN}-${MY_PV}"
82 -
83 -DOC_VER="${MY_PV}"
84 -
85 -DESCRIPTION="stupid content tracker: distributed VCS designed for speed and efficiency"
86 -HOMEPAGE="https://www.git-scm.com/"
87 -if [[ ${PV} != *9999 ]]; then
88 - SRC_URI_SUFFIX="xz"
89 - SRC_URI_KORG="https://www.kernel.org/pub/software/scm/git"
90 - [[ "${PV/rc}" != "${PV}" ]] && SRC_URI_KORG+='/testing'
91 - SRC_URI="${SRC_URI_KORG}/${MY_P}.tar.${SRC_URI_SUFFIX}
92 - ${SRC_URI_KORG}/${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
93 - doc? (
94 - ${SRC_URI_KORG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
95 - )"
96 - [[ "${PV}" == *_rc* ]] || \
97 - 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"
98 -fi
99 -
100 -LICENSE="GPL-2"
101 -SLOT="0"
102 -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"
103 -
104 -# Common to both DEPEND and RDEPEND
105 -DEPEND="
106 - gnome-keyring? (
107 - app-crypt/libsecret
108 - dev-libs/glib:2
109 - )
110 - dev-libs/openssl:0=
111 - sys-libs/zlib
112 - pcre? ( dev-libs/libpcre2:= )
113 - perl? ( dev-lang/perl:=[-build(-)] )
114 - tk? ( dev-lang/tk:0= )
115 - curl? (
116 - net-misc/curl
117 - webdav? ( dev-libs/expat )
118 - )
119 - iconv? ( virtual/libiconv )
120 -"
121 -
122 -RDEPEND="${DEPEND}
123 - gpg? ( app-crypt/gnupg )
124 - perl? (
125 - dev-perl/Error
126 - dev-perl/MailTools
127 - dev-perl/Authen-SASL
128 - >=virtual/perl-libnet-3.110.0-r4[ssl]
129 - cgi? (
130 - dev-perl/CGI
131 - highlight? ( app-text/highlight )
132 - )
133 - cvs? (
134 - >=dev-vcs/cvsps-2.1:0
135 - dev-perl/DBI
136 - dev-perl/DBD-SQLite
137 - )
138 - mediawiki? (
139 - dev-perl/DateTime-Format-ISO8601
140 - dev-perl/HTML-Tree
141 - dev-perl/MediaWiki-API
142 - )
143 - subversion? (
144 - dev-vcs/subversion[-dso(-),perl]
145 - dev-perl/libwww-perl
146 - dev-perl/TermReadKey
147 - )
148 - )
149 - perforce? ( ${PYTHON_DEPS} )
150 - selinux? ( sec-policy/selinux-git )
151 -"
152 -
153 -# This is how info docs are created with Git:
154 -# .txt/asciidoc --(asciidoc)---------> .xml/docbook
155 -# .xml/docbook --(docbook2texi.pl)--> .texi
156 -# .texi --(makeinfo)---------> .info
157 -BDEPEND="
158 - doc? (
159 - app-text/asciidoc
160 - app-text/docbook2X
161 - app-text/xmlto
162 - sys-apps/texinfo
163 - )
164 - gnome-keyring? ( virtual/pkgconfig )
165 - nls? ( sys-devel/gettext )
166 - test? ( app-crypt/gnupg )
167 -"
168 -
169 -# Live ebuild builds man pages and HTML docs, additionally
170 -if [[ ${PV} == *9999 ]]; then
171 - BDEPEND="${BDEPEND}
172 - app-text/asciidoc"
173 -fi
174 -
175 -SITEFILE="50${PN}-gentoo.el"
176 -S="${WORKDIR}/${MY_P}"
177 -
178 -REQUIRED_USE="
179 - cgi? ( perl )
180 - cvs? ( perl )
181 - mediawiki? ( perl )
182 - mediawiki-experimental? ( mediawiki )
183 - perforce? ( ${PYTHON_REQUIRED_USE} )
184 - subversion? ( perl )
185 - webdav? ( curl )
186 -"
187 -
188 -RESTRICT="!test? ( test )"
189 -
190 -PATCHES=(
191 - # bug #350330 - automagic CVS when we don't want it is bad.
192 - "${FILESDIR}"/git-2.37.0_rc1-optional-cvs.patch
193 -
194 - # Make submodule output quiet
195 - "${FILESDIR}"/git-2.21.0-quiet-submodules-testcase.patch
196 -)
197 -
198 -pkg_setup() {
199 - if use subversion && has_version "dev-vcs/subversion[dso]" ; then
200 - ewarn "Per Gentoo bugs #223747, #238586, when subversion is built"
201 - ewarn "with USE=dso, there may be weird crashes in git-svn. You"
202 - ewarn "have been warned."
203 - fi
204 -
205 - if use perforce ; then
206 - python-single-r1_pkg_setup
207 - fi
208 -}
209 -
210 -# This is needed because for some obscure reasons future calls to make don't
211 -# pick up these exports if we export them in src_unpack()
212 -exportmakeopts() {
213 - local extlibs myopts
214 -
215 - myopts=(
216 - ASCIIDOC_NO_ROFF=YesPlease
217 - $(usex cvs '' NO_CVS=YesPlease)
218 - $(usex elibc_musl NO_REGEX=YesPlease '')
219 - $(usex iconv '' NO_ICONV=YesPlease)
220 - $(usex nls '' NO_GETTEXT=YesPlease)
221 - $(usex perl 'INSTALLDIRS=vendor NO_PERL_CPAN_FALLBACKS=YesPlease' NO_PERL=YesPlease)
222 - $(usex perforce '' NO_PYTHON=YesPlease)
223 - $(usex subversion '' NO_SVN_TESTS=YesPlease)
224 - $(usex threads '' NO_PTHREADS=YesPlease)
225 - $(usex tk '' NO_TCLTK=YesPlease)
226 - )
227 -
228 - if use blksha1 ; then
229 - myopts+=( BLK_SHA1=YesPlease )
230 - elif use ppcsha1 ; then
231 - myopts+=( PPC_SHA1=YesPlease )
232 - fi
233 -
234 - if use curl ; then
235 - use webdav || myopts+=( NO_EXPAT=YesPlease )
236 - else
237 - myopts+=( NO_CURL=YesPlease )
238 - fi
239 -
240 - # broken assumptions, because of static build system ...
241 - myopts+=(
242 - NO_FINK=YesPlease
243 - NO_DARWIN_PORTS=YesPlease
244 - INSTALL=install
245 - TAR=tar
246 - SHELL_PATH="${EPREFIX}/bin/sh"
247 - SANE_TOOL_PATH=
248 - OLD_ICONV=
249 - NO_EXTERNAL_GREP=
250 - )
251 -
252 - # can't define this to null, since the entire makefile depends on it
253 - sed -i -e '/\/usr\/local/s/BASIC_/#BASIC_/' Makefile || die
254 -
255 - if use pcre; then
256 - myopts+=( USE_LIBPCRE2=YesPlease )
257 - extlibs+=( -lpcre2-8 )
258 - fi
259 - if [[ ${CHOST} == *-solaris* ]]; then
260 - myopts+=(
261 - NEEDS_LIBICONV=YesPlease
262 - HAVE_CLOCK_MONOTONIC=1
263 - )
264 - if grep -Fq getdelim "${EROOT}"/usr/include/stdio.h ; then
265 - myopts+=( HAVE_GETDELIM=1 )
266 - fi
267 - fi
268 -
269 - if has_version '>=app-text/asciidoc-8.0' ; then
270 - myopts+=( ASCIIDOC8=YesPlease )
271 - fi
272 -
273 - export MY_MAKEOPTS="${myopts[@]}"
274 - export EXTLIBS="${extlibs[@]}"
275 -}
276 -
277 -src_unpack() {
278 - if [[ ${PV} != *9999 ]] ; then
279 - unpack ${MY_P}.tar.${SRC_URI_SUFFIX}
280 - cd "${S}" || die
281 - unpack ${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
282 - if use doc ; then
283 - pushd "${S}"/Documentation &>/dev/null || die
284 - unpack ${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
285 - popd &>/dev/null || die
286 - fi
287 - else
288 - git-r3_src_unpack
289 - #cp "${FILESDIR}"/GIT-VERSION-GEN .
290 - fi
291 -
292 -}
293 -
294 -src_prepare() {
295 - # add experimental patches to improve mediawiki support
296 - # see patches for origin
297 - if use mediawiki-experimental ; then
298 - PATCHES+=(
299 - "${FILESDIR}"/git-2.7.0-mediawiki-namespaces.patch
300 - "${FILESDIR}"/git-2.7.0-mediawiki-subpages.patch
301 - "${FILESDIR}"/git-2.7.0-mediawiki-500pages.patch
302 - )
303 - fi
304 -
305 - default
306 -
307 - if use prefix ; then
308 - # bug #757309
309 - eapply "${FILESDIR}"/git-2.31.0-darwin-prefix-gettext.patch
310 - fi
311 -
312 - sed -i \
313 - -e 's:^\(CFLAGS[[:space:]]*=\).*$:\1 $(OPTCFLAGS) -Wall:' \
314 - -e 's:^\(LDFLAGS[[:space:]]*=\).*$:\1 $(OPTLDFLAGS):' \
315 - -e 's:^\(CC[[:space:]]* =\).*$:\1$(OPTCC):' \
316 - -e 's:^\(AR[[:space:]]* =\).*$:\1$(OPTAR):' \
317 - -e "s:\(PYTHON_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \
318 - -e "s:\(PERL_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \
319 - Makefile || die
320 -
321 - # Fix docbook2texi command
322 - sed -r -i 's/DOCBOOK2X_TEXI[[:space:]]*=[[:space:]]*docbook2x-texi/DOCBOOK2X_TEXI = docbook2texi.pl/' \
323 - Documentation/Makefile || die
324 -}
325 -
326 -git_emake() {
327 - # bug #320647: PYTHON_PATH
328 - local PYTHON_PATH=""
329 - use perforce && PYTHON_PATH="${PYTHON}"
330 - emake ${MY_MAKEOPTS} \
331 - prefix="${EPREFIX}"/usr \
332 - htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
333 - perllibdir="$(use perl && perl_get_raw_vendorlib)" \
334 - sysconfdir="${EPREFIX}"/etc \
335 - GIT_TEST_OPTS="--no-color" \
336 - OPTAR="$(tc-getAR)" \
337 - OPTCC="$(tc-getCC)" \
338 - OPTCFLAGS="${CFLAGS}" \
339 - OPTLDFLAGS="${LDFLAGS}" \
340 - PERL_PATH="${EPREFIX}/usr/bin/perl" \
341 - PERL_MM_OPT="" \
342 - PYTHON_PATH="${PYTHON_PATH}" \
343 - V=1 \
344 - "$@"
345 -}
346 -
347 -src_configure() {
348 - exportmakeopts
349 -}
350 -
351 -src_compile() {
352 - git_emake || die "emake failed"
353 -
354 - if use perl && use cgi ; then
355 - git_emake gitweb || die "emake gitweb (cgi) failed"
356 - fi
357 -
358 - if [[ ${CHOST} == *-darwin* ]] && tc-is-clang ; then
359 - pushd contrib/credential/osxkeychain &>/dev/null || die
360 - git_emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" \
361 - || die "emake credential-osxkeychain"
362 - popd &>/dev/null || die
363 - fi
364 -
365 - pushd Documentation &>/dev/null || die
366 - if [[ ${PV} == *9999 ]] ; then
367 - git_emake man || die "emake man failed"
368 - if use doc ; then
369 - git_emake info html || die "emake info html failed"
370 - fi
371 - else
372 - if use doc ; then
373 - git_emake info || die "emake info html failed"
374 - fi
375 - fi
376 - popd &>/dev/null || die
377 -
378 - if use gnome-keyring ; then
379 - pushd contrib/credential/libsecret &>/dev/null || die
380 - git_emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" PKG_CONFIG="$(tc-getPKG_CONFIG)"
381 - popd &>/dev/null || die
382 - fi
383 -
384 - pushd contrib/subtree &>/dev/null || die
385 - git_emake git-subtree || die
386 - # git-subtree.1 requires the full USE=doc dependency stack
387 - use doc && git_emake git-subtree.html git-subtree.1
388 - popd &>/dev/null || die
389 -
390 - pushd contrib/diff-highlight &>/dev/null || die
391 - git_emake || die
392 - popd &>/dev/null || die
393 -
394 - if use mediawiki ; then
395 - pushd contrib/mw-to-git &>/dev/null || die
396 - git_emake || die
397 - popd &>/dev/null || die
398 -
399 - fi
400 -}
401 -
402 -src_install() {
403 - git_emake DESTDIR="${D}" install || die "make install failed"
404 -
405 - if [[ ${CHOST} == *-darwin* ]] && tc-is-clang ; then
406 - dobin contrib/credential/osxkeychain/git-credential-osxkeychain
407 - fi
408 -
409 - # Depending on the tarball and manual rebuild of the documentation, the
410 - # manpages may exist in either OR both of these directories.
411 - find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157]
412 - find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157]
413 - dodoc README* Documentation/{SubmittingPatches,CodingGuidelines}
414 - use doc && dodir /usr/share/doc/${PF}/html
415 - local d
416 - for d in / /howto/ /technical/ ; do
417 - docinto ${d}
418 - dodoc Documentation${d}*.txt
419 - if use doc ; then
420 - docinto ${d}/html
421 - dodoc Documentation${d}*.html
422 - fi
423 - done
424 - docinto /
425 - # Upstream does not ship this pre-built :-(
426 - use doc && doinfo Documentation/{git,gitman}.info
427 -
428 - newbashcomp contrib/completion/git-completion.bash ${PN}
429 - bashcomp_alias git gitk
430 - # Not really a bash-completion file (bug #477920)
431 - # but still needed uncompressed (bug #507480)
432 - insinto /usr/share/${PN}
433 - doins contrib/completion/git-prompt.sh
434 -
435 - #dobin contrib/fast-import/git-p4 # Moved upstream
436 - #dodoc contrib/fast-import/git-p4.txt # Moved upstream
437 - newbin contrib/fast-import/import-tars.perl import-tars
438 - exeinto /usr/libexec/git-core/
439 - newexe contrib/git-resurrect.sh git-resurrect
440 -
441 - # git-subtree
442 - pushd contrib/subtree &>/dev/null || die
443 - git_emake DESTDIR="${D}" install || die "Failed to emake install for git-subtree"
444 - if use doc ; then
445 - # Do not move git subtree install-man outside USE=doc!
446 - git_emake DESTDIR="${D}" install-man install-html || die "Failed to emake install-html install-man for git-subtree"
447 - fi
448 - newdoc README README.git-subtree
449 - dodoc git-subtree.txt
450 - popd &>/dev/null || die
451 -
452 - if use mediawiki ; then
453 - pushd contrib/mw-to-git &>/dev/null || die
454 - git_emake DESTDIR="${D}" install
455 - popd &>/dev/null || die
456 - fi
457 -
458 - # diff-highlight
459 - dobin contrib/diff-highlight/diff-highlight
460 - newdoc contrib/diff-highlight/README README.diff-highlight
461 -
462 - # git-jump
463 - exeinto /usr/libexec/git-core/
464 - doexe contrib/git-jump/git-jump
465 - newdoc contrib/git-jump/README git-jump.txt
466 -
467 - # git-contacts
468 - exeinto /usr/libexec/git-core/
469 - doexe contrib/contacts/git-contacts
470 - dodoc contrib/contacts/git-contacts.txt
471 -
472 - if use gnome-keyring ; then
473 - pushd contrib/credential/libsecret &>/dev/null || die
474 - dobin git-credential-libsecret
475 - popd &>/dev/null || die
476 - fi
477 -
478 - dodir /usr/share/${PN}/contrib
479 - # The following are excluded:
480 - # completion - installed above
481 - # diff-highlight - done above
482 - # emacs - removed upstream
483 - # examples - these are stuff that is not used in Git anymore actually
484 - # git-jump - done above
485 - # gitview - installed above
486 - # p4import - excluded because fast-import has a better one
487 - # patches - stuff the Git guys made to go upstream to other places
488 - # persistent-https - TODO
489 - # mw-to-git - TODO
490 - # subtree - build seperately
491 - # svnimport - use git-svn
492 - # thunderbird-patch-inline - fixes thunderbird
493 - local contrib_objects=(
494 - buildsystems
495 - fast-import
496 - hg-to-git
497 - hooks
498 - remotes2config.sh
499 - rerere-train.sh
500 - stats
501 - workdir
502 - )
503 - local i
504 - for i in "${contrib_objects[@]}" ; do
505 - cp -rf \
506 - "${S}"/contrib/${i} \
507 - "${ED}"/usr/share/${PN}/contrib \
508 - || die "Failed contrib ${i}"
509 - done
510 -
511 - if use perl && use cgi ; then
512 - # We used to install in /usr/share/${PN}/gitweb
513 - # but upstream installs in /usr/share/gitweb
514 - # so we will install a symlink and use their location for compat with other
515 - # distros
516 - dosym ../gitweb /usr/share/${PN}/gitweb
517 -
518 - # INSTALL discusses configuration issues, not just installation
519 - docinto /
520 - newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
521 - newdoc "${S}"/gitweb/README README.gitweb
522 -
523 - for d in "${ED}"/usr/lib{,64}/perl5/ ; do
524 - if [[ -d "${d}" ]] ; then
525 - find "${d}" -name .packlist -delete || die
526 - fi
527 - done
528 - else
529 - rm -rf "${ED}"/usr/share/gitweb
530 - fi
531 -
532 - if ! use subversion ; then
533 - rm -f "${ED}"/usr/libexec/git-core/git-svn \
534 - "${ED}"/usr/share/man/man1/git-svn.1*
535 - fi
536 -
537 - if use xinetd ; then
538 - insinto /etc/xinetd.d
539 - newins "${FILESDIR}"/git-daemon.xinetd git-daemon
540 - fi
541 -
542 - if ! use prefix ; then
543 - newinitd "${FILESDIR}"/git-daemon-r2.initd git-daemon
544 - newconfd "${FILESDIR}"/git-daemon.confd git-daemon
545 - systemd_newunit "${FILESDIR}/git-daemon_at-r1.service" \
546 - "git-daemon@.service"
547 - systemd_dounit "${FILESDIR}/git-daemon.socket"
548 - fi
549 -
550 - perl_delete_localpod
551 -
552 - # Remove disabled linguas
553 - # we could remove sources in src_prepare, but install does not
554 - # handle missing locale dir well
555 - rm_loc() {
556 - if [[ -e "${ED}/usr/share/locale/${1}" ]] ; then
557 - rm -r "${ED}/usr/share/locale/${1}" || die
558 - fi
559 - }
560 - plocale_for_each_disabled_locale rm_loc
561 -}
562 -
563 -src_test() {
564 - local disabled=()
565 - local tests_cvs=(
566 - t9200-git-cvsexportcommit.sh
567 - t9400-git-cvsserver-server.sh
568 - t9401-git-cvsserver-crlf.sh
569 - t9402-git-cvsserver-refs.sh
570 - t9600-cvsimport.sh
571 - t9601-cvsimport-vendor-branch.sh
572 - t9602-cvsimport-branches-tags.sh
573 - t9603-cvsimport-patchsets.sh
574 - t9604-cvsimport-timestamps.sh
575 - )
576 - local tests_perl=(
577 - t3701-add-interactive.sh
578 - t5502-quickfetch.sh
579 - t5512-ls-remote.sh
580 - t5520-pull.sh
581 - t7106-reset-unborn-branch.sh
582 - t7501-commit.sh
583 - )
584 - # Bug #225601 - t0004 is not suitable for root perm
585 - # Bug #219839 - t1004 is not suitable for root perm
586 - # t0001-init.sh - check for init notices EPERM* fails
587 - local tests_nonroot=(
588 - t0001-init.sh
589 - t0004-unwritable.sh
590 - t0070-fundamental.sh
591 - t1004-read-tree-m-u-wf.sh
592 - t3700-add.sh
593 - t7300-clean.sh
594 - )
595 - # t9100 still fails with symlinks in SVN 1.7
596 - local test_svn=( t9100-git-svn-basic.sh )
597 -
598 - # Unzip is used only for the testcase code, not by any normal parts of Git.
599 - if ! has_version app-arch/unzip ; then
600 - einfo "Disabling tar-tree tests"
601 - disabled+=( t5000-tar-tree.sh )
602 - fi
603 -
604 - local cvs=0
605 - use cvs && let cvs=${cvs}+1
606 - if [[ ${EUID} -eq 0 ]] ; then
607 - if [[ ${cvs} -eq 1 ]] ; then
608 - ewarn "Skipping CVS tests because CVS does not work as root!"
609 - ewarn "You should retest with FEATURES=userpriv!"
610 - disabled+=( ${tests_cvs[@]} )
611 - fi
612 - einfo "Skipping other tests that require being non-root"
613 - disabled+=( ${tests_nonroot[@]} )
614 - else
615 - [[ ${cvs} -gt 0 ]] && \
616 - has_version dev-vcs/cvs && \
617 - let cvs=${cvs}+1
618 - [[ ${cvs} -gt 1 ]] && \
619 - has_version "dev-vcs/cvs[server]" && \
620 - let cvs=${cvs}+1
621 - if [[ ${cvs} -lt 3 ]] ; then
622 - einfo "Disabling CVS tests (needs dev-vcs/cvs[USE=server])"
623 - disabled+=( ${tests_cvs[@]} )
624 - fi
625 - fi
626 -
627 - if ! use perl ; then
628 - einfo "Disabling tests that need Perl"
629 - disabled+=( ${tests_perl[@]} )
630 - fi
631 -
632 - einfo "Disabling tests that fail with SVN 1.7"
633 - disabled+=( ${test_svn[@]} )
634 -
635 - # Reset all previously disabled tests
636 - pushd t &>/dev/null || die
637 - local i
638 - for i in *.sh.DISABLED ; do
639 - [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
640 - done
641 - einfo "Disabled tests:"
642 - for i in ${disabled[@]} ; do
643 - if [[ -f "${i}" ]] ; then
644 - mv -f "${i}" "${i}.DISABLED" && einfo "Disabled ${i}"
645 - fi
646 - done
647 -
648 - # Avoid the test system removing the results because we want them ourselves
649 - sed -e '/^[[:space:]]*$(MAKE) clean/s,^,#,g' -i Makefile || die
650 -
651 - # Clean old results first, must always run
652 - nonfatal git_emake clean
653 - popd &>/dev/null || die
654 -
655 - # Now run the tests, keep going if we hit an error, and don't terminate on
656 - # failure
657 - local rc
658 - einfo "Start test run"
659 - #MAKEOPTS=-j1
660 - nonfatal git_emake --keep-going test
661 - rc=$?
662 -
663 - # Display nice results, now print the results
664 - pushd t &>/dev/null || die
665 - nonfatal git_emake aggregate-results
666 -
667 - # And bail if there was a problem
668 - [[ ${rc} -eq 0 ]] || die "tests failed. Please file a bug."
669 -}
670 -
671 -showpkgdeps() {
672 - local pkg=$1
673 - shift
674 - elog " $(printf "%-17s:" ${pkg}) ${@}"
675 -}
676 -
677 -pkg_postinst() {
678 - elog "Please read /usr/share/bash-completion/completions/git for Git bash command"
679 - elog "completion."
680 - elog "Please read /usr/share/git/git-prompt.sh for Git bash prompt"
681 - elog "Note that the prompt bash code is now in that separate script"
682 - elog "These additional scripts need some dependencies:"
683 - echo
684 - showpkgdeps git-quiltimport "dev-util/quilt"
685 - showpkgdeps git-instaweb \
686 - "|| ( www-servers/lighttpd www-servers/apache www-servers/nginx )"
687 - echo
688 - use mediawiki-experimental && ewarn "Using experimental git-mediawiki patches. The stability of cloned wiki filesystems is not guaranteed."
689 -}