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: git-1.6.4.2.ebuild ChangeLog
Date: Sun, 30 Aug 2009 03:35:43
Message-Id: E1Mhg1c-0002yZ-Ol@stork.gentoo.org
1 robbat2 09/08/30 08:44:36
2
3 Modified: ChangeLog
4 Added: git-1.6.4.2.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc40/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.355 dev-util/git/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/ChangeLog?rev=1.355&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/ChangeLog?rev=1.355&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/ChangeLog?r1=1.354&r2=1.355
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-util/git/ChangeLog,v
19 retrieving revision 1.354
20 retrieving revision 1.355
21 diff -p -w -b -B -u -u -r1.354 -r1.355
22 --- ChangeLog 27 Aug 2009 00:03:02 -0000 1.354
23 +++ ChangeLog 30 Aug 2009 08:44:36 -0000 1.355
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.354 2009/08/27 00:03:02 robbat2 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-util/git/ChangeLog,v 1.355 2009/08/30 08:44:36 robbat2 Exp $
29 +
30 +*git-1.6.4.2 (30 Aug 2009)
31 +
32 + 30 Aug 2009; Robin H. Johnson <robbat2@g.o> +git-1.6.4.2.ebuild:
33 + Version bump.
34
35 *git-1.6.4.1 (27 Aug 2009)
36
37
38
39
40 1.1 dev-util/git/git-1.6.4.2.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/git-1.6.4.2.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/git-1.6.4.2.ebuild?rev=1.1&content-type=text/plain
44
45 Index: git-1.6.4.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.4.2.ebuild,v 1.1 2009/08/30 08:44:36 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 ~x86 ~sparc-fbsd ~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 dev-python/gtksourceview-python )"
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 # GetOpt-Long v2.38 is strict
182 # Merged in 1.6.3 final 2009/05/07
183 #epatch "${FILESDIR}"/20090505-git-1.6.2.5-getopt-fixes.patch
184
185 sed -i \
186 -e 's:^\(CFLAGS =\).*$:\1 $(OPTCFLAGS) -Wall:' \
187 -e 's:^\(LDFLAGS =\).*$:\1 $(OPTLDFLAGS):' \
188 -e 's:^\(CC = \).*$:\1$(OPTCC):' \
189 -e 's:^\(AR = \).*$:\1$(OPTAR):' \
190 Makefile || die "sed failed"
191
192 # Fix docbook2texi command
193 sed -i 's/DOCBOOK2X_TEXI=docbook2x-texi/DOCBOOK2X_TEXI=docbook2texi.pl/' \
194 Documentation/Makefile || die "sed failed"
195 }
196
197 git_emake() {
198 emake ${MY_MAKEOPTS} \
199 DESTDIR="${D}" \
200 OPTCFLAGS="${CFLAGS}" \
201 OPTLDFLAGS="${LDFLAGS}" \
202 OPTCC="$(tc-getCC)" \
203 OPTAR="$(tc-getAR)" \
204 prefix=/usr \
205 htmldir=/usr/share/doc/${PF}/html \
206 "$@"
207 }
208
209 src_configure() {
210 exportmakeopts
211 }
212
213 src_compile() {
214 git_emake || die "emake failed"
215
216 if use emacs ; then
217 elisp-compile contrib/emacs/git{,-blame}.el \
218 || die "emacs modules failed"
219 fi
220
221 if use perl && use cgi ; then
222 git_emake \
223 gitweb/gitweb.cgi \
224 || die "emake gitweb/gitweb.cgi failed"
225 fi
226
227 if [[ "$PV" == "9999" ]] && use doc; then
228 cd Documentation
229 git_emake man info html \
230 || die "emake man html info failed"
231 fi
232 }
233
234 src_install() {
235 git_emake \
236 install || \
237 die "make install failed"
238
239 doman man?/*.[157] Documentation/*.[157]
240
241 dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
242 use doc && dodir /usr/share/doc/${PF}/html
243 for d in / /howto/ /technical/ ; do
244 docinto ${d}
245 dodoc Documentation${d}*.txt
246 use doc && dohtml -p ${d} Documentation${d}*.html
247 done
248 docinto /
249
250 dobashcompletion contrib/completion/git-completion.bash ${PN}
251
252 if use emacs ; then
253 elisp-install ${PN} contrib/emacs/git.{el,elc} || die
254 elisp-install ${PN} contrib/emacs/git-blame.{el,elc} || die
255 #elisp-install ${PN}/compat contrib/emacs/vc-git.{el,elc} || die
256 # don't add automatically to the load-path, so the sitefile
257 # can do a conditional loading
258 touch "${D}${SITELISP}/${PN}/compat/.nosearch"
259 elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die
260 fi
261
262 if use gtk ; then
263 dobin "${S}"/contrib/gitview/gitview
264 dodoc "${S}"/contrib/gitview/gitview.txt
265 fi
266
267 dobin contrib/fast-import/git-p4
268 dodoc contrib/fast-import/git-p4.txt
269 newbin contrib/fast-import/import-tars.perl import-tars
270
271 dodir /usr/share/${PN}/contrib
272 # The following are excluded:
273 # svnimport - use git-svn
274 # p4import - excluded because fast-import has a better one
275 # examples - these are stuff that is not used in Git anymore actually
276 # patches - stuff the Git guys made to go upstream to other places
277 for i in continuous fast-import hg-to-git \
278 hooks remotes2config.sh stats \
279 workdir convert-objects blameview ; do
280 cp -rf \
281 "${S}"/contrib/${i} \
282 "${D}"/usr/share/${PN}/contrib \
283 || die "Failed contrib ${i}"
284 done
285
286 if use perl && use cgi ; then
287 dodir /usr/share/${PN}/gitweb
288 insinto /usr/share/${PN}/gitweb
289 doins "${S}"/gitweb/gitweb.cgi
290 doins "${S}"/gitweb/gitweb.css
291 doins "${S}"/gitweb/git-{favicon,logo}.png
292
293 # Make sure it can run
294 fperms 0755 /usr/share/${PN}/gitweb/gitweb.cgi
295
296 # INSTALL discusses configuration issues, not just installation
297 docinto /
298 newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
299 newdoc "${S}"/gitweb/README README.gitweb
300
301 find "${D}"/usr/lib64/perl5/ \
302 -name .packlist \
303 -exec rm \{\} \;
304 fi
305 if ! use subversion ; then
306 rm -f "${D}"/usr/libexec/git-core/git-svn \
307 "${D}"/usr/share/man/man1/git-svn.1*
308 fi
309
310 if use xinetd ; then
311 insinto /etc/xinetd.d
312 newins "${FILESDIR}"/git-daemon.xinetd git-daemon
313 fi
314
315 newinitd "${FILESDIR}"/git-daemon.initd git-daemon
316 newconfd "${FILESDIR}"/git-daemon.confd git-daemon
317
318 fixlocalpod
319 }
320
321 src_test() {
322 local disabled=""
323 local tests_cvs="t9200-git-cvsexportcommit.sh \
324 t9400-git-cvsserver-server.sh \
325 t9600-cvsimport.sh"
326 local tests_perl="t5502-quickfetch.sh \
327 t5512-ls-remote.sh \
328 t5520-pull.sh"
329
330 # Unzip is used only for the testcase code, not by any normal parts of Git.
331 if ! has_version app-arch/unzip ; then
332 einfo "Disabling tar-tree tests"
333 disabled="${disabled} t5000-tar-tree.sh"
334 fi
335
336 cvs=0
337 use cvs && let cvs=$cvs+1
338 if ! has userpriv "${FEATURES}"; then
339 if [[ $cvs -eq 1 ]]; then
340 ewarn "Skipping CVS tests because CVS does not work as root!"
341 ewarn "You should retest with FEATURES=userpriv!"
342 disabled="${disabled} ${tests_cvs}"
343 fi
344 # Bug #225601 - t0004 is not suitable for root perm
345 # Bug #219839 - t1004 is not suitable for root perm
346 disabled="${disabled} t0004-unwritable.sh t1004-read-tree-m-u-wf.sh"
347 else
348 [[ $cvs -gt 0 ]] && \
349 has_version dev-util/cvs && \
350 let cvs=$cvs+1
351 [[ $cvs -gt 0 ]] && \
352 built_with_use dev-util/cvs server && \
353 let cvs=$cvs+1
354 if [[ $cvs -lt 3 ]]; then
355 einfo "Disabling CVS tests (needs dev-util/cvs[USE=server])"
356 disabled="${disabled} ${tests_cvs}"
357 fi
358 fi
359
360 if ! use perl ; then
361 einfo "Disabling tests that need Perl"
362 disabled="${disabled} ${tests_perl}"
363 fi
364
365 # Reset all previously disabled tests
366 cd "${S}/t"
367 for i in *.sh.DISABLED ; do
368 [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
369 done
370 einfo "Disabled tests:"
371 for i in ${disabled} ; do
372 [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
373 done
374 cd "${S}"
375 # Now run the tests
376 einfo "Start test run"
377 git_emake \
378 test || die "tests failed"
379 }
380
381 showpkgdeps() {
382 local pkg=$1
383 shift
384 elog " $(printf "%-17s:" ${pkg}) ${@}"
385 }
386
387 pkg_postinst() {
388 use emacs && elisp-site-regen
389 if use subversion && has_version dev-util/subversion && ! built_with_use --missing false dev-util/subversion perl ; then
390 ewarn "You must build dev-util/subversion with USE=perl"
391 ewarn "to get the full functionality of git-svn!"
392 fi
393 elog "These additional scripts need some dependencies:"
394 echo
395 showpkgdeps git-quiltimport "dev-util/quilt"
396 showpkgdeps git-instaweb \
397 "|| ( www-servers/lighttpd www-servers/apache )"
398 echo
399 }
400
401 pkg_postrm() {
402 use emacs && elisp-site-regen
403 }