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