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