Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-vcs/git: git-1.7.10.ebuild ChangeLog
Date: Sun, 08 Apr 2012 05:50:11
Message-Id: 20120408054959.9FE1C2004B@flycatcher.gentoo.org
1 robbat2 12/04/08 05:49:59
2
3 Modified: ChangeLog
4 Added: git-1.7.10.ebuild
5 Log:
6 Version bump. Still no keywords due to major git-svn breakage.
7
8 (Portage version: 2.2.0_alpha93/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.127 dev-vcs/git/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/ChangeLog?rev=1.127&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/ChangeLog?rev=1.127&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/ChangeLog?r1=1.126&r2=1.127
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-vcs/git/ChangeLog,v
20 retrieving revision 1.126
21 retrieving revision 1.127
22 diff -p -w -b -B -u -u -r1.126 -r1.127
23 --- ChangeLog 12 Mar 2012 23:53:42 -0000 1.126
24 +++ ChangeLog 8 Apr 2012 05:49:59 -0000 1.127
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-vcs/git
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git/ChangeLog,v 1.126 2012/03/12 23:53:42 robbat2 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git/ChangeLog,v 1.127 2012/04/08 05:49:59 robbat2 Exp $
30 +
31 +*git-1.7.10 (08 Apr 2012)
32 +
33 + 08 Apr 2012; Robin H. Johnson <robbat2@g.o> +git-1.7.10.ebuild:
34 + Version bump. Still no keywords due to major git-svn breakage.
35
36 *git-1.7.9.4 (12 Mar 2012)
37
38
39
40
41 1.1 dev-vcs/git/git-1.7.10.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/git-1.7.10.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/git-1.7.10.ebuild?rev=1.1&content-type=text/plain
45
46 Index: git-1.7.10.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-vcs/git/git-1.7.10.ebuild,v 1.1 2012/04/08 05:49:59 robbat2 Exp $
51
52 EAPI=4
53
54 GENTOO_DEPEND_ON_PERL=no
55
56 # bug #329479: git-remote-testgit is not multiple-version aware
57 PYTHON_DEPEND="python? 2"
58 [[ ${PV} == *9999 ]] && SCM="git-2"
59 EGIT_REPO_URI="git://git.kernel.org/pub/scm/git/git.git"
60
61 inherit toolchain-funcs eutils elisp-common perl-module bash-completion-r1 python ${SCM}
62
63 MY_PV="${PV/_rc/.rc}"
64 MY_P="${PN}-${MY_PV}"
65
66 DOC_VER=${MY_PV}
67
68 DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
69 HOMEPAGE="http://www.git-scm.com/"
70 if [[ ${PV} != *9999 ]]; then
71 SRC_URI_SUFFIX="gz"
72 SRC_URI_GOOG="http://git-core.googlecode.com/files"
73 SRC_URI_KORG="mirror://kernel/software/scm/git"
74 SRC_URI="${SRC_URI_GOOG}/${MY_P}.tar.${SRC_URI_SUFFIX}
75 ${SRC_URI_KORG}/${MY_P}.tar.${SRC_URI_SUFFIX}
76 ${SRC_URI_GOOG}/${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
77 ${SRC_URI_KORG}/${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
78 doc? (
79 ${SRC_URI_KORG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
80 ${SRC_URI_GOOG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
81 )"
82 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
83 KEYWORDS="" # Pending git-svn fixes
84 else
85 SRC_URI=""
86 KEYWORDS=""
87 fi
88
89 LICENSE="GPL-2"
90 SLOT="0"
91 IUSE="+blksha1 +curl cgi doc emacs gtk iconv +pcre +perl +python ppcsha1 tk +threads +webdav xinetd cvs subversion test"
92
93 # Common to both DEPEND and RDEPEND
94 CDEPEND="
95 !blksha1? ( dev-libs/openssl )
96 sys-libs/zlib\
97 pcre? ( dev-libs/libpcre )
98 perl? ( dev-lang/perl[-build] )
99 tk? ( dev-lang/tk )
100 curl? (
101 net-misc/curl
102 webdav? ( dev-libs/expat )
103 )
104 emacs? ( virtual/emacs )"
105
106 RDEPEND="${CDEPEND}
107 app-crypt/gnupg
108 perl? ( dev-perl/Error
109 dev-perl/Net-SMTP-SSL
110 dev-perl/Authen-SASL
111 cgi? ( virtual/perl-CGI app-text/highlight )
112 cvs? ( >=dev-vcs/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite )
113 subversion? ( dev-vcs/subversion[-dso,perl] dev-perl/libwww-perl dev-perl/TermReadKey )
114 )
115 python? ( gtk?
116 (
117 >=dev-python/pygtk-2.8
118 dev-python/pygtksourceview:2
119 ) )"
120
121 # This is how info docs are created with Git:
122 # .txt/asciidoc --(asciidoc)---------> .xml/docbook
123 # .xml/docbook --(docbook2texi.pl)--> .texi
124 # .texi --(makeinfo)---------> .info
125 DEPEND="${CDEPEND}
126 app-arch/cpio
127 doc? (
128 app-text/asciidoc
129 app-text/docbook2X
130 sys-apps/texinfo
131 )
132 test? (
133 app-crypt/gnupg
134 )"
135
136 # Live ebuild builds man pages and HTML docs, additionally
137 if [[ ${PV} == *9999 ]]; then
138 DEPEND="${DEPEND}
139 app-text/asciidoc
140 app-text/xmlto"
141 fi
142
143 SITEFILE=50${PN}-gentoo.el
144 S="${WORKDIR}/${MY_P}"
145
146 REQUIRED_USE="
147 cgi? ( perl )
148 cvs? ( perl )
149 subversion? ( perl )
150 webdav? ( curl )
151 "
152
153 pkg_setup() {
154 if use subversion && has_version dev-vcs/subversion && built_with_use --missing false dev-vcs/subversion dso ; then
155 ewarn "Per Gentoo bugs #223747, #238586, when subversion is built"
156 ewarn "with USE=dso, there may be weird crashes in git-svn. You"
157 ewarn "have been warned."
158 fi
159 if use python ; then
160 python_set_active_version 2
161 python_pkg_setup
162 fi
163 }
164
165 # This is needed because for some obscure reasons future calls to make don't
166 # pick up these exports if we export them in src_unpack()
167 exportmakeopts() {
168 local myopts
169
170 if use blksha1 ; then
171 myopts="${myopts} BLK_SHA1=YesPlease"
172 elif use ppcsha1 ; then
173 myopts="${myopts} PPC_SHA1=YesPlease"
174 fi
175
176 if use curl ; then
177 use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
178 else
179 myopts="${myopts} NO_CURL=YesPlease"
180 fi
181
182 # broken assumptions, because of broken build system ...
183 myopts="${myopts} NO_FINK=YesPlease NO_DARWIN_PORTS=YesPlease"
184 myopts="${myopts} INSTALL=install TAR=tar"
185 myopts="${myopts} SHELL_PATH=${EPREFIX}/bin/sh"
186 myopts="${myopts} SANE_TOOL_PATH="
187 myopts="${myopts} OLD_ICONV="
188 myopts="${myopts} NO_EXTERNAL_GREP="
189
190 # can't define this to null, since the entire makefile depends on it
191 sed -i -e '/\/usr\/local/s/BASIC_/#BASIC_/' Makefile
192
193 use iconv \
194 || einfo "Forcing iconv for ${PVR} due to bugs #321895, #322205."
195 # || myopts="${myopts} NO_ICONV=YesPlease"
196 # because, above, we need to do this unconditionally (no "&& use iconv")
197 use !elibc_glibc && myopts="${myopts} NEEDS_LIBICONV=YesPlease"
198
199 use tk \
200 || myopts="${myopts} NO_TCLTK=YesPlease"
201 use pcre \
202 && myopts="${myopts} USE_LIBPCRE=yes"
203 use perl \
204 && myopts="${myopts} INSTALLDIRS=vendor" \
205 || myopts="${myopts} NO_PERL=YesPlease"
206 use python \
207 || myopts="${myopts} NO_PYTHON=YesPlease"
208 use subversion \
209 || myopts="${myopts} NO_SVN_TESTS=YesPlease"
210 use threads \
211 && myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease"
212 use cvs \
213 || myopts="${myopts} NO_CVS=YesPlease"
214 # Disabled until ~m68k-mint can be keyworded again
215 # if [[ ${CHOST} == *-mint* ]] ; then
216 # myopts="${myopts} NO_MMAP=YesPlease"
217 # myopts="${myopts} NO_IPV6=YesPlease"
218 # myopts="${myopts} NO_STRLCPY=YesPlease"
219 # myopts="${myopts} NO_MEMMEM=YesPlease"
220 # myopts="${myopts} NO_MKDTEMP=YesPlease"
221 # myopts="${myopts} NO_MKSTEMPS=YesPlease"
222 # fi
223 if [[ ${CHOST} == ia64-*-hpux* ]]; then
224 myopts="${myopts} NO_NSEC=YesPlease"
225 fi
226 if [[ ${CHOST} == *-*-aix* ]]; then
227 myopts="${myopts} NO_FNMATCH_CASEFOLD=YesPlease"
228 fi
229
230 has_version '>=app-text/asciidoc-8.0' \
231 && myopts="${myopts} ASCIIDOC8=YesPlease"
232 myopts="${myopts} ASCIIDOC_NO_ROFF=YesPlease"
233
234 # Bug 290465:
235 # builtin-fetch-pack.c:816: error: 'struct stat' has no member named 'st_mtim'
236 [[ "${CHOST}" == *-uclibc* ]] && \
237 myopts="${myopts} NO_NSEC=YesPlease"
238
239 export MY_MAKEOPTS="${myopts}"
240 }
241
242 src_unpack() {
243 if [[ ${PV} != *9999 ]]; then
244 unpack ${MY_P}.tar.${SRC_URI_SUFFIX}
245 cd "${S}"
246 unpack ${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
247 use doc && \
248 cd "${S}"/Documentation && \
249 unpack ${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
250 cd "${S}"
251 else
252 git-2_src_unpack
253 cd "${S}"
254 #cp "${FILESDIR}"/GIT-VERSION-GEN .
255 fi
256
257 }
258
259 src_prepare() {
260 # Noperl is being merged to upstream as of 2009/04/05
261 #epatch "${FILESDIR}"/20090305-git-1.6.2-noperl.patch
262
263 # GetOpt-Long v2.38 is strict
264 # Merged in 1.6.3 final 2009/05/07
265 #epatch "${FILESDIR}"/20090505-git-1.6.2.5-getopt-fixes.patch
266
267 # JS install fixup
268 # Merged in 1.7.5.x
269 #epatch "${FILESDIR}"/git-1.7.2-always-install-js.patch
270
271 # USE=-iconv causes segfaults, fixed post 1.7.1
272 # Gentoo bug #321895
273 #epatch "${FILESDIR}"/git-1.7.1-noiconv-segfault-fix.patch
274
275 # Fix false positives with t3404 due to SHELL=/bin/false for the portage
276 # user.
277 # Merged upstream
278 #epatch "${FILESDIR}"/git-1.7.3.4-avoid-shell-issues.patch
279
280 # bug #350075: t9001: fix missing prereq on some tests
281 # Merged upstream
282 #epatch "${FILESDIR}"/git-1.7.3.4-fix-perl-test-prereq.patch
283
284 # bug #350330 - automagic CVS when we don't want it is bad.
285 epatch "${FILESDIR}"/git-1.7.3.5-optional-cvs.patch
286
287 sed -i \
288 -e 's:^\(CFLAGS =\).*$:\1 $(OPTCFLAGS) -Wall:' \
289 -e 's:^\(LDFLAGS =\).*$:\1 $(OPTLDFLAGS):' \
290 -e 's:^\(CC = \).*$:\1$(OPTCC):' \
291 -e 's:^\(AR = \).*$:\1$(OPTAR):' \
292 -e "s:\(PYTHON_PATH = \)\(.*\)$:\1${EPREFIX}\2:" \
293 -e "s:\(PERL_PATH = \)\(.*\)$:\1${EPREFIX}\2:" \
294 Makefile || die "sed failed"
295
296 # Never install the private copy of Error.pm (bug #296310)
297 sed -i \
298 -e '/private-Error.pm/s,^,#,' \
299 perl/Makefile.PL
300
301 # Fix docbook2texi command
302 sed -i 's/DOCBOOK2X_TEXI=docbook2x-texi/DOCBOOK2X_TEXI=docbook2texi.pl/' \
303 Documentation/Makefile || die "sed failed"
304
305 # bug #318289
306 # Merged upstream
307 #epatch "${FILESDIR}"/git-1.7.3.2-interix.patch
308
309 # merged upstream
310 #epatch "${FILESDIR}"/git-1.7.5-interix.patch
311
312 # merged upstream
313 #epatch "${FILESDIR}"/git-1.7.6-interix.patch
314
315 # Newer versions of SVN hate a whitespace in the file URL.
316 # So we avoid that by replaced the space with an underscore.
317 #Initialized empty Git repository in /dev/shm/portage/dev-vcs/git-9999/work/git-9999/t/t d.t9155/git_project/.git/
318 #svn: E235000: In file 'subversion/libsvn_subr/dirent_uri.c' line 2291: assertion failed (svn_uri_is_canonical(url, pool))
319 #
320 # With this change the following tests still fail: t9100 t9118 t9120
321 # Without it, MOST of t91* fails, due to the space tripping up the
322 # svn_uri_is_canonical.
323 #
324 # git-svn actually needs to be fixed here, but this chagne is useful for
325 # testing it.
326 #
327 # This patch is my work to date on fixing git-svn, but it causes more
328 # breakage than it fixes (it's manually-edited now to do nothing).
329 #epatch "${FILESDIR}"/git-1.7.8-git-svn-1.7-canonical-path.patch
330 cd "${S}"/t
331 sed -i \
332 -e 's/trash directory/trash_directory/g' \
333 test-lib.sh t0000-basic.sh Makefile || die "sed failed"
334 }
335
336 git_emake() {
337 # bug #326625: PERL_PATH, PERL_MM_OPT
338 # bug #320647: PYTHON_PATH
339 PYTHON_PATH=""
340 use python && PYTHON_PATH="$(PYTHON -a)"
341 emake ${MY_MAKEOPTS} \
342 DESTDIR="${D}" \
343 OPTCFLAGS="${CFLAGS}" \
344 OPTLDFLAGS="${LDFLAGS}" \
345 OPTCC="$(tc-getCC)" \
346 OPTAR="$(tc-getAR)" \
347 prefix="${EPREFIX}"/usr \
348 htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
349 sysconfdir="${EPREFIX}"/etc \
350 PYTHON_PATH="${PYTHON_PATH}" \
351 PERL_MM_OPT="" \
352 GIT_TEST_OPTS="--no-color" \
353 "$@"
354 # This is the fix for bug #326625, but it also causes breakage, see bug
355 # #352693.
356 # PERL_PATH="${EPREFIX}/usr/bin/env perl" \
357 }
358
359 src_configure() {
360 exportmakeopts
361 }
362
363 src_compile() {
364 git_emake || die "emake failed"
365
366 if use emacs ; then
367 elisp-compile contrib/emacs/git{,-blame}.el \
368 || die "emacs modules failed"
369 fi
370
371 if use perl && use cgi ; then
372 git_emake \
373 gitweb/gitweb.cgi \
374 || die "emake gitweb/gitweb.cgi failed"
375 fi
376
377 cd "${S}"/Documentation
378 if [[ ${PV} == *9999 ]] ; then
379 git_emake man \
380 || die "emake man failed"
381 if use doc ; then
382 git_emake info html \
383 || die "emake info html failed"
384 fi
385 else
386 if use doc ; then
387 git_emake info \
388 || die "emake info html failed"
389 fi
390 fi
391 }
392
393 src_install() {
394 git_emake \
395 install || \
396 die "make install failed"
397
398 # Depending on the tarball and manual rebuild of the documentation, the
399 # manpages may exist in either OR both of these directories.
400 find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157]
401 find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157]
402
403 dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
404 use doc && dodir /usr/share/doc/${PF}/html
405 for d in / /howto/ /technical/ ; do
406 docinto ${d}
407 dodoc Documentation${d}*.txt
408 use doc && dohtml -p ${d} Documentation${d}*.html
409 done
410 docinto /
411 # Upstream does not ship this pre-built :-(
412 use doc && doinfo Documentation/{git,gitman}.info
413
414 newbashcomp contrib/completion/git-completion.bash ${PN}
415
416 if use emacs ; then
417 elisp-install ${PN} contrib/emacs/git.{el,elc} || die
418 elisp-install ${PN} contrib/emacs/git-blame.{el,elc} || die
419 #elisp-install ${PN}/compat contrib/emacs/vc-git.{el,elc} || die
420 # don't add automatically to the load-path, so the sitefile
421 # can do a conditional loading
422 touch "${ED}${SITELISP}/${PN}/compat/.nosearch"
423 elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die
424 fi
425
426 if use python && use gtk ; then
427 dobin "${S}"/contrib/gitview/gitview
428 python_convert_shebangs ${PYTHON_ABI} "${ED}"/usr/bin/gitview
429 dodoc "${S}"/contrib/gitview/gitview.txt
430 fi
431
432 dobin contrib/fast-import/git-p4
433 #dodoc contrib/fast-import/git-p4.txt # Moved upstream
434 newbin contrib/fast-import/import-tars.perl import-tars
435 newbin contrib/git-resurrect.sh git-resurrect
436
437 dodir /usr/share/${PN}/contrib
438 # The following are excluded:
439 # completion - installed above
440 # emacs - installed above
441 # examples - these are stuff that is not used in Git anymore actually
442 # gitview - installed above
443 # p4import - excluded because fast-import has a better one
444 # patches - stuff the Git guys made to go upstream to other places
445 # svnimport - use git-svn
446 # thunderbird-patch-inline - fixes thunderbird
447 for i in \
448 blameview buildsystems ciabot continuous convert-objects fast-import \
449 hg-to-git hooks remotes2config.sh remotes2config.sh rerere-train.sh \
450 stats svn-fe vim workdir \
451 ; do
452 cp -rf \
453 "${S}"/contrib/${i} \
454 "${ED}"/usr/share/${PN}/contrib \
455 || die "Failed contrib ${i}"
456 done
457
458 if use perl && use cgi ; then
459 # We used to install in /usr/share/${PN}/gitweb
460 # but upstream installs in /usr/share/gitweb
461 # so we will install a symlink and use their location for compat with other
462 # distros
463 dosym /usr/share/gitweb /usr/share/${PN}/gitweb
464
465 # INSTALL discusses configuration issues, not just installation
466 docinto /
467 newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
468 newdoc "${S}"/gitweb/README README.gitweb
469
470 find "${ED}"/usr/lib64/perl5/ \
471 -name .packlist \
472 -exec rm \{\} \;
473 else
474 rm -rf "${ED}"/usr/share/gitweb
475 fi
476
477 if ! use subversion ; then
478 rm -f "${ED}"/usr/libexec/git-core/git-svn \
479 "${ED}"/usr/share/man/man1/git-svn.1*
480 fi
481
482 if use xinetd ; then
483 insinto /etc/xinetd.d
484 newins "${FILESDIR}"/git-daemon.xinetd git-daemon
485 fi
486
487 newinitd "${FILESDIR}"/git-daemon.initd git-daemon
488 newconfd "${FILESDIR}"/git-daemon.confd git-daemon
489
490 fixlocalpod
491 }
492
493 src_test() {
494 local disabled=""
495 local tests_cvs="t9200-git-cvsexportcommit.sh \
496 t9400-git-cvsserver-server.sh \
497 t9401-git-cvsserver-crlf.sh \
498 t9600-cvsimport.sh \
499 t9601-cvsimport-vendor-branch.sh \
500 t9602-cvsimport-branches-tags.sh \
501 t9603-cvsimport-patchsets.sh"
502 local tests_perl="t5502-quickfetch.sh \
503 t5512-ls-remote.sh \
504 t5520-pull.sh"
505 # Bug #225601 - t0004 is not suitable for root perm
506 # Bug #219839 - t1004 is not suitable for root perm
507 # t0001-init.sh - check for init notices EPERM* fails
508 local tests_nonroot="t0001-init.sh \
509 t0004-unwritable.sh \
510 t0070-fundamental.sh \
511 t1004-read-tree-m-u-wf.sh \
512 t3700-add.sh \
513 t7300-clean.sh"
514 # t9100 t9118 t9120 all fail with SVN 1.7, despite the workaround for spaces
515 # in the test directory.
516 local test_svn="t9100-git-svn-basic.sh \
517 t9118-git-svn-funky-branch-names.sh \
518 t9120-git-svn-clone-with-percent-escapes.sh"
519
520 # Unzip is used only for the testcase code, not by any normal parts of Git.
521 if ! has_version app-arch/unzip ; then
522 einfo "Disabling tar-tree tests"
523 disabled="${disabled} t5000-tar-tree.sh"
524 fi
525
526 cvs=0
527 use cvs && let cvs=$cvs+1
528 if [[ ${EUID} -eq 0 ]]; then
529 if [[ $cvs -eq 1 ]]; then
530 ewarn "Skipping CVS tests because CVS does not work as root!"
531 ewarn "You should retest with FEATURES=userpriv!"
532 disabled="${disabled} ${tests_cvs}"
533 fi
534 einfo "Skipping other tests that require being non-root"
535 disabled="${disabled} ${tests_nonroot}"
536 else
537 [[ $cvs -gt 0 ]] && \
538 has_version dev-vcs/cvs && \
539 let cvs=$cvs+1
540 [[ $cvs -gt 1 ]] && \
541 built_with_use dev-vcs/cvs server && \
542 let cvs=$cvs+1
543 if [[ $cvs -lt 3 ]]; then
544 einfo "Disabling CVS tests (needs dev-vcs/cvs[USE=server])"
545 disabled="${disabled} ${tests_cvs}"
546 fi
547 fi
548
549 if ! use perl ; then
550 einfo "Disabling tests that need Perl"
551 disabled="${disabled} ${tests_perl}"
552 fi
553
554 einfo "Disabling tests that fail with SVN 1.7"
555 disabled="${disabled} ${test_svn}"
556
557 # Reset all previously disabled tests
558 cd "${S}/t"
559 for i in *.sh.DISABLED ; do
560 [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
561 done
562 einfo "Disabled tests:"
563 for i in ${disabled} ; do
564 [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
565 done
566
567 # Avoid the test system removing the results because we want them ourselves
568 sed -e '/^[[:space:]]*$(MAKE) clean/s,^,#,g' \
569 -i "${S}"/t/Makefile
570
571 # Clean old results first, must always run
572 cd "${S}/t"
573 nonfatal git_emake clean
574
575 # Now run the tests, keep going if we hit an error, and don't terminate on
576 # failure
577 cd "${S}"
578 einfo "Start test run"
579 #MAKEOPTS=-j1
580 nonfatal git_emake --keep-going test
581 rc=$?
582
583 # Display nice results, now print the results
584 cd "${S}/t"
585 nonfatal git_emake aggregate-results
586
587 # And bail if there was a problem
588 [ $rc -eq 0 ] || die "tests failed. Please file a bug."
589 }
590
591 showpkgdeps() {
592 local pkg=$1
593 shift
594 elog " $(printf "%-17s:" ${pkg}) ${@}"
595 }
596
597 pkg_postinst() {
598 use emacs && elisp-site-regen
599 use python && python_mod_optimize git_remote_helpers
600 einfo "Please read /usr/share/bash-completion/git for Git bash completion"
601 elog "These additional scripts need some dependencies:"
602 echo
603 showpkgdeps git-quiltimport "dev-util/quilt"
604 showpkgdeps git-instaweb \
605 "|| ( www-servers/lighttpd www-servers/apache )"
606 echo
607 }
608
609 pkg_postrm() {
610 use emacs && elisp-site-regen
611 use python && python_mod_cleanup git_remote_helpers
612 }