Gentoo Archives: gentoo-commits

From: "Markus Ullmann (jokey)" <jokey@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/git: ChangeLog git-1.5.4_rc2.ebuild
Date: Tue, 01 Jan 2008 19:51:59
Message-Id: E1J9n9U-0006dM-Tg@stork.gentoo.org
1 jokey 08/01/01 19:51:52
2
3 Modified: ChangeLog
4 Added: git-1.5.4_rc2.ebuild
5 Log:
6 Version bump, granted by robbat2 as test-suite passes
7 (Portage version: 2.1.4_rc14)
8
9 Revision Changes Path
10 1.247 dev-util/git/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/ChangeLog?rev=1.247&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/ChangeLog?rev=1.247&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/ChangeLog?r1=1.246&r2=1.247
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-util/git/ChangeLog,v
19 retrieving revision 1.246
20 retrieving revision 1.247
21 diff -u -r1.246 -r1.247
22 --- ChangeLog 29 Dec 2007 10:41:59 -0000 1.246
23 +++ ChangeLog 1 Jan 2008 19:51:52 -0000 1.247
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-util/git
26 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-util/git/ChangeLog,v 1.246 2007/12/29 10:41:59 welp Exp $
28 +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-util/git/ChangeLog,v 1.247 2008/01/01 19:51:52 jokey Exp $
30 +
31 +*git-1.5.4_rc2 (01 Jan 2008)
32 +
33 + 01 Jan 2008; Markus Ullmann <jokey@g.o> +git-1.5.4_rc2.ebuild:
34 + Version bump, granted by robbat2 as test-suite passes
35
36 29 Dec 2007; <welp@g.o> git-1.5.4_rc1.ebuild:
37 Keyworded ~sparc-fbsd; bug 203655
38
39
40
41 1.1 dev-util/git/git-1.5.4_rc2.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/git-1.5.4_rc2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/git-1.5.4_rc2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: git-1.5.4_rc2.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.4_rc2.ebuild,v 1.1 2008/01/01 19:51:52 jokey 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 ~x86 ~x86-fbsd"
68 IUSE="curl cgi doc emacs gtk iconv mozsha1 perl ppcsha1 tk webdav"
69
70 DEPEND="
71 !app-misc/git
72 dev-libs/openssl
73 sys-libs/zlib
74 dev-lang/perl
75 app-arch/cpio
76 tk? ( dev-lang/tk )
77 curl? ( net-misc/curl )
78 webdav? ( dev-libs/expat )
79 emacs? ( virtual/emacs )"
80 RDEPEND="${DEPEND}
81 cgi? ( virtual/perl-CGI )
82 perl? ( dev-perl/Error )
83 gtk? ( >=dev-python/pygtk-2.8 )"
84
85 SITEFILE=72${PN}-gentoo.el
86 S="${WORKDIR}/${MY_P}"
87
88 # This is needed because for some obscure reasons future calls to make don't
89 # pick up these exports if we export them in src_unpack()
90 exportmakeopts() {
91 local myopts
92
93 if use mozsha1 ; then
94 myopts="${myopts} MOZILLA_SHA1=YesPlease"
95 elif use ppcsha1 ; then
96 myopts="${myopts} PPC_SHA1=YesPlease"
97 fi
98
99 if use curl ; then
100 use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
101 else
102 myopts="${myopts} NO_CURL=YesPlease"
103 use webdav && ewarn "USE=webdav only matters with USE=curl. Ignoring."
104 fi
105
106 myopts="${myopts} WITH_SEND_EMAIL=YesPlease"
107
108 use iconv || myopts="${myopts} NO_ICONV=YesPlease"
109 use tk || myopts="${myopts} NO_TCLTK=YesPlease"
110
111 export MY_MAKEOPTS=${myopts}
112 }
113
114 showpkgdeps() {
115 local pkg=$1
116 shift
117 elog " $(printf "%-17s:" ${pkg}) ${@}"
118 }
119
120 src_unpack() {
121 unpack ${MY_P}.tar.bz2
122 cd "${S}"
123 unpack ${PN}-manpages-${DOC_VER}.tar.bz2
124 use doc && cd "${S}"/Documentation && unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2
125 cd "${S}"
126
127 epatch "${FILESDIR}"/${PN}-1.5.3-symlinks.patch
128
129 sed -i \
130 -e "s:^\(CFLAGS = \).*$:\1${CFLAGS} -Wall:" \
131 -e "s:^\(LDFLAGS = \).*$:\1${LDFLAGS}:" \
132 -e "s:^\(CC = \).*$:\1$(tc-getCC):" \
133 -e "s:^\(AR = \).*$:\1$(tc-getAR):" \
134 -e 's:ln :ln -s :g' \
135 Makefile || die "sed failed"
136
137 exportmakeopts
138 }
139
140 src_compile() {
141 emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr || die "make failed"
142
143 if use emacs ; then
144 elisp-compile contrib/emacs/{,vc-}git.el || die "emacs modules failed"
145 fi
146 if use cgi ; then
147 emake ${MY_MAKEOPTS} \
148 DESTDIR="${D}" \
149 prefix=/usr \
150 gitweb/gitweb.cgi || die "make gitweb/gitweb.cgi failed"
151 fi
152 }
153
154 src_install() {
155 emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr install || \
156 die "make install failed"
157
158 doman man?/*
159
160 dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
161 use doc && dodir /usr/share/doc/${PF}/html
162 for d in / /howto/ /technical/ ; do
163 einfo "Doing Documentation${d}"
164 docinto ${d}
165 dodoc Documentation${d}*.txt
166 use doc && dohtml -p ${d} Documentation${d}*.html
167 done
168 docinto /
169
170 dobashcompletion contrib/completion/git-completion.bash ${PN}
171
172 if use emacs ; then
173 elisp-install ${PN} contrib/emacs/{,vc-}git.el* || \
174 die "elisp-install failed"
175 elisp-site-file-install "${FILESDIR}"/${SITEFILE}
176 # don't add automatically to the load-path, so the sitefile
177 # can do a conditional loading
178 touch "${D}"/"${SITELISP}"/${PN}/.nosearch
179 fi
180
181 if use gtk ; then
182 dobin "${S}"/contrib/gitview/gitview
183 dodoc "${S}"/contrib/gitview/gitview.txt
184 newbin "${S}"/contrib/blameview/blameview.perl blameview
185 newdoc "${S}"/contrib/blameview/README README.blameview
186 fi
187
188 dobin contrib/fast-import/git-p4
189 dodoc contrib/fast-import/git-p4.txt
190 newbin contrib/fast-import/import-tars.perl import-tars
191
192 dodir /usr/share/${PN}/contrib
193 # The following are excluded:
194 # p4import - excluded because fast-import has a better one
195 # examples - these are stuff that is not used in Git anymore actually
196 # patches - stuff the Git guys made to go upstream to other places
197 for i in continuous fast-import hg-to-git \
198 hooks remotes2config.sh vim stats \
199 workdir convert-objects ; do
200 cp -rf \
201 "${S}"/contrib/${i} \
202 "${D}"/usr/share/${PN}/contrib \
203 || die "Failed contrib ${i}"
204 done
205
206 if use cgi ; then
207 dodir /usr/share/${PN}/gitweb
208 insinto /usr/share/${PN}/gitweb
209 doins "${S}"/gitweb/gitweb.{cgi,css}
210 doins "${S}"/gitweb/git-{favicon,logo}.png
211 docinto /
212 # INSTALL discusses configuration issues, not just installation
213 newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
214 newdoc "${S}"/gitweb/README README.gitweb
215 fi
216
217 insinto /etc/xinetd.d
218 newins "${FILESDIR}"/git-daemon.xinetd git-daemon
219
220 newinitd "${FILESDIR}"/git-daemon.initd git-daemon
221 newconfd "${FILESDIR}"/git-daemon.confd git-daemon
222
223 fixlocalpod
224 }
225
226 src_test() {
227 has_version dev-util/subversion || \
228 MY_MAKEOPTS="${MY_MAKEOPTS} NO_SVN_TESTS=YesPlease"
229 has_version app-arch/unzip || \
230 rm "${S}"/t/t5000-tar-tree.sh
231 # Stupid CVS won't let some people commit as root
232 if has userpriv "${FEATURES}"; then
233 einfo "Enabling CVS tests as we have FEATURES=userpriv"
234 else
235 ewarn "Skipping CVS tests because CVS does not work as root!"
236 ewarn "You should retest with FEATURES=userpriv!"
237 for i in t9200-git-cvsexportcommit.sh t9600-cvsimport.sh ; do
238 rm "${S}"/t/${i} || die "Failed to remove ${i}"
239 done
240 fi
241 emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr test || die "tests failed"
242 }
243
244 pkg_postinst() {
245 if use emacs ; then
246 elisp-site-regen
247 elog "GNU Emacs has built-in Git support in versions greater 22.1."
248 elog "You can disable the emacs USE flag for dev-util/git"
249 elog "if you are using such a version."
250 fi
251 elog "These additional scripts need some dependencies:"
252 elog "(These are also needed for FEATURES=test)"
253 echo
254 showpkgdeps git-archimport "dev-util/tla"
255 showpkgdeps git-cvsimport ">=dev-util/cvsps-2.1"
256 showpkgdeps git-svnimport "dev-util/subversion(USE=perl)"
257 showpkgdeps git-svn \
258 "dev-util/subversion(USE=perl)" \
259 "dev-perl/libwww-perl" \
260 "dev-perl/TermReadKey"
261 showpkgdeps git-quiltimport "dev-util/quilt"
262 showpkgdeps git-cvsserver "dev-perl/DBI" "dev-perl/DBD-SQLite"
263 showpkgdeps git-instaweb \
264 "|| ( www-servers/lighttpd www-servers/apache(SLOT=2) )"
265 showpkgdeps git-send-email "USE=perl"
266 showpkgdeps git-remote "USE=perl"
267 echo
268 }
269
270 pkg_postrm() {
271 use emacs && elisp-site-regen
272 }
273
274
275
276 --
277 gentoo-commits@g.o mailing list