Gentoo Archives: gentoo-commits

From: "Fernando J. Pereda (ferdy)" <ferdy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/git: ChangeLog git-1.5.3.6.ebuild
Date: Tue, 20 Nov 2007 22:08:03
Message-Id: E1IubG7-00082s-II@stork.gentoo.org
1 ferdy 07/11/20 22:07:55
2
3 Modified: ChangeLog
4 Added: git-1.5.3.6.ebuild
5 Log:
6 New upstream version
7 (Portage version: 2.1.3.19)
8
9 Revision Changes Path
10 1.232 dev-util/git/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/ChangeLog?rev=1.232&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/ChangeLog?rev=1.232&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/ChangeLog?r1=1.231&r2=1.232
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-util/git/ChangeLog,v
19 retrieving revision 1.231
20 retrieving revision 1.232
21 diff -u -r1.231 -r1.232
22 --- ChangeLog 14 Nov 2007 20:25:02 -0000 1.231
23 +++ ChangeLog 20 Nov 2007 22:07:54 -0000 1.232
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.231 2007/11/14 20:25:02 ferdy Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-util/git/ChangeLog,v 1.232 2007/11/20 22:07:54 ferdy Exp $
29 +
30 +*git-1.5.3.6 (20 Nov 2007)
31 +
32 + 20 Nov 2007; Fernando J. Pereda <ferdy@g.o> +git-1.5.3.6.ebuild:
33 + New upstream version
34
35 *git-1.5.3.5 (14 Nov 2007)
36
37
38
39
40 1.1 dev-util/git/git-1.5.3.6.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/git-1.5.3.6.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/git-1.5.3.6.ebuild?rev=1.1&content-type=text/plain
44
45 Index: git-1.5.3.6.ebuild
46 ===================================================================
47 # Copyright 1999-2007 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.5.3.6.ebuild,v 1.1 2007/11/20 22:07:54 ferdy 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 ~x86 ~x86-fbsd"
67 IUSE="curl doc emacs gtk iconv mozsha1 perl ppcsha1 tk webdav"
68
69 DEPEND="
70 !app-misc/git
71 dev-libs/openssl
72 sys-libs/zlib
73 dev-lang/perl
74 tk? ( dev-lang/tk )
75 curl? ( net-misc/curl )
76 webdav? ( dev-libs/expat )
77 emacs? ( virtual/emacs )"
78 RDEPEND="${DEPEND}
79 perl? ( dev-perl/Error )
80 gtk? ( >=dev-python/pygtk-2.8 )"
81
82 SITEFILE=72${PN}-gentoo.el
83 S="${WORKDIR}/${MY_P}"
84
85 # This is needed because for some obscure reasons future calls to make don't
86 # pick up these exports if we export them in src_unpack()
87 exportmakeopts() {
88 local myopts
89
90 if use mozsha1 ; then
91 myopts="${myopts} MOZILLA_SHA1=YesPlease"
92 elif use ppcsha1 ; then
93 myopts="${myopts} PPC_SHA1=YesPlease"
94 fi
95
96 if use curl ; then
97 use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
98 else
99 myopts="${myopts} NO_CURL=YesPlease"
100 use webdav && ewarn "USE=webdav only matters with USE=curl. Ignoring."
101 fi
102
103 myopts="${myopts} WITH_SEND_EMAIL=YesPlease"
104
105 use iconv || myopts="${myopts} NO_ICONV=YesPlease"
106
107 export MY_MAKEOPTS=${myopts}
108 }
109
110 showpkgdeps() {
111 local pkg=$1
112 shift
113 elog " $(printf "%-17s:" ${pkg}) ${@}"
114 }
115
116 src_unpack() {
117 unpack ${A}
118 cd "${S}"
119
120 epatch "${FILESDIR}"/${PN}-1.5.3-symlinks.patch
121
122 sed -i \
123 -e "s:^\(CFLAGS = \).*$:\1${CFLAGS} -Wall:" \
124 -e "s:^\(LDFLAGS = \).*$:\1${LDFLAGS}:" \
125 -e "s:^\(CC = \).*$:\1$(tc-getCC):" \
126 -e "s:^\(AR = \).*$:\1$(tc-getAR):" \
127 -e 's:ln :ln -s :g' \
128 Makefile || die "sed failed"
129
130 exportmakeopts
131 }
132
133 src_compile() {
134 emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr || die "make failed"
135
136 if use emacs ; then
137 elisp-compile contrib/emacs/{,vc-}git.el || die "emacs modules failed"
138 fi
139 }
140
141 src_install() {
142 emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr install || \
143 die "make install failed"
144
145 use tk || rm "${D}"/usr/bin/git{k,-gui}
146
147 doman "${WORKDIR}"/man?/*
148
149 dodoc README COPYING Documentation/SubmittingPatches
150 if use doc ; then
151 dodoc Documentation/technical/*
152 dodir /usr/share/doc/${PF}/html
153 cp -r "${WORKDIR}"/{*.html,howto} "${D}"/usr/share/doc/${PF}/html
154 fi
155
156 dobashcompletion contrib/completion/git-completion.bash ${PN}
157
158 if use emacs ; then
159 elisp-install ${PN} contrib/emacs/{,vc-}git.el* || \
160 die "elisp-install failed"
161 elisp-site-file-install "${FILESDIR}"/${SITEFILE}
162 # don't add automatically to the load-path, so the sitefile
163 # can do a conditional loading
164 touch "${D}"/"${SITELISP}"/${PN}/.nosearch
165 fi
166
167 if use gtk ; then
168 dobin "${S}"/contrib/gitview/gitview
169 use doc && dodoc "${S}"/contrib/gitview/gitview.txt
170 fi
171
172 dodir /usr/share/${PN}/contrib
173 cp -rf \
174 "${S}"/contrib/{vim,stats,workdir,hg-to-git,fast-import,hooks} \
175 "${D}"/usr/share/${PN}/contrib
176
177 insinto /etc/xinetd.d
178 newins "${FILESDIR}"/git-daemon.xinetd git-daemon
179
180 newinitd "${FILESDIR}"/git-daemon.initd git-daemon
181 newconfd "${FILESDIR}"/git-daemon.confd git-daemon
182
183 fixlocalpod
184 }
185
186 src_test() {
187 cd "${S}"
188 has_version dev-util/subversion || \
189 MY_MAKEOPTS="${MY_MAKEOPTS} NO_SVN_TESTS=YesPlease"
190 has_version app-arch/unzip || \
191 rm "${S}"/t/t5000-tar-tree.sh
192 # Stupid CVS won't let some people commit as root
193 rm "${S}"/t/t9200-git-cvsexportcommit.sh
194 emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr test || die "tests failed"
195 }
196
197 pkg_postinst() {
198 if use emacs ; then
199 elisp-site-regen
200 elog "GNU Emacs has built-in Git support in versions greater 22.1."
201 elog "You can disable the emacs USE flag for dev-util/git"
202 elog "if you are using such a version."
203 fi
204 elog "These additional scripts need some dependencies:"
205 echo
206 showpkgdeps git-archimport "dev-util/tla"
207 showpkgdeps git-cvsimport ">=dev-util/cvsps-2.1"
208 showpkgdeps git-svnimport "dev-util/subversion(USE=perl)"
209 showpkgdeps git-svn \
210 "dev-util/subversion(USE=perl)" \
211 "dev-perl/libwww-perl" \
212 "dev-perl/TermReadKey"
213 showpkgdeps git-quiltimport "dev-util/quilt"
214 showpkgdeps git-cvsserver "dev-perl/DBI" "dev-perl/DBD-SQLite"
215 showpkgdeps git-instaweb \
216 "|| ( www-servers/lighttpd www-servers/apache(SLOT=2) )"
217 showpkgdeps git-send-email "USE=perl"
218 showpkgdeps git-remote "USE=perl"
219 echo
220 }
221
222 pkg_postrm() {
223 use emacs && elisp-site-regen
224 }
225
226
227
228 --
229 gentoo-commits@g.o mailing list