1 |
polynomial-c 14/10/31 08:19:54 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: git-2.1.3.ebuild |
5 |
Removed: git-2.1.1.ebuild |
6 |
Log: |
7 |
Version bump. Removed old |
8 |
|
9 |
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC) |
10 |
|
11 |
Revision Changes Path |
12 |
1.294 dev-vcs/git/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/ChangeLog?rev=1.294&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/ChangeLog?rev=1.294&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/ChangeLog?r1=1.293&r2=1.294 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/dev-vcs/git/ChangeLog,v |
21 |
retrieving revision 1.293 |
22 |
retrieving revision 1.294 |
23 |
diff -u -r1.293 -r1.294 |
24 |
--- ChangeLog 29 Oct 2014 09:38:45 -0000 1.293 |
25 |
+++ ChangeLog 31 Oct 2014 08:19:54 -0000 1.294 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for dev-vcs/git |
28 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git/ChangeLog,v 1.293 2014/10/29 09:38:45 ago Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git/ChangeLog,v 1.294 2014/10/31 08:19:54 polynomial-c Exp $ |
31 |
+ |
32 |
+*git-2.1.3 (31 Oct 2014) |
33 |
+ |
34 |
+ 31 Oct 2014; Lars Wendler <polynomial-c@g.o> -git-2.1.1.ebuild, |
35 |
+ +git-2.1.3.ebuild: |
36 |
+ Version bump. Removed old. |
37 |
|
38 |
29 Oct 2014; Agostino Sarubbo <ago@g.o> git-2.0.4.ebuild: |
39 |
Stable for sparc, wrt bug #519736 |
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-vcs/git/git-2.1.3.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/git-2.1.3.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/git-2.1.3.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: git-2.1.3.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2014 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git/git-2.1.3.ebuild,v 1.1 2014/10/31 08:19:54 polynomial-c Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
|
56 |
GENTOO_DEPEND_ON_PERL=no |
57 |
|
58 |
# bug #329479: git-remote-testgit is not multiple-version aware |
59 |
PYTHON_COMPAT=( python2_{6,7} ) |
60 |
[[ ${PV} == *9999 ]] && SCM="git-2" |
61 |
EGIT_REPO_URI="git://git.kernel.org/pub/scm/git/git.git" |
62 |
EGIT_MASTER=pu |
63 |
|
64 |
inherit toolchain-funcs eutils elisp-common perl-module bash-completion-r1 python-single-r1 systemd ${SCM} |
65 |
|
66 |
MY_PV="${PV/_rc/.rc}" |
67 |
MY_P="${PN}-${MY_PV}" |
68 |
|
69 |
DOC_VER=${MY_PV} |
70 |
|
71 |
DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team" |
72 |
HOMEPAGE="http://www.git-scm.com/" |
73 |
if [[ ${PV} != *9999 ]]; then |
74 |
SRC_URI_SUFFIX="xz" |
75 |
SRC_URI_GOOG="http://git-core.googlecode.com/files" |
76 |
SRC_URI_KORG="mirror://kernel/software/scm/git" |
77 |
SRC_URI="${SRC_URI_GOOG}/${MY_P}.tar.${SRC_URI_SUFFIX} |
78 |
${SRC_URI_KORG}/${MY_P}.tar.${SRC_URI_SUFFIX} |
79 |
${SRC_URI_GOOG}/${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX} |
80 |
${SRC_URI_KORG}/${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX} |
81 |
doc? ( |
82 |
${SRC_URI_KORG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX} |
83 |
${SRC_URI_GOOG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX} |
84 |
)" |
85 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~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 ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
86 |
else |
87 |
SRC_URI="" |
88 |
KEYWORDS="" |
89 |
fi |
90 |
|
91 |
LICENSE="GPL-2" |
92 |
SLOT="0" |
93 |
IUSE="+blksha1 +curl cgi doc emacs gnome-keyring +gpg gtk highlight +iconv mediawiki +nls +pcre +perl +python ppcsha1 tk +threads +webdav xinetd cvs subversion test" |
94 |
|
95 |
# Common to both DEPEND and RDEPEND |
96 |
CDEPEND=" |
97 |
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 |
gnome-keyring? ( gnome-base/libgnome-keyring )" |
108 |
|
109 |
RDEPEND="${CDEPEND} |
110 |
gpg? ( app-crypt/gnupg ) |
111 |
mediawiki? ( |
112 |
dev-perl/HTML-Tree |
113 |
dev-perl/MediaWiki-API |
114 |
) |
115 |
perl? ( dev-perl/Error |
116 |
dev-perl/Net-SMTP-SSL |
117 |
dev-perl/Authen-SASL |
118 |
cgi? ( virtual/perl-CGI highlight? ( app-text/highlight ) ) |
119 |
cvs? ( >=dev-vcs/cvsps-2.1:0 dev-perl/DBI dev-perl/DBD-SQLite ) |
120 |
subversion? ( dev-vcs/subversion[-dso,perl] dev-perl/libwww-perl dev-perl/TermReadKey ) |
121 |
) |
122 |
python? ( gtk? |
123 |
( |
124 |
>=dev-python/pygtk-2.8[${PYTHON_USEDEP}] |
125 |
>=dev-python/pygtksourceview-2.10.1-r1:2[${PYTHON_USEDEP}] |
126 |
) |
127 |
${PYTHON_DEPS} )" |
128 |
|
129 |
# This is how info docs are created with Git: |
130 |
# .txt/asciidoc --(asciidoc)---------> .xml/docbook |
131 |
# .xml/docbook --(docbook2texi.pl)--> .texi |
132 |
# .texi --(makeinfo)---------> .info |
133 |
DEPEND="${CDEPEND} |
134 |
app-arch/cpio |
135 |
doc? ( |
136 |
app-text/asciidoc |
137 |
app-text/docbook2X |
138 |
sys-apps/texinfo |
139 |
app-text/xmlto |
140 |
) |
141 |
nls? ( sys-devel/gettext ) |
142 |
test? ( app-crypt/gnupg )" |
143 |
|
144 |
# Live ebuild builds man pages and HTML docs, additionally |
145 |
if [[ ${PV} == *9999 ]]; then |
146 |
DEPEND="${DEPEND} |
147 |
app-text/asciidoc" |
148 |
fi |
149 |
|
150 |
SITEFILE=50${PN}-gentoo.el |
151 |
S="${WORKDIR}/${MY_P}" |
152 |
|
153 |
REQUIRED_USE=" |
154 |
cgi? ( perl ) |
155 |
cvs? ( perl ) |
156 |
mediawiki? ( perl ) |
157 |
subversion? ( perl ) |
158 |
webdav? ( curl ) |
159 |
gtk? ( python ) |
160 |
python? ( ${PYTHON_REQUIRED_USE} ) |
161 |
" |
162 |
|
163 |
pkg_setup() { |
164 |
if use subversion && has_version "dev-vcs/subversion[dso]"; then |
165 |
ewarn "Per Gentoo bugs #223747, #238586, when subversion is built" |
166 |
ewarn "with USE=dso, there may be weird crashes in git-svn. You" |
167 |
ewarn "have been warned." |
168 |
fi |
169 |
if use python ; then |
170 |
python-single-r1_pkg_setup |
171 |
fi |
172 |
} |
173 |
|
174 |
# This is needed because for some obscure reasons future calls to make don't |
175 |
# pick up these exports if we export them in src_unpack() |
176 |
exportmakeopts() { |
177 |
local myopts |
178 |
|
179 |
if use blksha1 ; then |
180 |
myopts="${myopts} BLK_SHA1=YesPlease" |
181 |
elif use ppcsha1 ; then |
182 |
myopts="${myopts} PPC_SHA1=YesPlease" |
183 |
fi |
184 |
|
185 |
if use curl ; then |
186 |
use webdav || myopts="${myopts} NO_EXPAT=YesPlease" |
187 |
else |
188 |
myopts="${myopts} NO_CURL=YesPlease" |
189 |
fi |
190 |
|
191 |
# broken assumptions, because of broken build system ... |
192 |
myopts="${myopts} NO_FINK=YesPlease NO_DARWIN_PORTS=YesPlease" |
193 |
myopts="${myopts} INSTALL=install TAR=tar" |
194 |
myopts="${myopts} SHELL_PATH=${EPREFIX}/bin/sh" |
195 |
myopts="${myopts} SANE_TOOL_PATH=" |
196 |
myopts="${myopts} OLD_ICONV=" |
197 |
myopts="${myopts} NO_EXTERNAL_GREP=" |
198 |
|
199 |
# For svn-fe |
200 |
extlibs="-lz -lssl ${S}/xdiff/lib.a $(usex threads -lpthread '')" |
201 |
|
202 |
# can't define this to null, since the entire makefile depends on it |
203 |
sed -i -e '/\/usr\/local/s/BASIC_/#BASIC_/' Makefile |
204 |
|
205 |
use iconv \ |
206 |
|| myopts="${myopts} NO_ICONV=YesPlease" |
207 |
use nls \ |
208 |
|| myopts="${myopts} NO_GETTEXT=YesPlease" |
209 |
use tk \ |
210 |
|| myopts="${myopts} NO_TCLTK=YesPlease" |
211 |
use pcre \ |
212 |
&& myopts="${myopts} USE_LIBPCRE=yes" \ |
213 |
&& extlibs="${extlibs} -lpcre" |
214 |
use perl \ |
215 |
&& myopts="${myopts} INSTALLDIRS=vendor" \ |
216 |
|| myopts="${myopts} NO_PERL=YesPlease" |
217 |
use python \ |
218 |
|| myopts="${myopts} NO_PYTHON=YesPlease" |
219 |
use subversion \ |
220 |
|| myopts="${myopts} NO_SVN_TESTS=YesPlease" |
221 |
use threads \ |
222 |
&& myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease" \ |
223 |
|| myopts="${myopts} NO_PTHREADS=YesPlease" |
224 |
use cvs \ |
225 |
|| myopts="${myopts} NO_CVS=YesPlease" |
226 |
# Disabled until ~m68k-mint can be keyworded again |
227 |
# if [[ ${CHOST} == *-mint* ]] ; then |
228 |
# myopts="${myopts} NO_MMAP=YesPlease" |
229 |
# myopts="${myopts} NO_IPV6=YesPlease" |
230 |
# myopts="${myopts} NO_STRLCPY=YesPlease" |
231 |
# myopts="${myopts} NO_MEMMEM=YesPlease" |
232 |
# myopts="${myopts} NO_MKDTEMP=YesPlease" |
233 |
# myopts="${myopts} NO_MKSTEMPS=YesPlease" |
234 |
# fi |
235 |
if [[ ${CHOST} == ia64-*-hpux* ]]; then |
236 |
myopts="${myopts} NO_NSEC=YesPlease" |
237 |
fi |
238 |
if [[ ${CHOST} == *-*-aix* ]]; then |
239 |
myopts="${myopts} NO_FNMATCH_CASEFOLD=YesPlease" |
240 |
fi |
241 |
if [[ ${CHOST} == *-solaris* ]]; then |
242 |
myopts="${myopts} NEEDS_LIBICONV=YesPlease" |
243 |
fi |
244 |
|
245 |
has_version '>=app-text/asciidoc-8.0' \ |
246 |
&& myopts="${myopts} ASCIIDOC8=YesPlease" |
247 |
myopts="${myopts} ASCIIDOC_NO_ROFF=YesPlease" |
248 |
|
249 |
# Bug 290465: |
250 |
# builtin-fetch-pack.c:816: error: 'struct stat' has no member named 'st_mtim' |
251 |
[[ "${CHOST}" == *-uclibc* ]] && \ |
252 |
myopts="${myopts} NO_NSEC=YesPlease" |
253 |
|
254 |
export MY_MAKEOPTS="${myopts}" |
255 |
export EXTLIBS="${extlibs}" |
256 |
} |
257 |
|
258 |
src_unpack() { |
259 |
if [[ ${PV} != *9999 ]]; then |
260 |
unpack ${MY_P}.tar.${SRC_URI_SUFFIX} |
261 |
cd "${S}" |
262 |
unpack ${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX} |
263 |
use doc && \ |
264 |
cd "${S}"/Documentation && \ |
265 |
unpack ${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX} |
266 |
cd "${S}" |
267 |
else |
268 |
git-2_src_unpack |
269 |
cd "${S}" |
270 |
#cp "${FILESDIR}"/GIT-VERSION-GEN . |
271 |
fi |
272 |
|
273 |
} |
274 |
|
275 |
src_prepare() { |
276 |
# bug #350330 - automagic CVS when we don't want it is bad. |
277 |
epatch "${FILESDIR}"/git-2.0.0-r2-optional-cvs.patch |
278 |
|
279 |
# install mediawiki perl modules also in vendor_dir |
280 |
# hack, needs better upstream solution |
281 |
epatch "${FILESDIR}"/git-1.8.5-mw-vendor.patch |
282 |
|
283 |
epatch_user |
284 |
|
285 |
sed -i \ |
286 |
-e 's:^\(CFLAGS[[:space:]]*=\).*$:\1 $(OPTCFLAGS) -Wall:' \ |
287 |
-e 's:^\(LDFLAGS[[:space:]]*=\).*$:\1 $(OPTLDFLAGS):' \ |
288 |
-e 's:^\(CC[[:space:]]* =\).*$:\1$(OPTCC):' \ |
289 |
-e 's:^\(AR[[:space:]]* =\).*$:\1$(OPTAR):' \ |
290 |
-e "s:\(PYTHON_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \ |
291 |
-e "s:\(PERL_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \ |
292 |
Makefile contrib/svn-fe/Makefile || die "sed failed" |
293 |
|
294 |
# Never install the private copy of Error.pm (bug #296310) |
295 |
sed -i \ |
296 |
-e '/private-Error.pm/s,^,#,' \ |
297 |
perl/Makefile.PL |
298 |
|
299 |
# Fix docbook2texi command |
300 |
sed -r -i 's/DOCBOOK2X_TEXI[[:space:]]*=[[:space:]]*docbook2x-texi/DOCBOOK2X_TEXI = docbook2texi.pl/' \ |
301 |
Documentation/Makefile || die "sed failed" |
302 |
|
303 |
# Fix git-subtree missing DESTDIR |
304 |
sed -i \ |
305 |
-e '/$(INSTALL)/s/ $(libexecdir)/ $(DESTDIR)$(libexecdir)/g' \ |
306 |
-e '/$(INSTALL)/s/ $(man1dir)/ $(DESTDIR)$(man1dir)/g' \ |
307 |
contrib/subtree/Makefile |
308 |
} |
309 |
|
310 |
git_emake() { |
311 |
# bug #326625: PERL_PATH, PERL_MM_OPT |
312 |
# bug #320647: PYTHON_PATH |
313 |
PYTHON_PATH="" |
314 |
use python && PYTHON_PATH="${PYTHON}" |
315 |
emake ${MY_MAKEOPTS} \ |
316 |
DESTDIR="${D}" \ |
317 |
OPTCFLAGS="${CFLAGS}" \ |
318 |
OPTLDFLAGS="${LDFLAGS}" \ |
319 |
OPTCC="$(tc-getCC)" \ |
320 |
OPTAR="$(tc-getAR)" \ |
321 |
prefix="${EPREFIX}"/usr \ |
322 |
htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \ |
323 |
sysconfdir="${EPREFIX}"/etc \ |
324 |
PYTHON_PATH="${PYTHON_PATH}" \ |
325 |
PERL_MM_OPT="" \ |
326 |
GIT_TEST_OPTS="--no-color" \ |
327 |
V=1 \ |
328 |
"$@" |
329 |
# This is the fix for bug #326625, but it also causes breakage, see bug |
330 |
# #352693. |
331 |
# PERL_PATH="${EPREFIX}/usr/bin/env perl" \ |
332 |
} |
333 |
|
334 |
src_configure() { |
335 |
exportmakeopts |
336 |
} |
337 |
|
338 |
src_compile() { |
339 |
if use perl ; then |
340 |
git_emake perl/PM.stamp || die "emake perl/PM.stamp failed" |
341 |
git_emake perl/perl.mak || die "emake perl/perl.mak failed" |
342 |
fi |
343 |
git_emake || die "emake failed" |
344 |
|
345 |
if use emacs ; then |
346 |
elisp-compile contrib/emacs/git{,-blame}.el |
347 |
fi |
348 |
|
349 |
if use perl && use cgi ; then |
350 |
git_emake \ |
351 |
gitweb/gitweb.cgi \ |
352 |
|| die "emake gitweb/gitweb.cgi failed" |
353 |
fi |
354 |
|
355 |
if [[ ${CHOST} == *-darwin* ]]; then |
356 |
cd "${S}"/contrib/credential/osxkeychain || die "cd credential/osxkeychain" |
357 |
git_emake || die "emake credential-osxkeychain" |
358 |
fi |
359 |
|
360 |
cd "${S}"/Documentation |
361 |
if [[ ${PV} == *9999 ]] ; then |
362 |
git_emake man \ |
363 |
|| die "emake man failed" |
364 |
if use doc ; then |
365 |
git_emake info html \ |
366 |
|| die "emake info html failed" |
367 |
fi |
368 |
else |
369 |
if use doc ; then |
370 |
git_emake info \ |
371 |
|| die "emake info html failed" |
372 |
fi |
373 |
fi |
374 |
|
375 |
if use subversion ; then |
376 |
cd "${S}"/contrib/svn-fe |
377 |
# by defining EXTLIBS we override the detection for libintl and |
378 |
# libiconv, bug #516168 |
379 |
local nlsiconv= |
380 |
use nls && use !elibc_glibc && nlsiconv+=" -lintl" |
381 |
use iconv && use !elibc_glibc && nlsiconv+=" -liconv" |
382 |
git_emake EXTLIBS="${EXTLIBS} ${nlsiconv}" || die "emake svn-fe failed" |
383 |
if use doc ; then |
384 |
git_emake svn-fe.{1,html} || die "emake svn-fe.1 svn-fe.html failed" |
385 |
fi |
386 |
cd "${S}" |
387 |
fi |
388 |
|
389 |
if use gnome-keyring ; then |
390 |
cd "${S}"/contrib/credential/gnome-keyring |
391 |
git_emake || die "emake git-credential-gnome-keyring failed" |
392 |
fi |
393 |
|
394 |
cd "${S}"/contrib/subtree |
395 |
git_emake |
396 |
use doc && git_emake doc |
397 |
|
398 |
if use mediawiki ; then |
399 |
cd "${S}"/contrib/mw-to-git |
400 |
git_emake |
401 |
fi |
402 |
} |
403 |
|
404 |
src_install() { |
405 |
git_emake \ |
406 |
install || \ |
407 |
die "make install failed" |
408 |
|
409 |
if [[ ${CHOST} == *-darwin* ]]; then |
410 |
dobin contrib/credential/osxkeychain/git-credential-osxkeychain |
411 |
fi |
412 |
|
413 |
# Depending on the tarball and manual rebuild of the documentation, the |
414 |
# manpages may exist in either OR both of these directories. |
415 |
find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157] |
416 |
find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157] |
417 |
|
418 |
dodoc README Documentation/{SubmittingPatches,CodingGuidelines} |
419 |
use doc && dodir /usr/share/doc/${PF}/html |
420 |
for d in / /howto/ /technical/ ; do |
421 |
docinto ${d} |
422 |
dodoc Documentation${d}*.txt |
423 |
use doc && dohtml -p ${d} Documentation${d}*.html |
424 |
done |
425 |
docinto / |
426 |
# Upstream does not ship this pre-built :-( |
427 |
use doc && doinfo Documentation/{git,gitman}.info |
428 |
|
429 |
newbashcomp contrib/completion/git-completion.bash ${PN} |
430 |
bashcomp_alias git gitk |
431 |
# Not really a bash-completion file (bug #477920) |
432 |
# but still needed uncompressed (bug #507480) |
433 |
insinto /usr/share/${PN} |
434 |
doins contrib/completion/git-prompt.sh |
435 |
|
436 |
if use emacs ; then |
437 |
elisp-install ${PN} contrib/emacs/git.{el,elc} |
438 |
elisp-install ${PN} contrib/emacs/git-blame.{el,elc} |
439 |
#elisp-install ${PN}/compat contrib/emacs/vc-git.{el,elc} |
440 |
# don't add automatically to the load-path, so the sitefile |
441 |
# can do a conditional loading |
442 |
touch "${ED}${SITELISP}/${PN}/compat/.nosearch" |
443 |
elisp-site-file-install "${FILESDIR}"/${SITEFILE} |
444 |
fi |
445 |
|
446 |
if use python && use gtk ; then |
447 |
python_doscript "${S}"/contrib/gitview/gitview |
448 |
dodoc "${S}"/contrib/gitview/gitview.txt |
449 |
fi |
450 |
|
451 |
#dobin contrib/fast-import/git-p4 # Moved upstream |
452 |
#dodoc contrib/fast-import/git-p4.txt # Moved upstream |
453 |
newbin contrib/fast-import/import-tars.perl import-tars |
454 |
exeinto /usr/libexec/git-core/ |
455 |
newexe contrib/git-resurrect.sh git-resurrect |
456 |
|
457 |
# git-subtree |
458 |
cd "${S}"/contrib/subtree |
459 |
git_emake install || die "Failed to emake install git-subtree" |
460 |
if use doc ; then |
461 |
git_emake install-man install-doc || die "Failed to emake install-doc install-mangit-subtree" |
462 |
fi |
463 |
newdoc README README.git-subtree |
464 |
dodoc git-subtree.txt |
465 |
cd "${S}" |
466 |
|
467 |
if use mediawiki ; then |
468 |
cd "${S}"/contrib/mw-to-git |
469 |
git_emake install |
470 |
cd "${S}" |
471 |
fi |
472 |
|
473 |
# diff-highlight |
474 |
dobin contrib/diff-highlight/diff-highlight |
475 |
newdoc contrib/diff-highlight/README README.diff-highlight |
476 |
|
477 |
# git-jump |
478 |
exeinto /usr/libexec/git-core/ |
479 |
doexe contrib/git-jump/git-jump |
480 |
newdoc contrib/git-jump/README git-jump.txt |
481 |
|
482 |
# git-contacts |
483 |
exeinto /usr/libexec/git-core/ |
484 |
doexe contrib/contacts/git-contacts |
485 |
dodoc contrib/contacts/git-contacts.txt |
486 |
|
487 |
if use gnome-keyring ; then |
488 |
cd "${S}"/contrib/credential/gnome-keyring |
489 |
dobin git-credential-gnome-keyring |
490 |
fi |
491 |
|
492 |
if use subversion ; then |
493 |
cd "${S}"/contrib/svn-fe |
494 |
dobin svn-fe |
495 |
dodoc svn-fe.txt |
496 |
use doc && doman svn-fe.1 && dohtml svn-fe.html |
497 |
cd "${S}" |
498 |
fi |
499 |
|
500 |
dodir /usr/share/${PN}/contrib |
501 |
# The following are excluded: |
502 |
# completion - installed above |
503 |
# credential/gnome-keyring TODO |
504 |
# diff-highlight - done above |
505 |
# emacs - installed above |
506 |
# examples - these are stuff that is not used in Git anymore actually |
507 |
# git-jump - done above |
508 |
# gitview - installed above |
509 |
# p4import - excluded because fast-import has a better one |
510 |
# patches - stuff the Git guys made to go upstream to other places |
511 |
# persistent-https - TODO |
512 |
# mw-to-git - TODO |
513 |
# subtree - build seperately |
514 |
# svnimport - use git-svn |
515 |
# thunderbird-patch-inline - fixes thunderbird |
516 |
for i in \ |
517 |
buildsystems convert-objects fast-import \ |
518 |
hg-to-git hooks remotes2config.sh rerere-train.sh \ |
519 |
stats workdir \ |
520 |
; do |
521 |
cp -rf \ |
522 |
"${S}"/contrib/${i} \ |
523 |
"${ED}"/usr/share/${PN}/contrib \ |
524 |
|| die "Failed contrib ${i}" |
525 |
done |
526 |
|
527 |
if use perl && use cgi ; then |
528 |
# We used to install in /usr/share/${PN}/gitweb |
529 |
# but upstream installs in /usr/share/gitweb |
530 |
# so we will install a symlink and use their location for compat with other |
531 |
# distros |
532 |
dosym /usr/share/gitweb /usr/share/${PN}/gitweb |
533 |
|
534 |
# INSTALL discusses configuration issues, not just installation |
535 |
docinto / |
536 |
newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb |
537 |
newdoc "${S}"/gitweb/README README.gitweb |
538 |
|
539 |
find "${ED}"/usr/lib64/perl5/ \ |
540 |
-name .packlist \ |
541 |
-exec rm \{\} \; |
542 |
else |
543 |
rm -rf "${ED}"/usr/share/gitweb |
544 |
fi |
545 |
|
546 |
if ! use subversion ; then |
547 |
rm -f "${ED}"/usr/libexec/git-core/git-svn \ |
548 |
"${ED}"/usr/share/man/man1/git-svn.1* |
549 |
fi |
550 |
|
551 |
if use xinetd ; then |
552 |
insinto /etc/xinetd.d |
553 |
newins "${FILESDIR}"/git-daemon.xinetd git-daemon |
554 |
fi |
555 |
|
556 |
if use !prefix ; then |
557 |
newinitd "${FILESDIR}"/git-daemon-r1.initd git-daemon |
558 |
newconfd "${FILESDIR}"/git-daemon.confd git-daemon |
559 |
systemd_newunit "${FILESDIR}/git-daemon_at.service" "git-daemon@.service" |
560 |
systemd_dounit "${FILESDIR}/git-daemon.socket" |
561 |
fi |
562 |
|
563 |
fixlocalpod |
564 |
} |
565 |
|
566 |
src_test() { |
567 |
local disabled="t7004-tag.sh" #520270 |
568 |
local tests_cvs="t9200-git-cvsexportcommit.sh \ |
569 |
t9400-git-cvsserver-server.sh \ |
570 |
t9401-git-cvsserver-crlf.sh \ |
571 |
t9402-git-cvsserver-refs.sh \ |
572 |
t9600-cvsimport.sh \ |
573 |
t9601-cvsimport-vendor-branch.sh \ |
574 |
t9602-cvsimport-branches-tags.sh \ |
575 |
t9603-cvsimport-patchsets.sh \ |
576 |
t9604-cvsimport-timestamps.sh" |
577 |
local tests_perl="t3701-add-interactive.sh \ |
578 |
t5502-quickfetch.sh \ |
579 |
t5512-ls-remote.sh \ |
580 |
t5520-pull.sh \ |
581 |
t7106-reset-unborn-branch.sh \ |
582 |
t7501-commit.sh" |
583 |
# Bug #225601 - t0004 is not suitable for root perm |
584 |
# Bug #219839 - t1004 is not suitable for root perm |
585 |
# t0001-init.sh - check for init notices EPERM* fails |
586 |
local tests_nonroot="t0001-init.sh \ |
587 |
t0004-unwritable.sh \ |
588 |
t0070-fundamental.sh \ |
589 |
t1004-read-tree-m-u-wf.sh \ |
590 |
t3700-add.sh \ |
591 |
t7300-clean.sh" |
592 |
# t9100 still fails with symlinks in SVN 1.7 |
593 |
local test_svn="t9100-git-svn-basic.sh" |
594 |
|
595 |
# Unzip is used only for the testcase code, not by any normal parts of Git. |
596 |
if ! has_version app-arch/unzip ; then |
597 |
einfo "Disabling tar-tree tests" |
598 |
disabled="${disabled} t5000-tar-tree.sh" |
599 |
fi |
600 |
|
601 |
cvs=0 |
602 |
use cvs && let cvs=$cvs+1 |
603 |
if [[ ${EUID} -eq 0 ]]; then |
604 |
if [[ $cvs -eq 1 ]]; then |
605 |
ewarn "Skipping CVS tests because CVS does not work as root!" |
606 |
ewarn "You should retest with FEATURES=userpriv!" |
607 |
disabled="${disabled} ${tests_cvs}" |
608 |
fi |
609 |
einfo "Skipping other tests that require being non-root" |
610 |
disabled="${disabled} ${tests_nonroot}" |
611 |
else |
612 |
[[ $cvs -gt 0 ]] && \ |
613 |
has_version dev-vcs/cvs && \ |
614 |
let cvs=$cvs+1 |
615 |
[[ $cvs -gt 1 ]] && \ |
616 |
has_version "dev-vcs/cvs[server]" && \ |
617 |
let cvs=$cvs+1 |
618 |
if [[ $cvs -lt 3 ]]; then |
619 |
einfo "Disabling CVS tests (needs dev-vcs/cvs[USE=server])" |
620 |
disabled="${disabled} ${tests_cvs}" |
621 |
fi |
622 |
fi |
623 |
|
624 |
if ! use perl ; then |
625 |
einfo "Disabling tests that need Perl" |
626 |
disabled="${disabled} ${tests_perl}" |
627 |
fi |
628 |
|
629 |
einfo "Disabling tests that fail with SVN 1.7" |
630 |
disabled="${disabled} ${test_svn}" |
631 |
|
632 |
# Reset all previously disabled tests |
633 |
cd "${S}/t" |
634 |
for i in *.sh.DISABLED ; do |
635 |
[[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}" |
636 |
done |
637 |
einfo "Disabled tests:" |
638 |
for i in ${disabled} ; do |
639 |
[[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i" |
640 |
done |
641 |
|
642 |
# Avoid the test system removing the results because we want them ourselves |
643 |
sed -e '/^[[:space:]]*$(MAKE) clean/s,^,#,g' \ |
644 |
-i "${S}"/t/Makefile |
645 |
|
646 |
# Clean old results first, must always run |
647 |
cd "${S}/t" |
648 |
nonfatal git_emake clean |
649 |
|
650 |
# Now run the tests, keep going if we hit an error, and don't terminate on |
651 |
# failure |
652 |
cd "${S}" |
653 |
einfo "Start test run" |
654 |
#MAKEOPTS=-j1 |
655 |
nonfatal git_emake --keep-going test |
656 |
rc=$? |
657 |
|
658 |
# Display nice results, now print the results |
659 |
cd "${S}/t" |
660 |
nonfatal git_emake aggregate-results |
661 |
|
662 |
# And bail if there was a problem |
663 |
[ $rc -eq 0 ] || die "tests failed. Please file a bug." |
664 |
} |
665 |
|
666 |
showpkgdeps() { |
667 |
local pkg=$1 |
668 |
shift |
669 |
elog " $(printf "%-17s:" ${pkg}) ${@}" |
670 |
} |
671 |
|
672 |
pkg_postinst() { |
673 |
use emacs && elisp-site-regen |
674 |
einfo "Please read /usr/share/bash-completion/git for Git bash command completion" |
675 |
einfo "Please read /usr/share/git/git-prompt.sh for Git bash prompt" |
676 |
einfo "Note that the prompt bash code is now in that separate script" |
677 |
elog "These additional scripts need some dependencies:" |
678 |
echo |
679 |
showpkgdeps git-quiltimport "dev-util/quilt" |
680 |
showpkgdeps git-instaweb \ |
681 |
"|| ( www-servers/lighttpd www-servers/apache www-servers/nginx )" |
682 |
echo |
683 |
} |
684 |
|
685 |
pkg_postrm() { |
686 |
use emacs && elisp-site-regen |
687 |
} |