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