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