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