1 |
robbat2 11/04/27 05:27:36 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: git-1.7.5_rc3.ebuild git-1.7.4.5.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.2.0_alpha29/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.91 dev-vcs/git/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/ChangeLog?rev=1.91&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/ChangeLog?rev=1.91&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/ChangeLog?r1=1.90&r2=1.91 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-vcs/git/ChangeLog,v |
20 |
retrieving revision 1.90 |
21 |
retrieving revision 1.91 |
22 |
diff -p -w -b -B -u -u -r1.90 -r1.91 |
23 |
--- ChangeLog 20 Apr 2011 11:53:08 -0000 1.90 |
24 |
+++ ChangeLog 27 Apr 2011 05:27:36 -0000 1.91 |
25 |
@@ -1,6 +1,13 @@ |
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.90 2011/04/20 11:53:08 scarabeus Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git/ChangeLog,v 1.91 2011/04/27 05:27:36 robbat2 Exp $ |
30 |
+ |
31 |
+*git-1.7.5_rc3 (27 Apr 2011) |
32 |
+*git-1.7.4.5 (27 Apr 2011) |
33 |
+ |
34 |
+ 27 Apr 2011; Robin H. Johnson <robbat2@g.o> +git-1.7.4.5.ebuild, |
35 |
+ +git-1.7.5_rc3.ebuild: |
36 |
+ Version bump. |
37 |
|
38 |
20 Apr 2011; Tomáš Chvátal <scarabeus@g.o> git-9999.ebuild: |
39 |
Migrate to git-2 eclass. Update live/stable logic conditionals. |
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-vcs/git/git-1.7.5_rc3.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/git-1.7.5_rc3.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/git-1.7.5_rc3.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: git-1.7.5_rc3.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git/git-1.7.5_rc3.ebuild,v 1.1 2011/04/27 05:27:36 robbat2 Exp $ |
53 |
|
54 |
EAPI=3 |
55 |
|
56 |
GENTOO_DEPEND_ON_PERL=no |
57 |
|
58 |
# bug #329479: git-remote-testgit is not multiple-version aware |
59 |
PYTHON_DEPEND="python? 2" |
60 |
[[ ${PV} == *9999 ]] && SCM="git-2" |
61 |
EGIT_REPO_URI="git://git.kernel.org/pub/scm/git/git.git" |
62 |
|
63 |
inherit toolchain-funcs eutils elisp-common perl-module bash-completion python ${SCM} |
64 |
|
65 |
MY_PV="${PV/_rc/.rc}" |
66 |
MY_P="${PN}-${MY_PV}" |
67 |
|
68 |
DOC_VER=${MY_PV} |
69 |
|
70 |
DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team" |
71 |
HOMEPAGE="http://www.git-scm.com/" |
72 |
if [[ ${PV} != *9999 ]]; then |
73 |
SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2 |
74 |
mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2 |
75 |
doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )" |
76 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~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" |
77 |
else |
78 |
SRC_URI="" |
79 |
KEYWORDS="" |
80 |
fi |
81 |
|
82 |
LICENSE="GPL-2" |
83 |
SLOT="0" |
84 |
IUSE="+blksha1 +curl cgi doc emacs gtk iconv +perl +python ppcsha1 tk +threads +webdav xinetd cvs subversion" |
85 |
|
86 |
# Common to both DEPEND and RDEPEND |
87 |
CDEPEND=" |
88 |
!blksha1? ( dev-libs/openssl ) |
89 |
sys-libs/zlib |
90 |
perl? ( dev-lang/perl[-build] ) |
91 |
tk? ( dev-lang/tk ) |
92 |
curl? ( |
93 |
net-misc/curl |
94 |
webdav? ( dev-libs/expat ) |
95 |
) |
96 |
emacs? ( virtual/emacs )" |
97 |
|
98 |
RDEPEND="${CDEPEND} |
99 |
perl? ( dev-perl/Error |
100 |
dev-perl/Net-SMTP-SSL |
101 |
dev-perl/Authen-SASL |
102 |
cgi? ( virtual/perl-CGI ) |
103 |
cvs? ( >=dev-vcs/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite ) |
104 |
subversion? ( dev-vcs/subversion[-dso,perl] dev-perl/libwww-perl dev-perl/TermReadKey ) |
105 |
) |
106 |
python? ( gtk? |
107 |
( |
108 |
>=dev-python/pygtk-2.8 |
109 |
dev-python/pygtksourceview:2 |
110 |
) )" |
111 |
|
112 |
# This is how info docs are created with Git: |
113 |
# .txt/asciidoc --(asciidoc)---------> .xml/docbook |
114 |
# .xml/docbook --(docbook2texi.pl)--> .texi |
115 |
# .texi --(makeinfo)---------> .info |
116 |
DEPEND="${CDEPEND} |
117 |
app-arch/cpio |
118 |
doc? ( |
119 |
app-text/asciidoc |
120 |
app-text/docbook2X |
121 |
sys-apps/texinfo |
122 |
)" |
123 |
|
124 |
# Live ebuild builds man pages and HTML docs, additionally |
125 |
if [[ ${PV} == *9999 ]]; then |
126 |
DEPEND="${DEPEND} |
127 |
app-text/asciidoc |
128 |
app-text/xmlto" |
129 |
fi |
130 |
|
131 |
SITEFILE=50${PN}-gentoo.el |
132 |
S="${WORKDIR}/${MY_P}" |
133 |
|
134 |
pkg_setup() { |
135 |
if ! use perl ; then |
136 |
use cgi && ewarn "gitweb needs USE=perl, ignoring USE=cgi" |
137 |
use cvs && ewarn "CVS integration needs USE=perl, ignoring USE=cvs" |
138 |
use subversion && ewarn "git-svn needs USE=perl, it won't work" |
139 |
fi |
140 |
if use webdav && ! use curl ; then |
141 |
ewarn "USE=webdav needs USE=curl. Ignoring" |
142 |
fi |
143 |
if use subversion && has_version dev-vcs/subversion && built_with_use --missing false dev-vcs/subversion dso ; then |
144 |
ewarn "Per Gentoo bugs #223747, #238586, when subversion is built" |
145 |
ewarn "with USE=dso, there may be weird crashes in git-svn. You" |
146 |
ewarn "have been warned." |
147 |
fi |
148 |
if use python ; then |
149 |
python_set_active_version 2 |
150 |
python_pkg_setup |
151 |
fi |
152 |
} |
153 |
|
154 |
# This is needed because for some obscure reasons future calls to make don't |
155 |
# pick up these exports if we export them in src_unpack() |
156 |
exportmakeopts() { |
157 |
local myopts |
158 |
|
159 |
if use blksha1 ; then |
160 |
myopts="${myopts} BLK_SHA1=YesPlease" |
161 |
elif use ppcsha1 ; then |
162 |
myopts="${myopts} PPC_SHA1=YesPlease" |
163 |
fi |
164 |
|
165 |
if use curl ; then |
166 |
use webdav || myopts="${myopts} NO_EXPAT=YesPlease" |
167 |
else |
168 |
myopts="${myopts} NO_CURL=YesPlease" |
169 |
fi |
170 |
|
171 |
# broken assumptions, because of broken build system ... |
172 |
myopts="${myopts} NO_FINK=YesPlease NO_DARWIN_PORTS=YesPlease" |
173 |
myopts="${myopts} INSTALL=install TAR=tar" |
174 |
myopts="${myopts} SHELL_PATH=${EPREFIX}/bin/sh" |
175 |
myopts="${myopts} SANE_TOOL_PATH=" |
176 |
myopts="${myopts} OLD_ICONV=" |
177 |
myopts="${myopts} NO_EXTERNAL_GREP=" |
178 |
|
179 |
# can't define this to null, since the entire makefile depends on it |
180 |
sed -i -e '/\/usr\/local/s/BASIC_/#BASIC_/' Makefile |
181 |
|
182 |
use iconv \ |
183 |
|| einfo "Forcing iconv for ${PVR} due to bugs #321895, #322205." |
184 |
# || myopts="${myopts} NO_ICONV=YesPlease" |
185 |
# because, above, we need to do this unconditionally (no "&& use iconv") |
186 |
use !elibc_glibc && myopts="${myopts} NEEDS_LIBICONV=YesPlease" |
187 |
|
188 |
use tk \ |
189 |
|| myopts="${myopts} NO_TCLTK=YesPlease" |
190 |
use perl \ |
191 |
&& myopts="${myopts} INSTALLDIRS=vendor" \ |
192 |
|| myopts="${myopts} NO_PERL=YesPlease" |
193 |
use python \ |
194 |
|| myopts="${myopts} NO_PYTHON=YesPlease" |
195 |
use subversion \ |
196 |
|| myopts="${myopts} NO_SVN_TESTS=YesPlease" |
197 |
use threads \ |
198 |
&& myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease" |
199 |
use cvs \ |
200 |
|| myopts="${myopts} NO_CVS=YesPlease" |
201 |
# Disabled until ~m68k-mint can be keyworded again |
202 |
# if [[ ${CHOST} == *-mint* ]] ; then |
203 |
# myopts="${myopts} NO_MMAP=YesPlease" |
204 |
# myopts="${myopts} NO_IPV6=YesPlease" |
205 |
# myopts="${myopts} NO_STRLCPY=YesPlease" |
206 |
# myopts="${myopts} NO_MEMMEM=YesPlease" |
207 |
# myopts="${myopts} NO_MKDTEMP=YesPlease" |
208 |
# myopts="${myopts} NO_MKSTEMPS=YesPlease" |
209 |
# fi |
210 |
if [[ ${CHOST} == ia64-*-hpux* ]]; then |
211 |
myopts="${myopts} NO_NSEC=YesPlease" |
212 |
fi |
213 |
if [[ ${CHOST} == *-*-aix* ]]; then |
214 |
myopts="${myopts} NO_FNMATCH_CASEFOLD=YesPlease" |
215 |
fi |
216 |
|
217 |
has_version '>=app-text/asciidoc-8.0' \ |
218 |
&& myopts="${myopts} ASCIIDOC8=YesPlease" |
219 |
myopts="${myopts} ASCIIDOC_NO_ROFF=YesPlease" |
220 |
|
221 |
# Bug 290465: |
222 |
# builtin-fetch-pack.c:816: error: 'struct stat' has no member named 'st_mtim' |
223 |
[[ "${CHOST}" == *-uclibc* ]] && \ |
224 |
myopts="${myopts} NO_NSEC=YesPlease" |
225 |
|
226 |
export MY_MAKEOPTS="${myopts}" |
227 |
} |
228 |
|
229 |
src_unpack() { |
230 |
if [[ ${PV} != *9999 ]]; then |
231 |
unpack ${MY_P}.tar.bz2 |
232 |
cd "${S}" |
233 |
unpack ${PN}-manpages-${DOC_VER}.tar.bz2 |
234 |
use doc && \ |
235 |
cd "${S}"/Documentation && \ |
236 |
unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2 |
237 |
cd "${S}" |
238 |
else |
239 |
git-2_src_unpack |
240 |
cd "${S}" |
241 |
#cp "${FILESDIR}"/GIT-VERSION-GEN . |
242 |
fi |
243 |
|
244 |
} |
245 |
|
246 |
src_prepare() { |
247 |
# Noperl is being merged to upstream as of 2009/04/05 |
248 |
#epatch "${FILESDIR}"/20090305-git-1.6.2-noperl.patch |
249 |
|
250 |
# GetOpt-Long v2.38 is strict |
251 |
# Merged in 1.6.3 final 2009/05/07 |
252 |
#epatch "${FILESDIR}"/20090505-git-1.6.2.5-getopt-fixes.patch |
253 |
|
254 |
# JS install fixup |
255 |
epatch "${FILESDIR}"/git-1.7.2-always-install-js.patch |
256 |
|
257 |
# USE=-iconv causes segfaults, fixed post 1.7.1 |
258 |
# Gentoo bug #321895 |
259 |
#epatch "${FILESDIR}"/git-1.7.1-noiconv-segfault-fix.patch |
260 |
|
261 |
# Fix false positives with t3404 due to SHELL=/bin/false for the portage |
262 |
# user. |
263 |
# Merged upstream |
264 |
#epatch "${FILESDIR}"/git-1.7.3.4-avoid-shell-issues.patch |
265 |
|
266 |
# bug #350075: t9001: fix missing prereq on some tests |
267 |
# Merged upstream |
268 |
#epatch "${FILESDIR}"/git-1.7.3.4-fix-perl-test-prereq.patch |
269 |
|
270 |
# bug #350330 - automagic CVS when we don't want it is bad. |
271 |
epatch "${FILESDIR}"/git-1.7.3.5-optional-cvs.patch |
272 |
|
273 |
sed -i \ |
274 |
-e 's:^\(CFLAGS =\).*$:\1 $(OPTCFLAGS) -Wall:' \ |
275 |
-e 's:^\(LDFLAGS =\).*$:\1 $(OPTLDFLAGS):' \ |
276 |
-e 's:^\(CC = \).*$:\1$(OPTCC):' \ |
277 |
-e 's:^\(AR = \).*$:\1$(OPTAR):' \ |
278 |
-e "s:\(PYTHON_PATH = \)\(.*\)$:\1${EPREFIX}\2:" \ |
279 |
-e "s:\(PERL_PATH = \)\(.*\)$:\1${EPREFIX}\2:" \ |
280 |
Makefile || die "sed failed" |
281 |
|
282 |
# Never install the private copy of Error.pm (bug #296310) |
283 |
sed -i \ |
284 |
-e '/private-Error.pm/s,^,#,' \ |
285 |
perl/Makefile.PL |
286 |
|
287 |
# Fix docbook2texi command |
288 |
sed -i 's/DOCBOOK2X_TEXI=docbook2x-texi/DOCBOOK2X_TEXI=docbook2texi.pl/' \ |
289 |
Documentation/Makefile || die "sed failed" |
290 |
|
291 |
# bug #318289 |
292 |
# Merged upstream |
293 |
#epatch "${FILESDIR}"/git-1.7.3.2-interix.patch |
294 |
} |
295 |
|
296 |
git_emake() { |
297 |
# bug #326625: PERL_PATH, PERL_MM_OPT |
298 |
# bug #320647: PYTHON_PATH |
299 |
PYTHON_PATH="" |
300 |
use python && PYTHON_PATH="$(PYTHON -a)" |
301 |
emake ${MY_MAKEOPTS} \ |
302 |
DESTDIR="${D}" \ |
303 |
OPTCFLAGS="${CFLAGS}" \ |
304 |
OPTLDFLAGS="${LDFLAGS}" \ |
305 |
OPTCC="$(tc-getCC)" \ |
306 |
OPTAR="$(tc-getAR)" \ |
307 |
prefix="${EPREFIX}"/usr \ |
308 |
htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \ |
309 |
sysconfdir="${EPREFIX}"/etc \ |
310 |
PYTHON_PATH="${PYTHON_PATH}" \ |
311 |
PERL_PATH="${EPREFIX}/usr/bin/env perl" \ |
312 |
PERL_MM_OPT="" \ |
313 |
GIT_TEST_OPTS="--no-color" \ |
314 |
"$@" |
315 |
} |
316 |
|
317 |
src_configure() { |
318 |
exportmakeopts |
319 |
} |
320 |
|
321 |
src_compile() { |
322 |
git_emake || die "emake failed" |
323 |
|
324 |
if use emacs ; then |
325 |
elisp-compile contrib/emacs/git{,-blame}.el \ |
326 |
|| die "emacs modules failed" |
327 |
fi |
328 |
|
329 |
if use perl && use cgi ; then |
330 |
git_emake \ |
331 |
gitweb/gitweb.cgi \ |
332 |
|| die "emake gitweb/gitweb.cgi failed" |
333 |
fi |
334 |
|
335 |
cd "${S}"/Documentation |
336 |
if [[ ${PV} == *9999 ]] ; then |
337 |
git_emake man \ |
338 |
|| die "emake man failed" |
339 |
if use doc ; then |
340 |
git_emake info html \ |
341 |
|| die "emake info html failed" |
342 |
fi |
343 |
else |
344 |
if use doc ; then |
345 |
git_emake info \ |
346 |
|| die "emake info html failed" |
347 |
fi |
348 |
fi |
349 |
} |
350 |
|
351 |
src_install() { |
352 |
git_emake \ |
353 |
install || \ |
354 |
die "make install failed" |
355 |
|
356 |
# Depending on the tarball and manual rebuild of the documentation, the |
357 |
# manpages may exist in either OR both of these directories. |
358 |
find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157] |
359 |
find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157] |
360 |
|
361 |
dodoc README Documentation/{SubmittingPatches,CodingGuidelines} |
362 |
use doc && dodir /usr/share/doc/${PF}/html |
363 |
for d in / /howto/ /technical/ ; do |
364 |
docinto ${d} |
365 |
dodoc Documentation${d}*.txt |
366 |
use doc && dohtml -p ${d} Documentation${d}*.html |
367 |
done |
368 |
docinto / |
369 |
# Upstream does not ship this pre-built :-( |
370 |
use doc && doinfo Documentation/{git,gitman}.info |
371 |
|
372 |
dobashcompletion contrib/completion/git-completion.bash ${PN} |
373 |
|
374 |
if use emacs ; then |
375 |
elisp-install ${PN} contrib/emacs/git.{el,elc} || die |
376 |
elisp-install ${PN} contrib/emacs/git-blame.{el,elc} || die |
377 |
#elisp-install ${PN}/compat contrib/emacs/vc-git.{el,elc} || die |
378 |
# don't add automatically to the load-path, so the sitefile |
379 |
# can do a conditional loading |
380 |
touch "${ED}${SITELISP}/${PN}/compat/.nosearch" |
381 |
elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die |
382 |
fi |
383 |
|
384 |
if use python && use gtk ; then |
385 |
dobin "${S}"/contrib/gitview/gitview |
386 |
python_convert_shebangs ${PYTHON_ABI} "${ED}"/usr/bin/gitview |
387 |
dodoc "${S}"/contrib/gitview/gitview.txt |
388 |
fi |
389 |
|
390 |
dobin contrib/fast-import/git-p4 |
391 |
dodoc contrib/fast-import/git-p4.txt |
392 |
newbin contrib/fast-import/import-tars.perl import-tars |
393 |
newbin contrib/git-resurrect.sh git-resurrect |
394 |
|
395 |
dodir /usr/share/${PN}/contrib |
396 |
# The following are excluded: |
397 |
# completion - installed above |
398 |
# emacs - installed above |
399 |
# examples - these are stuff that is not used in Git anymore actually |
400 |
# gitview - installed above |
401 |
# p4import - excluded because fast-import has a better one |
402 |
# patches - stuff the Git guys made to go upstream to other places |
403 |
# svnimport - use git-svn |
404 |
# thunderbird-patch-inline - fixes thunderbird |
405 |
for i in \ |
406 |
blameview buildsystems ciabot continuous convert-objects fast-import \ |
407 |
hg-to-git hooks remotes2config.sh remotes2config.sh rerere-train.sh \ |
408 |
stats svn-fe vim workdir \ |
409 |
; do |
410 |
cp -rf \ |
411 |
"${S}"/contrib/${i} \ |
412 |
"${ED}"/usr/share/${PN}/contrib \ |
413 |
|| die "Failed contrib ${i}" |
414 |
done |
415 |
|
416 |
if use perl && use cgi ; then |
417 |
# We used to install in /usr/share/${PN}/gitweb |
418 |
# but upstream installs in /usr/share/gitweb |
419 |
# so we will install a symlink and use their location for compat with other |
420 |
# distros |
421 |
dosym /usr/share/gitweb /usr/share/${PN}/gitweb |
422 |
|
423 |
# INSTALL discusses configuration issues, not just installation |
424 |
docinto / |
425 |
newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb |
426 |
newdoc "${S}"/gitweb/README README.gitweb |
427 |
|
428 |
find "${ED}"/usr/lib64/perl5/ \ |
429 |
-name .packlist \ |
430 |
-exec rm \{\} \; |
431 |
else |
432 |
rm -rf "${ED}"/usr/share/gitweb |
433 |
fi |
434 |
|
435 |
if ! use subversion ; then |
436 |
rm -f "${ED}"/usr/libexec/git-core/git-svn \ |
437 |
"${ED}"/usr/share/man/man1/git-svn.1* |
438 |
fi |
439 |
|
440 |
if use xinetd ; then |
441 |
insinto /etc/xinetd.d |
442 |
newins "${FILESDIR}"/git-daemon.xinetd git-daemon |
443 |
fi |
444 |
|
445 |
newinitd "${FILESDIR}"/git-daemon.initd git-daemon |
446 |
newconfd "${FILESDIR}"/git-daemon.confd git-daemon |
447 |
|
448 |
fixlocalpod |
449 |
} |
450 |
|
451 |
src_test() { |
452 |
local disabled="" |
453 |
local tests_cvs="t9200-git-cvsexportcommit.sh \ |
454 |
t9400-git-cvsserver-server.sh \ |
455 |
t9401-git-cvsserver-crlf.sh \ |
456 |
t9600-cvsimport.sh \ |
457 |
t9601-cvsimport-vendor-branch.sh \ |
458 |
t9602-cvsimport-branches-tags.sh \ |
459 |
t9603-cvsimport-patchsets.sh" |
460 |
local tests_perl="t5502-quickfetch.sh \ |
461 |
t5512-ls-remote.sh \ |
462 |
t5520-pull.sh" |
463 |
# Bug #225601 - t0004 is not suitable for root perm |
464 |
# Bug #219839 - t1004 is not suitable for root perm |
465 |
# t0001-init.sh - check for init notices EPERM* fails |
466 |
local tests_nonroot="t0001-init.sh \ |
467 |
t0004-unwritable.sh \ |
468 |
t1004-read-tree-m-u-wf.sh \ |
469 |
t3700-add.sh \ |
470 |
t7300-clean.sh" |
471 |
|
472 |
# Unzip is used only for the testcase code, not by any normal parts of Git. |
473 |
if ! has_version app-arch/unzip ; then |
474 |
einfo "Disabling tar-tree tests" |
475 |
disabled="${disabled} t5000-tar-tree.sh" |
476 |
fi |
477 |
|
478 |
cvs=0 |
479 |
use cvs && let cvs=$cvs+1 |
480 |
if [[ ${EUID} -eq 0 ]]; then |
481 |
if [[ $cvs -eq 1 ]]; then |
482 |
ewarn "Skipping CVS tests because CVS does not work as root!" |
483 |
ewarn "You should retest with FEATURES=userpriv!" |
484 |
disabled="${disabled} ${tests_cvs}" |
485 |
fi |
486 |
einfo "Skipping other tests that require being non-root" |
487 |
disabled="${disabled} ${tests_nonroot}" |
488 |
else |
489 |
[[ $cvs -gt 0 ]] && \ |
490 |
has_version dev-vcs/cvs && \ |
491 |
let cvs=$cvs+1 |
492 |
[[ $cvs -gt 1 ]] && \ |
493 |
built_with_use dev-vcs/cvs server && \ |
494 |
let cvs=$cvs+1 |
495 |
if [[ $cvs -lt 3 ]]; then |
496 |
einfo "Disabling CVS tests (needs dev-vcs/cvs[USE=server])" |
497 |
disabled="${disabled} ${tests_cvs}" |
498 |
fi |
499 |
fi |
500 |
|
501 |
if ! use perl ; then |
502 |
einfo "Disabling tests that need Perl" |
503 |
disabled="${disabled} ${tests_perl}" |
504 |
fi |
505 |
|
506 |
# Reset all previously disabled tests |
507 |
cd "${S}/t" |
508 |
for i in *.sh.DISABLED ; do |
509 |
[[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}" |
510 |
done |
511 |
einfo "Disabled tests:" |
512 |
for i in ${disabled} ; do |
513 |
[[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i" |
514 |
done |
515 |
|
516 |
# Avoid the test system removing the results because we want them ourselves |
517 |
sed -e '/^[[:space:]]*$(MAKE) clean/s,^,#,g' \ |
518 |
-i "${S}"/t/Makefile |
519 |
|
520 |
# Clean old results first |
521 |
cd "${S}/t" |
522 |
git_emake clean |
523 |
|
524 |
# Now run the tests |
525 |
cd "${S}" |
526 |
einfo "Start test run" |
527 |
git_emake test |
528 |
rc=$? |
529 |
|
530 |
# Display nice results |
531 |
cd "${S}/t" |
532 |
git_emake aggregate-results |
533 |
|
534 |
# And exit |
535 |
[ $rc -eq 0 ] || die "tests failed. Please file a bug." |
536 |
} |
537 |
|
538 |
showpkgdeps() { |
539 |
local pkg=$1 |
540 |
shift |
541 |
elog " $(printf "%-17s:" ${pkg}) ${@}" |
542 |
} |
543 |
|
544 |
pkg_postinst() { |
545 |
use emacs && elisp-site-regen |
546 |
use python && python_mod_optimize git_remote_helpers |
547 |
if use subversion && has_version dev-vcs/subversion && ! built_with_use --missing false dev-vcs/subversion perl ; then |
548 |
ewarn "You must build dev-vcs/subversion with USE=perl" |
549 |
ewarn "to get the full functionality of git-svn!" |
550 |
fi |
551 |
elog "These additional scripts need some dependencies:" |
552 |
echo |
553 |
showpkgdeps git-quiltimport "dev-util/quilt" |
554 |
showpkgdeps git-instaweb \ |
555 |
"|| ( www-servers/lighttpd www-servers/apache )" |
556 |
echo |
557 |
} |
558 |
|
559 |
pkg_postrm() { |
560 |
use emacs && elisp-site-regen |
561 |
use python && python_mod_cleanup git_remote_helpers |
562 |
} |
563 |
|
564 |
|
565 |
|
566 |
1.1 dev-vcs/git/git-1.7.4.5.ebuild |
567 |
|
568 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/git-1.7.4.5.ebuild?rev=1.1&view=markup |
569 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/git-1.7.4.5.ebuild?rev=1.1&content-type=text/plain |
570 |
|
571 |
Index: git-1.7.4.5.ebuild |
572 |
=================================================================== |
573 |
# Copyright 1999-2011 Gentoo Foundation |
574 |
# Distributed under the terms of the GNU General Public License v2 |
575 |
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git/git-1.7.4.5.ebuild,v 1.1 2011/04/27 05:27:36 robbat2 Exp $ |
576 |
|
577 |
EAPI=3 |
578 |
|
579 |
GENTOO_DEPEND_ON_PERL=no |
580 |
|
581 |
# bug #329479: git-remote-testgit is not multiple-version aware |
582 |
PYTHON_DEPEND="python? 2" |
583 |
[[ ${PV} == *9999 ]] && SCM="git-2" |
584 |
EGIT_REPO_URI="git://git.kernel.org/pub/scm/git/git.git" |
585 |
|
586 |
inherit toolchain-funcs eutils elisp-common perl-module bash-completion python ${SCM} |
587 |
|
588 |
MY_PV="${PV/_rc/.rc}" |
589 |
MY_P="${PN}-${MY_PV}" |
590 |
|
591 |
DOC_VER=${MY_PV} |
592 |
|
593 |
DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team" |
594 |
HOMEPAGE="http://www.git-scm.com/" |
595 |
if [[ ${PV} != *9999 ]]; then |
596 |
SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2 |
597 |
mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2 |
598 |
doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )" |
599 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~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" |
600 |
else |
601 |
SRC_URI="" |
602 |
KEYWORDS="" |
603 |
fi |
604 |
|
605 |
LICENSE="GPL-2" |
606 |
SLOT="0" |
607 |
IUSE="+blksha1 +curl cgi doc emacs gtk iconv +perl +python ppcsha1 tk +threads +webdav xinetd cvs subversion" |
608 |
|
609 |
# Common to both DEPEND and RDEPEND |
610 |
CDEPEND=" |
611 |
!blksha1? ( dev-libs/openssl ) |
612 |
sys-libs/zlib |
613 |
perl? ( dev-lang/perl[-build] ) |
614 |
tk? ( dev-lang/tk ) |
615 |
curl? ( |
616 |
net-misc/curl |
617 |
webdav? ( dev-libs/expat ) |
618 |
) |
619 |
emacs? ( virtual/emacs )" |
620 |
|
621 |
RDEPEND="${CDEPEND} |
622 |
perl? ( dev-perl/Error |
623 |
dev-perl/Net-SMTP-SSL |
624 |
dev-perl/Authen-SASL |
625 |
cgi? ( virtual/perl-CGI ) |
626 |
cvs? ( >=dev-vcs/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite ) |
627 |
subversion? ( dev-vcs/subversion[-dso,perl] dev-perl/libwww-perl dev-perl/TermReadKey ) |
628 |
) |
629 |
python? ( gtk? |
630 |
( |
631 |
>=dev-python/pygtk-2.8 |
632 |
dev-python/pygtksourceview:2 |
633 |
) )" |
634 |
|
635 |
# This is how info docs are created with Git: |
636 |
# .txt/asciidoc --(asciidoc)---------> .xml/docbook |
637 |
# .xml/docbook --(docbook2texi.pl)--> .texi |
638 |
# .texi --(makeinfo)---------> .info |
639 |
DEPEND="${CDEPEND} |
640 |
app-arch/cpio |
641 |
doc? ( |
642 |
app-text/asciidoc |
643 |
app-text/docbook2X |
644 |
sys-apps/texinfo |
645 |
)" |
646 |
|
647 |
# Live ebuild builds man pages and HTML docs, additionally |
648 |
if [[ ${PV} == *9999 ]]; then |
649 |
DEPEND="${DEPEND} |
650 |
app-text/asciidoc |
651 |
app-text/xmlto" |
652 |
fi |
653 |
|
654 |
SITEFILE=50${PN}-gentoo.el |
655 |
S="${WORKDIR}/${MY_P}" |
656 |
|
657 |
pkg_setup() { |
658 |
if ! use perl ; then |
659 |
use cgi && ewarn "gitweb needs USE=perl, ignoring USE=cgi" |
660 |
use cvs && ewarn "CVS integration needs USE=perl, ignoring USE=cvs" |
661 |
use subversion && ewarn "git-svn needs USE=perl, it won't work" |
662 |
fi |
663 |
if use webdav && ! use curl ; then |
664 |
ewarn "USE=webdav needs USE=curl. Ignoring" |
665 |
fi |
666 |
if use subversion && has_version dev-vcs/subversion && built_with_use --missing false dev-vcs/subversion dso ; then |
667 |
ewarn "Per Gentoo bugs #223747, #238586, when subversion is built" |
668 |
ewarn "with USE=dso, there may be weird crashes in git-svn. You" |
669 |
ewarn "have been warned." |
670 |
fi |
671 |
if use python ; then |
672 |
python_set_active_version 2 |
673 |
python_pkg_setup |
674 |
fi |
675 |
} |
676 |
|
677 |
# This is needed because for some obscure reasons future calls to make don't |
678 |
# pick up these exports if we export them in src_unpack() |
679 |
exportmakeopts() { |
680 |
local myopts |
681 |
|
682 |
if use blksha1 ; then |
683 |
myopts="${myopts} BLK_SHA1=YesPlease" |
684 |
elif use ppcsha1 ; then |
685 |
myopts="${myopts} PPC_SHA1=YesPlease" |
686 |
fi |
687 |
|
688 |
if use curl ; then |
689 |
use webdav || myopts="${myopts} NO_EXPAT=YesPlease" |
690 |
else |
691 |
myopts="${myopts} NO_CURL=YesPlease" |
692 |
fi |
693 |
|
694 |
# broken assumptions, because of broken build system ... |
695 |
myopts="${myopts} NO_FINK=YesPlease NO_DARWIN_PORTS=YesPlease" |
696 |
myopts="${myopts} INSTALL=install TAR=tar" |
697 |
myopts="${myopts} SHELL_PATH=${EPREFIX}/bin/sh" |
698 |
myopts="${myopts} SANE_TOOL_PATH=" |
699 |
myopts="${myopts} OLD_ICONV=" |
700 |
myopts="${myopts} NO_EXTERNAL_GREP=" |
701 |
|
702 |
# can't define this to null, since the entire makefile depends on it |
703 |
sed -i -e '/\/usr\/local/s/BASIC_/#BASIC_/' Makefile |
704 |
|
705 |
use iconv \ |
706 |
|| einfo "Forcing iconv for ${PVR} due to bugs #321895, #322205." |
707 |
# || myopts="${myopts} NO_ICONV=YesPlease" |
708 |
# because, above, we need to do this unconditionally (no "&& use iconv") |
709 |
use !elibc_glibc && myopts="${myopts} NEEDS_LIBICONV=YesPlease" |
710 |
|
711 |
use tk \ |
712 |
|| myopts="${myopts} NO_TCLTK=YesPlease" |
713 |
use perl \ |
714 |
&& myopts="${myopts} INSTALLDIRS=vendor" \ |
715 |
|| myopts="${myopts} NO_PERL=YesPlease" |
716 |
use python \ |
717 |
|| myopts="${myopts} NO_PYTHON=YesPlease" |
718 |
use subversion \ |
719 |
|| myopts="${myopts} NO_SVN_TESTS=YesPlease" |
720 |
use threads \ |
721 |
&& myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease" |
722 |
use cvs \ |
723 |
|| myopts="${myopts} NO_CVS=YesPlease" |
724 |
# Disabled until ~m68k-mint can be keyworded again |
725 |
# if [[ ${CHOST} == *-mint* ]] ; then |
726 |
# myopts="${myopts} NO_MMAP=YesPlease" |
727 |
# myopts="${myopts} NO_IPV6=YesPlease" |
728 |
# myopts="${myopts} NO_STRLCPY=YesPlease" |
729 |
# myopts="${myopts} NO_MEMMEM=YesPlease" |
730 |
# myopts="${myopts} NO_MKDTEMP=YesPlease" |
731 |
# myopts="${myopts} NO_MKSTEMPS=YesPlease" |
732 |
# fi |
733 |
if [[ ${CHOST} == ia64-*-hpux* ]]; then |
734 |
myopts="${myopts} NO_NSEC=YesPlease" |
735 |
fi |
736 |
if [[ ${CHOST} == *-*-aix* ]]; then |
737 |
myopts="${myopts} NO_FNMATCH_CASEFOLD=YesPlease" |
738 |
fi |
739 |
|
740 |
has_version '>=app-text/asciidoc-8.0' \ |
741 |
&& myopts="${myopts} ASCIIDOC8=YesPlease" |
742 |
myopts="${myopts} ASCIIDOC_NO_ROFF=YesPlease" |
743 |
|
744 |
# Bug 290465: |
745 |
# builtin-fetch-pack.c:816: error: 'struct stat' has no member named 'st_mtim' |
746 |
[[ "${CHOST}" == *-uclibc* ]] && \ |
747 |
myopts="${myopts} NO_NSEC=YesPlease" |
748 |
|
749 |
export MY_MAKEOPTS="${myopts}" |
750 |
} |
751 |
|
752 |
src_unpack() { |
753 |
if [[ ${PV} != *9999 ]]; then |
754 |
unpack ${MY_P}.tar.bz2 |
755 |
cd "${S}" |
756 |
unpack ${PN}-manpages-${DOC_VER}.tar.bz2 |
757 |
use doc && \ |
758 |
cd "${S}"/Documentation && \ |
759 |
unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2 |
760 |
cd "${S}" |
761 |
else |
762 |
git-2_src_unpack |
763 |
cd "${S}" |
764 |
#cp "${FILESDIR}"/GIT-VERSION-GEN . |
765 |
fi |
766 |
|
767 |
} |
768 |
|
769 |
src_prepare() { |
770 |
# Noperl is being merged to upstream as of 2009/04/05 |
771 |
#epatch "${FILESDIR}"/20090305-git-1.6.2-noperl.patch |
772 |
|
773 |
# GetOpt-Long v2.38 is strict |
774 |
# Merged in 1.6.3 final 2009/05/07 |
775 |
#epatch "${FILESDIR}"/20090505-git-1.6.2.5-getopt-fixes.patch |
776 |
|
777 |
# JS install fixup |
778 |
epatch "${FILESDIR}"/git-1.7.2-always-install-js.patch |
779 |
|
780 |
# USE=-iconv causes segfaults, fixed post 1.7.1 |
781 |
# Gentoo bug #321895 |
782 |
#epatch "${FILESDIR}"/git-1.7.1-noiconv-segfault-fix.patch |
783 |
|
784 |
# Fix false positives with t3404 due to SHELL=/bin/false for the portage |
785 |
# user. |
786 |
# Merged upstream |
787 |
#epatch "${FILESDIR}"/git-1.7.3.4-avoid-shell-issues.patch |
788 |
|
789 |
# bug #350075: t9001: fix missing prereq on some tests |
790 |
# Merged upstream |
791 |
#epatch "${FILESDIR}"/git-1.7.3.4-fix-perl-test-prereq.patch |
792 |
|
793 |
# bug #350330 - automagic CVS when we don't want it is bad. |
794 |
epatch "${FILESDIR}"/git-1.7.3.5-optional-cvs.patch |
795 |
|
796 |
sed -i \ |
797 |
-e 's:^\(CFLAGS =\).*$:\1 $(OPTCFLAGS) -Wall:' \ |
798 |
-e 's:^\(LDFLAGS =\).*$:\1 $(OPTLDFLAGS):' \ |
799 |
-e 's:^\(CC = \).*$:\1$(OPTCC):' \ |
800 |
-e 's:^\(AR = \).*$:\1$(OPTAR):' \ |
801 |
-e "s:\(PYTHON_PATH = \)\(.*\)$:\1${EPREFIX}\2:" \ |
802 |
-e "s:\(PERL_PATH = \)\(.*\)$:\1${EPREFIX}\2:" \ |
803 |
Makefile || die "sed failed" |
804 |
|
805 |
# Never install the private copy of Error.pm (bug #296310) |
806 |
sed -i \ |
807 |
-e '/private-Error.pm/s,^,#,' \ |
808 |
perl/Makefile.PL |
809 |
|
810 |
# Fix docbook2texi command |
811 |
sed -i 's/DOCBOOK2X_TEXI=docbook2x-texi/DOCBOOK2X_TEXI=docbook2texi.pl/' \ |
812 |
Documentation/Makefile || die "sed failed" |
813 |
|
814 |
# bug #318289 |
815 |
# Merged upstream |
816 |
#epatch "${FILESDIR}"/git-1.7.3.2-interix.patch |
817 |
} |
818 |
|
819 |
git_emake() { |
820 |
# bug #326625: PERL_PATH, PERL_MM_OPT |
821 |
# bug #320647: PYTHON_PATH |
822 |
PYTHON_PATH="" |
823 |
use python && PYTHON_PATH="$(PYTHON -a)" |
824 |
emake ${MY_MAKEOPTS} \ |
825 |
DESTDIR="${D}" \ |
826 |
OPTCFLAGS="${CFLAGS}" \ |
827 |
OPTLDFLAGS="${LDFLAGS}" \ |
828 |
OPTCC="$(tc-getCC)" \ |
829 |
OPTAR="$(tc-getAR)" \ |
830 |
prefix="${EPREFIX}"/usr \ |
831 |
htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \ |
832 |
sysconfdir="${EPREFIX}"/etc \ |
833 |
PYTHON_PATH="${PYTHON_PATH}" \ |
834 |
PERL_PATH="${EPREFIX}/usr/bin/env perl" \ |
835 |
PERL_MM_OPT="" \ |
836 |
GIT_TEST_OPTS="--no-color" \ |
837 |
"$@" |
838 |
} |
839 |
|
840 |
src_configure() { |
841 |
exportmakeopts |
842 |
} |
843 |
|
844 |
src_compile() { |
845 |
git_emake || die "emake failed" |
846 |
|
847 |
if use emacs ; then |
848 |
elisp-compile contrib/emacs/git{,-blame}.el \ |
849 |
|| die "emacs modules failed" |
850 |
fi |
851 |
|
852 |
if use perl && use cgi ; then |
853 |
git_emake \ |
854 |
gitweb/gitweb.cgi \ |
855 |
|| die "emake gitweb/gitweb.cgi failed" |
856 |
fi |
857 |
|
858 |
cd "${S}"/Documentation |
859 |
if [[ ${PV} == *9999 ]] ; then |
860 |
git_emake man \ |
861 |
|| die "emake man failed" |
862 |
if use doc ; then |
863 |
git_emake info html \ |
864 |
|| die "emake info html failed" |
865 |
fi |
866 |
else |
867 |
if use doc ; then |
868 |
git_emake info \ |
869 |
|| die "emake info html failed" |
870 |
fi |
871 |
fi |
872 |
} |
873 |
|
874 |
src_install() { |
875 |
git_emake \ |
876 |
install || \ |
877 |
die "make install failed" |
878 |
|
879 |
# Depending on the tarball and manual rebuild of the documentation, the |
880 |
# manpages may exist in either OR both of these directories. |
881 |
find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157] |
882 |
find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157] |
883 |
|
884 |
dodoc README Documentation/{SubmittingPatches,CodingGuidelines} |
885 |
use doc && dodir /usr/share/doc/${PF}/html |
886 |
for d in / /howto/ /technical/ ; do |
887 |
docinto ${d} |
888 |
dodoc Documentation${d}*.txt |
889 |
use doc && dohtml -p ${d} Documentation${d}*.html |
890 |
done |
891 |
docinto / |
892 |
# Upstream does not ship this pre-built :-( |
893 |
use doc && doinfo Documentation/{git,gitman}.info |
894 |
|
895 |
dobashcompletion contrib/completion/git-completion.bash ${PN} |
896 |
|
897 |
if use emacs ; then |
898 |
elisp-install ${PN} contrib/emacs/git.{el,elc} || die |
899 |
elisp-install ${PN} contrib/emacs/git-blame.{el,elc} || die |
900 |
#elisp-install ${PN}/compat contrib/emacs/vc-git.{el,elc} || die |
901 |
# don't add automatically to the load-path, so the sitefile |
902 |
# can do a conditional loading |
903 |
touch "${ED}${SITELISP}/${PN}/compat/.nosearch" |
904 |
elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die |
905 |
fi |
906 |
|
907 |
if use python && use gtk ; then |
908 |
dobin "${S}"/contrib/gitview/gitview |
909 |
python_convert_shebangs ${PYTHON_ABI} "${ED}"/usr/bin/gitview |
910 |
dodoc "${S}"/contrib/gitview/gitview.txt |
911 |
fi |
912 |
|
913 |
dobin contrib/fast-import/git-p4 |
914 |
dodoc contrib/fast-import/git-p4.txt |
915 |
newbin contrib/fast-import/import-tars.perl import-tars |
916 |
newbin contrib/git-resurrect.sh git-resurrect |
917 |
|
918 |
dodir /usr/share/${PN}/contrib |
919 |
# The following are excluded: |
920 |
# completion - installed above |
921 |
# emacs - installed above |
922 |
# examples - these are stuff that is not used in Git anymore actually |
923 |
# gitview - installed above |
924 |
# p4import - excluded because fast-import has a better one |
925 |
# patches - stuff the Git guys made to go upstream to other places |
926 |
# svnimport - use git-svn |
927 |
# thunderbird-patch-inline - fixes thunderbird |
928 |
for i in \ |
929 |
blameview buildsystems ciabot continuous convert-objects fast-import \ |
930 |
hg-to-git hooks remotes2config.sh remotes2config.sh rerere-train.sh \ |
931 |
stats svn-fe vim workdir \ |
932 |
; do |
933 |
cp -rf \ |
934 |
"${S}"/contrib/${i} \ |
935 |
"${ED}"/usr/share/${PN}/contrib \ |
936 |
|| die "Failed contrib ${i}" |
937 |
done |
938 |
|
939 |
if use perl && use cgi ; then |
940 |
# We used to install in /usr/share/${PN}/gitweb |
941 |
# but upstream installs in /usr/share/gitweb |
942 |
# so we will install a symlink and use their location for compat with other |
943 |
# distros |
944 |
dosym /usr/share/gitweb /usr/share/${PN}/gitweb |
945 |
|
946 |
# INSTALL discusses configuration issues, not just installation |
947 |
docinto / |
948 |
newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb |
949 |
newdoc "${S}"/gitweb/README README.gitweb |
950 |
|
951 |
find "${ED}"/usr/lib64/perl5/ \ |
952 |
-name .packlist \ |
953 |
-exec rm \{\} \; |
954 |
else |
955 |
rm -rf "${ED}"/usr/share/gitweb |
956 |
fi |
957 |
|
958 |
if ! use subversion ; then |
959 |
rm -f "${ED}"/usr/libexec/git-core/git-svn \ |
960 |
"${ED}"/usr/share/man/man1/git-svn.1* |
961 |
fi |
962 |
|
963 |
if use xinetd ; then |
964 |
insinto /etc/xinetd.d |
965 |
newins "${FILESDIR}"/git-daemon.xinetd git-daemon |
966 |
fi |
967 |
|
968 |
newinitd "${FILESDIR}"/git-daemon.initd git-daemon |
969 |
newconfd "${FILESDIR}"/git-daemon.confd git-daemon |
970 |
|
971 |
fixlocalpod |
972 |
} |
973 |
|
974 |
src_test() { |
975 |
local disabled="" |
976 |
local tests_cvs="t9200-git-cvsexportcommit.sh \ |
977 |
t9400-git-cvsserver-server.sh \ |
978 |
t9401-git-cvsserver-crlf.sh \ |
979 |
t9600-cvsimport.sh \ |
980 |
t9601-cvsimport-vendor-branch.sh \ |
981 |
t9602-cvsimport-branches-tags.sh \ |
982 |
t9603-cvsimport-patchsets.sh" |
983 |
local tests_perl="t5502-quickfetch.sh \ |
984 |
t5512-ls-remote.sh \ |
985 |
t5520-pull.sh" |
986 |
# Bug #225601 - t0004 is not suitable for root perm |
987 |
# Bug #219839 - t1004 is not suitable for root perm |
988 |
# t0001-init.sh - check for init notices EPERM* fails |
989 |
local tests_nonroot="t0001-init.sh \ |
990 |
t0004-unwritable.sh \ |
991 |
t1004-read-tree-m-u-wf.sh \ |
992 |
t3700-add.sh \ |
993 |
t7300-clean.sh" |
994 |
|
995 |
# Unzip is used only for the testcase code, not by any normal parts of Git. |
996 |
if ! has_version app-arch/unzip ; then |
997 |
einfo "Disabling tar-tree tests" |
998 |
disabled="${disabled} t5000-tar-tree.sh" |
999 |
fi |
1000 |
|
1001 |
cvs=0 |
1002 |
use cvs && let cvs=$cvs+1 |
1003 |
if [[ ${EUID} -eq 0 ]]; then |
1004 |
if [[ $cvs -eq 1 ]]; then |
1005 |
ewarn "Skipping CVS tests because CVS does not work as root!" |
1006 |
ewarn "You should retest with FEATURES=userpriv!" |
1007 |
disabled="${disabled} ${tests_cvs}" |
1008 |
fi |
1009 |
einfo "Skipping other tests that require being non-root" |
1010 |
disabled="${disabled} ${tests_nonroot}" |
1011 |
else |
1012 |
[[ $cvs -gt 0 ]] && \ |
1013 |
has_version dev-vcs/cvs && \ |
1014 |
let cvs=$cvs+1 |
1015 |
[[ $cvs -gt 1 ]] && \ |
1016 |
built_with_use dev-vcs/cvs server && \ |
1017 |
let cvs=$cvs+1 |
1018 |
if [[ $cvs -lt 3 ]]; then |
1019 |
einfo "Disabling CVS tests (needs dev-vcs/cvs[USE=server])" |
1020 |
disabled="${disabled} ${tests_cvs}" |
1021 |
fi |
1022 |
fi |
1023 |
|
1024 |
if ! use perl ; then |
1025 |
einfo "Disabling tests that need Perl" |
1026 |
disabled="${disabled} ${tests_perl}" |
1027 |
fi |
1028 |
|
1029 |
# Reset all previously disabled tests |
1030 |
cd "${S}/t" |
1031 |
for i in *.sh.DISABLED ; do |
1032 |
[[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}" |
1033 |
done |
1034 |
einfo "Disabled tests:" |
1035 |
for i in ${disabled} ; do |
1036 |
[[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i" |
1037 |
done |
1038 |
|
1039 |
# Avoid the test system removing the results because we want them ourselves |
1040 |
sed -e '/^[[:space:]]*$(MAKE) clean/s,^,#,g' \ |
1041 |
-i "${S}"/t/Makefile |
1042 |
|
1043 |
# Clean old results first |
1044 |
cd "${S}/t" |
1045 |
git_emake clean |
1046 |
|
1047 |
# Now run the tests |
1048 |
cd "${S}" |
1049 |
einfo "Start test run" |
1050 |
git_emake test |
1051 |
rc=$? |
1052 |
|
1053 |
# Display nice results |
1054 |
cd "${S}/t" |
1055 |
git_emake aggregate-results |
1056 |
|
1057 |
# And exit |
1058 |
[ $rc -eq 0 ] || die "tests failed. Please file a bug." |
1059 |
} |
1060 |
|
1061 |
showpkgdeps() { |
1062 |
local pkg=$1 |
1063 |
shift |
1064 |
elog " $(printf "%-17s:" ${pkg}) ${@}" |
1065 |
} |
1066 |
|
1067 |
pkg_postinst() { |
1068 |
use emacs && elisp-site-regen |
1069 |
use python && python_mod_optimize git_remote_helpers |
1070 |
if use subversion && has_version dev-vcs/subversion && ! built_with_use --missing false dev-vcs/subversion perl ; then |
1071 |
ewarn "You must build dev-vcs/subversion with USE=perl" |
1072 |
ewarn "to get the full functionality of git-svn!" |
1073 |
fi |
1074 |
elog "These additional scripts need some dependencies:" |
1075 |
echo |
1076 |
showpkgdeps git-quiltimport "dev-util/quilt" |
1077 |
showpkgdeps git-instaweb \ |
1078 |
"|| ( www-servers/lighttpd www-servers/apache )" |
1079 |
echo |
1080 |
} |
1081 |
|
1082 |
pkg_postrm() { |
1083 |
use emacs && elisp-site-regen |
1084 |
use python && python_mod_cleanup git_remote_helpers |
1085 |
} |