1 |
commit: 1ca3df81de48b042814509d51dbe75347193b7cf |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 9 12:08:05 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 9 12:08:05 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ca3df81 |
7 |
|
8 |
dev-vcs/mercurial: Bump to version 4.7.2 |
9 |
|
10 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
dev-vcs/mercurial/Manifest | 1 + |
14 |
dev-vcs/mercurial/mercurial-4.7.2.ebuild | 142 +++++++++++++++++++++++++++++++ |
15 |
2 files changed, 143 insertions(+) |
16 |
|
17 |
diff --git a/dev-vcs/mercurial/Manifest b/dev-vcs/mercurial/Manifest |
18 |
index 04cbb59505a..1f402e6a1f5 100644 |
19 |
--- a/dev-vcs/mercurial/Manifest |
20 |
+++ b/dev-vcs/mercurial/Manifest |
21 |
@@ -1,4 +1,5 @@ |
22 |
DIST mercurial-4.5.2.tar.gz 5779915 BLAKE2B 9abc5a8bafc43bc8e930bb51aa2e57397cd5858dc7bb31d9a37795a4e2799dc03b57130b23e29f89a07bd7502f136594a03d1a4bd5dfd04e2e968213b50413da SHA512 f70e40cba72b7955f0ecec9c1f53ffffac26f206188617cb182e22ce4f43dc8b970ce46d12c516ef88480c3fa076a59afcddd736dffb642d8e23befaf45b4941 |
23 |
DIST mercurial-4.6.2.tar.gz 6407989 BLAKE2B 22aa121b2544e3597f2ea4d3a7a80b3b8f5ca6f9de15326dbee555ca3d14b8a552042c4448aae17b1c015b4f302c3512c204f17a834b758f51fbcc2455ed4e6f SHA512 71afb9ed3f62b1b946563c55851dda1fc8b724afe82a4a253c7f4719ae9e1160d5f9644bed7fd27ee3a21d8e682352364fc9f47bafa552cd4cd7fac7c0d42bdd |
24 |
DIST mercurial-4.7.1.tar.gz 6480135 BLAKE2B de34cdd34d5fa2a6f4e1f24730c99b5764b9ac15aef21284337924d13bd5b4b14684d729149c4b48bf8fde13679cf661d92da968943c3f04ea065729df42318c SHA512 04d3f97dd4a0f36c6f6d639d8eccc7e4f29b2dc211fa69e7fc17dae0eb954f2ddaaf04f70facc6b968a166db7c07ed80792575d7a27e80bc0c1a43fc38b5e536 |
25 |
+DIST mercurial-4.7.2.tar.gz 6481684 BLAKE2B 1006e541b52148f44b14767a738f4add4d03c719bc6f96f3f245f6bfd401223b1e7444216304fba749b88611cd031cb14089d9938a5533477160226286dd401d SHA512 e8742e9555a6b57e96e61091757b4bcb574605c49082874bd4edb9114a70e5cb024c1360a75c24f1a9ae3bca3205316e6a264ae18d3c9946248bc1d2b042ad43 |
26 |
DIST mercurial-4.7.tar.gz 6476268 BLAKE2B e13458729f06a2516e885abf767989e8df7f3cc743f7f57aa44ca41c6c2c4542a28e6172a7e109395fb76057afc04c2318b10f8b21ae90cb5c9efe6188da0483 SHA512 a08dfc4e296b5d162097769ab38ab85b7c5de16710bce0b6dce2a39f56cb517455c0ed634f689d07e9bd082fb7641501b7da51963844aee7ab28233cf721dec8 |
27 |
|
28 |
diff --git a/dev-vcs/mercurial/mercurial-4.7.2.ebuild b/dev-vcs/mercurial/mercurial-4.7.2.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..1fe93a2310c |
31 |
--- /dev/null |
32 |
+++ b/dev-vcs/mercurial/mercurial-4.7.2.ebuild |
33 |
@@ -0,0 +1,142 @@ |
34 |
+# Copyright 1999-2018 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=6 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python2_7 ) |
40 |
+PYTHON_REQ_USE="threads" |
41 |
+ |
42 |
+inherit bash-completion-r1 elisp-common eutils distutils-r1 flag-o-matic |
43 |
+ |
44 |
+DESCRIPTION="Scalable distributed SCM" |
45 |
+HOMEPAGE="https://www.mercurial-scm.org/" |
46 |
+SRC_URI="https://www.mercurial-scm.org/release/${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="GPL-2+" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~hppa ~mips ~sparc ~x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
51 |
+IUSE="bugzilla emacs gpg test tk" |
52 |
+ |
53 |
+RDEPEND="app-misc/ca-certificates |
54 |
+ dev-python/zstandard[${PYTHON_USEDEP}] |
55 |
+ bugzilla? ( dev-python/mysql-python[${PYTHON_USEDEP}] ) |
56 |
+ gpg? ( app-crypt/gnupg ) |
57 |
+ tk? ( dev-lang/tk )" |
58 |
+ |
59 |
+DEPEND="emacs? ( virtual/emacs ) |
60 |
+ test? ( app-arch/unzip |
61 |
+ dev-python/pygments[${PYTHON_USEDEP}] )" |
62 |
+ |
63 |
+SITEFILE="70${PN}-gentoo.el" |
64 |
+ |
65 |
+PATCHES=( "${FILESDIR}/${PN}-3.0.1-po_fixes.patch" ) |
66 |
+ |
67 |
+python_prepare_all() { |
68 |
+ # fix up logic that won't work in Gentoo Prefix (also won't outside in |
69 |
+ # certain cases), bug #362891 |
70 |
+ sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die |
71 |
+ |
72 |
+ # Don't use bundled zstandard (#666972) |
73 |
+ rm -r contrib/python-zstandard || die |
74 |
+ sed '/contrib\/python-zstandard/d;/setup_zstd/d' -i setup.py || die |
75 |
+ |
76 |
+ distutils-r1_python_prepare_all |
77 |
+} |
78 |
+ |
79 |
+python_configure_all() { |
80 |
+ strip-flags -ftracer -ftree-vectorize |
81 |
+ # Note: make it impl-conditional if py3 is supported |
82 |
+ append-flags -fno-strict-aliasing |
83 |
+ |
84 |
+ "${PYTHON}" setup.py build_mo || die |
85 |
+} |
86 |
+ |
87 |
+python_compile_all() { |
88 |
+ rm -r contrib/win32 || die |
89 |
+ if use emacs; then |
90 |
+ cd contrib || die |
91 |
+ elisp-compile mercurial.el || die "elisp-compile failed!" |
92 |
+ fi |
93 |
+} |
94 |
+ |
95 |
+python_install_all() { |
96 |
+ distutils-r1_python_install_all |
97 |
+ |
98 |
+ newbashcomp contrib/bash_completion hg |
99 |
+ |
100 |
+ insinto /usr/share/zsh/site-functions |
101 |
+ newins contrib/zsh_completion _hg |
102 |
+ |
103 |
+ rm -f doc/*.?.txt |
104 |
+ dodoc CONTRIBUTORS |
105 |
+ cp hgweb*.cgi "${ED}"/usr/share/doc/${PF}/ || die |
106 |
+ |
107 |
+ dobin hgeditor |
108 |
+ dobin contrib/hgk |
109 |
+ python_foreach_impl python_doscript contrib/hg-ssh |
110 |
+ |
111 |
+ if use emacs; then |
112 |
+ elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!" |
113 |
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE} |
114 |
+ fi |
115 |
+ |
116 |
+ local RM_CONTRIB=(hgk hg-ssh bash_completion zsh_completion wix plan9 *.el) |
117 |
+ for f in ${RM_CONTRIB[@]}; do |
118 |
+ rm -r contrib/$f || die |
119 |
+ done |
120 |
+ |
121 |
+ dodoc -r contrib |
122 |
+ docompress -x /usr/share/doc/${PF}/contrib |
123 |
+ doman doc/*.? |
124 |
+ |
125 |
+ insinto /etc/mercurial/hgrc.d |
126 |
+ doins "${FILESDIR}/cacerts.rc" |
127 |
+ |
128 |
+ # symlink to system zstd |
129 |
+ dosym ../zstd.so $(python_get_sitedir)/${PN}/zstd.so |
130 |
+} |
131 |
+ |
132 |
+src_test() { |
133 |
+ pushd tests &>/dev/null || die |
134 |
+ rm -rf *svn* # Subversion tests fail with 1.5 |
135 |
+ rm -f test-archive* # Fails due to verbose tar output changes |
136 |
+ rm -f test-convert-baz* # GNU Arch baz |
137 |
+ rm -f test-convert-cvs* # CVS |
138 |
+ rm -f test-convert-darcs* # Darcs |
139 |
+ rm -f test-convert-git* # git |
140 |
+ rm -f test-convert-mtn* # monotone |
141 |
+ rm -f test-convert-tla* # GNU Arch tla |
142 |
+ #rm -f test-doctest* # doctest always fails with python 2.5.x |
143 |
+ rm -f test-largefiles* # tends to time out |
144 |
+ |
145 |
+ popd &>/dev/null || die |
146 |
+ distutils-r1_src_test |
147 |
+} |
148 |
+ |
149 |
+python_test() { |
150 |
+ local TEST_DIR |
151 |
+ |
152 |
+ rm -rf "${TMPDIR}"/test |
153 |
+ distutils_install_for_testing |
154 |
+ cd tests || die |
155 |
+ "${PYTHON}" run-tests.py --verbose \ |
156 |
+ --tmpdir="${TMPDIR}"/test \ |
157 |
+ --with-hg="${TEST_DIR}"/scripts/hg \ |
158 |
+ || die "Tests fail with ${EPYTHON}" |
159 |
+} |
160 |
+ |
161 |
+pkg_postinst() { |
162 |
+ use emacs && elisp-site-regen |
163 |
+ |
164 |
+ elog "If you want to convert repositories from other tools using convert" |
165 |
+ elog "extension please install correct tool:" |
166 |
+ elog " dev-vcs/cvs" |
167 |
+ elog " dev-vcs/darcs" |
168 |
+ elog " dev-vcs/git" |
169 |
+ elog " dev-vcs/monotone" |
170 |
+ elog " dev-vcs/subversion" |
171 |
+} |
172 |
+ |
173 |
+pkg_postrm() { |
174 |
+ use emacs && elisp-site-regen |
175 |
+} |