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