Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/git/
Date: Mon, 27 Mar 2017 06:28:05
Message-Id: 1490596074.517d206c9a95676de1c36522edd697951b1bcbb7.polynomial-c@gentoo
1 commit: 517d206c9a95676de1c36522edd697951b1bcbb7
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 27 06:27:54 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 27 06:27:54 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=517d206c
7
8 dev-vcs/git: Removed old.
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 dev-vcs/git/Manifest | 3 -
13 dev-vcs/git/git-2.12.0.ebuild | 676 ------------------------------------------
14 2 files changed, 679 deletions(-)
15
16 diff --git a/dev-vcs/git/Manifest b/dev-vcs/git/Manifest
17 index 04cb8eaa33a..dd089c3bb5c 100644
18 --- a/dev-vcs/git/Manifest
19 +++ b/dev-vcs/git/Manifest
20 @@ -1,15 +1,12 @@
21 DIST git-2.10.2.tar.xz 4106108 SHA256 94802903dd707d85ca3b9a2be35e936a54ce86375f52c6a789efe7ce7e238671 SHA512 0ab09de481dbb31c3304382afaa5d3fc9f861115c9954c65b11a8a1c34b939118c7ed3ff60ac329145888596388e3e4d2b2fb677fe109d33a57206d531b5ee6a WHIRLPOOL 808404fa13f908d149028f64aaf5b73400448fff6393dabfaa874d750065e86ff5dae4903724cbca4e59fb74b3ff30b8b8f0a0f1435a0a90c18267c7a0550de6
22 DIST git-2.11.1.tar.xz 4208132 SHA256 c0a779cae325d48a1d5ba08b6ee1febcc31d0657a6da01fd1dec1c6e10976415 SHA512 c9d4196ad9c4f656b5a25fe688c06248bfce4fadac38e9bc835e5e9063ab95e3d4b3db4174acea0b3b64c5455adc93d39870f2b6009d2dd6aa0edb5a5f5bda40 WHIRLPOOL c91d7d096348cacd5a691d12406acb98d7fd703ac06e4d4fc31d85eead29c87860a96d43df06c1e3610837b4eb34adccb5b7b259531e064d495347fd2b14914e
23 -DIST git-2.12.0.tar.xz 4269944 SHA256 1821766479062d052cc1897d0ded95212e81e5c7f1039786bc4aec2225a32027 SHA512 8696de600f6800748096de9ccb54a0ba59a9128617fc6c9a5bc48857798a775209b99ad484aef777d5d6b5c3ac172e5e5071740d073e0ac8d52c54561a9bed0b WHIRLPOOL 58b31af59bd63ee0bed3c65815822eb86cee515d5ca34ee83e7d4096b2b199259933c8051abc27bd978cbc7c3d669503bc6b491a82dd696ee7d8b567b003755a
24 DIST git-2.12.1.tar.xz 4271828 SHA256 db11674364b764e101966d829a2e271c9b9d2a8bd4d8ecb4221a1dcdc9a3ada2 SHA512 4f7203782f018e74c7ff273bb4290887524d67f34e794b26ef8f2d4cb98e57d6c95e29e2da7dd92a626228aad3d02befed9a0b5c9f97f43fe1ba52dad6ff5adb WHIRLPOOL be2d67d925c05bb50b610b4e5eed24b317e95400d0ed3d0c362116da2a2e5c768b7973d66e57cab6cd1e96da00a4f6e526d0d71dcc1b03e7c7195da7ae53c58e
25 DIST git-2.12.2.tar.xz 4273748 SHA256 d21a9e23506e618d561fb25a8a7bd6134f927b86147930103487117a7a678c4a SHA512 0e980ea6932b43c87892c0628d23bce62dc8fa8be3510e6e8bbd14605526e3b13c8a32ea9fbe8a74c286c4fe0e1fa34e85922edf743a9405a31d5657804b4b8d WHIRLPOOL 45b60d67aa930f1e298ef9b02d95b8cfe7caa806716ba3bbfdb3a0b7736dc16631e1888d50844d5dba8ffe4c7a4216006edd32f1ddda0ed0f770472befa6bb8c
26 DIST git-htmldocs-2.10.2.tar.xz 1068436 SHA256 dd43111c3518a92a7fe64ac5cd32a5d4d77d49c67f7d89dce3e8293bc3d6b491 SHA512 8ef57218d7eef285ac427414d92bd5e8eba5c85c2a2a9ec0e423705ee2cb6f26dd33ad780d1b4237e7534dbe5cc3b4d8eea5780d0acc49066d78fc1893df2525 WHIRLPOOL 160fe3446d959d0f2315c9b2be182925619a4d89343602038e92283abdb393805eb5252799c502b83641d9e23a157332033baaa1ef2f1d9401cbbf372d8e86d7
27 DIST git-htmldocs-2.11.1.tar.xz 1083264 SHA256 1a5f1e4a5eadad89b0783efa08bb1f7e3802d4a4d0a135bf5f61fd672ea3846e SHA512 dee37cfa0870f7289c66c3c58bb86d01324bfd30f4d4a05dedebef98ddb38339c7937bb2caee0e1d35ef579de414e5f280d5fd9f48fb427f497fe2f7d62f7d2a WHIRLPOOL 0ec4856405dbbc89547ab6d7236a787516fb7b8a8d2a3ff190b310c6b83cccfd080a5e9bac0523c99b34849b14a0eb96ffc16348643f65b38ebcdc3c8d8cd17e
28 -DIST git-htmldocs-2.12.0.tar.xz 1091612 SHA256 bd548faa2c9e63403e528ce4f4e87561e78949a0349a9e2a27e0d6e581d3a8bd SHA512 818e9ea13195aaa61768b5f3257591a178b4bc4eb25cf9b426b2b2ce6a1b97956eef5f1d4a99fbd5b730f7cf813d29b0a8a019793b9ff1383b607179eaf3089f WHIRLPOOL d49d17177477e9e4fb3e5e4f4526dec86903b150626f67cc50e25c86870b7d7fec91cc9b61d5e2def0fbb26d9b39f129363eb2d9fc48bc9659dc5d65c315cce7
29 DIST git-htmldocs-2.12.1.tar.xz 1091792 SHA256 10598f2f2693e066b58e8d269c3d682595a99340f29e8e7a66dda5e226fd181e SHA512 76c830360692cff09b36da2ac81572cd660a84f06f3b12360022a268bbd88c48c0f4d29b6b097b6b7459548012d419f53418dfd0cbebc0c7b23db78dc135d208 WHIRLPOOL 967bb04ea942cc94206403aad4e98ea092bfc215a70f435ea0cc3b78cea9c9c178f5b509976f861c1b7f2ef69414e376e98b82b45e73fc136861412494324134
30 DIST git-htmldocs-2.12.2.tar.xz 1092716 SHA256 6f656085c2fdca94df1cc3eb8624c38099f920318c428e34ef0333ecf7f4cd59 SHA512 225aa58becc5d45a8f39333a68b4078147f3d8e31b1653eea181b83f5650c07b10c917596c6ca62b22e812932145fcde6932fa116a9731fda3c263e66f9a560f WHIRLPOOL 562a3f9ebd39563f92420274a02464cd1a4dfdcba7d01906d8e03f1f853d272e1edcf29969a76662e83fb7f11da502e0617ef7a30c961c23b881f889d63766d3
31 DIST git-manpages-2.10.2.tar.xz 395556 SHA256 83b0a317f6039ad95ef6af6a182cf659c2d053eed5d8f70b06710eb787f8aa6f SHA512 0dc5df8441601865511983b85762102396cbf7c704fd831eb6666ef7b7639252b971f6b4080b8a57226a86124edcdd77acf24374da22047bd315769a09109bef WHIRLPOOL e1d6b9cb4479b584c16a25a4f3b0528d96d483307e768efea3d7bd8156d74e1c59b61a641dfe5671f4cb01a02f10322262d133cb76f85194ac97ee74c6195d0e
32 DIST git-manpages-2.11.1.tar.xz 400812 SHA256 69486ed339ee0591001ae83d43c888aa26351b9680b6ceb59e06b593051bca31 SHA512 ffa197ed163031f14882f85124399a7de3b1cadee089cb3d85a6b936215b23243102fd99fdf877f0a8b9d660711e994022cce8893ae27c0295a12dceb41c7f6b WHIRLPOOL 072416db28149c4531f05183ad515bc030611d68c1e7975dcf3f173aeedfb96607262ed120fcf8bea74a1c95b18ec98580cc2ae5e825b8f359e9b24021de7218
33 -DIST git-manpages-2.12.0.tar.xz 403112 SHA256 8b8356f8d50eff6499c5d05e87c106a7b1b48bd16de1742fa022631909804773 SHA512 07e7e85bc165b8c128d9a0192f3a75b36346dd45e0f2d17604e0df83dece79f300141d8c798059a15da441f62cb535d3e2da7c15a975c34d3557542e6f608298 WHIRLPOOL cc66c9a62ef682b8d249061697287cacb0a96f89eca87c8053f78c5616d436a0ecfd2f2e2ab5daad282e1b0c27ce36c097b7681cfe2458bd22684a4d15e6a0f5
34 DIST git-manpages-2.12.1.tar.xz 402644 SHA256 fbf5c34dde4385b04a0266444cda6834a97e6a589fc0a510c220da87f3d2a0ce SHA512 d06ad96aa368d2dadf9aeafaa50cefcf8015dcfb2aa0f356c5d70233470aee6aa1e831427e4a05ec8b1646ec8e1b9940d5f70cc331caecbda67e4811c79e1e94 WHIRLPOOL af2600e4157569c4a103a93811d6c7b320063f0d946620849ca55a2ce6f85447add6d065cee234afe9143f8612c3d593c7547a311795e2977054848af2136126
35 DIST git-manpages-2.12.2.tar.xz 402804 SHA256 7ed1da04e6b0f7fb54a3c7546c6a30fe999b5c8ffcf5e3418521e7550b7f9558 SHA512 98991bc14248f95fe837d1fb9f3e451b48825fa2b1cef94cc016dbf796f5e4293c295a7bf1c35244d835d0d66b7008855c475dd3aa7fcabd5be1e382a4ff0c91 WHIRLPOOL 33d216bfdce99b0083abdcc175286fdfb189e729c38a8df1589757555bba2b7ac33e5cf9a3f927fc44d14caec590e4d6c9872dec0e4c7b3f5675fcbe07312895
36
37 diff --git a/dev-vcs/git/git-2.12.0.ebuild b/dev-vcs/git/git-2.12.0.ebuild
38 deleted file mode 100644
39 index 2b9db07f35d..00000000000
40 --- a/dev-vcs/git/git-2.12.0.ebuild
41 +++ /dev/null
42 @@ -1,676 +0,0 @@
43 -# Copyright 1999-2017 Gentoo Foundation
44 -# Distributed under the terms of the GNU General Public License v2
45 -
46 -EAPI=6
47 -
48 -GENTOO_DEPEND_ON_PERL=no
49 -
50 -# bug #329479: git-remote-testgit is not multiple-version aware
51 -PYTHON_COMPAT=( python2_7 )
52 -[[ ${PV} == *9999 ]] && SCM="git-r3"
53 -# Please ensure that all _four_ 9999 ebuilds get updated; they track the 4 upstream branches.
54 -# See https://git-scm.com/docs/gitworkflows#_graduation
55 -# In order of stability:
56 -# 9999-r0: maint
57 -# 9999-r1: master
58 -# 9999-r2: next
59 -# 9999-r3: pu
60 -EGIT_REPO_URI="git://git.kernel.org/pub/scm/git/git.git"
61 -EGIT_BRANCH=maint
62 -PLOCALES="bg ca de fr is it ko pt_PT ru sv vi zh_CN"
63 -
64 -inherit toolchain-funcs eutils elisp-common l10n perl-module bash-completion-r1 python-single-r1 systemd ${SCM}
65 -
66 -MY_PV="${PV/_rc/.rc}"
67 -MY_P="${PN}-${MY_PV}"
68 -
69 -DOC_VER=${MY_PV}
70 -
71 -DESCRIPTION="stupid content tracker: distributed VCS designed for speed and efficiency"
72 -HOMEPAGE="http://www.git-scm.com/"
73 -if [[ ${PV} != *9999 ]]; then
74 - SRC_URI_SUFFIX="xz"
75 - SRC_URI_KORG="mirror://kernel/software/scm/git"
76 - [[ "${PV/rc}" != "${PV}" ]] && SRC_URI_KORG+='/testing'
77 - SRC_URI="${SRC_URI_KORG}/${MY_P}.tar.${SRC_URI_SUFFIX}
78 - ${SRC_URI_KORG}/${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
79 - doc? (
80 - ${SRC_URI_KORG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
81 - )"
82 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
83 -fi
84 -
85 -LICENSE="GPL-2"
86 -SLOT="0"
87 -IUSE="+blksha1 +curl cgi doc emacs +gpg highlight +iconv libressl libsecret mediawiki mediawiki-experimental +nls +pcre +perl +python ppcsha1 tk +threads +webdav xinetd cvs subversion test"
88 -
89 -# Common to both DEPEND and RDEPEND
90 -CDEPEND="
91 - !libressl? ( dev-libs/openssl:0= )
92 - libressl? ( dev-libs/libressl:= )
93 - libsecret? ( app-crypt/libsecret )
94 - sys-libs/zlib
95 - pcre? ( dev-libs/libpcre )
96 - perl? ( dev-lang/perl:=[-build(-)] )
97 - tk? ( dev-lang/tk:0= )
98 - curl? (
99 - net-misc/curl
100 - webdav? ( dev-libs/expat )
101 - )
102 - emacs? ( virtual/emacs )
103 -"
104 -
105 -RDEPEND="${CDEPEND}
106 - gpg? ( app-crypt/gnupg )
107 - mediawiki? (
108 - dev-perl/DateTime-Format-ISO8601
109 - dev-perl/HTML-Tree
110 - dev-perl/MediaWiki-API
111 - )
112 - perl? ( dev-perl/Error
113 - dev-perl/Net-SMTP-SSL
114 - dev-perl/Authen-SASL
115 - cgi? ( dev-perl/CGI highlight? ( app-text/highlight ) )
116 - cvs? ( >=dev-vcs/cvsps-2.1:0 dev-perl/DBI dev-perl/DBD-SQLite )
117 - subversion? ( dev-vcs/subversion[-dso,perl] dev-perl/libwww-perl dev-perl/TermReadKey )
118 - )
119 - python? ( ${PYTHON_DEPS} )
120 -"
121 -
122 -# This is how info docs are created with Git:
123 -# .txt/asciidoc --(asciidoc)---------> .xml/docbook
124 -# .xml/docbook --(docbook2texi.pl)--> .texi
125 -# .texi --(makeinfo)---------> .info
126 -DEPEND="${CDEPEND}
127 - doc? (
128 - app-text/asciidoc
129 - app-text/docbook2X
130 - sys-apps/texinfo
131 - app-text/xmlto
132 - )
133 - nls? ( sys-devel/gettext )
134 - test? ( app-crypt/gnupg )"
135 -
136 -# Live ebuild builds man pages and HTML docs, additionally
137 -if [[ ${PV} == *9999 ]]; then
138 - DEPEND="${DEPEND}
139 - app-text/asciidoc"
140 -fi
141 -
142 -SITEFILE=50${PN}-gentoo.el
143 -S="${WORKDIR}/${MY_P}"
144 -
145 -REQUIRED_USE="
146 - cgi? ( perl )
147 - cvs? ( perl )
148 - mediawiki? ( perl )
149 - mediawiki-experimental? ( mediawiki )
150 - subversion? ( perl )
151 - webdav? ( curl )
152 - python? ( ${PYTHON_REQUIRED_USE} )
153 -"
154 -
155 -PATCHES=(
156 - # bug #350330 - automagic CVS when we don't want it is bad.
157 - "${FILESDIR}"/git-2.12.0-optional-cvs.patch
158 -
159 - # install mediawiki perl modules also in vendor_dir
160 - # hack, needs better upstream solution
161 - "${FILESDIR}"/git-1.8.5-mw-vendor.patch
162 -
163 - "${FILESDIR}"/git-2.2.0-svn-fe-linking.patch
164 -
165 - # Bug #493306, where FreeBSD 10.x merged libiconv into its libc.
166 - "${FILESDIR}"/git-2.5.1-freebsd-10.x-no-iconv.patch
167 -)
168 -
169 -pkg_setup() {
170 - if use subversion && has_version "dev-vcs/subversion[dso]"; then
171 - ewarn "Per Gentoo bugs #223747, #238586, when subversion is built"
172 - ewarn "with USE=dso, there may be weird crashes in git-svn. You"
173 - ewarn "have been warned."
174 - fi
175 - if use python ; then
176 - python-single-r1_pkg_setup
177 - fi
178 -}
179 -
180 -# This is needed because for some obscure reasons future calls to make don't
181 -# pick up these exports if we export them in src_unpack()
182 -exportmakeopts() {
183 - local myopts
184 -
185 - if use blksha1 ; then
186 - myopts+=" BLK_SHA1=YesPlease"
187 - elif use ppcsha1 ; then
188 - myopts+=" PPC_SHA1=YesPlease"
189 - fi
190 -
191 - if use curl ; then
192 - use webdav || myopts+=" NO_EXPAT=YesPlease"
193 - else
194 - myopts+=" NO_CURL=YesPlease"
195 - fi
196 -
197 - # broken assumptions, because of broken build system ...
198 - myopts+=" NO_FINK=YesPlease NO_DARWIN_PORTS=YesPlease"
199 - myopts+=" INSTALL=install TAR=tar"
200 - myopts+=" SHELL_PATH=${EPREFIX}/bin/sh"
201 - myopts+=" SANE_TOOL_PATH="
202 - myopts+=" OLD_ICONV="
203 - myopts+=" NO_EXTERNAL_GREP="
204 -
205 - # For svn-fe
206 - extlibs="-lz -lssl ${S}/xdiff/lib.a $(usex threads -lpthread '')"
207 -
208 - # can't define this to null, since the entire makefile depends on it
209 - sed -i -e '/\/usr\/local/s/BASIC_/#BASIC_/' Makefile
210 -
211 - use iconv \
212 - || myopts+=" NO_ICONV=YesPlease"
213 - use nls \
214 - || myopts+=" NO_GETTEXT=YesPlease"
215 - use tk \
216 - || myopts+=" NO_TCLTK=YesPlease"
217 - use pcre \
218 - && myopts+=" USE_LIBPCRE=yes" \
219 - && extlibs+=" -lpcre"
220 - use perl \
221 - && myopts+=" INSTALLDIRS=vendor" \
222 - || myopts+=" NO_PERL=YesPlease"
223 - use python \
224 - || myopts+=" NO_PYTHON=YesPlease"
225 - use subversion \
226 - || myopts+=" NO_SVN_TESTS=YesPlease"
227 - use threads \
228 - && myopts+=" THREADED_DELTA_SEARCH=YesPlease" \
229 - || myopts+=" NO_PTHREADS=YesPlease"
230 - use cvs \
231 - || myopts+=" NO_CVS=YesPlease"
232 - use elibc_musl \
233 - && myopts+=" NO_REGEX=YesPlease"
234 -# Disabled until ~m68k-mint can be keyworded again
235 -# if [[ ${CHOST} == *-mint* ]] ; then
236 -# myopts+=" NO_MMAP=YesPlease"
237 -# myopts+=" NO_IPV6=YesPlease"
238 -# myopts+=" NO_STRLCPY=YesPlease"
239 -# myopts+=" NO_MEMMEM=YesPlease"
240 -# myopts+=" NO_MKDTEMP=YesPlease"
241 -# myopts+=" NO_MKSTEMPS=YesPlease"
242 -# fi
243 - if [[ ${CHOST} == ia64-*-hpux* ]]; then
244 - myopts+=" NO_NSEC=YesPlease"
245 - fi
246 - if [[ ${CHOST} == *-*-aix* ]]; then
247 - myopts+=" NO_FNMATCH_CASEFOLD=YesPlease"
248 - fi
249 - if [[ ${CHOST} == *-solaris* ]]; then
250 - myopts+=" NEEDS_LIBICONV=YesPlease"
251 - myopts+=" HAVE_CLOCK_MONOTONIC=1"
252 - myopts+=" HAVE_GETDELIM=1"
253 - fi
254 -
255 - has_version '>=app-text/asciidoc-8.0' \
256 - && myopts+=" ASCIIDOC8=YesPlease"
257 - myopts+=" ASCIIDOC_NO_ROFF=YesPlease"
258 -
259 - # Bug 290465:
260 - # builtin-fetch-pack.c:816: error: 'struct stat' has no member named 'st_mtim'
261 - [[ "${CHOST}" == *-uclibc* ]] && \
262 - myopts+=" NO_NSEC=YesPlease"
263 -
264 - export MY_MAKEOPTS="${myopts}"
265 - export EXTLIBS="${extlibs}"
266 -}
267 -
268 -src_unpack() {
269 - if [[ ${PV} != *9999 ]]; then
270 - unpack ${MY_P}.tar.${SRC_URI_SUFFIX}
271 - cd "${S}"
272 - unpack ${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
273 - use doc && \
274 - cd "${S}"/Documentation && \
275 - unpack ${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
276 - cd "${S}"
277 - else
278 - git-r3_src_unpack
279 - cd "${S}"
280 - #cp "${FILESDIR}"/GIT-VERSION-GEN .
281 - fi
282 -
283 -}
284 -
285 -src_prepare() {
286 - # add experimental patches to improve mediawiki support
287 - # see patches for origin
288 - if use mediawiki-experimental ; then
289 - PATCHES+=(
290 - "${FILESDIR}"/git-2.7.0-mediawiki-namespaces.patch
291 - "${FILESDIR}"/git-2.7.0-mediawiki-subpages.patch
292 - "${FILESDIR}"/git-2.7.0-mediawiki-500pages.patch
293 - )
294 - fi
295 -
296 - default
297 -
298 - sed -i \
299 - -e 's:^\(CFLAGS[[:space:]]*=\).*$:\1 $(OPTCFLAGS) -Wall:' \
300 - -e 's:^\(LDFLAGS[[:space:]]*=\).*$:\1 $(OPTLDFLAGS):' \
301 - -e 's:^\(CC[[:space:]]* =\).*$:\1$(OPTCC):' \
302 - -e 's:^\(AR[[:space:]]* =\).*$:\1$(OPTAR):' \
303 - -e "s:\(PYTHON_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \
304 - -e "s:\(PERL_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \
305 - Makefile contrib/svn-fe/Makefile || die "sed failed"
306 -
307 - # Never install the private copy of Error.pm (bug #296310)
308 - sed -i \
309 - -e '/private-Error.pm/s,^,#,' \
310 - perl/Makefile.PL
311 -
312 - # Fix docbook2texi command
313 - sed -r -i 's/DOCBOOK2X_TEXI[[:space:]]*=[[:space:]]*docbook2x-texi/DOCBOOK2X_TEXI = docbook2texi.pl/' \
314 - Documentation/Makefile || die "sed failed"
315 -
316 - # Fix git-subtree missing DESTDIR
317 - sed -i \
318 - -e '/$(INSTALL)/s/ $(libexecdir)/ $(DESTDIR)$(libexecdir)/g' \
319 - -e '/$(INSTALL)/s/ $(man1dir)/ $(DESTDIR)$(man1dir)/g' \
320 - contrib/subtree/Makefile
321 -}
322 -
323 -git_emake() {
324 - # bug #326625: PERL_PATH, PERL_MM_OPT
325 - # bug #320647: PYTHON_PATH
326 - PYTHON_PATH=""
327 - use python && PYTHON_PATH="${PYTHON}"
328 - emake ${MY_MAKEOPTS} \
329 - DESTDIR="${D}" \
330 - OPTCFLAGS="${CFLAGS}" \
331 - OPTLDFLAGS="${LDFLAGS}" \
332 - OPTCC="$(tc-getCC)" \
333 - OPTAR="$(tc-getAR)" \
334 - prefix="${EPREFIX}"/usr \
335 - htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
336 - sysconfdir="${EPREFIX}"/etc \
337 - PYTHON_PATH="${PYTHON_PATH}" \
338 - PERL_MM_OPT="" \
339 - GIT_TEST_OPTS="--no-color" \
340 - V=1 \
341 - "$@"
342 - # This is the fix for bug #326625, but it also causes breakage, see bug
343 - # #352693.
344 - # PERL_PATH="${EPREFIX}/usr/bin/env perl" \
345 -}
346 -
347 -src_configure() {
348 - exportmakeopts
349 -}
350 -
351 -src_compile() {
352 - if use perl ; then
353 - git_emake perl/PM.stamp || die "emake perl/PM.stamp failed"
354 - git_emake perl/perl.mak || die "emake perl/perl.mak failed"
355 - fi
356 - git_emake || die "emake failed"
357 -
358 - if use emacs ; then
359 - elisp-compile contrib/emacs/git{,-blame}.el
360 - fi
361 -
362 - if use perl && use cgi ; then
363 - git_emake \
364 - gitweb \
365 - || die "emake gitweb (cgi) failed"
366 - fi
367 -
368 - if [[ ${CHOST} == *-darwin* ]]; then
369 - cd "${S}"/contrib/credential/osxkeychain || die
370 - git_emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" \
371 - || die "emake credential-osxkeychain"
372 - fi
373 -
374 - cd "${S}"/Documentation
375 - if [[ ${PV} == *9999 ]] ; then
376 - git_emake man \
377 - || die "emake man failed"
378 - if use doc ; then
379 - git_emake info html \
380 - || die "emake info html failed"
381 - fi
382 - else
383 - if use doc ; then
384 - git_emake info \
385 - || die "emake info html failed"
386 - fi
387 - fi
388 -
389 - if use subversion ; then
390 - cd "${S}"/contrib/svn-fe
391 - # by defining EXTLIBS we override the detection for libintl and
392 - # libiconv, bug #516168
393 - local nlsiconv=
394 - use nls && use !elibc_glibc && nlsiconv+=" -lintl"
395 - use iconv && use !elibc_glibc && nlsiconv+=" -liconv"
396 - git_emake EXTLIBS="${EXTLIBS} ${nlsiconv}" || die "emake svn-fe failed"
397 - if use doc ; then
398 - git_emake svn-fe.{1,html} || die "emake svn-fe.1 svn-fe.html failed"
399 - fi
400 - cd "${S}"
401 - fi
402 -
403 - if use libsecret ; then
404 - cd "${S}"/contrib/credential/libsecret
405 - git_emake || die "emake git-credential-libsecret failed"
406 - fi
407 -
408 - cd "${S}"/contrib/subtree || die
409 - git_emake
410 - use doc && git_emake doc
411 -
412 - if use mediawiki ; then
413 - cd "${S}"/contrib/mw-to-git
414 - git_emake
415 - fi
416 -}
417 -
418 -src_install() {
419 - git_emake \
420 - install || \
421 - die "make install failed"
422 -
423 - if [[ ${CHOST} == *-darwin* ]]; then
424 - dobin contrib/credential/osxkeychain/git-credential-osxkeychain
425 - fi
426 -
427 - # Depending on the tarball and manual rebuild of the documentation, the
428 - # manpages may exist in either OR both of these directories.
429 - find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157]
430 - find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157]
431 - dodoc README* Documentation/{SubmittingPatches,CodingGuidelines}
432 - use doc && dodir /usr/share/doc/${PF}/html
433 - for d in / /howto/ /technical/ ; do
434 - docinto ${d}
435 - dodoc Documentation${d}*.txt
436 - if use doc ; then
437 - docinto ${d}/html
438 - dodoc Documentation${d}*.html
439 - fi
440 - done
441 - docinto /
442 - # Upstream does not ship this pre-built :-(
443 - use doc && doinfo Documentation/{git,gitman}.info
444 -
445 - newbashcomp contrib/completion/git-completion.bash ${PN}
446 - bashcomp_alias git gitk
447 - # Not really a bash-completion file (bug #477920)
448 - # but still needed uncompressed (bug #507480)
449 - insinto /usr/share/${PN}
450 - doins contrib/completion/git-prompt.sh
451 -
452 - if use emacs ; then
453 - elisp-install ${PN} contrib/emacs/git.{el,elc}
454 - elisp-install ${PN} contrib/emacs/git-blame.{el,elc}
455 - #elisp-install ${PN}/compat contrib/emacs/vc-git.{el,elc}
456 - # don't add automatically to the load-path, so the sitefile
457 - # can do a conditional loading
458 - touch "${ED}${SITELISP}/${PN}/compat/.nosearch"
459 - elisp-site-file-install "${FILESDIR}"/${SITEFILE}
460 - fi
461 -
462 - #dobin contrib/fast-import/git-p4 # Moved upstream
463 - #dodoc contrib/fast-import/git-p4.txt # Moved upstream
464 - newbin contrib/fast-import/import-tars.perl import-tars
465 - exeinto /usr/libexec/git-core/
466 - newexe contrib/git-resurrect.sh git-resurrect
467 -
468 - # git-subtree
469 - cd "${S}"/contrib/subtree
470 - git_emake install || die "Failed to emake install git-subtree"
471 - if use doc ; then
472 - git_emake install-man install-doc || die "Failed to emake install-doc install-mangit-subtree"
473 - fi
474 - newdoc README README.git-subtree
475 - dodoc git-subtree.txt
476 - cd "${S}"
477 -
478 - if use mediawiki ; then
479 - cd "${S}"/contrib/mw-to-git
480 - git_emake install
481 - cd "${S}"
482 - fi
483 -
484 - # diff-highlight
485 - dobin contrib/diff-highlight/diff-highlight
486 - newdoc contrib/diff-highlight/README README.diff-highlight
487 -
488 - # git-jump
489 - exeinto /usr/libexec/git-core/
490 - doexe contrib/git-jump/git-jump
491 - newdoc contrib/git-jump/README git-jump.txt
492 -
493 - # git-contacts
494 - exeinto /usr/libexec/git-core/
495 - doexe contrib/contacts/git-contacts
496 - dodoc contrib/contacts/git-contacts.txt
497 -
498 - if use libsecret ; then
499 - cd "${S}"/contrib/credential/libsecret
500 - dobin git-credential-libsecret
501 - fi
502 -
503 - if use subversion ; then
504 - cd "${S}"/contrib/svn-fe
505 - dobin svn-fe
506 - dodoc svn-fe.txt
507 - if use doc ; then
508 - doman svn-fe.1
509 - docinto html
510 - dodoc svn-fe.html
511 - fi
512 - cd "${S}"
513 - fi
514 -
515 - dodir /usr/share/${PN}/contrib
516 - # The following are excluded:
517 - # completion - installed above
518 - # diff-highlight - done above
519 - # emacs - installed above
520 - # examples - these are stuff that is not used in Git anymore actually
521 - # git-jump - done above
522 - # gitview - installed above
523 - # p4import - excluded because fast-import has a better one
524 - # patches - stuff the Git guys made to go upstream to other places
525 - # persistent-https - TODO
526 - # mw-to-git - TODO
527 - # subtree - build seperately
528 - # svnimport - use git-svn
529 - # thunderbird-patch-inline - fixes thunderbird
530 - local contrib_objects=(
531 - buildsystems
532 - fast-import
533 - hg-to-git
534 - hooks
535 - remotes2config.sh
536 - rerere-train.sh
537 - stats
538 - workdir
539 - )
540 - for i in "${contrib_objects[@]}" ; do
541 - cp -rf \
542 - "${S}"/contrib/${i} \
543 - "${ED}"/usr/share/${PN}/contrib \
544 - || die "Failed contrib ${i}"
545 - done
546 -
547 - if use perl && use cgi ; then
548 - # We used to install in /usr/share/${PN}/gitweb
549 - # but upstream installs in /usr/share/gitweb
550 - # so we will install a symlink and use their location for compat with other
551 - # distros
552 - dosym /usr/share/gitweb /usr/share/${PN}/gitweb
553 -
554 - # INSTALL discusses configuration issues, not just installation
555 - docinto /
556 - newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
557 - newdoc "${S}"/gitweb/README README.gitweb
558 -
559 - find "${ED}"/usr/lib64/perl5/ \
560 - -name .packlist \
561 - -exec rm \{\} \;
562 - else
563 - rm -rf "${ED}"/usr/share/gitweb
564 - fi
565 -
566 - if ! use subversion ; then
567 - rm -f "${ED}"/usr/libexec/git-core/git-svn \
568 - "${ED}"/usr/share/man/man1/git-svn.1*
569 - fi
570 -
571 - if use xinetd ; then
572 - insinto /etc/xinetd.d
573 - newins "${FILESDIR}"/git-daemon.xinetd git-daemon
574 - fi
575 -
576 - if use !prefix ; then
577 - newinitd "${FILESDIR}"/git-daemon-r1.initd git-daemon
578 - newconfd "${FILESDIR}"/git-daemon.confd git-daemon
579 - systemd_newunit "${FILESDIR}/git-daemon_at-r1.service" "git-daemon@.service"
580 - systemd_dounit "${FILESDIR}/git-daemon.socket"
581 - fi
582 -
583 - perl_delete_localpod
584 -
585 - # Remove disabled linguas
586 - # we could remove sources in src_prepare, but install does not
587 - # handle missing locale dir well
588 - rm_loc() {
589 - if [[ -e "${ED}/usr/share/locale/${1}" ]]; then
590 - rm -r "${ED}/usr/share/locale/${1}" || die
591 - fi
592 - }
593 - l10n_for_each_disabled_locale_do rm_loc
594 -}
595 -
596 -src_test() {
597 - local disabled="t9128-git-svn-cmd-branch.sh"
598 - local tests_cvs="t9200-git-cvsexportcommit.sh \
599 - t9400-git-cvsserver-server.sh \
600 - t9401-git-cvsserver-crlf.sh \
601 - t9402-git-cvsserver-refs.sh \
602 - t9600-cvsimport.sh \
603 - t9601-cvsimport-vendor-branch.sh \
604 - t9602-cvsimport-branches-tags.sh \
605 - t9603-cvsimport-patchsets.sh \
606 - t9604-cvsimport-timestamps.sh"
607 - local tests_perl="t3701-add-interactive.sh \
608 - t5502-quickfetch.sh \
609 - t5512-ls-remote.sh \
610 - t5520-pull.sh \
611 - t7106-reset-unborn-branch.sh \
612 - t7501-commit.sh"
613 - # Bug #225601 - t0004 is not suitable for root perm
614 - # Bug #219839 - t1004 is not suitable for root perm
615 - # t0001-init.sh - check for init notices EPERM* fails
616 - local tests_nonroot="t0001-init.sh \
617 - t0004-unwritable.sh \
618 - t0070-fundamental.sh \
619 - t1004-read-tree-m-u-wf.sh \
620 - t3700-add.sh \
621 - t7300-clean.sh"
622 - # t9100 still fails with symlinks in SVN 1.7
623 - local test_svn="t9100-git-svn-basic.sh"
624 -
625 - # Unzip is used only for the testcase code, not by any normal parts of Git.
626 - if ! has_version app-arch/unzip ; then
627 - einfo "Disabling tar-tree tests"
628 - disabled="${disabled} t5000-tar-tree.sh"
629 - fi
630 -
631 - cvs=0
632 - use cvs && let cvs=$cvs+1
633 - if [[ ${EUID} -eq 0 ]]; then
634 - if [[ $cvs -eq 1 ]]; then
635 - ewarn "Skipping CVS tests because CVS does not work as root!"
636 - ewarn "You should retest with FEATURES=userpriv!"
637 - disabled="${disabled} ${tests_cvs}"
638 - fi
639 - einfo "Skipping other tests that require being non-root"
640 - disabled="${disabled} ${tests_nonroot}"
641 - else
642 - [[ $cvs -gt 0 ]] && \
643 - has_version dev-vcs/cvs && \
644 - let cvs=$cvs+1
645 - [[ $cvs -gt 1 ]] && \
646 - has_version "dev-vcs/cvs[server]" && \
647 - let cvs=$cvs+1
648 - if [[ $cvs -lt 3 ]]; then
649 - einfo "Disabling CVS tests (needs dev-vcs/cvs[USE=server])"
650 - disabled="${disabled} ${tests_cvs}"
651 - fi
652 - fi
653 -
654 - if ! use perl ; then
655 - einfo "Disabling tests that need Perl"
656 - disabled="${disabled} ${tests_perl}"
657 - fi
658 -
659 - einfo "Disabling tests that fail with SVN 1.7"
660 - disabled="${disabled} ${test_svn}"
661 -
662 - # Reset all previously disabled tests
663 - cd "${S}/t"
664 - for i in *.sh.DISABLED ; do
665 - [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
666 - done
667 - einfo "Disabled tests:"
668 - for i in ${disabled} ; do
669 - [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
670 - done
671 -
672 - # Avoid the test system removing the results because we want them ourselves
673 - sed -e '/^[[:space:]]*$(MAKE) clean/s,^,#,g' \
674 - -i "${S}"/t/Makefile
675 -
676 - # Clean old results first, must always run
677 - cd "${S}/t"
678 - nonfatal git_emake clean
679 -
680 - # Now run the tests, keep going if we hit an error, and don't terminate on
681 - # failure
682 - cd "${S}"
683 - einfo "Start test run"
684 - #MAKEOPTS=-j1
685 - nonfatal git_emake --keep-going test
686 - rc=$?
687 -
688 - # Display nice results, now print the results
689 - cd "${S}/t"
690 - nonfatal git_emake aggregate-results
691 -
692 - # And bail if there was a problem
693 - [ $rc -eq 0 ] || die "tests failed. Please file a bug."
694 -}
695 -
696 -showpkgdeps() {
697 - local pkg=$1
698 - shift
699 - elog " $(printf "%-17s:" ${pkg}) ${@}"
700 -}
701 -
702 -pkg_postinst() {
703 - use emacs && elisp-site-regen
704 - einfo "Please read /usr/share/bash-completion/git for Git bash command completion"
705 - einfo "Please read /usr/share/git/git-prompt.sh for Git bash prompt"
706 - einfo "Note that the prompt bash code is now in that separate script"
707 - elog "These additional scripts need some dependencies:"
708 - echo
709 - showpkgdeps git-quiltimport "dev-util/quilt"
710 - showpkgdeps git-instaweb \
711 - "|| ( www-servers/lighttpd www-servers/apache www-servers/nginx )"
712 - echo
713 - use mediawiki-experimental && ewarn "Using experimental git-mediawiki patches. The stability of cloned wiki filesystems is not guaranteed."
714 -}
715 -
716 -pkg_postrm() {
717 - use emacs && elisp-site-regen
718 -}