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.4-r1.ebuild
Date: Fri, 19 Oct 2007 09:44:16
Message-Id: E1IioEc-0006Kl-TE@stork.gentoo.org
1 ferdy 07/10/19 09:33:38
2
3 Modified: ChangeLog
4 Added: git-1.5.3.4-r1.ebuild
5 Log:
6 Install vim and some stuff from contrib (related: bug #194940)
7 (Portage version: 2.1.3.9)
8
9 Revision Changes Path
10 1.229 dev-util/git/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/ChangeLog?rev=1.229&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/ChangeLog?rev=1.229&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/ChangeLog?r1=1.228&r2=1.229
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-util/git/ChangeLog,v
19 retrieving revision 1.228
20 retrieving revision 1.229
21 diff -u -r1.228 -r1.229
22 --- ChangeLog 5 Oct 2007 07:36:58 -0000 1.228
23 +++ ChangeLog 19 Oct 2007 09:33:38 -0000 1.229
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.228 2007/10/05 07:36:58 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-util/git/ChangeLog,v 1.229 2007/10/19 09:33:38 ferdy Exp $
29 +
30 +*git-1.5.3.4-r1 (19 Oct 2007)
31 +
32 + 19 Oct 2007; Fernando J. Pereda <ferdy@g.o> +git-1.5.3.4-r1.ebuild:
33 + Install vim and some stuff from contrib (related: bug #194940)
34
35 05 Oct 2007; Mike Frysinger <vapier@g.o> git-1.5.3.4.ebuild:
36 Fix incorrect binding of iconv<->uclibc.
37
38
39
40 1.1 dev-util/git/git-1.5.3.4-r1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/git-1.5.3.4-r1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/git-1.5.3.4-r1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: git-1.5.3.4-r1.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.4-r1.ebuild,v 1.1 2007/10/19 09:33:38 ferdy Exp $
50
51 inherit toolchain-funcs eutils elisp-common perl-module bash-completion vim-plugin
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 vim 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 vim ; then
168 S="${S}"/contrib/vim vim-plugin_src_install
169 fi
170
171 if use gtk ; then
172 dobin "${S}"/contrib/gitview/gitview
173 use doc && dodoc "${S}"/contrib/gitview/gitview.txt
174 fi
175
176 dodir /usr/share/${PN}/contrib
177 cp -rf \
178 "${S}"/contrib/{stats,workdir,hg-to-git,fast-import,hooks} \
179 "${D}"/usr/share/${PN}/contrib
180
181 insinto /etc/xinetd.d
182 newins "${FILESDIR}"/git-daemon.xinetd git-daemon
183
184 newinitd "${FILESDIR}"/git-daemon.initd git-daemon
185 newconfd "${FILESDIR}"/git-daemon.confd git-daemon
186
187 fixlocalpod
188 }
189
190 src_test() {
191 cd "${S}"
192 has_version dev-util/subversion || \
193 MY_MAKEOPTS="${MY_MAKEOPTS} NO_SVN_TESTS=YesPlease"
194 has_version app-arch/unzip || \
195 rm "${S}"/t/t5000-tar-tree.sh
196 # Stupid CVS won't let some people commit as root
197 rm "${S}"/t/t9200-git-cvsexportcommit.sh
198 emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr test || die "tests failed"
199 }
200
201 pkg_postinst() {
202 if use emacs ; then
203 elisp-site-regen
204 elog "GNU Emacs has built-in Git support in versions greater 22.1."
205 elog "You can disable the emacs USE flag for dev-util/git"
206 elog "if you are using such a version."
207 fi
208 elog "These additional scripts need some dependencies:"
209 echo
210 showpkgdeps git-archimport "dev-util/tla"
211 showpkgdeps git-cvsimport ">=dev-util/cvsps-2.1"
212 showpkgdeps git-svnimport "dev-util/subversion(USE=perl)"
213 showpkgdeps git-svn \
214 "dev-util/subversion(USE=perl)" \
215 "dev-perl/libwww-perl" \
216 "dev-perl/TermReadKey"
217 showpkgdeps git-quiltimport "dev-util/quilt"
218 showpkgdeps git-cvsserver "dev-perl/DBI" "dev-perl/DBD-SQLite"
219 showpkgdeps git-instaweb \
220 "|| ( www-servers/lighttpd www-servers/apache(SLOT=2) )"
221 showpkgdeps git-send-email "USE=perl"
222 showpkgdeps git-remote "USE=perl"
223 echo
224 }
225
226 pkg_postrm() {
227 use emacs && elisp-site-regen
228 }
229
230
231
232 --
233 gentoo-commits@g.o mailing list