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.3.7-r1.ebuild
Date: Thu, 06 Dec 2007 02:05:10
Message-Id: E1J066p-0006fY-MF@stork.gentoo.org
1 robbat2 07/12/06 02:05:03
2
3 Modified: ChangeLog
4 Added: git-1.5.3.7-r1.ebuild
5 Log:
6 Install the gitweb stuff, as it's used by instaweb, and is also independantly useful, but does not lend itself to webapp-config very well.
7 (Portage version: 2.1.4_rc4)
8
9 Revision Changes Path
10 1.235 dev-util/git/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/ChangeLog?rev=1.235&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/ChangeLog?rev=1.235&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/ChangeLog?r1=1.234&r2=1.235
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-util/git/ChangeLog,v
19 retrieving revision 1.234
20 retrieving revision 1.235
21 diff -p -w -b -B -u -u -r1.234 -r1.235
22 --- ChangeLog 5 Dec 2007 01:58:22 -0000 1.234
23 +++ ChangeLog 6 Dec 2007 02:05:03 -0000 1.235
24 @@ -1,6 +1,12 @@
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.234 2007/12/05 01:58:22 robbat2 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-util/git/ChangeLog,v 1.235 2007/12/06 02:05:03 robbat2 Exp $
29 +
30 +*git-1.5.3.7-r1 (06 Dec 2007)
31 +
32 + 06 Dec 2007; Robin H. Johnson <robbat2@g.o> +git-1.5.3.7-r1.ebuild:
33 + Install the gitweb stuff, as it's used by instaweb, and is also
34 + independantly useful, but does not lend itself to webapp-config very well.
35
36 *git-1.5.3.7 (05 Dec 2007)
37
38
39
40
41 1.1 dev-util/git/git-1.5.3.7-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/git-1.5.3.7-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/git-1.5.3.7-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: git-1.5.3.7-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2007 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.3.7-r1.ebuild,v 1.1 2007/12/06 02:05:03 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 ~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
110 export MY_MAKEOPTS=${myopts}
111 }
112
113 showpkgdeps() {
114 local pkg=$1
115 shift
116 elog " $(printf "%-17s:" ${pkg}) ${@}"
117 }
118
119 src_unpack() {
120 unpack ${MY_P}.tar.bz2
121 cd "${S}"
122 unpack ${PN}-manpages-${DOC_VER}.tar.bz2
123 use doc && cd "${S}"/Documentation && unpack ${PN}-htmldocs-${DOC_VER}.tar.bz2
124 cd "${S}"
125
126 epatch "${FILESDIR}"/${PN}-1.5.3-symlinks.patch
127
128 sed -i \
129 -e "s:^\(CFLAGS = \).*$:\1${CFLAGS} -Wall:" \
130 -e "s:^\(LDFLAGS = \).*$:\1${LDFLAGS}:" \
131 -e "s:^\(CC = \).*$:\1$(tc-getCC):" \
132 -e "s:^\(AR = \).*$:\1$(tc-getAR):" \
133 -e 's:ln :ln -s :g' \
134 Makefile || die "sed failed"
135
136 exportmakeopts
137 }
138
139 src_compile() {
140 emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr || die "make failed"
141
142 if use emacs ; then
143 elisp-compile contrib/emacs/{,vc-}git.el || die "emacs modules failed"
144 fi
145 if use cgi ; then
146 emake ${MY_MAKEOPTS} \
147 DESTDIR="${D}" \
148 prefix=/usr \
149 gitweb/gitweb.cgi || die "make gitweb/gitweb.cgi failed"
150 fi
151 }
152
153 src_install() {
154 emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr install || \
155 die "make install failed"
156
157 use tk || rm "${D}"/usr/bin/git{k,-gui}
158
159 doman man?/*
160
161 dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
162 use doc && dodir /usr/share/doc/${PF}/html
163 for d in / /howto/ /technical/ ; do
164 einfo "Doing Documentation${d}"
165 docinto ${d}
166 dodoc Documentation${d}*.txt
167 use doc && dohtml -p ${d} Documentation${d}*.html
168 done
169 docinto /
170
171 dobashcompletion contrib/completion/git-completion.bash ${PN}
172
173 if use emacs ; then
174 elisp-install ${PN} contrib/emacs/{,vc-}git.el* || \
175 die "elisp-install failed"
176 elisp-site-file-install "${FILESDIR}"/${SITEFILE}
177 # don't add automatically to the load-path, so the sitefile
178 # can do a conditional loading
179 touch "${D}"/"${SITELISP}"/${PN}/.nosearch
180 fi
181
182 if use gtk ; then
183 dobin "${S}"/contrib/gitview/gitview
184 dodoc "${S}"/contrib/gitview/gitview.txt
185 newbin "${S}"/contrib/blameview/blameview.perl blameview
186 newdoc "${S}"/contrib/blameview/README README.blameview
187 fi
188
189 dodir /usr/share/${PN}/contrib
190 for i in continuous fast-import hg-to-git \
191 hooks remotes2config.sh vim stats \
192 workdir ; do
193 cp -rf \
194 "${S}"/contrib/${i} \
195 "${D}"/usr/share/${PN}/contrib \
196 || die "Failed contrib ${i}"
197 done
198
199 if use cgi ; then
200 dodir /usr/share/${PN}/gitweb
201 insinto /usr/share/${PN}/gitweb
202 doins "${S}"/gitweb/gitweb.{cgi,css}
203 doins "${S}"/gitweb/git-{favicon,logo}.png
204 docinto /
205 # INSTALL discusses configuration issues, not just installation
206 dodoc "${S}"/gitweb/INSTALL INSTALL.gitweb
207 newdoc "${S}"/gitweb/README README.gitweb
208 fi
209
210 insinto /etc/xinetd.d
211 newins "${FILESDIR}"/git-daemon.xinetd git-daemon
212
213 newinitd "${FILESDIR}"/git-daemon.initd git-daemon
214 newconfd "${FILESDIR}"/git-daemon.confd git-daemon
215
216 fixlocalpod
217 }
218
219 src_test() {
220 cd "${S}"
221 has_version dev-util/subversion || \
222 MY_MAKEOPTS="${MY_MAKEOPTS} NO_SVN_TESTS=YesPlease"
223 has_version app-arch/unzip || \
224 rm "${S}"/t/t5000-tar-tree.sh
225 # Stupid CVS won't let some people commit as root
226 if has userpriv "${FEATURES}"; then
227 einfo "Enabling CVS tests as we have FEATURES=userpriv"
228 else
229 ewarn "Skipping CVS tests because CVS does not work as root!"
230 ewarn "You should retest with FEATURES=userpriv!"
231 for i in t9200-git-cvsexportcommit.sh t9600-cvsimport.sh ; do
232 rm "${S}"/t/${i} || die "Failed to remove ${i}"
233 done
234 fi
235 emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr test || die "tests failed"
236 }
237
238 pkg_postinst() {
239 if use emacs ; then
240 elisp-site-regen
241 elog "GNU Emacs has built-in Git support in versions greater 22.1."
242 elog "You can disable the emacs USE flag for dev-util/git"
243 elog "if you are using such a version."
244 fi
245 elog "These additional scripts need some dependencies:"
246 elog "(These are also needed for FEATURES=test)"
247 echo
248 showpkgdeps git-archimport "dev-util/tla"
249 showpkgdeps git-cvsimport ">=dev-util/cvsps-2.1"
250 showpkgdeps git-svnimport "dev-util/subversion(USE=perl)"
251 showpkgdeps git-svn \
252 "dev-util/subversion(USE=perl)" \
253 "dev-perl/libwww-perl" \
254 "dev-perl/TermReadKey"
255 showpkgdeps git-quiltimport "dev-util/quilt"
256 showpkgdeps git-cvsserver "dev-perl/DBI" "dev-perl/DBD-SQLite"
257 showpkgdeps git-instaweb \
258 "|| ( www-servers/lighttpd www-servers/apache(SLOT=2) )"
259 showpkgdeps git-send-email "USE=perl"
260 showpkgdeps git-remote "USE=perl"
261 echo
262 }
263
264 pkg_postrm() {
265 use emacs && elisp-site-regen
266 }
267
268
269
270 --
271 gentoo-commits@g.o mailing list