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