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