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