1 |
robbat2 11/05/30 09:29:20 |
2 |
|
3 |
Modified: ChangeLog git-9999.ebuild |
4 |
Added: git-1.7.5.3.ebuild |
5 |
Log: |
6 |
Version bump. Sync keywords to -9999 ebuild. |
7 |
|
8 |
(Portage version: 2.2.0_alpha37/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.93 dev-vcs/git/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/ChangeLog?rev=1.93&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/ChangeLog?rev=1.93&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/ChangeLog?r1=1.92&r2=1.93 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-vcs/git/ChangeLog,v |
20 |
retrieving revision 1.92 |
21 |
retrieving revision 1.93 |
22 |
diff -p -w -b -B -u -u -r1.92 -r1.93 |
23 |
--- ChangeLog 3 May 2011 06:57:02 -0000 1.92 |
24 |
+++ ChangeLog 30 May 2011 09:29:20 -0000 1.93 |
25 |
@@ -1,6 +1,12 @@ |
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.92 2011/05/03 06:57:02 grobian Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git/ChangeLog,v 1.93 2011/05/30 09:29:20 robbat2 Exp $ |
30 |
+ |
31 |
+*git-1.7.5.2 (30 May 2011) |
32 |
+ |
33 |
+ 30 May 2011; Robin H. Johnson <robbat2@g.o> +git-1.7.5.3.ebuild, |
34 |
+ git-9999.ebuild: |
35 |
+ Version bump. Sync keywords to -9999 ebuild. |
36 |
|
37 |
03 May 2011; Fabian Groffen <grobian@g.o> git-1.7.5_rc3.ebuild: |
38 |
Marked ~x64-freebsd |
39 |
|
40 |
|
41 |
|
42 |
1.20 dev-vcs/git/git-9999.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/git-9999.ebuild?rev=1.20&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/git-9999.ebuild?rev=1.20&content-type=text/plain |
46 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/git-9999.ebuild?r1=1.19&r2=1.20 |
47 |
|
48 |
Index: git-9999.ebuild |
49 |
=================================================================== |
50 |
RCS file: /var/cvsroot/gentoo-x86/dev-vcs/git/git-9999.ebuild,v |
51 |
retrieving revision 1.19 |
52 |
retrieving revision 1.20 |
53 |
diff -p -w -b -B -u -u -r1.19 -r1.20 |
54 |
--- git-9999.ebuild 20 Apr 2011 11:53:08 -0000 1.19 |
55 |
+++ git-9999.ebuild 30 May 2011 09:29:20 -0000 1.20 |
56 |
@@ -1,6 +1,6 @@ |
57 |
# Copyright 1999-2011 Gentoo Foundation |
58 |
# Distributed under the terms of the GNU General Public License v2 |
59 |
-# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git/git-9999.ebuild,v 1.19 2011/04/20 11:53:08 scarabeus Exp $ |
60 |
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git/git-9999.ebuild,v 1.20 2011/05/30 09:29:20 robbat2 Exp $ |
61 |
|
62 |
EAPI=3 |
63 |
|
64 |
@@ -24,7 +24,7 @@ if [[ ${PV} != *9999 ]]; then |
65 |
SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2 |
66 |
mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2 |
67 |
doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )" |
68 |
- 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" |
69 |
+ 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" |
70 |
else |
71 |
SRC_URI="" |
72 |
KEYWORDS="" |
73 |
@@ -203,7 +203,8 @@ src_prepare() { |
74 |
#epatch "${FILESDIR}"/20090505-git-1.6.2.5-getopt-fixes.patch |
75 |
|
76 |
# JS install fixup |
77 |
- epatch "${FILESDIR}"/git-1.7.2-always-install-js.patch |
78 |
+ # Merged in 1.7.5.x |
79 |
+ #epatch "${FILESDIR}"/git-1.7.2-always-install-js.patch |
80 |
|
81 |
# USE=-iconv causes segfaults, fixed post 1.7.1 |
82 |
# Gentoo bug #321895 |
83 |
|
84 |
|
85 |
|
86 |
1.1 dev-vcs/git/git-1.7.5.3.ebuild |
87 |
|
88 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/git-1.7.5.3.ebuild?rev=1.1&view=markup |
89 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/git-1.7.5.3.ebuild?rev=1.1&content-type=text/plain |
90 |
|
91 |
Index: git-1.7.5.3.ebuild |
92 |
=================================================================== |
93 |
# Copyright 1999-2011 Gentoo Foundation |
94 |
# Distributed under the terms of the GNU General Public License v2 |
95 |
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git/git-1.7.5.3.ebuild,v 1.1 2011/05/30 09:29:20 robbat2 Exp $ |
96 |
|
97 |
EAPI=3 |
98 |
|
99 |
GENTOO_DEPEND_ON_PERL=no |
100 |
|
101 |
# bug #329479: git-remote-testgit is not multiple-version aware |
102 |
PYTHON_DEPEND="python? 2" |
103 |
[[ ${PV} == *9999 ]] && SCM="git-2" |
104 |
EGIT_REPO_URI="git://git.kernel.org/pub/scm/git/git.git" |
105 |
|
106 |
inherit toolchain-funcs eutils elisp-common perl-module bash-completion python ${SCM} |
107 |
|
108 |
MY_PV="${PV/_rc/.rc}" |
109 |
MY_P="${PN}-${MY_PV}" |
110 |
|
111 |
DOC_VER=${MY_PV} |
112 |
|
113 |
DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team" |
114 |
HOMEPAGE="http://www.git-scm.com/" |
115 |
if [[ ${PV} != *9999 ]]; then |
116 |
SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2 |
117 |
mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2 |
118 |
doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )" |
119 |
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" |
120 |
else |
121 |
SRC_URI="" |
122 |
KEYWORDS="" |
123 |
fi |
124 |
|
125 |
LICENSE="GPL-2" |
126 |
SLOT="0" |
127 |
IUSE="+blksha1 +curl cgi doc emacs gtk iconv +perl +python ppcsha1 tk +threads +webdav xinetd cvs subversion" |
128 |
|
129 |
# Common to both DEPEND and RDEPEND |
130 |
CDEPEND=" |
131 |
!blksha1? ( dev-libs/openssl ) |
132 |
sys-libs/zlib |
133 |
perl? ( dev-lang/perl[-build] ) |
134 |
tk? ( dev-lang/tk ) |
135 |
curl? ( |
136 |
net-misc/curl |
137 |
webdav? ( dev-libs/expat ) |
138 |
) |
139 |
emacs? ( virtual/emacs )" |
140 |
|
141 |
RDEPEND="${CDEPEND} |
142 |
perl? ( dev-perl/Error |
143 |
dev-perl/Net-SMTP-SSL |
144 |
dev-perl/Authen-SASL |
145 |
cgi? ( virtual/perl-CGI ) |
146 |
cvs? ( >=dev-vcs/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite ) |
147 |
subversion? ( dev-vcs/subversion[-dso,perl] dev-perl/libwww-perl dev-perl/TermReadKey ) |
148 |
) |
149 |
python? ( gtk? |
150 |
( |
151 |
>=dev-python/pygtk-2.8 |
152 |
dev-python/pygtksourceview:2 |
153 |
) )" |
154 |
|
155 |
# This is how info docs are created with Git: |
156 |
# .txt/asciidoc --(asciidoc)---------> .xml/docbook |
157 |
# .xml/docbook --(docbook2texi.pl)--> .texi |
158 |
# .texi --(makeinfo)---------> .info |
159 |
DEPEND="${CDEPEND} |
160 |
app-arch/cpio |
161 |
doc? ( |
162 |
app-text/asciidoc |
163 |
app-text/docbook2X |
164 |
sys-apps/texinfo |
165 |
)" |
166 |
|
167 |
# Live ebuild builds man pages and HTML docs, additionally |
168 |
if [[ ${PV} == *9999 ]]; then |
169 |
DEPEND="${DEPEND} |
170 |
app-text/asciidoc |
171 |
app-text/xmlto" |
172 |
fi |
173 |
|
174 |
SITEFILE=50${PN}-gentoo.el |
175 |
S="${WORKDIR}/${MY_P}" |
176 |
|
177 |
pkg_setup() { |
178 |
if ! use perl ; then |
179 |
use cgi && ewarn "gitweb needs USE=perl, ignoring USE=cgi" |
180 |
use cvs && ewarn "CVS integration needs USE=perl, ignoring USE=cvs" |
181 |
use subversion && ewarn "git-svn needs USE=perl, it won't work" |
182 |
fi |
183 |
if use webdav && ! use curl ; then |
184 |
ewarn "USE=webdav needs USE=curl. Ignoring" |
185 |
fi |
186 |
if use subversion && has_version dev-vcs/subversion && built_with_use --missing false dev-vcs/subversion dso ; then |
187 |
ewarn "Per Gentoo bugs #223747, #238586, when subversion is built" |
188 |
ewarn "with USE=dso, there may be weird crashes in git-svn. You" |
189 |
ewarn "have been warned." |
190 |
fi |
191 |
if use python ; then |
192 |
python_set_active_version 2 |
193 |
python_pkg_setup |
194 |
fi |
195 |
} |
196 |
|
197 |
# This is needed because for some obscure reasons future calls to make don't |
198 |
# pick up these exports if we export them in src_unpack() |
199 |
exportmakeopts() { |
200 |
local myopts |
201 |
|
202 |
if use blksha1 ; then |
203 |
myopts="${myopts} BLK_SHA1=YesPlease" |
204 |
elif use ppcsha1 ; then |
205 |
myopts="${myopts} PPC_SHA1=YesPlease" |
206 |
fi |
207 |
|
208 |
if use curl ; then |
209 |
use webdav || myopts="${myopts} NO_EXPAT=YesPlease" |
210 |
else |
211 |
myopts="${myopts} NO_CURL=YesPlease" |
212 |
fi |
213 |
|
214 |
# broken assumptions, because of broken build system ... |
215 |
myopts="${myopts} NO_FINK=YesPlease NO_DARWIN_PORTS=YesPlease" |
216 |
myopts="${myopts} INSTALL=install TAR=tar" |
217 |
myopts="${myopts} SHELL_PATH=${EPREFIX}/bin/sh" |
218 |
myopts="${myopts} SANE_TOOL_PATH=" |
219 |
myopts="${myopts} OLD_ICONV=" |
220 |
myopts="${myopts} NO_EXTERNAL_GREP=" |
221 |
|
222 |
# can't define this to null, since the entire makefile depends on it |
223 |
sed -i -e '/\/usr\/local/s/BASIC_/#BASIC_/' Makefile |
224 |
|
225 |
use iconv \ |
226 |
|| einfo "Forcing iconv for ${PVR} due to bugs #321895, #322205." |
227 |
# || myopts="${myopts} NO_ICONV=YesPlease" |
228 |
# because, above, we need to do this unconditionally (no "&& use iconv") |
229 |
use !elibc_glibc && myopts="${myopts} NEEDS_LIBICONV=YesPlease" |
230 |
|
231 |
use tk \ |
232 |
|| myopts="${myopts} NO_TCLTK=YesPlease" |
233 |
use perl \ |
234 |
&& myopts="${myopts} INSTALLDIRS=vendor" \ |
235 |
|| myopts="${myopts} NO_PERL=YesPlease" |
236 |
use python \ |
237 |
|| myopts="${myopts} NO_PYTHON=YesPlease" |
238 |
use subversion \ |
239 |
|| myopts="${myopts} NO_SVN_TESTS=YesPlease" |
240 |
use threads \ |
241 |
&& myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease" |
242 |
use cvs \ |
243 |
|| myopts="${myopts} NO_CVS=YesPlease" |
244 |
# Disabled until ~m68k-mint can be keyworded again |
245 |
# if [[ ${CHOST} == *-mint* ]] ; then |
246 |
# myopts="${myopts} NO_MMAP=YesPlease" |
247 |
# myopts="${myopts} NO_IPV6=YesPlease" |
248 |
# myopts="${myopts} NO_STRLCPY=YesPlease" |
249 |
# myopts="${myopts} NO_MEMMEM=YesPlease" |
250 |
# myopts="${myopts} NO_MKDTEMP=YesPlease" |
251 |
# myopts="${myopts} NO_MKSTEMPS=YesPlease" |
252 |
# fi |
253 |
if [[ ${CHOST} == ia64-*-hpux* ]]; then |
254 |
myopts="${myopts} NO_NSEC=YesPlease" |
255 |
fi |
256 |
if [[ ${CHOST} == *-*-aix* ]]; then |
257 |
myopts="${myopts} NO_FNMATCH_CASEFOLD=YesPlease" |
258 |
fi |
259 |
|
260 |
has_version '>=app-text/asciidoc-8.0' \ |
261 |
&& myopts="${myopts} ASCIIDOC8=YesPlease" |
262 |
myopts="${myopts} ASCIIDOC_NO_ROFF=YesPlease" |
263 |
|
264 |
# Bug 290465: |
265 |
# builtin-fetch-pack.c:816: error: 'struct stat' has no member named 'st_mtim' |
266 |
[[ "${CHOST}" == *-uclibc* ]] && \ |
267 |
myopts="${myopts} NO_NSEC=YesPlease" |
268 |
|
269 |
export MY_MAKEOPTS="${myopts}" |
270 |
} |
271 |
|
272 |
src_unpack() { |
273 |
if [[ ${PV} != *9999 ]]; then |
274 |
unpack ${MY_P}.tar.bz2 |
275 |
cd "${S}" |
276 |
unpack ${PN}-manpages-${DOC_VER}.tar.bz2 |
277 |
use doc && \ |
278 |
cd "${S}"/Documentation && \ |
279 |
unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2 |
280 |
cd "${S}" |
281 |
else |
282 |
git-2_src_unpack |
283 |
cd "${S}" |
284 |
#cp "${FILESDIR}"/GIT-VERSION-GEN . |
285 |
fi |
286 |
|
287 |
} |
288 |
|
289 |
src_prepare() { |
290 |
# Noperl is being merged to upstream as of 2009/04/05 |
291 |
#epatch "${FILESDIR}"/20090305-git-1.6.2-noperl.patch |
292 |
|
293 |
# GetOpt-Long v2.38 is strict |
294 |
# Merged in 1.6.3 final 2009/05/07 |
295 |
#epatch "${FILESDIR}"/20090505-git-1.6.2.5-getopt-fixes.patch |
296 |
|
297 |
# JS install fixup |
298 |
# Merged in 1.7.5.x |
299 |
#epatch "${FILESDIR}"/git-1.7.2-always-install-js.patch |
300 |
|
301 |
# USE=-iconv causes segfaults, fixed post 1.7.1 |
302 |
# Gentoo bug #321895 |
303 |
#epatch "${FILESDIR}"/git-1.7.1-noiconv-segfault-fix.patch |
304 |
|
305 |
# Fix false positives with t3404 due to SHELL=/bin/false for the portage |
306 |
# user. |
307 |
# Merged upstream |
308 |
#epatch "${FILESDIR}"/git-1.7.3.4-avoid-shell-issues.patch |
309 |
|
310 |
# bug #350075: t9001: fix missing prereq on some tests |
311 |
# Merged upstream |
312 |
#epatch "${FILESDIR}"/git-1.7.3.4-fix-perl-test-prereq.patch |
313 |
|
314 |
# bug #350330 - automagic CVS when we don't want it is bad. |
315 |
epatch "${FILESDIR}"/git-1.7.3.5-optional-cvs.patch |
316 |
|
317 |
sed -i \ |
318 |
-e 's:^\(CFLAGS =\).*$:\1 $(OPTCFLAGS) -Wall:' \ |
319 |
-e 's:^\(LDFLAGS =\).*$:\1 $(OPTLDFLAGS):' \ |
320 |
-e 's:^\(CC = \).*$:\1$(OPTCC):' \ |
321 |
-e 's:^\(AR = \).*$:\1$(OPTAR):' \ |
322 |
-e "s:\(PYTHON_PATH = \)\(.*\)$:\1${EPREFIX}\2:" \ |
323 |
-e "s:\(PERL_PATH = \)\(.*\)$:\1${EPREFIX}\2:" \ |
324 |
Makefile || die "sed failed" |
325 |
|
326 |
# Never install the private copy of Error.pm (bug #296310) |
327 |
sed -i \ |
328 |
-e '/private-Error.pm/s,^,#,' \ |
329 |
perl/Makefile.PL |
330 |
|
331 |
# Fix docbook2texi command |
332 |
sed -i 's/DOCBOOK2X_TEXI=docbook2x-texi/DOCBOOK2X_TEXI=docbook2texi.pl/' \ |
333 |
Documentation/Makefile || die "sed failed" |
334 |
|
335 |
# bug #318289 |
336 |
# Merged upstream |
337 |
#epatch "${FILESDIR}"/git-1.7.3.2-interix.patch |
338 |
} |
339 |
|
340 |
git_emake() { |
341 |
# bug #326625: PERL_PATH, PERL_MM_OPT |
342 |
# bug #320647: PYTHON_PATH |
343 |
PYTHON_PATH="" |
344 |
use python && PYTHON_PATH="$(PYTHON -a)" |
345 |
emake ${MY_MAKEOPTS} \ |
346 |
DESTDIR="${D}" \ |
347 |
OPTCFLAGS="${CFLAGS}" \ |
348 |
OPTLDFLAGS="${LDFLAGS}" \ |
349 |
OPTCC="$(tc-getCC)" \ |
350 |
OPTAR="$(tc-getAR)" \ |
351 |
prefix="${EPREFIX}"/usr \ |
352 |
htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \ |
353 |
sysconfdir="${EPREFIX}"/etc \ |
354 |
PYTHON_PATH="${PYTHON_PATH}" \ |
355 |
PERL_PATH="${EPREFIX}/usr/bin/env perl" \ |
356 |
PERL_MM_OPT="" \ |
357 |
GIT_TEST_OPTS="--no-color" \ |
358 |
"$@" |
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 |
dobashcompletion 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 |
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 |
t1004-read-tree-m-u-wf.sh \ |
513 |
t3700-add.sh \ |
514 |
t7300-clean.sh" |
515 |
|
516 |
# Unzip is used only for the testcase code, not by any normal parts of Git. |
517 |
if ! has_version app-arch/unzip ; then |
518 |
einfo "Disabling tar-tree tests" |
519 |
disabled="${disabled} t5000-tar-tree.sh" |
520 |
fi |
521 |
|
522 |
cvs=0 |
523 |
use cvs && let cvs=$cvs+1 |
524 |
if [[ ${EUID} -eq 0 ]]; then |
525 |
if [[ $cvs -eq 1 ]]; then |
526 |
ewarn "Skipping CVS tests because CVS does not work as root!" |
527 |
ewarn "You should retest with FEATURES=userpriv!" |
528 |
disabled="${disabled} ${tests_cvs}" |
529 |
fi |
530 |
einfo "Skipping other tests that require being non-root" |
531 |
disabled="${disabled} ${tests_nonroot}" |
532 |
else |
533 |
[[ $cvs -gt 0 ]] && \ |
534 |
has_version dev-vcs/cvs && \ |
535 |
let cvs=$cvs+1 |
536 |
[[ $cvs -gt 1 ]] && \ |
537 |
built_with_use dev-vcs/cvs server && \ |
538 |
let cvs=$cvs+1 |
539 |
if [[ $cvs -lt 3 ]]; then |
540 |
einfo "Disabling CVS tests (needs dev-vcs/cvs[USE=server])" |
541 |
disabled="${disabled} ${tests_cvs}" |
542 |
fi |
543 |
fi |
544 |
|
545 |
if ! use perl ; then |
546 |
einfo "Disabling tests that need Perl" |
547 |
disabled="${disabled} ${tests_perl}" |
548 |
fi |
549 |
|
550 |
# Reset all previously disabled tests |
551 |
cd "${S}/t" |
552 |
for i in *.sh.DISABLED ; do |
553 |
[[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}" |
554 |
done |
555 |
einfo "Disabled tests:" |
556 |
for i in ${disabled} ; do |
557 |
[[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i" |
558 |
done |
559 |
|
560 |
# Avoid the test system removing the results because we want them ourselves |
561 |
sed -e '/^[[:space:]]*$(MAKE) clean/s,^,#,g' \ |
562 |
-i "${S}"/t/Makefile |
563 |
|
564 |
# Clean old results first |
565 |
cd "${S}/t" |
566 |
git_emake clean |
567 |
|
568 |
# Now run the tests |
569 |
cd "${S}" |
570 |
einfo "Start test run" |
571 |
git_emake test |
572 |
rc=$? |
573 |
|
574 |
# Display nice results |
575 |
cd "${S}/t" |
576 |
git_emake aggregate-results |
577 |
|
578 |
# And exit |
579 |
[ $rc -eq 0 ] || die "tests failed. Please file a bug." |
580 |
} |
581 |
|
582 |
showpkgdeps() { |
583 |
local pkg=$1 |
584 |
shift |
585 |
elog " $(printf "%-17s:" ${pkg}) ${@}" |
586 |
} |
587 |
|
588 |
pkg_postinst() { |
589 |
use emacs && elisp-site-regen |
590 |
use python && python_mod_optimize git_remote_helpers |
591 |
if use subversion && has_version dev-vcs/subversion && ! built_with_use --missing false dev-vcs/subversion perl ; then |
592 |
ewarn "You must build dev-vcs/subversion with USE=perl" |
593 |
ewarn "to get the full functionality of git-svn!" |
594 |
fi |
595 |
elog "These additional scripts need some dependencies:" |
596 |
echo |
597 |
showpkgdeps git-quiltimport "dev-util/quilt" |
598 |
showpkgdeps git-instaweb \ |
599 |
"|| ( www-servers/lighttpd www-servers/apache )" |
600 |
echo |
601 |
} |
602 |
|
603 |
pkg_postrm() { |
604 |
use emacs && elisp-site-regen |
605 |
use python && python_mod_cleanup git_remote_helpers |
606 |
} |