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