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