Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/git: ChangeLog git-1.6.5.2.ebuild
Date: Fri, 30 Oct 2009 08:49:53
Message-Id: E1N3nB8-0006NP-Ds@stork.gentoo.org
1 robbat2 09/10/30 08:49:50
2
3 Modified: ChangeLog
4 Added: git-1.6.5.2.ebuild
5 Log:
6 Bug #291107: version bump.
7 (Portage version: 2.2_rc46/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.376 dev-util/git/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/ChangeLog?rev=1.376&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/ChangeLog?rev=1.376&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/ChangeLog?r1=1.375&r2=1.376
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-util/git/ChangeLog,v
19 retrieving revision 1.375
20 retrieving revision 1.376
21 diff -p -w -b -B -u -u -r1.375 -r1.376
22 --- ChangeLog 23 Oct 2009 18:16:26 -0000 1.375
23 +++ ChangeLog 30 Oct 2009 08:49:49 -0000 1.376
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-util/git
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-util/git/ChangeLog,v 1.375 2009/10/23 18:16:26 robbat2 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-util/git/ChangeLog,v 1.376 2009/10/30 08:49:49 robbat2 Exp $
29 +
30 +*git-1.6.5.2 (30 Oct 2009)
31 +
32 + 30 Oct 2009; Robin H. Johnson <robbat2@g.o> +git-1.6.5.2.ebuild:
33 + Bug #291107: version bump.
34
35 23 Oct 2009; Robin H. Johnson <robbat2@g.o> git-1.6.5_rc2.ebuild,
36 git-1.6.5.ebuild, git-1.6.5.1.ebuild, git-1.6.5.1-r1.ebuild,
37
38
39
40 1.1 dev-util/git/git-1.6.5.2.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/git-1.6.5.2.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/git-1.6.5.2.ebuild?rev=1.1&content-type=text/plain
44
45 Index: git-1.6.5.2.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-util/git/git-1.6.5.2.ebuild,v 1.1 2009/10/30 08:49:49 robbat2 Exp $
50
51 EAPI=2
52
53 inherit toolchain-funcs eutils elisp-common perl-module bash-completion
54 [ "$PV" == "9999" ] && inherit git
55
56 MY_PV="${PV/_rc/.rc}"
57 MY_P="${PN}-${MY_PV}"
58
59 DOC_VER=${MY_PV}
60
61 DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
62 HOMEPAGE="http://www.git-scm.com/"
63 if [ "$PV" != "9999" ]; then
64 SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2
65 mirror://kernel/software/scm/git/${PN}-manpages-${DOC_VER}.tar.bz2
66 doc? ( mirror://kernel/software/scm/git/${PN}-htmldocs-${DOC_VER}.tar.bz2 )"
67 KEYWORDS="~amd64 ~hppa ~mips ~ppc ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
68 else
69 SRC_URI=""
70 EGIT_BRANCH="master"
71 EGIT_REPO_URI="git://git.kernel.org/pub/scm/git/git.git"
72 # EGIT_REPO_URI="http://www.kernel.org/pub/scm/git/git.git"
73 KEYWORDS=""
74 fi
75
76 LICENSE="GPL-2"
77 SLOT="0"
78 IUSE="+blksha1 +curl cgi doc emacs gtk iconv +perl ppcsha1 tk +threads +webdav xinetd cvs subversion"
79
80 # Common to both DEPEND and RDEPEND
81 CDEPEND="
82 !app-misc/git
83 !blksha1? ( dev-libs/openssl )
84 sys-libs/zlib
85 app-arch/cpio
86 perl? ( dev-lang/perl )
87 tk? ( dev-lang/tk )
88 curl? (
89 net-misc/curl
90 webdav? ( dev-libs/expat )
91 )
92 emacs? ( virtual/emacs )"
93
94 RDEPEND="${CDEPEND}
95 perl? ( dev-perl/Error
96 dev-perl/Net-SMTP-SSL
97 dev-perl/Authen-SASL
98 cgi? ( virtual/perl-CGI )
99 cvs? ( >=dev-util/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite )
100 subversion? ( dev-util/subversion[-dso] dev-perl/libwww-perl dev-perl/TermReadKey )
101 )
102 gtk?
103 (
104 >=dev-python/pygtk-2.8
105 || ( dev-python/pygtksourceview:2 dev-python/gtksourceview-python )
106 )"
107
108 # This is how info docs are created with Git:
109 # .txt/asciidoc --(asciidoc)---------> .xml/docbook
110 # .xml/docbook --(docbook2texi.pl)--> .texi
111 # .texi --(makeinfo)---------> .info
112 DEPEND="${CDEPEND}
113 doc? (
114 app-text/asciidoc
115 app-text/docbook2X
116 sys-apps/texinfo
117 )"
118
119 # Live ebuild builds HTML docs, additionally
120 if [ "$PV" == "9999" ]; then
121 DEPEND="${DEPEND}
122 doc? (
123 app-text/xmlto
124 )"
125 fi
126
127 SITEFILE=50${PN}-gentoo.el
128 S="${WORKDIR}/${MY_P}"
129
130 pkg_setup() {
131 if ! use perl ; then
132 use cgi && ewarn "gitweb needs USE=perl, ignoring USE=cgi"
133 use cvs && ewarn "CVS integration needs USE=perl, ignoring USE=cvs"
134 use subversion && ewarn "git-svn needs USE=perl, it won't work"
135 fi
136 if use webdav && ! use curl ; then
137 ewarn "USE=webdav needs USE=curl. Ignoring"
138 fi
139 if use subversion && has_version dev-util/subversion && built_with_use --missing false dev-util/subversion dso ; then
140 ewarn "Per Gentoo bugs #223747, #238586, when subversion is built"
141 ewarn "with USE=dso, there may be weird crashes in git-svn. You"
142 ewarn "have been warned."
143 fi
144 }
145
146 # This is needed because for some obscure reasons future calls to make don't
147 # pick up these exports if we export them in src_unpack()
148 exportmakeopts() {
149 local myopts
150
151 if use blksha1 ; then
152 myopts="${myopts} BLK_SHA1=YesPlease"
153 elif use ppcsha1 ; then
154 myopts="${myopts} PPC_SHA1=YesPlease"
155 fi
156
157 if use curl ; then
158 use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
159 else
160 myopts="${myopts} NO_CURL=YesPlease"
161 fi
162
163 use iconv \
164 || myopts="${myopts} NO_ICONV=YesPlease"
165 use tk \
166 || myopts="${myopts} NO_TCLTK=YesPlease"
167 use perl \
168 && myopts="${myopts} INSTALLDIRS=vendor" \
169 || myopts="${myopts} NO_PERL=YesPlease"
170 use threads \
171 && myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease"
172 use subversion \
173 || myopts="${myopts} NO_SVN_TESTS=YesPlease"
174
175 has_version '>=app-text/asciidoc-8.0' \
176 && myopts="${myopts} ASCIIDOC8=YesPlease"
177 myopts="${myopts} ASCIIDOC_NO_ROFF=YesPlease"
178
179 export MY_MAKEOPTS="${myopts}"
180 }
181
182 src_unpack() {
183 if [ "${PV}" != "9999" ]; then
184 unpack ${MY_P}.tar.bz2
185 cd "${S}"
186 unpack ${PN}-manpages-${DOC_VER}.tar.bz2
187 use doc && \
188 cd "${S}"/Documentation && \
189 unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2
190 cd "${S}"
191 else
192 git_src_unpack
193 cd "${S}"
194 #cp "${FILESDIR}"/GIT-VERSION-GEN .
195 fi
196
197 }
198
199 src_prepare() {
200 # Noperl is being merged to upstream as of 2009/04/05
201 #epatch "${FILESDIR}"/20090305-git-1.6.2-noperl.patch
202
203 # GetOpt-Long v2.38 is strict
204 # Merged in 1.6.3 final 2009/05/07
205 #epatch "${FILESDIR}"/20090505-git-1.6.2.5-getopt-fixes.patch
206
207 sed -i \
208 -e 's:^\(CFLAGS =\).*$:\1 $(OPTCFLAGS) -Wall:' \
209 -e 's:^\(LDFLAGS =\).*$:\1 $(OPTLDFLAGS):' \
210 -e 's:^\(CC = \).*$:\1$(OPTCC):' \
211 -e 's:^\(AR = \).*$:\1$(OPTAR):' \
212 Makefile || die "sed failed"
213
214 # Fix docbook2texi command
215 sed -i 's/DOCBOOK2X_TEXI=docbook2x-texi/DOCBOOK2X_TEXI=docbook2texi.pl/' \
216 Documentation/Makefile || die "sed failed"
217 }
218
219 git_emake() {
220 emake ${MY_MAKEOPTS} \
221 DESTDIR="${D}" \
222 OPTCFLAGS="${CFLAGS}" \
223 OPTLDFLAGS="${LDFLAGS}" \
224 OPTCC="$(tc-getCC)" \
225 OPTAR="$(tc-getAR)" \
226 prefix=/usr \
227 htmldir=/usr/share/doc/${PF}/html \
228 "$@"
229 }
230
231 src_configure() {
232 exportmakeopts
233 }
234
235 src_compile() {
236 git_emake || die "emake failed"
237
238 if use emacs ; then
239 elisp-compile contrib/emacs/git{,-blame}.el \
240 || die "emacs modules failed"
241 fi
242
243 if use perl && use cgi ; then
244 git_emake \
245 gitweb/gitweb.cgi \
246 || die "emake gitweb/gitweb.cgi failed"
247 fi
248
249 cd "${S}"/Documentation
250 if [[ "$PV" == "9999" ]] ; then
251 git_emake man \
252 || die "emake man failed"
253 if use doc ; then
254 git_emake info html \
255 || die "emake info html failed"
256 fi
257 else
258 if use doc ; then
259 git_emake info \
260 || die "emake info html failed"
261 fi
262 fi
263 }
264
265 src_install() {
266 git_emake \
267 install || \
268 die "make install failed"
269
270 doman man?/*.[157] Documentation/*.[157]
271
272 dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
273 use doc && dodir /usr/share/doc/${PF}/html
274 for d in / /howto/ /technical/ ; do
275 docinto ${d}
276 dodoc Documentation${d}*.txt
277 use doc && dohtml -p ${d} Documentation${d}*.html
278 done
279 docinto /
280 # Upstream does not ship this pre-built :-(
281 use doc && doinfo Documentation/{git,gitman}.info
282
283 dobashcompletion contrib/completion/git-completion.bash ${PN}
284
285 if use emacs ; then
286 elisp-install ${PN} contrib/emacs/git.{el,elc} || die
287 elisp-install ${PN} contrib/emacs/git-blame.{el,elc} || die
288 #elisp-install ${PN}/compat contrib/emacs/vc-git.{el,elc} || die
289 # don't add automatically to the load-path, so the sitefile
290 # can do a conditional loading
291 touch "${D}${SITELISP}/${PN}/compat/.nosearch"
292 elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die
293 fi
294
295 if use gtk ; then
296 dobin "${S}"/contrib/gitview/gitview
297 dodoc "${S}"/contrib/gitview/gitview.txt
298 fi
299
300 dobin contrib/fast-import/git-p4
301 dodoc contrib/fast-import/git-p4.txt
302 newbin contrib/fast-import/import-tars.perl import-tars
303
304 dodir /usr/share/${PN}/contrib
305 # The following are excluded:
306 # svnimport - use git-svn
307 # p4import - excluded because fast-import has a better one
308 # examples - these are stuff that is not used in Git anymore actually
309 # patches - stuff the Git guys made to go upstream to other places
310 for i in continuous fast-import hg-to-git \
311 hooks remotes2config.sh stats \
312 workdir convert-objects blameview ; do
313 cp -rf \
314 "${S}"/contrib/${i} \
315 "${D}"/usr/share/${PN}/contrib \
316 || die "Failed contrib ${i}"
317 done
318
319 if use perl && use cgi ; then
320 dodir /usr/share/${PN}/gitweb
321 insinto /usr/share/${PN}/gitweb
322 doins "${S}"/gitweb/gitweb.cgi
323 doins "${S}"/gitweb/gitweb.css
324 doins "${S}"/gitweb/git-{favicon,logo}.png
325
326 # Make sure it can run
327 fperms 0755 /usr/share/${PN}/gitweb/gitweb.cgi
328
329 # INSTALL discusses configuration issues, not just installation
330 docinto /
331 newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
332 newdoc "${S}"/gitweb/README README.gitweb
333
334 find "${D}"/usr/lib64/perl5/ \
335 -name .packlist \
336 -exec rm \{\} \;
337 fi
338 if ! use subversion ; then
339 rm -f "${D}"/usr/libexec/git-core/git-svn \
340 "${D}"/usr/share/man/man1/git-svn.1*
341 fi
342
343 if use xinetd ; then
344 insinto /etc/xinetd.d
345 newins "${FILESDIR}"/git-daemon.xinetd git-daemon
346 fi
347
348 newinitd "${FILESDIR}"/git-daemon.initd git-daemon
349 newconfd "${FILESDIR}"/git-daemon.confd git-daemon
350
351 fixlocalpod
352 }
353
354 src_test() {
355 local disabled=""
356 local tests_cvs="t9200-git-cvsexportcommit.sh \
357 t9400-git-cvsserver-server.sh \
358 t9600-cvsimport.sh"
359 local tests_perl="t5502-quickfetch.sh \
360 t5512-ls-remote.sh \
361 t5520-pull.sh"
362
363 # Unzip is used only for the testcase code, not by any normal parts of Git.
364 if ! has_version app-arch/unzip ; then
365 einfo "Disabling tar-tree tests"
366 disabled="${disabled} t5000-tar-tree.sh"
367 fi
368
369 cvs=0
370 use cvs && let cvs=$cvs+1
371 if [[ ${EUID} -eq 0 ]]; then
372 if [[ $cvs -eq 1 ]]; then
373 ewarn "Skipping CVS tests because CVS does not work as root!"
374 ewarn "You should retest with FEATURES=userpriv!"
375 disabled="${disabled} ${tests_cvs}"
376 fi
377 # Bug #225601 - t0004 is not suitable for root perm
378 # Bug #219839 - t1004 is not suitable for root perm
379 disabled="${disabled} t0004-unwritable.sh t1004-read-tree-m-u-wf.sh"
380 else
381 [[ $cvs -gt 0 ]] && \
382 has_version dev-util/cvs && \
383 let cvs=$cvs+1
384 [[ $cvs -gt 1 ]] && \
385 built_with_use dev-util/cvs server && \
386 let cvs=$cvs+1
387 if [[ $cvs -lt 3 ]]; then
388 einfo "Disabling CVS tests (needs dev-util/cvs[USE=server])"
389 disabled="${disabled} ${tests_cvs}"
390 fi
391 fi
392
393 if ! use perl ; then
394 einfo "Disabling tests that need Perl"
395 disabled="${disabled} ${tests_perl}"
396 fi
397
398 # Reset all previously disabled tests
399 cd "${S}/t"
400 for i in *.sh.DISABLED ; do
401 [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
402 done
403 einfo "Disabled tests:"
404 for i in ${disabled} ; do
405 [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
406 done
407 cd "${S}"
408 # Now run the tests
409 einfo "Start test run"
410 git_emake \
411 test || die "tests failed"
412 }
413
414 showpkgdeps() {
415 local pkg=$1
416 shift
417 elog " $(printf "%-17s:" ${pkg}) ${@}"
418 }
419
420 pkg_postinst() {
421 use emacs && elisp-site-regen
422 if use subversion && has_version dev-util/subversion && ! built_with_use --missing false dev-util/subversion perl ; then
423 ewarn "You must build dev-util/subversion with USE=perl"
424 ewarn "to get the full functionality of git-svn!"
425 fi
426 elog "These additional scripts need some dependencies:"
427 echo
428 showpkgdeps git-quiltimport "dev-util/quilt"
429 showpkgdeps git-instaweb \
430 "|| ( www-servers/lighttpd www-servers/apache )"
431 echo
432 }
433
434 pkg_postrm() {
435 use emacs && elisp-site-regen
436 }