1 |
commit: 6e9e603dffc39c5a4f642578840a03c8e4f7c8f7 |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 29 05:15:33 2017 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 29 05:15:33 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e9e603d |
7 |
|
8 |
dev-vcs/git: bump. |
9 |
|
10 |
Package-Manager: Portage-2.3.16, Repoman-2.3.6 |
11 |
|
12 |
dev-vcs/git/Manifest | 15 +- |
13 |
dev-vcs/git/git-2.15.1.ebuild | 699 ++++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 708 insertions(+), 6 deletions(-) |
15 |
|
16 |
diff --git a/dev-vcs/git/Manifest b/dev-vcs/git/Manifest |
17 |
index d5e00496694..c40b57f5daa 100644 |
18 |
--- a/dev-vcs/git/Manifest |
19 |
+++ b/dev-vcs/git/Manifest |
20 |
@@ -1,9 +1,12 @@ |
21 |
-DIST git-2.13.6.tar.xz 4756820 SHA256 bce97e403bea34f50378e90ade10c12666b2382cc247551b63dc5604e03b2523 SHA512 ed39784205e1077f886eebdfb34a205fb0433071de29f673a79ea32bca31a2ba9bdabba208c9679ea2f6f295bafad52a7e7852b5bd2ccb1e6c99a1d2e76e8ada WHIRLPOOL aeadb595a3fc9b74b143478436f4511d15735e5e01bbaf84bc60ef6c3bb91d94aa29ea1bd700a08d3aea3341de4cee5c4d5ced0b550a223faaadd37774cd3492 |
22 |
+DIST git-2.13.6.tar.xz 4756820 BLAKE2B 5fdb7aae5ceb1e1d0bd9be2541e8d39f28503ebeda5ef30eee306348afb290171cba7f8d6e0002775288bfba699ca12e388a4007008509d91a9ac92e90fb5d5c SHA512 ed39784205e1077f886eebdfb34a205fb0433071de29f673a79ea32bca31a2ba9bdabba208c9679ea2f6f295bafad52a7e7852b5bd2ccb1e6c99a1d2e76e8ada |
23 |
DIST git-2.14.3.tar.xz 4802252 SHA256 5330960dd52467f6e5bf1931b9fd42b76d3f8ce9bc75150b54ecfb57d407151d SHA512 e32e9ff904cbc2a77d78ca08953e3b69ac527c333a898dd053806e3d7e684ad4ae153ae7663b7ff9c16e2414c3189878a2e6c95fe9320b4af6cb1e7fa5102643 WHIRLPOOL 2ea153e7e32653a86d166c151c2dde5b1e3e1220cfead1ad771ae183aa0f73f04c77f51811f8a0f005f4c3590a288dcd98be8211dfcb989ef7d29328185f1de9 |
24 |
-DIST git-2.15.0.tar.xz 4892056 SHA256 107116489f10b758b51af1c5dbdb9a274917b0fb67dc8eaefcdabc7bc3eb3e6a SHA512 994704b440ebce104a99d815dd713af3173f29e70646d7135c3fcd1ac4694a26e499f0732843606c397cbf6108809eb397546c837623a4adbe1ccb2fc825cb64 WHIRLPOOL f03b8ba84c9e1e78680571af94b7b166774eab002ceb724c94c02b58d40b70fff7fc314ab5ee95cd2c8ae3dcf02355c8bb5f280f201efb8105c2015bda94cc71 |
25 |
-DIST git-htmldocs-2.13.6.tar.xz 1110668 SHA256 cdc39ecc8d1ce09f7b865832ebbc466441beb61d1aad4c7796514520220dabf0 SHA512 9eb26f04836620bf4486d3bb2a170ab2b0af319f7f53e2677f4c1445767f5c3521cfdbb274dcc4df2bfd2fc5bf0ca18c6a4a9ca0b9f957c53f66e530684af6cc WHIRLPOOL 126d8ae25c71dc4e6a6eb20ba611cd2eaf94ea8f4f89fde82b2d05044e93f425d9812559db5599b557a1a8f5832cc41d0651b421d265219c257351fe7fb41f2b |
26 |
+DIST git-2.15.0.tar.xz 4892056 BLAKE2B 89a035e143f2146d9cb6be3c7468fc8815c1cbd94cd3755be0dc4b34666c3f2b5013a542eaa9b1d420fc54b74533893b018b1f9b5859c4287a05008834ef40c9 SHA512 994704b440ebce104a99d815dd713af3173f29e70646d7135c3fcd1ac4694a26e499f0732843606c397cbf6108809eb397546c837623a4adbe1ccb2fc825cb64 |
27 |
+DIST git-2.15.1.tar.xz 4894768 BLAKE2B 89258e58ff06b50759364c79bebc9a70a267eca7bd25c1feb73ca49cb2b9cf5f6b890729aee4c9bda9025cbacfd8ed29d1a251ee0add9cd84c277e2bb29dbad5 SHA512 dcf300b28e41f7757d866e768d641137718b43eb6d12a2cfff99fb429775e0cab87bbff48147b8588bc0f69e92eb5ca2ad1f75c8cf5205e41853d8e8652f900b |
28 |
+DIST git-htmldocs-2.13.6.tar.xz 1110668 BLAKE2B 7cfbd453c72c3e300244f9a8c4d13efd60d22219dee48f6a06e6f23fb3a0bd5bc66e624829d685b3ae8b47b81bba39e605f0dd6fd3459364c83b2d922be94a64 SHA512 9eb26f04836620bf4486d3bb2a170ab2b0af319f7f53e2677f4c1445767f5c3521cfdbb274dcc4df2bfd2fc5bf0ca18c6a4a9ca0b9f957c53f66e530684af6cc |
29 |
DIST git-htmldocs-2.14.3.tar.xz 1116824 SHA256 9d28b922ad861bf747ca34a4f083efa3ce41ca39cccb0dfab8bdcf0b58694ccb SHA512 a73160724f944832f915ff29c557e2a968d6c5ae5c4e9759d96444af8841e52a1193d50a74f01deb1ec5ef03b3301897bd85c5ebb82ac22d8188d528629d74d4 WHIRLPOOL 748cf71a16871cb91e84f7fdd4a2f6beeaf05d514a7e6ea34d02256a8196d0f9814db252c98d6178643ae183f31813cadf9b7056b61ab4478c157e2236cc71bd |
30 |
-DIST git-htmldocs-2.15.0.tar.xz 1132908 SHA256 79b2029855eeab2a01f38baeeabf6fbd222ea6de02457f0d5b9f2325cf96c514 SHA512 a3ed8dd5ba7a35eb89b375a04bea2aee8ad08744ba4e0016842595491fd9ed95cebc969108865f4075271301fecc75e89393f83ac384abf8b74a0b3acee3b67e WHIRLPOOL 8857bb03b1ce7b958950daf171f5797c39711b868fd901f92c88682c9ce4aeabfd3013a49d74c922f23f09a04520534e45b4b3d498f945137b5f4b02a8f3e1a0 |
31 |
-DIST git-manpages-2.13.6.tar.xz 407660 SHA256 9c92ed09c3343c770a1afd9dbb1192b00ebb1b3d3e25e21a2dcb1a4e9a494d1d SHA512 b24a96053e348e1d2ebf5c66d968074bc73471f07ac3a680d8b16fd211b69b5fdfad6a087473edf9941ad08493e4d7ff0a916b85ce40ebe19b3e3dad6a4baf5f WHIRLPOOL f25b4b20462806a722067aecb7aa0526f00536630c8f71bd7be1ecc0ff4fec07db2fa79d69d911f3e1a2eaca9fe73ad76e76e7ef7afbb83698db42a540e4cfef |
32 |
+DIST git-htmldocs-2.15.0.tar.xz 1132908 BLAKE2B d90109c71b99e063c3494be44a35b19d4b445dccf7122563c38ee211bfd73b63b4c747048150ee89d3b92eb10b55e3856515a28280153bdcff640673b30a2a09 SHA512 a3ed8dd5ba7a35eb89b375a04bea2aee8ad08744ba4e0016842595491fd9ed95cebc969108865f4075271301fecc75e89393f83ac384abf8b74a0b3acee3b67e |
33 |
+DIST git-htmldocs-2.15.1.tar.xz 1134848 BLAKE2B 1efb6d4ca16779c39be69fed57fccb023ddac6bb9c9727ebd7050eb40035c1d56dbce0191224e8d3370d433d8e1cf210df9bc9bde2effb6fbb2d62bfd5e9e440 SHA512 50e53b506c17b046c42a8d9f888741b1f408fb7bb566d981ad6dcda3383f1d310008732a849b4755e7233dc83477f354e9c6d5d4e1fcf0e81af54d49153e8c34 |
34 |
+DIST git-manpages-2.13.6.tar.xz 407660 BLAKE2B 76bae6c11cf21f39adf121b4580fe10021e354374e37de6ca5eee6e60e1c7ef3b2dafb086c6b8d88f35216204269945cf45fcd6868f9940d2f00b72a87bad8e2 SHA512 b24a96053e348e1d2ebf5c66d968074bc73471f07ac3a680d8b16fd211b69b5fdfad6a087473edf9941ad08493e4d7ff0a916b85ce40ebe19b3e3dad6a4baf5f |
35 |
DIST git-manpages-2.14.3.tar.xz 411324 SHA256 5b0e3d93bafd539046b67778db0b5d627fe08ee5ef1be8b5b924517ed141b001 SHA512 3e1215bdc28df84fd26ba40f6aedfa9f2140c170af48148b1b89d28e8b411686376715920f86d9db9aa18f4a3f4e8f68082da7632febbcbc7fc956f32807da50 WHIRLPOOL 8f7ef94204fc0658b65228af5bb96077f78e92e37054627d83f817690476a6983abdb551222f9400e55d35201c07d0993eaedb262d41db44839d5a2fa30b19a8 |
36 |
-DIST git-manpages-2.15.0.tar.xz 412688 SHA256 22ad09441490f77bca781168fc66fd6576f0175407c5a95c1cdc96dfd3731c77 SHA512 4101d11c0cc2bd91fa496f11546ec439bc136cb40c7146d53532ab4c525b299741be64a5c4061ff0d5ae5c049d798c7662c7f1500d856f78e8ed653d2ce28aa5 WHIRLPOOL 4d84f7cab9cb346e5c39a2c28c82c732f356de83ecfaaf93a6b01364e8b2a25a67322c72bb97c675392cda718144d07d279a23e0ca6ef72f309eaa801cd90ceb |
37 |
+DIST git-manpages-2.15.0.tar.xz 412688 BLAKE2B 10b92b6fcc560a4a655124fde2591e496d6bf9d056058bb4729e03bf4d4c20caabd5eef73fab1adb8913070172b79adc9e4868649f3dd679099918e689597f45 SHA512 4101d11c0cc2bd91fa496f11546ec439bc136cb40c7146d53532ab4c525b299741be64a5c4061ff0d5ae5c049d798c7662c7f1500d856f78e8ed653d2ce28aa5 |
38 |
+DIST git-manpages-2.15.1.tar.xz 413124 BLAKE2B 61407bc2c87fddff7a992c25f71768e39bee56941a7291f8c03ee59d10f7db36259e80c6f85ca0303c5e79edb3e1ff02b4abc6c8577bb1f3072b8a469ca55f23 SHA512 de02606554c14fdb780f2885b8b88e6b15e82e4debe9f59da75d57832a41f688be9882e74eacd0dc36db7a42bfbd88c5168b378ca0c8658317fe68e207ec2d18 |
39 |
|
40 |
diff --git a/dev-vcs/git/git-2.15.1.ebuild b/dev-vcs/git/git-2.15.1.ebuild |
41 |
new file mode 100644 |
42 |
index 00000000000..d079a65a75e |
43 |
--- /dev/null |
44 |
+++ b/dev-vcs/git/git-2.15.1.ebuild |
45 |
@@ -0,0 +1,699 @@ |
46 |
+# Copyright 1999-2017 Gentoo Foundation |
47 |
+# Distributed under the terms of the GNU General Public License v2 |
48 |
+ |
49 |
+EAPI=6 |
50 |
+ |
51 |
+GENTOO_DEPEND_ON_PERL=no |
52 |
+ |
53 |
+# bug #329479: git-remote-testgit is not multiple-version aware |
54 |
+PYTHON_COMPAT=( python2_7 ) |
55 |
+PLOCALES="bg ca de fr is it ko pt_PT ru sv vi zh_CN" |
56 |
+if [[ ${PV} == *9999 ]]; then |
57 |
+ SCM="git-r3" |
58 |
+ EGIT_REPO_URI="git://git.kernel.org/pub/scm/git/git.git" |
59 |
+ # Please ensure that all _four_ 9999 ebuilds get updated; they track the 4 upstream branches. |
60 |
+ # See https://git-scm.com/docs/gitworkflows#_graduation |
61 |
+ # In order of stability: |
62 |
+ # 9999-r0: maint |
63 |
+ # 9999-r1: master |
64 |
+ # 9999-r2: next |
65 |
+ # 9999-r3: pu |
66 |
+ case "${PVR}" in |
67 |
+ 9999) EGIT_BRANCH=maint ;; |
68 |
+ 9999-r1) EGIT_BRANCH=master ;; |
69 |
+ 9999-r2) EGIT_BRANCH=next;; |
70 |
+ 9999-r3) EGIT_BRANCH=pu ;; |
71 |
+ esac |
72 |
+fi |
73 |
+ |
74 |
+inherit toolchain-funcs eutils elisp-common l10n perl-module bash-completion-r1 python-single-r1 systemd ${SCM} |
75 |
+ |
76 |
+MY_PV="${PV/_rc/.rc}" |
77 |
+MY_P="${PN}-${MY_PV}" |
78 |
+ |
79 |
+DOC_VER=${MY_PV} |
80 |
+ |
81 |
+DESCRIPTION="stupid content tracker: distributed VCS designed for speed and efficiency" |
82 |
+HOMEPAGE="http://www.git-scm.com/" |
83 |
+if [[ ${PV} != *9999 ]]; then |
84 |
+ SRC_URI_SUFFIX="xz" |
85 |
+ SRC_URI_KORG="mirror://kernel/software/scm/git" |
86 |
+ [[ "${PV/rc}" != "${PV}" ]] && SRC_URI_KORG+='/testing' |
87 |
+ SRC_URI="${SRC_URI_KORG}/${MY_P}.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 |
+ )" |
92 |
+ [[ "${PV}" = *_rc* ]] || \ |
93 |
+ 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" |
94 |
+fi |
95 |
+ |
96 |
+LICENSE="GPL-2" |
97 |
+SLOT="0" |
98 |
+IUSE="+blksha1 +curl cgi doc emacs gnome-keyring +gpg highlight +iconv libressl mediawiki mediawiki-experimental +nls +pcre +pcre-jit +perl +python ppcsha1 tk +threads +webdav xinetd cvs subversion test" |
99 |
+ |
100 |
+# Common to both DEPEND and RDEPEND |
101 |
+CDEPEND=" |
102 |
+ gnome-keyring? ( app-crypt/libsecret ) |
103 |
+ !libressl? ( dev-libs/openssl:0= ) |
104 |
+ libressl? ( dev-libs/libressl:= ) |
105 |
+ sys-libs/zlib |
106 |
+ pcre? ( |
107 |
+ pcre-jit? ( dev-libs/libpcre2[jit(+)] ) |
108 |
+ !pcre-jit? ( dev-libs/libpcre ) |
109 |
+ ) |
110 |
+ perl? ( dev-lang/perl:=[-build(-)] ) |
111 |
+ tk? ( dev-lang/tk:0= ) |
112 |
+ curl? ( |
113 |
+ net-misc/curl |
114 |
+ webdav? ( dev-libs/expat ) |
115 |
+ ) |
116 |
+ emacs? ( virtual/emacs ) |
117 |
+" |
118 |
+ |
119 |
+RDEPEND="${CDEPEND} |
120 |
+ gpg? ( app-crypt/gnupg ) |
121 |
+ mediawiki? ( |
122 |
+ dev-perl/DateTime-Format-ISO8601 |
123 |
+ dev-perl/HTML-Tree |
124 |
+ dev-perl/MediaWiki-API |
125 |
+ ) |
126 |
+ perl? ( dev-perl/Error |
127 |
+ dev-perl/Net-SMTP-SSL |
128 |
+ dev-perl/Authen-SASL |
129 |
+ cgi? ( dev-perl/CGI highlight? ( app-text/highlight ) ) |
130 |
+ cvs? ( >=dev-vcs/cvsps-2.1:0 dev-perl/DBI dev-perl/DBD-SQLite ) |
131 |
+ subversion? ( dev-vcs/subversion[-dso,perl] dev-perl/libwww-perl dev-perl/TermReadKey ) |
132 |
+ ) |
133 |
+ python? ( ${PYTHON_DEPS} ) |
134 |
+" |
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 |
+ pcre-jit? ( pcre ) |
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.12.0-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 static 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 |
+ if use pcre; then |
233 |
+ if use pcre-jit; then |
234 |
+ myopts+=" USE_LIBPCRE2=YesPlease" |
235 |
+ extlibs+=" -lpcre2-8" |
236 |
+ else |
237 |
+ myopts+=" USE_LIBPCRE1=YesPlease" |
238 |
+ myopts+=" NO_LIBPCRE1_JIT=YesPlease" |
239 |
+ extlibs+=" -lpcre" |
240 |
+ fi |
241 |
+ fi |
242 |
+ use perl \ |
243 |
+ && myopts+=" INSTALLDIRS=vendor" \ |
244 |
+ || myopts+=" NO_PERL=YesPlease" |
245 |
+ use python \ |
246 |
+ || myopts+=" NO_PYTHON=YesPlease" |
247 |
+ use subversion \ |
248 |
+ || myopts+=" NO_SVN_TESTS=YesPlease" |
249 |
+ use threads \ |
250 |
+ && myopts+=" THREADED_DELTA_SEARCH=YesPlease" \ |
251 |
+ || myopts+=" NO_PTHREADS=YesPlease" |
252 |
+ use cvs \ |
253 |
+ || myopts+=" NO_CVS=YesPlease" |
254 |
+ use elibc_musl \ |
255 |
+ && myopts+=" NO_REGEX=YesPlease" |
256 |
+# Disabled until ~m68k-mint can be keyworded again |
257 |
+# if [[ ${CHOST} == *-mint* ]] ; then |
258 |
+# myopts+=" NO_MMAP=YesPlease" |
259 |
+# myopts+=" NO_IPV6=YesPlease" |
260 |
+# myopts+=" NO_STRLCPY=YesPlease" |
261 |
+# myopts+=" NO_MEMMEM=YesPlease" |
262 |
+# myopts+=" NO_MKDTEMP=YesPlease" |
263 |
+# myopts+=" NO_MKSTEMPS=YesPlease" |
264 |
+# fi |
265 |
+ if [[ ${CHOST} == ia64-*-hpux* ]]; then |
266 |
+ myopts+=" NO_NSEC=YesPlease" |
267 |
+ fi |
268 |
+ if [[ ${CHOST} == *-*-aix* ]]; then |
269 |
+ myopts+=" NO_FNMATCH_CASEFOLD=YesPlease" |
270 |
+ fi |
271 |
+ if [[ ${CHOST} == *-solaris* ]]; then |
272 |
+ myopts+=" NEEDS_LIBICONV=YesPlease" |
273 |
+ myopts+=" HAVE_CLOCK_MONOTONIC=1" |
274 |
+ grep -q getdelim "${ROOT}"/usr/include/stdio.h && \ |
275 |
+ myopts+=" HAVE_GETDELIM=1" |
276 |
+ fi |
277 |
+ |
278 |
+ has_version '>=app-text/asciidoc-8.0' \ |
279 |
+ && myopts+=" ASCIIDOC8=YesPlease" |
280 |
+ myopts+=" ASCIIDOC_NO_ROFF=YesPlease" |
281 |
+ |
282 |
+ # Bug 290465: |
283 |
+ # builtin-fetch-pack.c:816: error: 'struct stat' has no member named 'st_mtim' |
284 |
+ [[ "${CHOST}" == *-uclibc* ]] && \ |
285 |
+ myopts+=" NO_NSEC=YesPlease" |
286 |
+ |
287 |
+ export MY_MAKEOPTS="${myopts}" |
288 |
+ export EXTLIBS="${extlibs}" |
289 |
+} |
290 |
+ |
291 |
+src_unpack() { |
292 |
+ if [[ ${PV} != *9999 ]]; then |
293 |
+ unpack ${MY_P}.tar.${SRC_URI_SUFFIX} |
294 |
+ cd "${S}" |
295 |
+ unpack ${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX} |
296 |
+ use doc && \ |
297 |
+ cd "${S}"/Documentation && \ |
298 |
+ unpack ${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX} |
299 |
+ cd "${S}" |
300 |
+ else |
301 |
+ git-r3_src_unpack |
302 |
+ cd "${S}" |
303 |
+ #cp "${FILESDIR}"/GIT-VERSION-GEN . |
304 |
+ fi |
305 |
+ |
306 |
+} |
307 |
+ |
308 |
+src_prepare() { |
309 |
+ # add experimental patches to improve mediawiki support |
310 |
+ # see patches for origin |
311 |
+ if use mediawiki-experimental ; then |
312 |
+ PATCHES+=( |
313 |
+ "${FILESDIR}"/git-2.7.0-mediawiki-namespaces.patch |
314 |
+ "${FILESDIR}"/git-2.7.0-mediawiki-subpages.patch |
315 |
+ "${FILESDIR}"/git-2.7.0-mediawiki-500pages.patch |
316 |
+ ) |
317 |
+ fi |
318 |
+ |
319 |
+ default |
320 |
+ |
321 |
+ sed -i \ |
322 |
+ -e 's:^\(CFLAGS[[:space:]]*=\).*$:\1 $(OPTCFLAGS) -Wall:' \ |
323 |
+ -e 's:^\(LDFLAGS[[:space:]]*=\).*$:\1 $(OPTLDFLAGS):' \ |
324 |
+ -e 's:^\(CC[[:space:]]* =\).*$:\1$(OPTCC):' \ |
325 |
+ -e 's:^\(AR[[:space:]]* =\).*$:\1$(OPTAR):' \ |
326 |
+ -e "s:\(PYTHON_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \ |
327 |
+ -e "s:\(PERL_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \ |
328 |
+ Makefile contrib/svn-fe/Makefile || die "sed failed" |
329 |
+ |
330 |
+ # Never install the private copy of Error.pm (bug #296310) |
331 |
+ sed -i \ |
332 |
+ -e '/private-Error.pm/s,^,#,' \ |
333 |
+ perl/Makefile.PL |
334 |
+ |
335 |
+ # Fix docbook2texi command |
336 |
+ sed -r -i 's/DOCBOOK2X_TEXI[[:space:]]*=[[:space:]]*docbook2x-texi/DOCBOOK2X_TEXI = docbook2texi.pl/' \ |
337 |
+ Documentation/Makefile || die "sed failed" |
338 |
+ |
339 |
+ # Fix git-subtree missing DESTDIR |
340 |
+ sed -i \ |
341 |
+ -e '/$(INSTALL)/s/ $(libexecdir)/ $(DESTDIR)$(libexecdir)/g' \ |
342 |
+ -e '/$(INSTALL)/s/ $(man1dir)/ $(DESTDIR)$(man1dir)/g' \ |
343 |
+ contrib/subtree/Makefile |
344 |
+} |
345 |
+ |
346 |
+git_emake() { |
347 |
+ # bug #326625: PERL_PATH, PERL_MM_OPT |
348 |
+ # bug #320647: PYTHON_PATH |
349 |
+ PYTHON_PATH="" |
350 |
+ use python && PYTHON_PATH="${PYTHON}" |
351 |
+ emake ${MY_MAKEOPTS} \ |
352 |
+ DESTDIR="${D}" \ |
353 |
+ OPTCFLAGS="${CFLAGS}" \ |
354 |
+ OPTLDFLAGS="${LDFLAGS}" \ |
355 |
+ OPTCC="$(tc-getCC)" \ |
356 |
+ OPTAR="$(tc-getAR)" \ |
357 |
+ prefix="${EPREFIX}"/usr \ |
358 |
+ htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \ |
359 |
+ sysconfdir="${EPREFIX}"/etc \ |
360 |
+ PYTHON_PATH="${PYTHON_PATH}" \ |
361 |
+ PERL_MM_OPT="" \ |
362 |
+ GIT_TEST_OPTS="--no-color" \ |
363 |
+ V=1 \ |
364 |
+ "$@" |
365 |
+ # This is the fix for bug #326625, but it also causes breakage, see bug |
366 |
+ # #352693. |
367 |
+ # PERL_PATH="${EPREFIX}/usr/bin/env perl" \ |
368 |
+} |
369 |
+ |
370 |
+src_configure() { |
371 |
+ exportmakeopts |
372 |
+} |
373 |
+ |
374 |
+src_compile() { |
375 |
+ if use perl ; then |
376 |
+ git_emake perl/PM.stamp || die "emake perl/PM.stamp failed" |
377 |
+ git_emake perl/perl.mak || die "emake perl/perl.mak failed" |
378 |
+ fi |
379 |
+ git_emake || die "emake failed" |
380 |
+ |
381 |
+ if use emacs ; then |
382 |
+ elisp-compile contrib/emacs/git{,-blame}.el |
383 |
+ fi |
384 |
+ |
385 |
+ if use perl && use cgi ; then |
386 |
+ git_emake \ |
387 |
+ gitweb \ |
388 |
+ || die "emake gitweb (cgi) failed" |
389 |
+ fi |
390 |
+ |
391 |
+ if [[ ${CHOST} == *-darwin* ]]; then |
392 |
+ cd "${S}"/contrib/credential/osxkeychain || die |
393 |
+ git_emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" \ |
394 |
+ || die "emake credential-osxkeychain" |
395 |
+ fi |
396 |
+ |
397 |
+ cd "${S}"/Documentation |
398 |
+ if [[ ${PV} == *9999 ]] ; then |
399 |
+ git_emake man \ |
400 |
+ || die "emake man failed" |
401 |
+ if use doc ; then |
402 |
+ git_emake info html \ |
403 |
+ || die "emake info html failed" |
404 |
+ fi |
405 |
+ else |
406 |
+ if use doc ; then |
407 |
+ git_emake info \ |
408 |
+ || die "emake info html failed" |
409 |
+ fi |
410 |
+ fi |
411 |
+ |
412 |
+ if use subversion ; then |
413 |
+ cd "${S}"/contrib/svn-fe |
414 |
+ # by defining EXTLIBS we override the detection for libintl and |
415 |
+ # libiconv, bug #516168 |
416 |
+ local nlsiconv= |
417 |
+ use nls && use !elibc_glibc && nlsiconv+=" -lintl" |
418 |
+ use iconv && use !elibc_glibc && nlsiconv+=" -liconv" |
419 |
+ git_emake EXTLIBS="${EXTLIBS} ${nlsiconv}" || die "emake svn-fe failed" |
420 |
+ if use doc ; then |
421 |
+ git_emake svn-fe.{1,html} || die "emake svn-fe.1 svn-fe.html failed" |
422 |
+ fi |
423 |
+ cd "${S}" |
424 |
+ fi |
425 |
+ |
426 |
+ if use gnome-keyring ; then |
427 |
+ cd "${S}"/contrib/credential/libsecret |
428 |
+ git_emake || die "emake git-credential-libsecret failed" |
429 |
+ fi |
430 |
+ |
431 |
+ cd "${S}"/contrib/subtree || die |
432 |
+ git_emake |
433 |
+ use doc && git_emake doc |
434 |
+ |
435 |
+ cd "${S}"/contrib/diff-highlight || die |
436 |
+ git_emake |
437 |
+ |
438 |
+ if use mediawiki ; then |
439 |
+ cd "${S}"/contrib/mw-to-git |
440 |
+ git_emake |
441 |
+ fi |
442 |
+} |
443 |
+ |
444 |
+src_install() { |
445 |
+ git_emake \ |
446 |
+ install || \ |
447 |
+ die "make install failed" |
448 |
+ |
449 |
+ if [[ ${CHOST} == *-darwin* ]]; then |
450 |
+ dobin contrib/credential/osxkeychain/git-credential-osxkeychain |
451 |
+ fi |
452 |
+ |
453 |
+ # Depending on the tarball and manual rebuild of the documentation, the |
454 |
+ # manpages may exist in either OR both of these directories. |
455 |
+ find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157] |
456 |
+ find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157] |
457 |
+ dodoc README* Documentation/{SubmittingPatches,CodingGuidelines} |
458 |
+ use doc && dodir /usr/share/doc/${PF}/html |
459 |
+ for d in / /howto/ /technical/ ; do |
460 |
+ docinto ${d} |
461 |
+ dodoc Documentation${d}*.txt |
462 |
+ if use doc ; then |
463 |
+ docinto ${d}/html |
464 |
+ dodoc Documentation${d}*.html |
465 |
+ fi |
466 |
+ done |
467 |
+ docinto / |
468 |
+ # Upstream does not ship this pre-built :-( |
469 |
+ use doc && doinfo Documentation/{git,gitman}.info |
470 |
+ |
471 |
+ newbashcomp contrib/completion/git-completion.bash ${PN} |
472 |
+ bashcomp_alias git gitk |
473 |
+ # Not really a bash-completion file (bug #477920) |
474 |
+ # but still needed uncompressed (bug #507480) |
475 |
+ insinto /usr/share/${PN} |
476 |
+ doins contrib/completion/git-prompt.sh |
477 |
+ |
478 |
+ if use emacs ; then |
479 |
+ elisp-install ${PN} contrib/emacs/git.{el,elc} |
480 |
+ elisp-install ${PN} contrib/emacs/git-blame.{el,elc} |
481 |
+ #elisp-install ${PN}/compat contrib/emacs/vc-git.{el,elc} |
482 |
+ # don't add automatically to the load-path, so the sitefile |
483 |
+ # can do a conditional loading |
484 |
+ touch "${ED}${SITELISP}/${PN}/compat/.nosearch" |
485 |
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE} |
486 |
+ fi |
487 |
+ |
488 |
+ #dobin contrib/fast-import/git-p4 # Moved upstream |
489 |
+ #dodoc contrib/fast-import/git-p4.txt # Moved upstream |
490 |
+ newbin contrib/fast-import/import-tars.perl import-tars |
491 |
+ exeinto /usr/libexec/git-core/ |
492 |
+ newexe contrib/git-resurrect.sh git-resurrect |
493 |
+ |
494 |
+ # git-subtree |
495 |
+ cd "${S}"/contrib/subtree |
496 |
+ git_emake install || die "Failed to emake install git-subtree" |
497 |
+ if use doc ; then |
498 |
+ git_emake install-man install-doc || die "Failed to emake install-doc install-mangit-subtree" |
499 |
+ fi |
500 |
+ newdoc README README.git-subtree |
501 |
+ dodoc git-subtree.txt |
502 |
+ cd "${S}" |
503 |
+ |
504 |
+ if use mediawiki ; then |
505 |
+ cd "${S}"/contrib/mw-to-git |
506 |
+ git_emake install |
507 |
+ cd "${S}" |
508 |
+ fi |
509 |
+ |
510 |
+ # diff-highlight |
511 |
+ dobin contrib/diff-highlight/diff-highlight |
512 |
+ newdoc contrib/diff-highlight/README README.diff-highlight |
513 |
+ |
514 |
+ # git-jump |
515 |
+ exeinto /usr/libexec/git-core/ |
516 |
+ doexe contrib/git-jump/git-jump |
517 |
+ newdoc contrib/git-jump/README git-jump.txt |
518 |
+ |
519 |
+ # git-contacts |
520 |
+ exeinto /usr/libexec/git-core/ |
521 |
+ doexe contrib/contacts/git-contacts |
522 |
+ dodoc contrib/contacts/git-contacts.txt |
523 |
+ |
524 |
+ if use gnome-keyring ; then |
525 |
+ cd "${S}"/contrib/credential/libsecret |
526 |
+ dobin git-credential-libsecret |
527 |
+ fi |
528 |
+ |
529 |
+ if use subversion ; then |
530 |
+ cd "${S}"/contrib/svn-fe |
531 |
+ dobin svn-fe |
532 |
+ dodoc svn-fe.txt |
533 |
+ if use doc ; then |
534 |
+ doman svn-fe.1 |
535 |
+ docinto html |
536 |
+ dodoc svn-fe.html |
537 |
+ fi |
538 |
+ cd "${S}" |
539 |
+ fi |
540 |
+ |
541 |
+ dodir /usr/share/${PN}/contrib |
542 |
+ # The following are excluded: |
543 |
+ # completion - installed above |
544 |
+ # diff-highlight - done above |
545 |
+ # emacs - installed above |
546 |
+ # examples - these are stuff that is not used in Git anymore actually |
547 |
+ # git-jump - done above |
548 |
+ # gitview - installed above |
549 |
+ # p4import - excluded because fast-import has a better one |
550 |
+ # patches - stuff the Git guys made to go upstream to other places |
551 |
+ # persistent-https - TODO |
552 |
+ # mw-to-git - TODO |
553 |
+ # subtree - build seperately |
554 |
+ # svnimport - use git-svn |
555 |
+ # thunderbird-patch-inline - fixes thunderbird |
556 |
+ local contrib_objects=( |
557 |
+ buildsystems |
558 |
+ fast-import |
559 |
+ hg-to-git |
560 |
+ hooks |
561 |
+ remotes2config.sh |
562 |
+ rerere-train.sh |
563 |
+ stats |
564 |
+ workdir |
565 |
+ ) |
566 |
+ for i in "${contrib_objects[@]}" ; do |
567 |
+ cp -rf \ |
568 |
+ "${S}"/contrib/${i} \ |
569 |
+ "${ED}"/usr/share/${PN}/contrib \ |
570 |
+ || die "Failed contrib ${i}" |
571 |
+ done |
572 |
+ |
573 |
+ if use perl && use cgi ; then |
574 |
+ # We used to install in /usr/share/${PN}/gitweb |
575 |
+ # but upstream installs in /usr/share/gitweb |
576 |
+ # so we will install a symlink and use their location for compat with other |
577 |
+ # distros |
578 |
+ dosym /usr/share/gitweb /usr/share/${PN}/gitweb |
579 |
+ |
580 |
+ # INSTALL discusses configuration issues, not just installation |
581 |
+ docinto / |
582 |
+ newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb |
583 |
+ newdoc "${S}"/gitweb/README README.gitweb |
584 |
+ |
585 |
+ find "${ED}"/usr/lib64/perl5/ \ |
586 |
+ -name .packlist \ |
587 |
+ -exec rm \{\} \; |
588 |
+ else |
589 |
+ rm -rf "${ED}"/usr/share/gitweb |
590 |
+ fi |
591 |
+ |
592 |
+ if ! use subversion ; then |
593 |
+ rm -f "${ED}"/usr/libexec/git-core/git-svn \ |
594 |
+ "${ED}"/usr/share/man/man1/git-svn.1* |
595 |
+ fi |
596 |
+ |
597 |
+ if use xinetd ; then |
598 |
+ insinto /etc/xinetd.d |
599 |
+ newins "${FILESDIR}"/git-daemon.xinetd git-daemon |
600 |
+ fi |
601 |
+ |
602 |
+ if use !prefix ; then |
603 |
+ newinitd "${FILESDIR}"/git-daemon-r1.initd git-daemon |
604 |
+ newconfd "${FILESDIR}"/git-daemon.confd git-daemon |
605 |
+ systemd_newunit "${FILESDIR}/git-daemon_at-r1.service" "git-daemon@.service" |
606 |
+ systemd_dounit "${FILESDIR}/git-daemon.socket" |
607 |
+ fi |
608 |
+ |
609 |
+ perl_delete_localpod |
610 |
+ |
611 |
+ # Remove disabled linguas |
612 |
+ # we could remove sources in src_prepare, but install does not |
613 |
+ # handle missing locale dir well |
614 |
+ rm_loc() { |
615 |
+ if [[ -e "${ED}/usr/share/locale/${1}" ]]; then |
616 |
+ rm -r "${ED}/usr/share/locale/${1}" || die |
617 |
+ fi |
618 |
+ } |
619 |
+ l10n_for_each_disabled_locale_do rm_loc |
620 |
+} |
621 |
+ |
622 |
+src_test() { |
623 |
+ local disabled="t9128-git-svn-cmd-branch.sh" |
624 |
+ local tests_cvs="t9200-git-cvsexportcommit.sh \ |
625 |
+ t9400-git-cvsserver-server.sh \ |
626 |
+ t9401-git-cvsserver-crlf.sh \ |
627 |
+ t9402-git-cvsserver-refs.sh \ |
628 |
+ t9600-cvsimport.sh \ |
629 |
+ t9601-cvsimport-vendor-branch.sh \ |
630 |
+ t9602-cvsimport-branches-tags.sh \ |
631 |
+ t9603-cvsimport-patchsets.sh \ |
632 |
+ t9604-cvsimport-timestamps.sh" |
633 |
+ local tests_perl="t3701-add-interactive.sh \ |
634 |
+ t5502-quickfetch.sh \ |
635 |
+ t5512-ls-remote.sh \ |
636 |
+ t5520-pull.sh \ |
637 |
+ t7106-reset-unborn-branch.sh \ |
638 |
+ t7501-commit.sh" |
639 |
+ # Bug #225601 - t0004 is not suitable for root perm |
640 |
+ # Bug #219839 - t1004 is not suitable for root perm |
641 |
+ # t0001-init.sh - check for init notices EPERM* fails |
642 |
+ local tests_nonroot="t0001-init.sh \ |
643 |
+ t0004-unwritable.sh \ |
644 |
+ t0070-fundamental.sh \ |
645 |
+ t1004-read-tree-m-u-wf.sh \ |
646 |
+ t3700-add.sh \ |
647 |
+ t7300-clean.sh" |
648 |
+ # t9100 still fails with symlinks in SVN 1.7 |
649 |
+ local test_svn="t9100-git-svn-basic.sh" |
650 |
+ |
651 |
+ # Unzip is used only for the testcase code, not by any normal parts of Git. |
652 |
+ if ! has_version app-arch/unzip ; then |
653 |
+ einfo "Disabling tar-tree tests" |
654 |
+ disabled="${disabled} t5000-tar-tree.sh" |
655 |
+ fi |
656 |
+ |
657 |
+ cvs=0 |
658 |
+ use cvs && let cvs=$cvs+1 |
659 |
+ if [[ ${EUID} -eq 0 ]]; then |
660 |
+ if [[ $cvs -eq 1 ]]; then |
661 |
+ ewarn "Skipping CVS tests because CVS does not work as root!" |
662 |
+ ewarn "You should retest with FEATURES=userpriv!" |
663 |
+ disabled="${disabled} ${tests_cvs}" |
664 |
+ fi |
665 |
+ einfo "Skipping other tests that require being non-root" |
666 |
+ disabled="${disabled} ${tests_nonroot}" |
667 |
+ else |
668 |
+ [[ $cvs -gt 0 ]] && \ |
669 |
+ has_version dev-vcs/cvs && \ |
670 |
+ let cvs=$cvs+1 |
671 |
+ [[ $cvs -gt 1 ]] && \ |
672 |
+ has_version "dev-vcs/cvs[server]" && \ |
673 |
+ let cvs=$cvs+1 |
674 |
+ if [[ $cvs -lt 3 ]]; then |
675 |
+ einfo "Disabling CVS tests (needs dev-vcs/cvs[USE=server])" |
676 |
+ disabled="${disabled} ${tests_cvs}" |
677 |
+ fi |
678 |
+ fi |
679 |
+ |
680 |
+ if ! use perl ; then |
681 |
+ einfo "Disabling tests that need Perl" |
682 |
+ disabled="${disabled} ${tests_perl}" |
683 |
+ fi |
684 |
+ |
685 |
+ einfo "Disabling tests that fail with SVN 1.7" |
686 |
+ disabled="${disabled} ${test_svn}" |
687 |
+ |
688 |
+ # Reset all previously disabled tests |
689 |
+ cd "${S}/t" |
690 |
+ for i in *.sh.DISABLED ; do |
691 |
+ [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}" |
692 |
+ done |
693 |
+ einfo "Disabled tests:" |
694 |
+ for i in ${disabled} ; do |
695 |
+ [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i" |
696 |
+ done |
697 |
+ |
698 |
+ # Avoid the test system removing the results because we want them ourselves |
699 |
+ sed -e '/^[[:space:]]*$(MAKE) clean/s,^,#,g' \ |
700 |
+ -i "${S}"/t/Makefile |
701 |
+ |
702 |
+ # Clean old results first, must always run |
703 |
+ cd "${S}/t" |
704 |
+ nonfatal git_emake clean |
705 |
+ |
706 |
+ # Now run the tests, keep going if we hit an error, and don't terminate on |
707 |
+ # failure |
708 |
+ cd "${S}" |
709 |
+ einfo "Start test run" |
710 |
+ #MAKEOPTS=-j1 |
711 |
+ nonfatal git_emake --keep-going test |
712 |
+ rc=$? |
713 |
+ |
714 |
+ # Display nice results, now print the results |
715 |
+ cd "${S}/t" |
716 |
+ nonfatal git_emake aggregate-results |
717 |
+ |
718 |
+ # And bail if there was a problem |
719 |
+ [ $rc -eq 0 ] || die "tests failed. Please file a bug." |
720 |
+} |
721 |
+ |
722 |
+showpkgdeps() { |
723 |
+ local pkg=$1 |
724 |
+ shift |
725 |
+ elog " $(printf "%-17s:" ${pkg}) ${@}" |
726 |
+} |
727 |
+ |
728 |
+pkg_postinst() { |
729 |
+ use emacs && elisp-site-regen |
730 |
+ einfo "Please read /usr/share/bash-completion/git for Git bash command completion" |
731 |
+ einfo "Please read /usr/share/git/git-prompt.sh for Git bash prompt" |
732 |
+ einfo "Note that the prompt bash code is now in that separate script" |
733 |
+ elog "These additional scripts need some dependencies:" |
734 |
+ echo |
735 |
+ showpkgdeps git-quiltimport "dev-util/quilt" |
736 |
+ showpkgdeps git-instaweb \ |
737 |
+ "|| ( www-servers/lighttpd www-servers/apache www-servers/nginx )" |
738 |
+ echo |
739 |
+ use mediawiki-experimental && ewarn "Using experimental git-mediawiki patches. The stability of cloned wiki filesystems is not guaranteed." |
740 |
+} |
741 |
+ |
742 |
+pkg_postrm() { |
743 |
+ use emacs && elisp-site-regen |
744 |
+} |