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