Gentoo Archives: gentoo-commits

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