1 |
commit: dd79518381fc1eca4247cf7bcae2982084a97116 |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 2 23:14:10 2017 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 2 23:14:10 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd795183 |
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.1.ebuild | 681 ++++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 684 insertions(+) |
15 |
|
16 |
diff --git a/dev-vcs/git/Manifest b/dev-vcs/git/Manifest |
17 |
index de8623c..e0a50c2 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.tar.xz 4197984 SHA256 7e7e8d69d494892373b87007674be5820a4bc1ef596a0117d03ea3169119fd0b SHA512 f9588dfcb4ae38adc46300b8ef65ee51343fc4685f9e43bffff10839a492e6a54c7f7a774687fef3ebb8a30108775aa472cda2378aa202905f8555bfb9d4ede2 WHIRLPOOL 73ce3c2cb083906b1e55245935a01b27881be48d2c4c3cace8353a4c2baf87fe3ce338553f66407cb629fa9c8c63d396ef09f4d6aa18803d487af4dd3fef8f10 |
24 |
+DIST git-2.11.1.tar.xz 4208132 SHA256 c0a779cae325d48a1d5ba08b6ee1febcc31d0657a6da01fd1dec1c6e10976415 SHA512 c9d4196ad9c4f656b5a25fe688c06248bfce4fadac38e9bc835e5e9063ab95e3d4b3db4174acea0b3b64c5455adc93d39870f2b6009d2dd6aa0edb5a5f5bda40 WHIRLPOOL c91d7d096348cacd5a691d12406acb98d7fd703ac06e4d4fc31d85eead29c87860a96d43df06c1e3610837b4eb34adccb5b7b259531e064d495347fd2b14914e |
25 |
DIST git-2.7.3-00-9831e92bfa833ee9c0ce464bbc2f941ae6c2698d-lose-name-path.patch 28198 SHA256 b6bf7d67b9cc4d34550a10933af63b665b136b869dbbe23ad3ece0d463f027f9 SHA512 3fd64b0d6b53d5b08b791195e6edc162db682fc8a1bafc04aab7a7a4e61e2db4b3b84d9f769e0d7756da2739bdd900e30a233c228706c39817e42e309c36684c WHIRLPOOL 7e1d9337d46222ea4ae2164429a6a220adb0f763bdde6722c0f2adf79789e092f5cfb74b932597b8d3971af4fc27dede1fea51b9cb72b44ec8e30bd78bdaaa8d |
26 |
DIST git-2.7.3.tar.xz 3909636 SHA256 89c467912d4740da2b40288f956251f0a1e276e28eecd28a6d776067103629b6 SHA512 f7acbf52d12f39d323bd90a82c7135aa2aacf2661f7087c71b41dbfbec688342e0a2fc061fc0f216848a538a0dbc4fce68e24ea2a26e747f5eb92f763fa5bc72 WHIRLPOOL 5cc261749f91c2e0b0509d2fac1bc7426b3ddcc37e859d4f524838e1dd471071ad430886751933bae57aafc20bdcf3f9a43f4c018cc9c89610134a5203b22447 |
27 |
DIST git-2.7.4.tar.xz 3909636 SHA256 dee574defbe05ec7356a0842ddbda51315926f2fa7e39c2539f2c3dcc52e457b SHA512 82a646140834e909bf1748a017e86f37f0711c759fe0a6ad03529beb57c79742cb7bf77c2dba29ccd84fcf3d5f18ad9c85c00f002d3b257be42e058750423da7 WHIRLPOOL 74532038b6ba95a5354f43ebad00a9c159c495d46e7dc1b8a2a59f5a86e149538190d9800144a719dcc00e28cfea1039cd5dbfb67fd5aac5e7d0998d3231bae3 |
28 |
@@ -9,6 +10,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.tar.xz 1080584 SHA256 3975399f1be3d959edf0fded03eab8fbf94787bfd0318b7644c77cf61e4a7b48 SHA512 50250028030b1b277c17f27bc8bc0aa35938e7ae690d59bfff0a2d1f91c60564b254ce5b242f9ca081bfae60a9fb70cef538586abc0878bab6105e904748ee63 WHIRLPOOL 0839629b8f2fa08e22b69fe3638d67ae08d78dceaa008d8f35932ff361a1c1d8dbcd1262d4e469b5cd511a5dfb1848061d8e3491051188d0f90a6f0f98fa8003 |
32 |
+DIST git-htmldocs-2.11.1.tar.xz 1083264 SHA256 1a5f1e4a5eadad89b0783efa08bb1f7e3802d4a4d0a135bf5f61fd672ea3846e SHA512 dee37cfa0870f7289c66c3c58bb86d01324bfd30f4d4a05dedebef98ddb38339c7937bb2caee0e1d35ef579de414e5f280d5fd9f48fb427f497fe2f7d62f7d2a WHIRLPOOL 0ec4856405dbbc89547ab6d7236a787516fb7b8a8d2a3ff190b310c6b83cccfd080a5e9bac0523c99b34849b14a0eb96ffc16348643f65b38ebcdc3c8d8cd17e |
33 |
DIST git-htmldocs-2.7.3.tar.xz 1031848 SHA256 f71f5e8e1a6103e83ea794f367bc419a1d14ba0f79ebacdc81b3b9430714adea SHA512 50de5d9d3c0f6d874a6a4bc3b247a1795b1bcf154a276b546f88c3b5f5fb2eb27212d207a4bb50c04cba36d8537853afd25816addfb87c9a50e18528d93586fe WHIRLPOOL 057d9bebfe51c29a0a7f689baa9873cb6a54feb1d2869c541396902b160379c9220c5de79a4cb59c6e804e5c7557c0fd141b89621b97d3b495dc6e0a77c67a9f |
34 |
DIST git-htmldocs-2.7.4.tar.xz 1032428 SHA256 3fae21e2e68104621ea1405be73192b46bf3ef29bbc248a81b1e7e6fcf5acfad SHA512 f05b7b8a4dd4abe23f7e51982e9c33026aa31610ac8640028aeae6b310b70b764aee9a81fa702ed0712ccf1b7ad897e06163eb5c5246c14f6cce7c5f4e462682 WHIRLPOOL 87fc486d182a4b72fd906105fefcc53b722c4ae6832b290cd6f759ac1eca7ebfbbe7c0e72c1d7b5ef3581d19d7576f1d0387d6e5b0a33d960d57f59ee61a7869 |
35 |
DIST git-htmldocs-2.8.4.tar.xz 1042260 SHA256 78135be591e3a68d1030a76e343d59622e5e40f6990667f4385a01d9dafe9bbd SHA512 5da40db4421f94a969b83bfa0ea6e5ccf3fce8c2085ea2271a2eb3e1b4fc496c36ae8790207cd1814ff747b7633bb27fd53bb9c012f866ea1e7f1cc8065379dd WHIRLPOOL 4f80041ad4ef8b178a6b91313680433a7e07b0ecb15354304436d70880063b2f9cdd875fcd95684a817272d05a57485e1863e9e06c3788eddf0e5f031279ea9a |
36 |
@@ -16,6 +18,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.tar.xz 399992 SHA256 b3d3e78829c0b69b727aaca407ecfe239a46db3f354f16189f7a7c10af9528d8 SHA512 5b72b2dd7e151bde0fdc5ca5044391ebd9943ee8313133fdea1e0cb13b90ddd9164ee46f9c49ca2a70f636da7bcb54651a6389ed1c0a8693cf8eb31bfea49079 WHIRLPOOL 93fd5b6819ab0942421368d9c0e4723d6f5d2650e94ad8cab225499bb616f162e754a5e08a8f7f0ec74e378069cec0109047c72b67fa9d5c2d244399127b942a |
40 |
+DIST git-manpages-2.11.1.tar.xz 400812 SHA256 69486ed339ee0591001ae83d43c888aa26351b9680b6ceb59e06b593051bca31 SHA512 ffa197ed163031f14882f85124399a7de3b1cadee089cb3d85a6b936215b23243102fd99fdf877f0a8b9d660711e994022cce8893ae27c0295a12dceb41c7f6b WHIRLPOOL 072416db28149c4531f05183ad515bc030611d68c1e7975dcf3f173aeedfb96607262ed120fcf8bea74a1c95b18ec98580cc2ae5e825b8f359e9b24021de7218 |
41 |
DIST git-manpages-2.7.3.tar.xz 384544 SHA256 9f088427c61a9e0a840007c7f50fc6f7caba36ac8c403460c49210983090496d SHA512 883441df049bfaf0f22cf9d17041125dc9c8f0e7d94efa7a4188a68c2242d1b4c3d34fd3bd3ecdd2af905ee2f8fb5fefd0ce6328dd76c665f7ec20e3b9c87d1b WHIRLPOOL 7ee013444665366ecb8f3df507a3c5af8a9f48d3185783a94db827b192c32ac6998157eb42bcbfe397f96d452451b2416c32e2dffbabc71062422e7c5e25c184 |
42 |
DIST git-manpages-2.7.4.tar.xz 384460 SHA256 d04fd81ab8aa32efbe54acd27ab5c88ef4ab615313e4cdfa793dd0065899ce25 SHA512 1af6f0d9fc3945a5a215092caabd0963f3eaa35c5f3b0270861b625bf7bd88e4fdea9b3e50ce1b10c79a12ee2b06b203fab4aa9d566560535c1decf7b2d987cd WHIRLPOOL 38306b6e198336dd3c75a9fd032b636e0e43a3b75eba2746d2d42c3752cf7405b1f8572199748509974d68bfc77c74fbea52626884f9b509d8b593cefce4aad5 |
43 |
DIST git-manpages-2.8.4.tar.xz 387168 SHA256 d2ddfc302e5b3c0ad182916b27c28d95bc667ea8b9db8dc099bf3d8d62b8b7f5 SHA512 d4ffca6ad8ff0b6bfab984eb06ad5c6c0cf73cfb4beaff4e924b2bd117a4a369e928faa2ca09f11903ebc52249ad24e2b68e7b571965a2ef48f5731ad94b9bef WHIRLPOOL a22d7ad38ccfb399325e321cecc7255fdf4ca05f14e92acfe94e74b816199d2e057a559f6e3eede2df768d762457eb2a43f1e9c76e8b6e76c7498dc9547dcf25 |
44 |
|
45 |
diff --git a/dev-vcs/git/git-2.11.1.ebuild b/dev-vcs/git/git-2.11.1.ebuild |
46 |
new file mode 100644 |
47 |
index 00000000..056227d |
48 |
--- /dev/null |
49 |
+++ b/dev-vcs/git/git-2.11.1.ebuild |
50 |
@@ -0,0 +1,681 @@ |
51 |
+# Copyright 1999-2017 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 ~amd64-linux ~arm-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 |
+ use elibc_musl \ |
246 |
+ && myopts+=" NO_REGEX=YesPlease" |
247 |
+# Disabled until ~m68k-mint can be keyworded again |
248 |
+# if [[ ${CHOST} == *-mint* ]] ; then |
249 |
+# myopts+=" NO_MMAP=YesPlease" |
250 |
+# myopts+=" NO_IPV6=YesPlease" |
251 |
+# myopts+=" NO_STRLCPY=YesPlease" |
252 |
+# myopts+=" NO_MEMMEM=YesPlease" |
253 |
+# myopts+=" NO_MKDTEMP=YesPlease" |
254 |
+# myopts+=" NO_MKSTEMPS=YesPlease" |
255 |
+# fi |
256 |
+ if [[ ${CHOST} == ia64-*-hpux* ]]; then |
257 |
+ myopts+=" NO_NSEC=YesPlease" |
258 |
+ fi |
259 |
+ if [[ ${CHOST} == *-*-aix* ]]; then |
260 |
+ myopts+=" NO_FNMATCH_CASEFOLD=YesPlease" |
261 |
+ fi |
262 |
+ if [[ ${CHOST} == *-solaris* ]]; then |
263 |
+ myopts+=" NEEDS_LIBICONV=YesPlease" |
264 |
+ myopts+=" HAVE_CLOCK_MONOTONIC=1" |
265 |
+ myopts+=" HAVE_GETDELIM=1" |
266 |
+ fi |
267 |
+ |
268 |
+ has_version '>=app-text/asciidoc-8.0' \ |
269 |
+ && myopts+=" ASCIIDOC8=YesPlease" |
270 |
+ myopts+=" ASCIIDOC_NO_ROFF=YesPlease" |
271 |
+ |
272 |
+ # Bug 290465: |
273 |
+ # builtin-fetch-pack.c:816: error: 'struct stat' has no member named 'st_mtim' |
274 |
+ [[ "${CHOST}" == *-uclibc* ]] && \ |
275 |
+ myopts+=" NO_NSEC=YesPlease" |
276 |
+ |
277 |
+ export MY_MAKEOPTS="${myopts}" |
278 |
+ export EXTLIBS="${extlibs}" |
279 |
+} |
280 |
+ |
281 |
+src_unpack() { |
282 |
+ if [[ ${PV} != *9999 ]]; then |
283 |
+ unpack ${MY_P}.tar.${SRC_URI_SUFFIX} |
284 |
+ cd "${S}" |
285 |
+ unpack ${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX} |
286 |
+ use doc && \ |
287 |
+ cd "${S}"/Documentation && \ |
288 |
+ unpack ${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX} |
289 |
+ cd "${S}" |
290 |
+ else |
291 |
+ git-r3_src_unpack |
292 |
+ cd "${S}" |
293 |
+ #cp "${FILESDIR}"/GIT-VERSION-GEN . |
294 |
+ fi |
295 |
+ |
296 |
+} |
297 |
+ |
298 |
+src_prepare() { |
299 |
+ # add experimental patches to improve mediawiki support |
300 |
+ # see patches for origin |
301 |
+ if use mediawiki-experimental ; then |
302 |
+ PATCHES+=( |
303 |
+ "${FILESDIR}"/git-2.7.0-mediawiki-namespaces.patch |
304 |
+ "${FILESDIR}"/git-2.7.0-mediawiki-subpages.patch |
305 |
+ "${FILESDIR}"/git-2.7.0-mediawiki-500pages.patch |
306 |
+ ) |
307 |
+ fi |
308 |
+ |
309 |
+ default |
310 |
+ |
311 |
+ sed -i \ |
312 |
+ -e 's:^\(CFLAGS[[:space:]]*=\).*$:\1 $(OPTCFLAGS) -Wall:' \ |
313 |
+ -e 's:^\(LDFLAGS[[:space:]]*=\).*$:\1 $(OPTLDFLAGS):' \ |
314 |
+ -e 's:^\(CC[[:space:]]* =\).*$:\1$(OPTCC):' \ |
315 |
+ -e 's:^\(AR[[:space:]]* =\).*$:\1$(OPTAR):' \ |
316 |
+ -e "s:\(PYTHON_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \ |
317 |
+ -e "s:\(PERL_PATH[[:space:]]\+=[[:space:]]\+\)\(.*\)$:\1${EPREFIX}\2:" \ |
318 |
+ Makefile contrib/svn-fe/Makefile || die "sed failed" |
319 |
+ |
320 |
+ # Never install the private copy of Error.pm (bug #296310) |
321 |
+ sed -i \ |
322 |
+ -e '/private-Error.pm/s,^,#,' \ |
323 |
+ perl/Makefile.PL |
324 |
+ |
325 |
+ # Fix docbook2texi command |
326 |
+ sed -r -i 's/DOCBOOK2X_TEXI[[:space:]]*=[[:space:]]*docbook2x-texi/DOCBOOK2X_TEXI = docbook2texi.pl/' \ |
327 |
+ Documentation/Makefile || die "sed failed" |
328 |
+ |
329 |
+ # Fix git-subtree missing DESTDIR |
330 |
+ sed -i \ |
331 |
+ -e '/$(INSTALL)/s/ $(libexecdir)/ $(DESTDIR)$(libexecdir)/g' \ |
332 |
+ -e '/$(INSTALL)/s/ $(man1dir)/ $(DESTDIR)$(man1dir)/g' \ |
333 |
+ contrib/subtree/Makefile |
334 |
+} |
335 |
+ |
336 |
+git_emake() { |
337 |
+ # bug #326625: PERL_PATH, PERL_MM_OPT |
338 |
+ # bug #320647: PYTHON_PATH |
339 |
+ PYTHON_PATH="" |
340 |
+ use python && PYTHON_PATH="${PYTHON}" |
341 |
+ emake ${MY_MAKEOPTS} \ |
342 |
+ DESTDIR="${D}" \ |
343 |
+ OPTCFLAGS="${CFLAGS}" \ |
344 |
+ OPTLDFLAGS="${LDFLAGS}" \ |
345 |
+ OPTCC="$(tc-getCC)" \ |
346 |
+ OPTAR="$(tc-getAR)" \ |
347 |
+ prefix="${EPREFIX}"/usr \ |
348 |
+ htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \ |
349 |
+ sysconfdir="${EPREFIX}"/etc \ |
350 |
+ PYTHON_PATH="${PYTHON_PATH}" \ |
351 |
+ PERL_MM_OPT="" \ |
352 |
+ GIT_TEST_OPTS="--no-color" \ |
353 |
+ V=1 \ |
354 |
+ "$@" |
355 |
+ # This is the fix for bug #326625, but it also causes breakage, see bug |
356 |
+ # #352693. |
357 |
+ # PERL_PATH="${EPREFIX}/usr/bin/env perl" \ |
358 |
+} |
359 |
+ |
360 |
+src_configure() { |
361 |
+ exportmakeopts |
362 |
+} |
363 |
+ |
364 |
+src_compile() { |
365 |
+ if use perl ; then |
366 |
+ git_emake perl/PM.stamp || die "emake perl/PM.stamp failed" |
367 |
+ git_emake perl/perl.mak || die "emake perl/perl.mak failed" |
368 |
+ fi |
369 |
+ git_emake || die "emake failed" |
370 |
+ |
371 |
+ if use emacs ; then |
372 |
+ elisp-compile contrib/emacs/git{,-blame}.el |
373 |
+ fi |
374 |
+ |
375 |
+ if use perl && use cgi ; then |
376 |
+ git_emake \ |
377 |
+ gitweb \ |
378 |
+ || die "emake gitweb (cgi) failed" |
379 |
+ fi |
380 |
+ |
381 |
+ if [[ ${CHOST} == *-darwin* ]]; then |
382 |
+ cd "${S}"/contrib/credential/osxkeychain || die |
383 |
+ git_emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" \ |
384 |
+ || die "emake credential-osxkeychain" |
385 |
+ fi |
386 |
+ |
387 |
+ cd "${S}"/Documentation |
388 |
+ if [[ ${PV} == *9999 ]] ; then |
389 |
+ git_emake man \ |
390 |
+ || die "emake man failed" |
391 |
+ if use doc ; then |
392 |
+ git_emake info html \ |
393 |
+ || die "emake info html failed" |
394 |
+ fi |
395 |
+ else |
396 |
+ if use doc ; then |
397 |
+ git_emake info \ |
398 |
+ || die "emake info html failed" |
399 |
+ fi |
400 |
+ fi |
401 |
+ |
402 |
+ if use subversion ; then |
403 |
+ cd "${S}"/contrib/svn-fe |
404 |
+ # by defining EXTLIBS we override the detection for libintl and |
405 |
+ # libiconv, bug #516168 |
406 |
+ local nlsiconv= |
407 |
+ use nls && use !elibc_glibc && nlsiconv+=" -lintl" |
408 |
+ use iconv && use !elibc_glibc && nlsiconv+=" -liconv" |
409 |
+ git_emake EXTLIBS="${EXTLIBS} ${nlsiconv}" || die "emake svn-fe failed" |
410 |
+ if use doc ; then |
411 |
+ git_emake svn-fe.{1,html} || die "emake svn-fe.1 svn-fe.html failed" |
412 |
+ fi |
413 |
+ cd "${S}" |
414 |
+ fi |
415 |
+ |
416 |
+ if use gnome-keyring ; then |
417 |
+ cd "${S}"/contrib/credential/gnome-keyring |
418 |
+ git_emake || die "emake git-credential-gnome-keyring failed" |
419 |
+ fi |
420 |
+ |
421 |
+ cd "${S}"/contrib/subtree |
422 |
+ git_emake |
423 |
+ use doc && git_emake doc |
424 |
+ |
425 |
+ if use mediawiki ; then |
426 |
+ cd "${S}"/contrib/mw-to-git |
427 |
+ git_emake |
428 |
+ fi |
429 |
+} |
430 |
+ |
431 |
+src_install() { |
432 |
+ git_emake \ |
433 |
+ install || \ |
434 |
+ die "make install failed" |
435 |
+ |
436 |
+ if [[ ${CHOST} == *-darwin* ]]; then |
437 |
+ dobin contrib/credential/osxkeychain/git-credential-osxkeychain |
438 |
+ fi |
439 |
+ |
440 |
+ # Depending on the tarball and manual rebuild of the documentation, the |
441 |
+ # manpages may exist in either OR both of these directories. |
442 |
+ find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157] |
443 |
+ find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157] |
444 |
+ dodoc README* Documentation/{SubmittingPatches,CodingGuidelines} |
445 |
+ use doc && dodir /usr/share/doc/${PF}/html |
446 |
+ for d in / /howto/ /technical/ ; do |
447 |
+ docinto ${d} |
448 |
+ dodoc Documentation${d}*.txt |
449 |
+ if use doc ; then |
450 |
+ docinto ${d}/html |
451 |
+ dodoc Documentation${d}*.html |
452 |
+ fi |
453 |
+ done |
454 |
+ docinto / |
455 |
+ # Upstream does not ship this pre-built :-( |
456 |
+ use doc && doinfo Documentation/{git,gitman}.info |
457 |
+ |
458 |
+ newbashcomp contrib/completion/git-completion.bash ${PN} |
459 |
+ bashcomp_alias git gitk |
460 |
+ # Not really a bash-completion file (bug #477920) |
461 |
+ # but still needed uncompressed (bug #507480) |
462 |
+ insinto /usr/share/${PN} |
463 |
+ doins contrib/completion/git-prompt.sh |
464 |
+ |
465 |
+ if use emacs ; then |
466 |
+ elisp-install ${PN} contrib/emacs/git.{el,elc} |
467 |
+ elisp-install ${PN} contrib/emacs/git-blame.{el,elc} |
468 |
+ #elisp-install ${PN}/compat contrib/emacs/vc-git.{el,elc} |
469 |
+ # don't add automatically to the load-path, so the sitefile |
470 |
+ # can do a conditional loading |
471 |
+ touch "${ED}${SITELISP}/${PN}/compat/.nosearch" |
472 |
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE} |
473 |
+ fi |
474 |
+ |
475 |
+ if use python && use gtk ; then |
476 |
+ python_doscript "${S}"/contrib/gitview/gitview |
477 |
+ dodoc "${S}"/contrib/gitview/gitview.txt |
478 |
+ fi |
479 |
+ |
480 |
+ #dobin contrib/fast-import/git-p4 # Moved upstream |
481 |
+ #dodoc contrib/fast-import/git-p4.txt # Moved upstream |
482 |
+ newbin contrib/fast-import/import-tars.perl import-tars |
483 |
+ exeinto /usr/libexec/git-core/ |
484 |
+ newexe contrib/git-resurrect.sh git-resurrect |
485 |
+ |
486 |
+ # git-subtree |
487 |
+ cd "${S}"/contrib/subtree |
488 |
+ git_emake install || die "Failed to emake install git-subtree" |
489 |
+ if use doc ; then |
490 |
+ git_emake install-man install-doc || die "Failed to emake install-doc install-mangit-subtree" |
491 |
+ fi |
492 |
+ newdoc README README.git-subtree |
493 |
+ dodoc git-subtree.txt |
494 |
+ cd "${S}" |
495 |
+ |
496 |
+ if use mediawiki ; then |
497 |
+ cd "${S}"/contrib/mw-to-git |
498 |
+ git_emake install |
499 |
+ cd "${S}" |
500 |
+ fi |
501 |
+ |
502 |
+ # diff-highlight |
503 |
+ dobin contrib/diff-highlight/diff-highlight |
504 |
+ newdoc contrib/diff-highlight/README README.diff-highlight |
505 |
+ |
506 |
+ # git-jump |
507 |
+ exeinto /usr/libexec/git-core/ |
508 |
+ doexe contrib/git-jump/git-jump |
509 |
+ newdoc contrib/git-jump/README git-jump.txt |
510 |
+ |
511 |
+ # git-contacts |
512 |
+ exeinto /usr/libexec/git-core/ |
513 |
+ doexe contrib/contacts/git-contacts |
514 |
+ dodoc contrib/contacts/git-contacts.txt |
515 |
+ |
516 |
+ if use gnome-keyring ; then |
517 |
+ cd "${S}"/contrib/credential/gnome-keyring |
518 |
+ dobin git-credential-gnome-keyring |
519 |
+ fi |
520 |
+ |
521 |
+ if use subversion ; then |
522 |
+ cd "${S}"/contrib/svn-fe |
523 |
+ dobin svn-fe |
524 |
+ dodoc svn-fe.txt |
525 |
+ if use doc ; then |
526 |
+ doman svn-fe.1 |
527 |
+ docinto html |
528 |
+ dodoc svn-fe.html |
529 |
+ fi |
530 |
+ cd "${S}" |
531 |
+ fi |
532 |
+ |
533 |
+ dodir /usr/share/${PN}/contrib |
534 |
+ # The following are excluded: |
535 |
+ # completion - installed above |
536 |
+ # credential/gnome-keyring TODO |
537 |
+ # diff-highlight - done above |
538 |
+ # emacs - installed above |
539 |
+ # examples - these are stuff that is not used in Git anymore actually |
540 |
+ # git-jump - done above |
541 |
+ # gitview - installed above |
542 |
+ # p4import - excluded because fast-import has a better one |
543 |
+ # patches - stuff the Git guys made to go upstream to other places |
544 |
+ # persistent-https - TODO |
545 |
+ # mw-to-git - TODO |
546 |
+ # subtree - build seperately |
547 |
+ # svnimport - use git-svn |
548 |
+ # thunderbird-patch-inline - fixes thunderbird |
549 |
+ for i in \ |
550 |
+ buildsystems convert-objects fast-import \ |
551 |
+ hg-to-git hooks remotes2config.sh rerere-train.sh \ |
552 |
+ stats workdir \ |
553 |
+ ; do |
554 |
+ cp -rf \ |
555 |
+ "${S}"/contrib/${i} \ |
556 |
+ "${ED}"/usr/share/${PN}/contrib \ |
557 |
+ || die "Failed contrib ${i}" |
558 |
+ done |
559 |
+ |
560 |
+ if use perl && use cgi ; then |
561 |
+ # We used to install in /usr/share/${PN}/gitweb |
562 |
+ # but upstream installs in /usr/share/gitweb |
563 |
+ # so we will install a symlink and use their location for compat with other |
564 |
+ # distros |
565 |
+ dosym /usr/share/gitweb /usr/share/${PN}/gitweb |
566 |
+ |
567 |
+ # INSTALL discusses configuration issues, not just installation |
568 |
+ docinto / |
569 |
+ newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb |
570 |
+ newdoc "${S}"/gitweb/README README.gitweb |
571 |
+ |
572 |
+ find "${ED}"/usr/lib64/perl5/ \ |
573 |
+ -name .packlist \ |
574 |
+ -exec rm \{\} \; |
575 |
+ else |
576 |
+ rm -rf "${ED}"/usr/share/gitweb |
577 |
+ fi |
578 |
+ |
579 |
+ if ! use subversion ; then |
580 |
+ rm -f "${ED}"/usr/libexec/git-core/git-svn \ |
581 |
+ "${ED}"/usr/share/man/man1/git-svn.1* |
582 |
+ fi |
583 |
+ |
584 |
+ if use xinetd ; then |
585 |
+ insinto /etc/xinetd.d |
586 |
+ newins "${FILESDIR}"/git-daemon.xinetd git-daemon |
587 |
+ fi |
588 |
+ |
589 |
+ if use !prefix ; then |
590 |
+ newinitd "${FILESDIR}"/git-daemon-r1.initd git-daemon |
591 |
+ newconfd "${FILESDIR}"/git-daemon.confd git-daemon |
592 |
+ systemd_newunit "${FILESDIR}/git-daemon_at-r1.service" "git-daemon@.service" |
593 |
+ systemd_dounit "${FILESDIR}/git-daemon.socket" |
594 |
+ fi |
595 |
+ |
596 |
+ perl_delete_localpod |
597 |
+ |
598 |
+ # Remove disabled linguas |
599 |
+ # we could remove sources in src_prepare, but install does not |
600 |
+ # handle missing locale dir well |
601 |
+ rm_loc() { |
602 |
+ if [[ -e "${ED}/usr/share/locale/${1}" ]]; then |
603 |
+ rm -r "${ED}/usr/share/locale/${1}" || die |
604 |
+ fi |
605 |
+ } |
606 |
+ l10n_for_each_disabled_locale_do rm_loc |
607 |
+} |
608 |
+ |
609 |
+src_test() { |
610 |
+ local disabled="" |
611 |
+ local tests_cvs="t9200-git-cvsexportcommit.sh \ |
612 |
+ t9400-git-cvsserver-server.sh \ |
613 |
+ t9401-git-cvsserver-crlf.sh \ |
614 |
+ t9402-git-cvsserver-refs.sh \ |
615 |
+ t9600-cvsimport.sh \ |
616 |
+ t9601-cvsimport-vendor-branch.sh \ |
617 |
+ t9602-cvsimport-branches-tags.sh \ |
618 |
+ t9603-cvsimport-patchsets.sh \ |
619 |
+ t9604-cvsimport-timestamps.sh" |
620 |
+ local tests_perl="t3701-add-interactive.sh \ |
621 |
+ t5502-quickfetch.sh \ |
622 |
+ t5512-ls-remote.sh \ |
623 |
+ t5520-pull.sh \ |
624 |
+ t7106-reset-unborn-branch.sh \ |
625 |
+ t7501-commit.sh" |
626 |
+ # Bug #225601 - t0004 is not suitable for root perm |
627 |
+ # Bug #219839 - t1004 is not suitable for root perm |
628 |
+ # t0001-init.sh - check for init notices EPERM* fails |
629 |
+ local tests_nonroot="t0001-init.sh \ |
630 |
+ t0004-unwritable.sh \ |
631 |
+ t0070-fundamental.sh \ |
632 |
+ t1004-read-tree-m-u-wf.sh \ |
633 |
+ t3700-add.sh \ |
634 |
+ t7300-clean.sh" |
635 |
+ # t9100 still fails with symlinks in SVN 1.7 |
636 |
+ local test_svn="t9100-git-svn-basic.sh" |
637 |
+ |
638 |
+ # Unzip is used only for the testcase code, not by any normal parts of Git. |
639 |
+ if ! has_version app-arch/unzip ; then |
640 |
+ einfo "Disabling tar-tree tests" |
641 |
+ disabled="${disabled} t5000-tar-tree.sh" |
642 |
+ fi |
643 |
+ |
644 |
+ cvs=0 |
645 |
+ use cvs && let cvs=$cvs+1 |
646 |
+ if [[ ${EUID} -eq 0 ]]; then |
647 |
+ if [[ $cvs -eq 1 ]]; then |
648 |
+ ewarn "Skipping CVS tests because CVS does not work as root!" |
649 |
+ ewarn "You should retest with FEATURES=userpriv!" |
650 |
+ disabled="${disabled} ${tests_cvs}" |
651 |
+ fi |
652 |
+ einfo "Skipping other tests that require being non-root" |
653 |
+ disabled="${disabled} ${tests_nonroot}" |
654 |
+ else |
655 |
+ [[ $cvs -gt 0 ]] && \ |
656 |
+ has_version dev-vcs/cvs && \ |
657 |
+ let cvs=$cvs+1 |
658 |
+ [[ $cvs -gt 1 ]] && \ |
659 |
+ has_version "dev-vcs/cvs[server]" && \ |
660 |
+ let cvs=$cvs+1 |
661 |
+ if [[ $cvs -lt 3 ]]; then |
662 |
+ einfo "Disabling CVS tests (needs dev-vcs/cvs[USE=server])" |
663 |
+ disabled="${disabled} ${tests_cvs}" |
664 |
+ fi |
665 |
+ fi |
666 |
+ |
667 |
+ if ! use perl ; then |
668 |
+ einfo "Disabling tests that need Perl" |
669 |
+ disabled="${disabled} ${tests_perl}" |
670 |
+ fi |
671 |
+ |
672 |
+ einfo "Disabling tests that fail with SVN 1.7" |
673 |
+ disabled="${disabled} ${test_svn}" |
674 |
+ |
675 |
+ # Reset all previously disabled tests |
676 |
+ cd "${S}/t" |
677 |
+ for i in *.sh.DISABLED ; do |
678 |
+ [[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}" |
679 |
+ done |
680 |
+ einfo "Disabled tests:" |
681 |
+ for i in ${disabled} ; do |
682 |
+ [[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i" |
683 |
+ done |
684 |
+ |
685 |
+ # Avoid the test system removing the results because we want them ourselves |
686 |
+ sed -e '/^[[:space:]]*$(MAKE) clean/s,^,#,g' \ |
687 |
+ -i "${S}"/t/Makefile |
688 |
+ |
689 |
+ # Clean old results first, must always run |
690 |
+ cd "${S}/t" |
691 |
+ nonfatal git_emake clean |
692 |
+ |
693 |
+ # Now run the tests, keep going if we hit an error, and don't terminate on |
694 |
+ # failure |
695 |
+ cd "${S}" |
696 |
+ einfo "Start test run" |
697 |
+ #MAKEOPTS=-j1 |
698 |
+ nonfatal git_emake --keep-going test |
699 |
+ rc=$? |
700 |
+ |
701 |
+ # Display nice results, now print the results |
702 |
+ cd "${S}/t" |
703 |
+ nonfatal git_emake aggregate-results |
704 |
+ |
705 |
+ # And bail if there was a problem |
706 |
+ [ $rc -eq 0 ] || die "tests failed. Please file a bug." |
707 |
+} |
708 |
+ |
709 |
+showpkgdeps() { |
710 |
+ local pkg=$1 |
711 |
+ shift |
712 |
+ elog " $(printf "%-17s:" ${pkg}) ${@}" |
713 |
+} |
714 |
+ |
715 |
+pkg_postinst() { |
716 |
+ use emacs && elisp-site-regen |
717 |
+ einfo "Please read /usr/share/bash-completion/git for Git bash command completion" |
718 |
+ einfo "Please read /usr/share/git/git-prompt.sh for Git bash prompt" |
719 |
+ einfo "Note that the prompt bash code is now in that separate script" |
720 |
+ elog "These additional scripts need some dependencies:" |
721 |
+ echo |
722 |
+ showpkgdeps git-quiltimport "dev-util/quilt" |
723 |
+ showpkgdeps git-instaweb \ |
724 |
+ "|| ( www-servers/lighttpd www-servers/apache www-servers/nginx )" |
725 |
+ echo |
726 |
+ use mediawiki-experimental && ewarn "Using experimental git-mediawiki patches. The stability of cloned wiki filesystems is not guaranteed." |
727 |
+} |
728 |
+ |
729 |
+pkg_postrm() { |
730 |
+ use emacs && elisp-site-regen |
731 |
+} |