1 |
commit: f099500ae1d3f1380776383c17be5156972b1456 |
2 |
Author: Dirkjan Ochtman <djc <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 29 18:47:32 2016 +0000 |
4 |
Commit: Dirkjan Ochtman <djc <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 29 18:49:46 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f099500a |
7 |
|
8 |
dev-vcs/mercurial: version bump to 3.7.3 |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
dev-vcs/mercurial/Manifest | 1 + |
13 |
dev-vcs/mercurial/mercurial-3.7.3.ebuild | 140 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 141 insertions(+) |
15 |
|
16 |
diff --git a/dev-vcs/mercurial/Manifest b/dev-vcs/mercurial/Manifest |
17 |
index 8a3d306..b200f86 100644 |
18 |
--- a/dev-vcs/mercurial/Manifest |
19 |
+++ b/dev-vcs/mercurial/Manifest |
20 |
@@ -5,3 +5,4 @@ DIST mercurial-3.5.2.tar.gz 4415307 SHA256 23fdc038503911b21dc9e556118803f7b1d41 |
21 |
DIST mercurial-3.6.3.tar.gz 4521749 SHA256 402731f27256beb9a575a6991ca3d7059976197c905337f4f5729fd940329fa8 SHA512 e5b39e5456a35e19f2ac02838946305023de957590c5aa2828f7c37e9b5f6f2e6376526d0845ebd1ca198860425d11e208b3c36e12e189e0b02871e9c91aad9a WHIRLPOOL 36f0f6caa43ce2c65c7c2bdfb3fa3935cec1e47c25fae6a6a3c7b00165d1aff9b71c73dd10faad2e2ba096d55cc633366170135d95452c162936fef93571dbf1 |
22 |
DIST mercurial-3.7.1.tar.gz 4630846 SHA256 96d37d1f444a032295e190318b3166e9d05abb55916d2b3adb618a8f16c5cfed SHA512 32df161756d7c76abd792bfe5dc3d3f2ea39facdc9c9bd8d93193ecd6cc171f050a4e6dae18255614087ba6fa8f9d787aac41b137c233fa9c3f32217a9cad112 WHIRLPOOL 894a9bd7c61f6a6262ec46f8c80b1894348f765216159458795210fed504a4700e8b4b263e305f3c746d180ef27ab1de11fd4926a2969883d529a613dc93e17a |
23 |
DIST mercurial-3.7.2.tar.gz 4634748 SHA256 5ba9438d6ab0db93f7b0786ba632138eb64a9dc0d93e30dde2b17b328fdc6d7a SHA512 573b35052ec50f4672cdd5afd93080edc864deb854b890c8cedba53c40d6d3a37a560e364b94b819cfc6d9fc5c07c0411a13167f0888007e5c9366bc94154306 WHIRLPOOL 782a80d5ee09b6868f9da62ff5e7733e8431323ab7adc8fae52ec0d3e43e88c6ef9cdc90bcb61481e971acf60e43965216f414ed9e88dd9f09546d86561baabc |
24 |
+DIST mercurial-3.7.3.tar.gz 4636732 SHA256 c099c42d74e2d520b61dd372cd996b0fa7605c06617834fd7b13c79b9a9a5b30 SHA512 7f9f97229e40c7092c16ccf227b19a08a9839d8ce19a9d057341fff75876bff32241ee9aa10eab293f779ea3e8a1d97577597187bd96251fb499cbb1075a82cf WHIRLPOOL 51d7f152a0af27924fec8b39933796f5584867efff7f271147139e740302d05f8976f3c2aa95cb724b774ba4951040483bb51b02eed1495d8b15012301ba060e |
25 |
|
26 |
diff --git a/dev-vcs/mercurial/mercurial-3.7.3.ebuild b/dev-vcs/mercurial/mercurial-3.7.3.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..18f93f9 |
29 |
--- /dev/null |
30 |
+++ b/dev-vcs/mercurial/mercurial-3.7.3.ebuild |
31 |
@@ -0,0 +1,140 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=6 |
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="http://mercurial.selenic.com/" |
45 |
+SRC_URI="http://mercurial.selenic.com/release/${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="GPL-2" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-interix ~amd64-linux ~arm-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="bugzilla? ( dev-python/mysql-python[${PYTHON_USEDEP}] ) |
53 |
+ gpg? ( app-crypt/gnupg ) |
54 |
+ tk? ( dev-lang/tk ) |
55 |
+ app-misc/ca-certificates" |
56 |
+DEPEND="emacs? ( virtual/emacs ) |
57 |
+ test? ( app-arch/unzip |
58 |
+ dev-python/pygments[${PYTHON_USEDEP}] )" |
59 |
+ |
60 |
+SITEFILE="70${PN}-gentoo.el" |
61 |
+ |
62 |
+PATCHES=( "${FILESDIR}/${PN}-3.0.1-po_fixes.patch" ) |
63 |
+ |
64 |
+python_prepare_all() { |
65 |
+ # fix up logic that won't work in Gentoo Prefix (also won't outside in |
66 |
+ # certain cases), bug #362891 |
67 |
+ sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die |
68 |
+ |
69 |
+ distutils-r1_python_prepare_all |
70 |
+} |
71 |
+ |
72 |
+python_configure_all() { |
73 |
+ strip-flags -ftracer -ftree-vectorize |
74 |
+ # Note: make it impl-conditional if py3 is supported |
75 |
+ append-flags -fno-strict-aliasing |
76 |
+ |
77 |
+ "${PYTHON}" setup.py build_mo || die |
78 |
+} |
79 |
+ |
80 |
+python_compile_all() { |
81 |
+ rm -r contrib/{win32,macosx} || die |
82 |
+ if use emacs; then |
83 |
+ cd contrib || die |
84 |
+ elisp-compile mercurial.el || die "elisp-compile failed!" |
85 |
+ fi |
86 |
+} |
87 |
+ |
88 |
+python_install_all() { |
89 |
+ distutils-r1_python_install_all |
90 |
+ |
91 |
+ newbashcomp contrib/bash_completion hg |
92 |
+ |
93 |
+ insinto /usr/share/zsh/site-functions |
94 |
+ newins contrib/zsh_completion _hg |
95 |
+ |
96 |
+ rm -f doc/*.?.txt |
97 |
+ dodoc CONTRIBUTORS |
98 |
+ cp hgweb*.cgi "${ED}"/usr/share/doc/${PF}/ || die |
99 |
+ |
100 |
+ dobin hgeditor |
101 |
+ dobin contrib/hgk |
102 |
+ python_foreach_impl python_doscript contrib/hg-ssh |
103 |
+ |
104 |
+ if use emacs; then |
105 |
+ elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!" |
106 |
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE} |
107 |
+ fi |
108 |
+ |
109 |
+ local RM_CONTRIB=(hgk hg-ssh bash_completion zsh_completion wix buildrpm plan9 |
110 |
+ *.el mercurial.spec) |
111 |
+ for f in ${RM_CONTRIB[@]}; do |
112 |
+ rm -r contrib/$f || die |
113 |
+ done |
114 |
+ |
115 |
+ dodoc -r contrib |
116 |
+ docompress -x /usr/share/doc/${PF}/contrib |
117 |
+ doman doc/*.? |
118 |
+ |
119 |
+ cat > "${T}/80mercurial" <<-EOF |
120 |
+HG="${EPREFIX}/usr/bin/hg" |
121 |
+EOF |
122 |
+ doenvd "${T}/80mercurial" |
123 |
+ |
124 |
+ insinto /etc/mercurial/hgrc.d |
125 |
+ doins "${FILESDIR}/cacerts.rc" |
126 |
+} |
127 |
+ |
128 |
+src_test() { |
129 |
+ pushd tests &>/dev/null || die |
130 |
+ rm -rf *svn* # Subversion tests fail with 1.5 |
131 |
+ rm -f test-archive* # Fails due to verbose tar output changes |
132 |
+ rm -f test-convert-baz* # GNU Arch baz |
133 |
+ rm -f test-convert-cvs* # CVS |
134 |
+ rm -f test-convert-darcs* # Darcs |
135 |
+ rm -f test-convert-git* # git |
136 |
+ rm -f test-convert-mtn* # monotone |
137 |
+ rm -f test-convert-tla* # GNU Arch tla |
138 |
+ #rm -f test-doctest* # doctest always fails with python 2.5.x |
139 |
+ rm -f test-largefiles* # tends to time out |
140 |
+ |
141 |
+ popd &>/dev/null || die |
142 |
+ distutils-r1_src_test |
143 |
+} |
144 |
+ |
145 |
+python_test() { |
146 |
+ local TEST_DIR |
147 |
+ |
148 |
+ rm -rf "${TMPDIR}"/test |
149 |
+ distutils_install_for_testing |
150 |
+ cd tests || die |
151 |
+ "${PYTHON}" run-tests.py --verbose \ |
152 |
+ --tmpdir="${TMPDIR}"/test \ |
153 |
+ --with-hg="${TEST_DIR}"/scripts/hg \ |
154 |
+ || die "Tests fail with ${EPYTHON}" |
155 |
+} |
156 |
+ |
157 |
+pkg_postinst() { |
158 |
+ use emacs && elisp-site-regen |
159 |
+ |
160 |
+ elog "If you want to convert repositories from other tools using convert" |
161 |
+ elog "extension please install correct tool:" |
162 |
+ elog " dev-vcs/cvs" |
163 |
+ elog " dev-vcs/darcs" |
164 |
+ elog " dev-vcs/git" |
165 |
+ elog " dev-vcs/monotone" |
166 |
+ elog " dev-vcs/subversion" |
167 |
+} |
168 |
+ |
169 |
+pkg_postrm() { |
170 |
+ use emacs && elisp-site-regen |
171 |
+} |