1 |
commit: 8eea074e9111eb38905041ecf904e85679088f57 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 29 20:13:24 2016 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 29 20:33:16 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8eea074e |
7 |
|
8 |
dev-vcs/git: Bump to version 2.10.2 |
9 |
|
10 |
Package-Manager: portage-2.3.2 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
dev-vcs/git/Manifest | 3 + |
14 |
dev-vcs/git/git-2.10.2.ebuild | 682 ++++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 685 insertions(+) |
16 |
|
17 |
diff --git a/dev-vcs/git/Manifest b/dev-vcs/git/Manifest |
18 |
index 76d7274..2dcc78c 100644 |
19 |
--- a/dev-vcs/git/Manifest |
20 |
+++ b/dev-vcs/git/Manifest |
21 |
@@ -1,5 +1,6 @@ |
22 |
DIST git-2.10.0.tar.xz 4096264 SHA256 c73364ac00ae85ffc6cfb12ca2700bb0edf30f63262be97be4039be594ff29e7 SHA512 69d031f55141c2cb2cfce69ac808d1765c1502e10867e8f6e8fb2d9ac5e2fa5773f3ba4a8f4b59e313c715e757c97b3cd3f1b13da45c7bc3958bf53026f0718e WHIRLPOOL 7d5aaa0cef6df32941ed05959816dd66613ec100f534dbc877d4a9000813d2c9880634922bf1b4ace3a7a0e1ad09337fc7612caa8b582f75474eb79b4d4d9127 |
23 |
DIST git-2.10.1.tar.xz 4102452 SHA256 a9c32df9061cfc2c194ecaa0357ba273c1f24a0dbf0d856b03dcedafcd0a4dc6 SHA512 976c62b530405388f77b01abb9dd40929831e0fdb83574c5c56ea309af462805659a20685221cf011db67635cebfe550853d1ba3764118bb53df41cf480f216a WHIRLPOOL e4c077c09ffdbe960450f48cf089836f12fe64e3b919a5e744a8644511d958f08f77f5066c189a9616e649fb20d05104dcd3fd0b345f3eff6c3f860945231bf6 |
24 |
+DIST git-2.10.2.tar.xz 4106108 SHA256 94802903dd707d85ca3b9a2be35e936a54ce86375f52c6a789efe7ce7e238671 SHA512 0ab09de481dbb31c3304382afaa5d3fc9f861115c9954c65b11a8a1c34b939118c7ed3ff60ac329145888596388e3e4d2b2fb677fe109d33a57206d531b5ee6a WHIRLPOOL 808404fa13f908d149028f64aaf5b73400448fff6393dabfaa874d750065e86ff5dae4903724cbca4e59fb74b3ff30b8b8f0a0f1435a0a90c18267c7a0550de6 |
25 |
DIST git-2.4.11.tar.xz 3695028 SHA256 ebca2cf93b7200d6d7b9982e3e9857f0b433a05e51338a600c799e97919118e3 SHA512 34c60fa67e336a4c807a5f49e26083442acc52781b0adbd3f9d96b9594c0688686b30ca3a152621047489d59beb65ad99089a2f02cc589d6e3b36a79db1388fe WHIRLPOOL 75e6b3090560e7aef4fcb382413a7432ecb63880a4139466a64dd06d4777441afd34c208a59dba9a01144f0c2f3a3763a267672f9f7155867b462b4c0bf09cba |
26 |
DIST git-2.5.5.tar.xz 3747448 SHA256 82976a05dd85d44405ec9758040dd190507494fa2af322bd2c97163024ce1e82 SHA512 edf223df92298a3d25865140b4a2c2194840b21f96c13e07ac35940d6afa759f766e4d36ad2e2428ba913c4949b4f76283475a6b7aa1cc774523c793cb5794f1 WHIRLPOOL 3ab15f8a0bc54d3865537bc70c9a0d6e3d8f30b9ba8c68c2dadbd77575f892f55e0e010b9ac89af03ca228f034abbccac53a619865c1e8044f61dedef8713501 |
27 |
DIST git-2.6.6.tar.xz 3822260 SHA256 8d53410d60f9c36b0f34c125076634d068c8d812f4143fa10b7130cd7acf7ec2 SHA512 5c77f83f34296f85d1b1f1bf00a59664bced9db7ad222606471d8400772441775b82fdbfae637aa11006164c4fc9912b8218aa2f6f7812112048902ecf5f0000 WHIRLPOOL ffc6d10b166b3d0ff1e51fe44a6809877b2d4a9679fc519b7648897621ea02616e330ae46693a2f306286b40c0b41589b20bc93e240b87d535ac5b9b84b28738 |
28 |
@@ -10,6 +11,7 @@ DIST git-2.8.4.tar.xz 3982836 SHA256 120e9a32a1858871dea34165622ec7a63f27887b930 |
29 |
DIST git-2.9.3.tar.xz 4025288 SHA256 9f1473350c1792310b51af03a9cb5cce841f68202f835b20d46312a30232fa63 SHA512 7152d075b705c92c813e977558b1a6d8d1c9e6ac01b41ee052bcd40c056f08c6fdb030ef0995822c6d22ce44b739935d89026aeae35f8b93fb569773c4b005bb WHIRLPOOL 0117dad19c4a74dcc7a7963dd2ffa60f5a1e10890e4f233b1c92cce87c07e3da270a65464ed152fc20ffbea34f074342a9153f7a328cae2d850b763b3a196c3e |
30 |
DIST git-htmldocs-2.10.0.tar.xz 1064292 SHA256 b51b7c51c9c50450b233c6461f1987424e8096f05261fc1284bc3c0a8f8da559 SHA512 035de46a751641e5c533d506905951d162b6170c4b0a6361ead49b106c40190520539ed64e44d98236ee70b464b2bfa0239af9fc3c6c75c92b5f287c9d932308 WHIRLPOOL fa2f516504ae79dbbc7fbe962877bbbf5dea8d2ab846dc5d06bd1e6f13fc8ea09d6d523f80c340e164207eaaf7d52f926330be6ac723323311a6fc638f91e53e |
31 |
DIST git-htmldocs-2.10.1.tar.xz 1067144 SHA256 40f9ce980f91c0391438e5d04a1bb11b128c6b6bf272eac44d6fca80f2dacfcb SHA512 530c0b76263cfc4f4147fb6b8b485494f1c1bafd5e92bd5c5e16de914ab5f13eb0c358f4b36aba8471d70ffb087925598ea39116c254564c86f8c10061c3dd90 WHIRLPOOL 7d10f8e46419e38f31bdd9eef4a9aa5f8773b7f50394ba7ea8fb03fd5a224401a8abd781d2f4b41b6768331fb68177059d773ba326d624d376049dfb211036dc |
32 |
+DIST git-htmldocs-2.10.2.tar.xz 1068436 SHA256 dd43111c3518a92a7fe64ac5cd32a5d4d77d49c67f7d89dce3e8293bc3d6b491 SHA512 8ef57218d7eef285ac427414d92bd5e8eba5c85c2a2a9ec0e423705ee2cb6f26dd33ad780d1b4237e7534dbe5cc3b4d8eea5780d0acc49066d78fc1893df2525 WHIRLPOOL 160fe3446d959d0f2315c9b2be182925619a4d89343602038e92283abdb393805eb5252799c502b83641d9e23a157332033baaa1ef2f1d9401cbbf372d8e86d7 |
33 |
DIST git-htmldocs-2.4.11.tar.xz 997132 SHA256 2764af41b319f4d11b29832de4bd05392f2887d9a1d3c56c864fb081920eac97 SHA512 d5d2abae9cc303fe8ebeb72ae7078d44db94610d549ca03afffcbbef8b611efda662677423d9ff97a0c7a2384bbd4c3468b01a2ecd7b68f4fdc89e62ad688eb4 WHIRLPOOL 66cd4fc754be7c103ca58a030d4799ba988792419a426e85a39805172e6329ec617b3561696dc74be36801cca0b17a26102a194a1a58d6c7b9ee1ab17752c4a6 |
34 |
DIST git-htmldocs-2.5.5.tar.xz 1010216 SHA256 15de2f234cf419496399f7ad396709544d62537488a8e5200e6e34b0f1a685e7 SHA512 265ddf3835352f85eb2e2ee983eb8aaf37bc7b151968866bdb8b9bb6782cdb72dbd1fefe5d7f694a6825954d49bcf4c799e8bcb4e3b25e3f228f6f97f041fd9b WHIRLPOOL 90da44c0bdb6f9ff428d1673289e612936ed5f26110cd13d155c8cbef8433b13bd8b15cea88f967224a699e4c3a6ac41d70b67be1b25c4d35989879626eb10ad |
35 |
DIST git-htmldocs-2.6.6.tar.xz 1021856 SHA256 897fb0bc7e2eb67a4b582c963f337fda3a6ad2b23bca55e27f23f7d15bad7c5d SHA512 85dcd8514e1ba2cb591512a0003aedf25eafbf185ba1eed01f8adfd9eb467d29b17108e6b087183004004ab17301316d403cd6762619ac2a030a565ea5c776b3 WHIRLPOOL 3cd964f1d0164db98e97e0097813a620911adadd9c50837e23a5ca79eb0f2d988aa68317b5b79fa7b052900564657c36d050e75841a1018d5ff12e1299c01dc6 |
36 |
@@ -19,6 +21,7 @@ DIST git-htmldocs-2.8.4.tar.xz 1042260 SHA256 78135be591e3a68d1030a76e343d59622e |
37 |
DIST git-htmldocs-2.9.3.tar.xz 1055980 SHA256 abfa0e160c062a36956beaa5e8bf4d6e2db93f235c892f94681bd6f1feb71865 SHA512 4ce1c00767d485ca4ebec9ea5a3d001d4395eb44c2c82caec36b18dd1df26cbbd5d458d9c2b83b54d572d830eb0bccf2916f28863a96384cd3d6fcb741f1b97f WHIRLPOOL b3c16dd25da7309c4c8302008eda147e113e025081dfa447c6de629ae68fe5369e391c402fe3cdbfba2187040559609082edae5469238af68a1e17bd805acddf |
38 |
DIST git-manpages-2.10.0.tar.xz 394924 SHA256 3e17997d10ba18f4ad4dcddf58f7175ee78da1514b5afca3a6f198d957d822f9 SHA512 76529a4e14d92f3e80072af38335d7304a57ae42367bd99dc807231538ea67cef242546025176b3174e5b6a5e29a0da6fd598e6ec0f1c35a52b44ef0f296045e WHIRLPOOL 1da8c6fbfa801e280c0d7cb45055ed8a41619d102155d503565a9ed75249cfb18274f94c26e0992433a01b37d6e77873ab006b7ca4727401e89b2dca3f2831b0 |
39 |
DIST git-manpages-2.10.1.tar.xz 395560 SHA256 89ff7aae275252d6b01cac6479e10e1be2e0208181ff14decf200606b5223611 SHA512 648c8f1705137459728d24610888bbcadd31bcd082984e9eddc045011852b1d696204f2d69b0d441989e44e78d6b73c240164f0f0e3d8fb451e30376094ef845 WHIRLPOOL 8fdea82f3c79206f5c10544641b623cabf340780c4ed29c8d60f74ecf17e30f31108bd5d1aed0e66556b071a640748a6904df166a7a61934d2649311d7e68679 |
40 |
+DIST git-manpages-2.10.2.tar.xz 395556 SHA256 83b0a317f6039ad95ef6af6a182cf659c2d053eed5d8f70b06710eb787f8aa6f SHA512 0dc5df8441601865511983b85762102396cbf7c704fd831eb6666ef7b7639252b971f6b4080b8a57226a86124edcdd77acf24374da22047bd315769a09109bef WHIRLPOOL e1d6b9cb4479b584c16a25a4f3b0528d96d483307e768efea3d7bd8156d74e1c59b61a641dfe5671f4cb01a02f10322262d133cb76f85194ac97ee74c6195d0e |
41 |
DIST git-manpages-2.4.11.tar.xz 373956 SHA256 0a1fff7650e635339f92985a47198f5f6664eda1c233c3cf48e92f22c3735db2 SHA512 78226baf1c8be28c456a84b06f403af9b918cd3e46218917cce18b3b9ce494600bf00014b818ca0dff9f675aca8b17cd9f7893c7063e218d719a9567e81d9040 WHIRLPOOL f8883ca7d327c378937f62287cbb515b5271cb8aeda18d32135f1c7ea71c9f39282fe55b191476f046de4815a994e4f6f98696d9353f0bfcca7994101398786c |
42 |
DIST git-manpages-2.5.5.tar.xz 378304 SHA256 41b66002436add0781618764c3f0c8222bac7d8a636f1d7e2994480b22369930 SHA512 bebcc04fa54080316d01f1bd1ba7b91a1712e6c6a6f95306d9f079cf5858cf0fb2ccea24c606153e9adb99e956c5dbae5a5c7a7a0ed8c643efdf5a5db599cda1 WHIRLPOOL e72873d3f1a404a311e643d89cf65996d884e794e468417272cdda494ef621f0ebf875faa17433e443fcece54608c59a3c094372101bf4342fadcf8395dabce8 |
43 |
DIST git-manpages-2.6.6.tar.xz 381588 SHA256 0f64c1db015e3c74e56eef646a9fdd456cf043cae54714f404ad9b35ddb537a0 SHA512 bd8573f58bd988f78978041b88643e6d0af99ae0df4be6ec80db7de6e042970a23d9a153e84ddb8ffc538724b1482ff6dac7594462e28073067f54d040fdddfd WHIRLPOOL 3e8af6df1b96e3211c5799ace846dab331f30c1133c1d093e344b4576d8f588631e29187909b600112a9f7b42a0de63f56cec953e0d162cc49c2b6efeef0db53 |
44 |
|
45 |
diff --git a/dev-vcs/git/git-2.10.2.ebuild b/dev-vcs/git/git-2.10.2.ebuild |
46 |
new file mode 100644 |
47 |
index 00000000..2d9fd8a |
48 |
--- /dev/null |
49 |
+++ b/dev-vcs/git/git-2.10.2.ebuild |
50 |
@@ -0,0 +1,682 @@ |
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="stupid content tracker: distributed VCS designed for speed and efficiency" |
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.10.0-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 |
384 |
+ git_emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" \ |
385 |
+ || die "emake credential-osxkeychain" |
386 |
+ fi |
387 |
+ |
388 |
+ cd "${S}"/Documentation |
389 |
+ if [[ ${PV} == *9999 ]] ; then |
390 |
+ git_emake man \ |
391 |
+ || die "emake man failed" |
392 |
+ if use doc ; then |
393 |
+ git_emake info html \ |
394 |
+ || die "emake info html failed" |
395 |
+ fi |
396 |
+ else |
397 |
+ if use doc ; then |
398 |
+ git_emake info \ |
399 |
+ || die "emake info html failed" |
400 |
+ fi |
401 |
+ fi |
402 |
+ |
403 |
+ if use subversion ; then |
404 |
+ cd "${S}"/contrib/svn-fe |
405 |
+ # by defining EXTLIBS we override the detection for libintl and |
406 |
+ # libiconv, bug #516168 |
407 |
+ local nlsiconv= |
408 |
+ use nls && use !elibc_glibc && nlsiconv+=" -lintl" |
409 |
+ use iconv && use !elibc_glibc && nlsiconv+=" -liconv" |
410 |
+ git_emake EXTLIBS="${EXTLIBS} ${nlsiconv}" || die "emake svn-fe failed" |
411 |
+ if use doc ; then |
412 |
+ git_emake svn-fe.{1,html} || die "emake svn-fe.1 svn-fe.html failed" |
413 |
+ fi |
414 |
+ cd "${S}" |
415 |
+ fi |
416 |
+ |
417 |
+ if use gnome-keyring ; then |
418 |
+ cd "${S}"/contrib/credential/gnome-keyring |
419 |
+ git_emake || die "emake git-credential-gnome-keyring failed" |
420 |
+ fi |
421 |
+ |
422 |
+ cd "${S}"/contrib/subtree |
423 |
+ git_emake |
424 |
+ use doc && git_emake doc |
425 |
+ |
426 |
+ if use mediawiki ; then |
427 |
+ cd "${S}"/contrib/mw-to-git |
428 |
+ git_emake |
429 |
+ fi |
430 |
+} |
431 |
+ |
432 |
+src_install() { |
433 |
+ git_emake \ |
434 |
+ install || \ |
435 |
+ die "make install failed" |
436 |
+ |
437 |
+ if [[ ${CHOST} == *-darwin* ]]; then |
438 |
+ dobin contrib/credential/osxkeychain/git-credential-osxkeychain |
439 |
+ fi |
440 |
+ |
441 |
+ # Depending on the tarball and manual rebuild of the documentation, the |
442 |
+ # manpages may exist in either OR both of these directories. |
443 |
+ find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157] |
444 |
+ find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157] |
445 |
+ dodoc README* Documentation/{SubmittingPatches,CodingGuidelines} |
446 |
+ use doc && dodir /usr/share/doc/${PF}/html |
447 |
+ for d in / /howto/ /technical/ ; do |
448 |
+ docinto ${d} |
449 |
+ dodoc Documentation${d}*.txt |
450 |
+ if use doc ; then |
451 |
+ docinto ${d}/html |
452 |
+ dodoc Documentation${d}*.html |
453 |
+ fi |
454 |
+ done |
455 |
+ docinto / |
456 |
+ # Upstream does not ship this pre-built :-( |
457 |
+ use doc && doinfo Documentation/{git,gitman}.info |
458 |
+ |
459 |
+ newbashcomp contrib/completion/git-completion.bash ${PN} |
460 |
+ bashcomp_alias git gitk |
461 |
+ # Not really a bash-completion file (bug #477920) |
462 |
+ # but still needed uncompressed (bug #507480) |
463 |
+ insinto /usr/share/${PN} |
464 |
+ doins contrib/completion/git-prompt.sh |
465 |
+ |
466 |
+ if use emacs ; then |
467 |
+ elisp-install ${PN} contrib/emacs/git.{el,elc} |
468 |
+ elisp-install ${PN} contrib/emacs/git-blame.{el,elc} |
469 |
+ #elisp-install ${PN}/compat contrib/emacs/vc-git.{el,elc} |
470 |
+ # don't add automatically to the load-path, so the sitefile |
471 |
+ # can do a conditional loading |
472 |
+ touch "${ED}${SITELISP}/${PN}/compat/.nosearch" |
473 |
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE} |
474 |
+ fi |
475 |
+ |
476 |
+ if use python && use gtk ; then |
477 |
+ python_doscript "${S}"/contrib/gitview/gitview |
478 |
+ dodoc "${S}"/contrib/gitview/gitview.txt |
479 |
+ fi |
480 |
+ |
481 |
+ #dobin contrib/fast-import/git-p4 # Moved upstream |
482 |
+ #dodoc contrib/fast-import/git-p4.txt # Moved upstream |
483 |
+ newbin contrib/fast-import/import-tars.perl import-tars |
484 |
+ exeinto /usr/libexec/git-core/ |
485 |
+ newexe contrib/git-resurrect.sh git-resurrect |
486 |
+ |
487 |
+ # git-subtree |
488 |
+ cd "${S}"/contrib/subtree |
489 |
+ git_emake install || die "Failed to emake install git-subtree" |
490 |
+ if use doc ; then |
491 |
+ git_emake install-man install-doc || die "Failed to emake install-doc install-mangit-subtree" |
492 |
+ fi |
493 |
+ newdoc README README.git-subtree |
494 |
+ dodoc git-subtree.txt |
495 |
+ cd "${S}" |
496 |
+ |
497 |
+ if use mediawiki ; then |
498 |
+ cd "${S}"/contrib/mw-to-git |
499 |
+ git_emake install |
500 |
+ cd "${S}" |
501 |
+ fi |
502 |
+ |
503 |
+ # diff-highlight |
504 |
+ dobin contrib/diff-highlight/diff-highlight |
505 |
+ newdoc contrib/diff-highlight/README README.diff-highlight |
506 |
+ |
507 |
+ # git-jump |
508 |
+ exeinto /usr/libexec/git-core/ |
509 |
+ doexe contrib/git-jump/git-jump |
510 |
+ newdoc contrib/git-jump/README git-jump.txt |
511 |
+ |
512 |
+ # git-contacts |
513 |
+ exeinto /usr/libexec/git-core/ |
514 |
+ doexe contrib/contacts/git-contacts |
515 |
+ dodoc contrib/contacts/git-contacts.txt |
516 |
+ |
517 |
+ if use gnome-keyring ; then |
518 |
+ cd "${S}"/contrib/credential/gnome-keyring |
519 |
+ dobin git-credential-gnome-keyring |
520 |
+ fi |
521 |
+ |
522 |
+ if use subversion ; then |
523 |
+ cd "${S}"/contrib/svn-fe |
524 |
+ dobin svn-fe |
525 |
+ dodoc svn-fe.txt |
526 |
+ if use doc ; then |
527 |
+ doman svn-fe.1 |
528 |
+ docinto html |
529 |
+ dodoc svn-fe.html |
530 |
+ fi |
531 |
+ cd "${S}" |
532 |
+ fi |
533 |
+ |
534 |
+ dodir /usr/share/${PN}/contrib |
535 |
+ # The following are excluded: |
536 |
+ # completion - installed above |
537 |
+ # credential/gnome-keyring TODO |
538 |
+ # diff-highlight - done above |
539 |
+ # emacs - installed above |
540 |
+ # examples - these are stuff that is not used in Git anymore actually |
541 |
+ # git-jump - done above |
542 |
+ # gitview - installed above |
543 |
+ # p4import - excluded because fast-import has a better one |
544 |
+ # patches - stuff the Git guys made to go upstream to other places |
545 |
+ # persistent-https - TODO |
546 |
+ # mw-to-git - TODO |
547 |
+ # subtree - build seperately |
548 |
+ # svnimport - use git-svn |
549 |
+ # thunderbird-patch-inline - fixes thunderbird |
550 |
+ for i in \ |
551 |
+ buildsystems convert-objects fast-import \ |
552 |
+ hg-to-git hooks remotes2config.sh rerere-train.sh \ |
553 |
+ stats workdir \ |
554 |
+ ; do |
555 |
+ cp -rf \ |
556 |
+ "${S}"/contrib/${i} \ |
557 |
+ "${ED}"/usr/share/${PN}/contrib \ |
558 |
+ || die "Failed contrib ${i}" |
559 |
+ done |
560 |
+ |
561 |
+ if use perl && use cgi ; then |
562 |
+ # We used to install in /usr/share/${PN}/gitweb |
563 |
+ # but upstream installs in /usr/share/gitweb |
564 |
+ # so we will install a symlink and use their location for compat with other |
565 |
+ # distros |
566 |
+ dosym /usr/share/gitweb /usr/share/${PN}/gitweb |
567 |
+ |
568 |
+ # INSTALL discusses configuration issues, not just installation |
569 |
+ docinto / |
570 |
+ newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb |
571 |
+ newdoc "${S}"/gitweb/README README.gitweb |
572 |
+ |
573 |
+ find "${ED}"/usr/lib64/perl5/ \ |
574 |
+ -name .packlist \ |
575 |
+ -exec rm \{\} \; |
576 |
+ else |
577 |
+ rm -rf "${ED}"/usr/share/gitweb |
578 |
+ fi |
579 |
+ |
580 |
+ if ! use subversion ; then |
581 |
+ rm -f "${ED}"/usr/libexec/git-core/git-svn \ |
582 |
+ "${ED}"/usr/share/man/man1/git-svn.1* |
583 |
+ fi |
584 |
+ |
585 |
+ if use xinetd ; then |
586 |
+ insinto /etc/xinetd.d |
587 |
+ newins "${FILESDIR}"/git-daemon.xinetd git-daemon |
588 |
+ fi |
589 |
+ |
590 |
+ if use !prefix ; then |
591 |
+ newinitd "${FILESDIR}"/git-daemon-r1.initd git-daemon |
592 |
+ newconfd "${FILESDIR}"/git-daemon.confd git-daemon |
593 |
+ systemd_newunit "${FILESDIR}/git-daemon_at-r1.service" "git-daemon@.service" |
594 |
+ systemd_dounit "${FILESDIR}/git-daemon.socket" |
595 |
+ fi |
596 |
+ |
597 |
+ perl_delete_localpod |
598 |
+ |
599 |
+ # Remove disabled linguas |
600 |
+ # we could remove sources in src_prepare, but install does not |
601 |
+ # handle missing locale dir well |
602 |
+ rm_loc() { |
603 |
+ if [[ -e "${ED}/usr/share/locale/${1}" ]]; then |
604 |
+ rm -r "${ED}/usr/share/locale/${1}" || die |
605 |
+ fi |
606 |
+ } |
607 |
+ l10n_for_each_disabled_locale_do rm_loc |
608 |
+} |
609 |
+ |
610 |
+src_test() { |
611 |
+ local disabled="" |
612 |
+ local tests_cvs="t9200-git-cvsexportcommit.sh \ |
613 |
+ t9400-git-cvsserver-server.sh \ |
614 |
+ t9401-git-cvsserver-crlf.sh \ |
615 |
+ t9402-git-cvsserver-refs.sh \ |
616 |
+ t9600-cvsimport.sh \ |
617 |
+ t9601-cvsimport-vendor-branch.sh \ |
618 |
+ t9602-cvsimport-branches-tags.sh \ |
619 |
+ t9603-cvsimport-patchsets.sh \ |
620 |
+ t9604-cvsimport-timestamps.sh" |
621 |
+ local tests_perl="t3701-add-interactive.sh \ |
622 |
+ t5502-quickfetch.sh \ |
623 |
+ t5512-ls-remote.sh \ |
624 |
+ t5520-pull.sh \ |
625 |
+ t7106-reset-unborn-branch.sh \ |
626 |
+ t7501-commit.sh" |
627 |
+ # Bug #225601 - t0004 is not suitable for root perm |
628 |
+ # Bug #219839 - t1004 is not suitable for root perm |
629 |
+ # t0001-init.sh - check for init notices EPERM* fails |
630 |
+ local tests_nonroot="t0001-init.sh \ |
631 |
+ t0004-unwritable.sh \ |
632 |
+ t0070-fundamental.sh \ |
633 |
+ t1004-read-tree-m-u-wf.sh \ |
634 |
+ t3700-add.sh \ |
635 |
+ t7300-clean.sh" |
636 |
+ # t9100 still fails with symlinks in SVN 1.7 |
637 |
+ local test_svn="t9100-git-svn-basic.sh" |
638 |
+ |
639 |
+ # Unzip is used only for the testcase code, not by any normal parts of Git. |
640 |
+ if ! has_version app-arch/unzip ; then |
641 |
+ einfo "Disabling tar-tree tests" |
642 |
+ disabled="${disabled} t5000-tar-tree.sh" |
643 |
+ fi |
644 |
+ |
645 |
+ cvs=0 |
646 |
+ use cvs && let cvs=$cvs+1 |
647 |
+ if [[ ${EUID} -eq 0 ]]; then |
648 |
+ if [[ $cvs -eq 1 ]]; then |
649 |
+ ewarn "Skipping CVS tests because CVS does not work as root!" |
650 |
+ ewarn "You should retest with FEATURES=userpriv!" |
651 |
+ disabled="${disabled} ${tests_cvs}" |
652 |
+ fi |
653 |
+ einfo "Skipping other tests that require being non-root" |
654 |
+ disabled="${disabled} ${tests_nonroot}" |
655 |
+ else |
656 |
+ [[ $cvs -gt 0 ]] && \ |
657 |
+ has_version dev-vcs/cvs && \ |
658 |
+ let cvs=$cvs+1 |
659 |
+ [[ $cvs -gt 1 ]] && \ |
660 |
+ has_version "dev-vcs/cvs[server]" && \ |
661 |
+ let cvs=$cvs+1 |
662 |
+ if [[ $cvs -lt 3 ]]; then |
663 |
+ einfo "Disabling CVS tests (needs dev-vcs/cvs[USE=server])" |
664 |
+ disabled="${disabled} ${tests_cvs}" |
665 |
+ fi |
666 |
+ fi |
667 |
+ |
668 |
+ if ! use perl ; then |
669 |
+ einfo "Disabling tests that need Perl" |
670 |
+ disabled="${disabled} ${tests_perl}" |
671 |
+ fi |
672 |
+ |
673 |
+ einfo "Disabling tests that fail with SVN 1.7" |
674 |
+ disabled="${disabled} ${test_svn}" |
675 |
+ |
676 |
+ # Reset all previously disabled tests |
677 |
+ cd "${S}/t" |
678 |
+ for i in *.sh.DISABLED ; do |
679 |
+ [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}" |
680 |
+ done |
681 |
+ einfo "Disabled tests:" |
682 |
+ for i in ${disabled} ; do |
683 |
+ [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i" |
684 |
+ done |
685 |
+ |
686 |
+ # Avoid the test system removing the results because we want them ourselves |
687 |
+ sed -e '/^[[:space:]]*$(MAKE) clean/s,^,#,g' \ |
688 |
+ -i "${S}"/t/Makefile |
689 |
+ |
690 |
+ # Clean old results first, must always run |
691 |
+ cd "${S}/t" |
692 |
+ nonfatal git_emake clean |
693 |
+ |
694 |
+ # Now run the tests, keep going if we hit an error, and don't terminate on |
695 |
+ # failure |
696 |
+ cd "${S}" |
697 |
+ einfo "Start test run" |
698 |
+ #MAKEOPTS=-j1 |
699 |
+ nonfatal git_emake --keep-going test |
700 |
+ rc=$? |
701 |
+ |
702 |
+ # Display nice results, now print the results |
703 |
+ cd "${S}/t" |
704 |
+ nonfatal git_emake aggregate-results |
705 |
+ |
706 |
+ # And bail if there was a problem |
707 |
+ [ $rc -eq 0 ] || die "tests failed. Please file a bug." |
708 |
+} |
709 |
+ |
710 |
+showpkgdeps() { |
711 |
+ local pkg=$1 |
712 |
+ shift |
713 |
+ elog " $(printf "%-17s:" ${pkg}) ${@}" |
714 |
+} |
715 |
+ |
716 |
+pkg_postinst() { |
717 |
+ use emacs && elisp-site-regen |
718 |
+ einfo "Please read /usr/share/bash-completion/git for Git bash command completion" |
719 |
+ einfo "Please read /usr/share/git/git-prompt.sh for Git bash prompt" |
720 |
+ einfo "Note that the prompt bash code is now in that separate script" |
721 |
+ elog "These additional scripts need some dependencies:" |
722 |
+ echo |
723 |
+ showpkgdeps git-quiltimport "dev-util/quilt" |
724 |
+ showpkgdeps git-instaweb \ |
725 |
+ "|| ( www-servers/lighttpd www-servers/apache www-servers/nginx )" |
726 |
+ echo |
727 |
+ use mediawiki-experimental && ewarn "Using experimental git-mediawiki patches. The stability of cloned wiki filesystems is not guaranteed." |
728 |
+} |
729 |
+ |
730 |
+pkg_postrm() { |
731 |
+ use emacs && elisp-site-regen |
732 |
+} |