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, 03 Sep 2016 19:19:35
Message-Id: 1472930363.51475018147d43d57e25a8a51e7432d1dfd9282a.polynomial-c@gentoo
1 commit: 51475018147d43d57e25a8a51e7432d1dfd9282a
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 3 19:19:23 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 3 19:19:23 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51475018
7
8 dev-vcs/git: Removed old.
9
10 Package-Manager: portage-2.3.0
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 dev-vcs/git/Manifest | 3 -
14 dev-vcs/git/git-2.9.2.ebuild | 682 -------------------------------------------
15 2 files changed, 685 deletions(-)
16
17 diff --git a/dev-vcs/git/Manifest b/dev-vcs/git/Manifest
18 index 1535d0b..6d6a096 100644
19 --- a/dev-vcs/git/Manifest
20 +++ b/dev-vcs/git/Manifest
21 @@ -6,7 +6,6 @@ DIST git-2.7.3-00-9831e92bfa833ee9c0ce464bbc2f941ae6c2698d-lose-name-path.patch
22 DIST git-2.7.3.tar.xz 3909636 SHA256 89c467912d4740da2b40288f956251f0a1e276e28eecd28a6d776067103629b6 SHA512 f7acbf52d12f39d323bd90a82c7135aa2aacf2661f7087c71b41dbfbec688342e0a2fc061fc0f216848a538a0dbc4fce68e24ea2a26e747f5eb92f763fa5bc72 WHIRLPOOL 5cc261749f91c2e0b0509d2fac1bc7426b3ddcc37e859d4f524838e1dd471071ad430886751933bae57aafc20bdcf3f9a43f4c018cc9c89610134a5203b22447
23 DIST git-2.7.4.tar.xz 3909636 SHA256 dee574defbe05ec7356a0842ddbda51315926f2fa7e39c2539f2c3dcc52e457b SHA512 82a646140834e909bf1748a017e86f37f0711c759fe0a6ad03529beb57c79742cb7bf77c2dba29ccd84fcf3d5f18ad9c85c00f002d3b257be42e058750423da7 WHIRLPOOL 74532038b6ba95a5354f43ebad00a9c159c495d46e7dc1b8a2a59f5a86e149538190d9800144a719dcc00e28cfea1039cd5dbfb67fd5aac5e7d0998d3231bae3
24 DIST git-2.8.4.tar.xz 3982836 SHA256 120e9a32a1858871dea34165622ec7a63f27887b93093c8d72a18bcf89fe1657 SHA512 92c3b4437d1160cc23612b4df62646b80a1245d4ed482c3543ba19511f754a34d0185d5dd5d16f2a42bc3097bebc47ece0670c45a1c53ca38cbfbff7d43de87b WHIRLPOOL 8be86b1cba51ef549d56014c090dd5844019c2c5ccf15865dce86ed7f28f5628621450d784f23ba03f79282bc87e5a8ee0fad161a157785cf6c5716f8aa1e767
25 -DIST git-2.9.2.tar.xz 4019916 SHA256 f8f546648f77f246f1302e3ec4037c81db25af1f02931597148c5bf61fac2db5 SHA512 4a6e2ac7680b8896dc9c58a3fabad2201c800dbca26f0c117892b9d6149b02ff0335d313037f50771932cea4971913e3d9b9e79f22e075b3ed77a1a69ddc11ac WHIRLPOOL ebd538f1877a362c7bbd0eb98e3c3d9d96b81e75cdb4f587d9aa5be09d66fd61e7b2e400465f64d238fd912a2a3b4be1829a95ba21ec09115be5362347d30878
26 DIST git-2.9.3.tar.xz 4025288 SHA256 9f1473350c1792310b51af03a9cb5cce841f68202f835b20d46312a30232fa63 SHA512 7152d075b705c92c813e977558b1a6d8d1c9e6ac01b41ee052bcd40c056f08c6fdb030ef0995822c6d22ce44b739935d89026aeae35f8b93fb569773c4b005bb WHIRLPOOL 0117dad19c4a74dcc7a7963dd2ffa60f5a1e10890e4f233b1c92cce87c07e3da270a65464ed152fc20ffbea34f074342a9153f7a328cae2d850b763b3a196c3e
27 DIST git-htmldocs-2.10.0.tar.xz 1064292 SHA256 b51b7c51c9c50450b233c6461f1987424e8096f05261fc1284bc3c0a8f8da559 SHA512 035de46a751641e5c533d506905951d162b6170c4b0a6361ead49b106c40190520539ed64e44d98236ee70b464b2bfa0239af9fc3c6c75c92b5f287c9d932308 WHIRLPOOL fa2f516504ae79dbbc7fbe962877bbbf5dea8d2ab846dc5d06bd1e6f13fc8ea09d6d523f80c340e164207eaaf7d52f926330be6ac723323311a6fc638f91e53e
28 DIST git-htmldocs-2.4.11.tar.xz 997132 SHA256 2764af41b319f4d11b29832de4bd05392f2887d9a1d3c56c864fb081920eac97 SHA512 d5d2abae9cc303fe8ebeb72ae7078d44db94610d549ca03afffcbbef8b611efda662677423d9ff97a0c7a2384bbd4c3468b01a2ecd7b68f4fdc89e62ad688eb4 WHIRLPOOL 66cd4fc754be7c103ca58a030d4799ba988792419a426e85a39805172e6329ec617b3561696dc74be36801cca0b17a26102a194a1a58d6c7b9ee1ab17752c4a6
29 @@ -15,7 +14,6 @@ DIST git-htmldocs-2.6.6.tar.xz 1021856 SHA256 897fb0bc7e2eb67a4b582c963f337fda3a
30 DIST git-htmldocs-2.7.3.tar.xz 1031848 SHA256 f71f5e8e1a6103e83ea794f367bc419a1d14ba0f79ebacdc81b3b9430714adea SHA512 50de5d9d3c0f6d874a6a4bc3b247a1795b1bcf154a276b546f88c3b5f5fb2eb27212d207a4bb50c04cba36d8537853afd25816addfb87c9a50e18528d93586fe WHIRLPOOL 057d9bebfe51c29a0a7f689baa9873cb6a54feb1d2869c541396902b160379c9220c5de79a4cb59c6e804e5c7557c0fd141b89621b97d3b495dc6e0a77c67a9f
31 DIST git-htmldocs-2.7.4.tar.xz 1032428 SHA256 3fae21e2e68104621ea1405be73192b46bf3ef29bbc248a81b1e7e6fcf5acfad SHA512 f05b7b8a4dd4abe23f7e51982e9c33026aa31610ac8640028aeae6b310b70b764aee9a81fa702ed0712ccf1b7ad897e06163eb5c5246c14f6cce7c5f4e462682 WHIRLPOOL 87fc486d182a4b72fd906105fefcc53b722c4ae6832b290cd6f759ac1eca7ebfbbe7c0e72c1d7b5ef3581d19d7576f1d0387d6e5b0a33d960d57f59ee61a7869
32 DIST git-htmldocs-2.8.4.tar.xz 1042260 SHA256 78135be591e3a68d1030a76e343d59622e5e40f6990667f4385a01d9dafe9bbd SHA512 5da40db4421f94a969b83bfa0ea6e5ccf3fce8c2085ea2271a2eb3e1b4fc496c36ae8790207cd1814ff747b7633bb27fd53bb9c012f866ea1e7f1cc8065379dd WHIRLPOOL 4f80041ad4ef8b178a6b91313680433a7e07b0ecb15354304436d70880063b2f9cdd875fcd95684a817272d05a57485e1863e9e06c3788eddf0e5f031279ea9a
33 -DIST git-htmldocs-2.9.2.tar.xz 1053284 SHA256 6dddb003184f2ab68aa6b54e02e1e55c82c774fe6e74602e9dbefdf06826fb1c SHA512 ab13c3d8339de894084aab1a3db08f4571c22b052f7792235dfcb4ed55ff98ecad84125ec2a083bb0a3df9b8eca0e40fb7085951fbdf10d888eebc0bfbf91a17 WHIRLPOOL 6350a8867aa7f14c0ea70c71c099d8880fc3494152a9bb708a608dd969cb526e1ce015a197a5bc9f27604ad4da7ed035ca9a80381e2c9bfda932ac42c49585dd
34 DIST git-htmldocs-2.9.3.tar.xz 1055980 SHA256 abfa0e160c062a36956beaa5e8bf4d6e2db93f235c892f94681bd6f1feb71865 SHA512 4ce1c00767d485ca4ebec9ea5a3d001d4395eb44c2c82caec36b18dd1df26cbbd5d458d9c2b83b54d572d830eb0bccf2916f28863a96384cd3d6fcb741f1b97f WHIRLPOOL b3c16dd25da7309c4c8302008eda147e113e025081dfa447c6de629ae68fe5369e391c402fe3cdbfba2187040559609082edae5469238af68a1e17bd805acddf
35 DIST git-manpages-2.10.0.tar.xz 394924 SHA256 3e17997d10ba18f4ad4dcddf58f7175ee78da1514b5afca3a6f198d957d822f9 SHA512 76529a4e14d92f3e80072af38335d7304a57ae42367bd99dc807231538ea67cef242546025176b3174e5b6a5e29a0da6fd598e6ec0f1c35a52b44ef0f296045e WHIRLPOOL 1da8c6fbfa801e280c0d7cb45055ed8a41619d102155d503565a9ed75249cfb18274f94c26e0992433a01b37d6e77873ab006b7ca4727401e89b2dca3f2831b0
36 DIST git-manpages-2.4.11.tar.xz 373956 SHA256 0a1fff7650e635339f92985a47198f5f6664eda1c233c3cf48e92f22c3735db2 SHA512 78226baf1c8be28c456a84b06f403af9b918cd3e46218917cce18b3b9ce494600bf00014b818ca0dff9f675aca8b17cd9f7893c7063e218d719a9567e81d9040 WHIRLPOOL f8883ca7d327c378937f62287cbb515b5271cb8aeda18d32135f1c7ea71c9f39282fe55b191476f046de4815a994e4f6f98696d9353f0bfcca7994101398786c
37 @@ -24,5 +22,4 @@ DIST git-manpages-2.6.6.tar.xz 381588 SHA256 0f64c1db015e3c74e56eef646a9fdd456cf
38 DIST git-manpages-2.7.3.tar.xz 384544 SHA256 9f088427c61a9e0a840007c7f50fc6f7caba36ac8c403460c49210983090496d SHA512 883441df049bfaf0f22cf9d17041125dc9c8f0e7d94efa7a4188a68c2242d1b4c3d34fd3bd3ecdd2af905ee2f8fb5fefd0ce6328dd76c665f7ec20e3b9c87d1b WHIRLPOOL 7ee013444665366ecb8f3df507a3c5af8a9f48d3185783a94db827b192c32ac6998157eb42bcbfe397f96d452451b2416c32e2dffbabc71062422e7c5e25c184
39 DIST git-manpages-2.7.4.tar.xz 384460 SHA256 d04fd81ab8aa32efbe54acd27ab5c88ef4ab615313e4cdfa793dd0065899ce25 SHA512 1af6f0d9fc3945a5a215092caabd0963f3eaa35c5f3b0270861b625bf7bd88e4fdea9b3e50ce1b10c79a12ee2b06b203fab4aa9d566560535c1decf7b2d987cd WHIRLPOOL 38306b6e198336dd3c75a9fd032b636e0e43a3b75eba2746d2d42c3752cf7405b1f8572199748509974d68bfc77c74fbea52626884f9b509d8b593cefce4aad5
40 DIST git-manpages-2.8.4.tar.xz 387168 SHA256 d2ddfc302e5b3c0ad182916b27c28d95bc667ea8b9db8dc099bf3d8d62b8b7f5 SHA512 d4ffca6ad8ff0b6bfab984eb06ad5c6c0cf73cfb4beaff4e924b2bd117a4a369e928faa2ca09f11903ebc52249ad24e2b68e7b571965a2ef48f5731ad94b9bef WHIRLPOOL a22d7ad38ccfb399325e321cecc7255fdf4ca05f14e92acfe94e74b816199d2e057a559f6e3eede2df768d762457eb2a43f1e9c76e8b6e76c7498dc9547dcf25
41 -DIST git-manpages-2.9.2.tar.xz 392552 SHA256 4c5c516ee4c0412b9475739e2125a257f6022e7c7bd006827c376fe70d47c323 SHA512 0bfbe862ba3b735e38f0fef28f1491bdbd6aa60e7402a0bc4f9aea5f9774103aa2b20a880fabd7956aa1b87e6bbf13359aa37e7af0451c8d816aeb41e0610d60 WHIRLPOOL 28e9db9c4930bce124c89cac16c9285b2211888658f1445fa2e9a18fdd2d7b8c6ea68f8d65b2c54c34d271567626e8ad7714daefdf18f9a75a1979758301f2d0
42 DIST git-manpages-2.9.3.tar.xz 392648 SHA256 14e0e84af19b8d6b4f0b006b6e33486a0c40bca01e604e77f004efe564d54b4d SHA512 bc6ea4f517be4ff76b8f4b420173c9ba826095be3f6313e0dd2041198ee5b5af7ad07c10b9727aca992c7c4353272826408c42c5e7aeb6e75c6691a080eb9a77 WHIRLPOOL 1eb8f19cb7ac6dc6b90bc430b678512387727088933befef254a88704f0aa0057f8cac25fa574d1b7f6fa091401d62c70751a8b0b71e3ea85be619c936243d50
43
44 diff --git a/dev-vcs/git/git-2.9.2.ebuild b/dev-vcs/git/git-2.9.2.ebuild
45 deleted file mode 100644
46 index 95d95e7..00000000
47 --- a/dev-vcs/git/git-2.9.2.ebuild
48 +++ /dev/null
49 @@ -1,682 +0,0 @@
50 -# Copyright 1999-2016 Gentoo Foundation
51 -# Distributed under the terms of the GNU General Public License v2
52 -# $Id$
53 -
54 -EAPI=6
55 -
56 -GENTOO_DEPEND_ON_PERL=no
57 -
58 -# bug #329479: git-remote-testgit is not multiple-version aware
59 -PYTHON_COMPAT=( python2_7 )
60 -[[ ${PV} == *9999 ]] && SCM="git-r3"
61 -# Please ensure that all _four_ 9999 ebuilds get updated; they track the 4 upstream branches.
62 -# See https://git-scm.com/docs/gitworkflows#_graduation
63 -# In order of stability:
64 -# 9999-r0: maint
65 -# 9999-r1: master
66 -# 9999-r2: next
67 -# 9999-r3: pu
68 -EGIT_REPO_URI="git://git.kernel.org/pub/scm/git/git.git"
69 -EGIT_BRANCH=pu
70 -PLOCALES="bg ca de fr is it ko pt_PT ru sv vi zh_CN"
71 -
72 -inherit toolchain-funcs eutils elisp-common l10n perl-module bash-completion-r1 python-single-r1 systemd ${SCM}
73 -
74 -MY_PV="${PV/_rc/.rc}"
75 -MY_P="${PN}-${MY_PV}"
76 -
77 -DOC_VER=${MY_PV}
78 -
79 -DESCRIPTION="stupid content tracker: distributed VCS designed for speed and efficiency"
80 -HOMEPAGE="http://www.git-scm.com/"
81 -if [[ ${PV} != *9999 ]]; then
82 - SRC_URI_SUFFIX="xz"
83 - SRC_URI_GOOG="https://git-core.googlecode.com/files"
84 - SRC_URI_KORG="mirror://kernel/software/scm/git"
85 - SRC_URI="${SRC_URI_GOOG}/${MY_P}.tar.${SRC_URI_SUFFIX}
86 - ${SRC_URI_KORG}/${MY_P}.tar.${SRC_URI_SUFFIX}
87 - ${SRC_URI_GOOG}/${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
88 - ${SRC_URI_KORG}/${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
89 - doc? (
90 - ${SRC_URI_KORG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
91 - ${SRC_URI_GOOG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
92 - )"
93 - 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"
94 -fi
95 -
96 -LICENSE="GPL-2"
97 -SLOT="0"
98 -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"
99 -
100 -# Common to both DEPEND and RDEPEND
101 -CDEPEND="
102 - !libressl? ( dev-libs/openssl:0= )
103 - libressl? ( dev-libs/libressl:= )
104 - sys-libs/zlib
105 - pcre? ( dev-libs/libpcre )
106 - perl? ( dev-lang/perl:=[-build(-)] )
107 - tk? ( dev-lang/tk:0= )
108 - curl? (
109 - net-misc/curl
110 - webdav? ( dev-libs/expat )
111 - )
112 - emacs? ( virtual/emacs )
113 - gnome-keyring? ( gnome-base/libgnome-keyring )"
114 -
115 -RDEPEND="${CDEPEND}
116 - gpg? ( app-crypt/gnupg )
117 - mediawiki? (
118 - dev-perl/DateTime-Format-ISO8601
119 - dev-perl/HTML-Tree
120 - dev-perl/MediaWiki-API
121 - )
122 - perl? ( dev-perl/Error
123 - dev-perl/Net-SMTP-SSL
124 - dev-perl/Authen-SASL
125 - cgi? ( dev-perl/CGI highlight? ( app-text/highlight ) )
126 - cvs? ( >=dev-vcs/cvsps-2.1:0 dev-perl/DBI dev-perl/DBD-SQLite )
127 - subversion? ( dev-vcs/subversion[-dso,perl] dev-perl/libwww-perl dev-perl/TermReadKey )
128 - )
129 - python? ( gtk?
130 - (
131 - >=dev-python/pygtk-2.8[${PYTHON_USEDEP}]
132 - >=dev-python/pygtksourceview-2.10.1-r1:2[${PYTHON_USEDEP}]
133 - )
134 - ${PYTHON_DEPS} )"
135 -
136 -# This is how info docs are created with Git:
137 -# .txt/asciidoc --(asciidoc)---------> .xml/docbook
138 -# .xml/docbook --(docbook2texi.pl)--> .texi
139 -# .texi --(makeinfo)---------> .info
140 -DEPEND="${CDEPEND}
141 - doc? (
142 - app-text/asciidoc
143 - app-text/docbook2X
144 - sys-apps/texinfo
145 - app-text/xmlto
146 - )
147 - nls? ( sys-devel/gettext )
148 - test? ( app-crypt/gnupg )"
149 -
150 -# Live ebuild builds man pages and HTML docs, additionally
151 -if [[ ${PV} == *9999 ]]; then
152 - DEPEND="${DEPEND}
153 - app-text/asciidoc"
154 -fi
155 -
156 -SITEFILE=50${PN}-gentoo.el
157 -S="${WORKDIR}/${MY_P}"
158 -
159 -REQUIRED_USE="
160 - cgi? ( perl )
161 - cvs? ( perl )
162 - mediawiki? ( perl )
163 - mediawiki-experimental? ( mediawiki )
164 - subversion? ( perl )
165 - webdav? ( curl )
166 - gtk? ( python )
167 - python? ( ${PYTHON_REQUIRED_USE} )
168 -"
169 -
170 -PATCHES=(
171 - # bug #350330 - automagic CVS when we don't want it is bad.
172 - "${FILESDIR}"/git-2.8.4-optional-cvs.patch
173 -
174 - # install mediawiki perl modules also in vendor_dir
175 - # hack, needs better upstream solution
176 - "${FILESDIR}"/git-1.8.5-mw-vendor.patch
177 -
178 - "${FILESDIR}"/git-2.2.0-svn-fe-linking.patch
179 -
180 - # Bug #493306, where FreeBSD 10.x merged libiconv into its libc.
181 - "${FILESDIR}"/git-2.5.1-freebsd-10.x-no-iconv.patch
182 -)
183 -
184 -pkg_setup() {
185 - if use subversion && has_version "dev-vcs/subversion[dso]"; then
186 - ewarn "Per Gentoo bugs #223747, #238586, when subversion is built"
187 - ewarn "with USE=dso, there may be weird crashes in git-svn. You"
188 - ewarn "have been warned."
189 - fi
190 - if use python ; then
191 - python-single-r1_pkg_setup
192 - fi
193 -}
194 -
195 -# This is needed because for some obscure reasons future calls to make don't
196 -# pick up these exports if we export them in src_unpack()
197 -exportmakeopts() {
198 - local myopts
199 -
200 - if use blksha1 ; then
201 - myopts+=" BLK_SHA1=YesPlease"
202 - elif use ppcsha1 ; then
203 - myopts+=" PPC_SHA1=YesPlease"
204 - fi
205 -
206 - if use curl ; then
207 - use webdav || myopts+=" NO_EXPAT=YesPlease"
208 - else
209 - myopts+=" NO_CURL=YesPlease"
210 - fi
211 -
212 - # broken assumptions, because of broken build system ...
213 - myopts+=" NO_FINK=YesPlease NO_DARWIN_PORTS=YesPlease"
214 - myopts+=" INSTALL=install TAR=tar"
215 - myopts+=" SHELL_PATH=${EPREFIX}/bin/sh"
216 - myopts+=" SANE_TOOL_PATH="
217 - myopts+=" OLD_ICONV="
218 - myopts+=" NO_EXTERNAL_GREP="
219 -
220 - # For svn-fe
221 - extlibs="-lz -lssl ${S}/xdiff/lib.a $(usex threads -lpthread '')"
222 -
223 - # can't define this to null, since the entire makefile depends on it
224 - sed -i -e '/\/usr\/local/s/BASIC_/#BASIC_/' Makefile
225 -
226 - use iconv \
227 - || myopts+=" NO_ICONV=YesPlease"
228 - use nls \
229 - || myopts+=" NO_GETTEXT=YesPlease"
230 - use tk \
231 - || myopts+=" NO_TCLTK=YesPlease"
232 - use pcre \
233 - && myopts+=" USE_LIBPCRE=yes" \
234 - && extlibs+=" -lpcre"
235 - use perl \
236 - && myopts+=" INSTALLDIRS=vendor" \
237 - || myopts+=" NO_PERL=YesPlease"
238 - use python \
239 - || myopts+=" NO_PYTHON=YesPlease"
240 - use subversion \
241 - || myopts+=" NO_SVN_TESTS=YesPlease"
242 - use threads \
243 - && myopts+=" THREADED_DELTA_SEARCH=YesPlease" \
244 - || myopts+=" NO_PTHREADS=YesPlease"
245 - use cvs \
246 - || myopts+=" NO_CVS=YesPlease"
247 -# Disabled until ~m68k-mint can be keyworded again
248 -# if [[ ${CHOST} == *-mint* ]] ; then
249 -# myopts+=" NO_MMAP=YesPlease"
250 -# myopts+=" NO_IPV6=YesPlease"
251 -# myopts+=" NO_STRLCPY=YesPlease"
252 -# myopts+=" NO_MEMMEM=YesPlease"
253 -# myopts+=" NO_MKDTEMP=YesPlease"
254 -# myopts+=" NO_MKSTEMPS=YesPlease"
255 -# fi
256 - if [[ ${CHOST} == ia64-*-hpux* ]]; then
257 - myopts+=" NO_NSEC=YesPlease"
258 - fi
259 - if [[ ${CHOST} == *-*-aix* ]]; then
260 - myopts+=" NO_FNMATCH_CASEFOLD=YesPlease"
261 - fi
262 - if [[ ${CHOST} == *-solaris* ]]; then
263 - myopts+=" NEEDS_LIBICONV=YesPlease"
264 - myopts+=" HAVE_CLOCK_MONOTONIC=1"
265 - myopts+=" HAVE_GETDELIM=1"
266 - fi
267 -
268 - has_version '>=app-text/asciidoc-8.0' \
269 - && myopts+=" ASCIIDOC8=YesPlease"
270 - myopts+=" ASCIIDOC_NO_ROFF=YesPlease"
271 -
272 - # Bug 290465:
273 - # builtin-fetch-pack.c:816: error: 'struct stat' has no member named 'st_mtim'
274 - [[ "${CHOST}" == *-uclibc* ]] && \
275 - myopts+=" NO_NSEC=YesPlease"
276 -
277 - export MY_MAKEOPTS="${myopts}"
278 - export EXTLIBS="${extlibs}"
279 -}
280 -
281 -src_unpack() {
282 - if [[ ${PV} != *9999 ]]; then
283 - unpack ${MY_P}.tar.${SRC_URI_SUFFIX}
284 - cd "${S}"
285 - unpack ${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
286 - use doc && \
287 - cd "${S}"/Documentation && \
288 - unpack ${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
289 - cd "${S}"
290 - else
291 - git-r3_src_unpack
292 - cd "${S}"
293 - #cp "${FILESDIR}"/GIT-VERSION-GEN .
294 - fi
295 -
296 -}
297 -
298 -src_prepare() {
299 - # add experimental patches to improve mediawiki support
300 - # see patches for origin
301 - if use mediawiki-experimental ; then
302 - PATCHES+=(
303 - "${FILESDIR}"/git-2.7.0-mediawiki-namespaces.patch
304 - "${FILESDIR}"/git-2.7.0-mediawiki-subpages.patch
305 - "${FILESDIR}"/git-2.7.0-mediawiki-500pages.patch
306 - )
307 - fi
308 -
309 - default
310 -
311 - sed -i \
312 - -e 's:^\(CFLAGS[[:space:]]*=\).*$:\1 $(OPTCFLAGS) -Wall:' \
313 - -e 's:^\(LDFLAGS[[:space:]]*=\).*$:\1 $(OPTLDFLAGS):' \
314 - -e 's:^\(CC[[:space:]]* =\).*$:\1$(OPTCC):' \
315 - -e 's:^\(AR[[:space:]]* =\).*$:\1$(OPTAR):' \
316 - -e "s:\(PYTHON_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \
317 - -e "s:\(PERL_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \
318 - Makefile contrib/svn-fe/Makefile || die "sed failed"
319 -
320 - # Never install the private copy of Error.pm (bug #296310)
321 - sed -i \
322 - -e '/private-Error.pm/s,^,#,' \
323 - perl/Makefile.PL
324 -
325 - # Fix docbook2texi command
326 - sed -r -i 's/DOCBOOK2X_TEXI[[:space:]]*=[[:space:]]*docbook2x-texi/DOCBOOK2X_TEXI = docbook2texi.pl/' \
327 - Documentation/Makefile || die "sed failed"
328 -
329 - # Fix git-subtree missing DESTDIR
330 - sed -i \
331 - -e '/$(INSTALL)/s/ $(libexecdir)/ $(DESTDIR)$(libexecdir)/g' \
332 - -e '/$(INSTALL)/s/ $(man1dir)/ $(DESTDIR)$(man1dir)/g' \
333 - contrib/subtree/Makefile
334 -}
335 -
336 -git_emake() {
337 - # bug #326625: PERL_PATH, PERL_MM_OPT
338 - # bug #320647: PYTHON_PATH
339 - PYTHON_PATH=""
340 - use python && PYTHON_PATH="${PYTHON}"
341 - emake ${MY_MAKEOPTS} \
342 - DESTDIR="${D}" \
343 - OPTCFLAGS="${CFLAGS}" \
344 - OPTLDFLAGS="${LDFLAGS}" \
345 - OPTCC="$(tc-getCC)" \
346 - OPTAR="$(tc-getAR)" \
347 - prefix="${EPREFIX}"/usr \
348 - htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
349 - sysconfdir="${EPREFIX}"/etc \
350 - PYTHON_PATH="${PYTHON_PATH}" \
351 - PERL_MM_OPT="" \
352 - GIT_TEST_OPTS="--no-color" \
353 - V=1 \
354 - "$@"
355 - # This is the fix for bug #326625, but it also causes breakage, see bug
356 - # #352693.
357 - # PERL_PATH="${EPREFIX}/usr/bin/env perl" \
358 -}
359 -
360 -src_configure() {
361 - exportmakeopts
362 -}
363 -
364 -src_compile() {
365 - if use perl ; then
366 - git_emake perl/PM.stamp || die "emake perl/PM.stamp failed"
367 - git_emake perl/perl.mak || die "emake perl/perl.mak failed"
368 - fi
369 - git_emake || die "emake failed"
370 -
371 - if use emacs ; then
372 - elisp-compile contrib/emacs/git{,-blame}.el
373 - fi
374 -
375 - if use perl && use cgi ; then
376 - git_emake \
377 - gitweb \
378 - || die "emake gitweb (cgi) failed"
379 - fi
380 -
381 - if [[ ${CHOST} == *-darwin* ]]; then
382 - cd "${S}"/contrib/credential/osxkeychain || die
383 - git_emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" \
384 - || 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-r1.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 -}