1 |
commit: 6596c3433bfbc151ce598ce7d640d433dec96ebc |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 2 08:07:30 2016 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 2 08:08:01 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6596c343 |
7 |
|
8 |
dev-vcs/mercurial: Bump to version 3.9.1 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
dev-vcs/mercurial/Manifest | 1 + |
14 |
dev-vcs/mercurial/mercurial-3.9.1.ebuild | 135 +++++++++++++++++++++++++++++++ |
15 |
2 files changed, 136 insertions(+) |
16 |
|
17 |
diff --git a/dev-vcs/mercurial/Manifest b/dev-vcs/mercurial/Manifest |
18 |
index e8721ee..7e08699 100644 |
19 |
--- a/dev-vcs/mercurial/Manifest |
20 |
+++ b/dev-vcs/mercurial/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST mercurial-3.7.3.tar.gz 4636732 SHA256 c099c42d74e2d520b61dd372cd996b0fa7605c06617834fd7b13c79b9a9a5b30 SHA512 7f9f97229e40c7092c16ccf227b19a08a9839d8ce19a9d057341fff75876bff32241ee9aa10eab293f779ea3e8a1d97577597187bd96251fb499cbb1075a82cf WHIRLPOOL 51d7f152a0af27924fec8b39933796f5584867efff7f271147139e740302d05f8976f3c2aa95cb724b774ba4951040483bb51b02eed1495d8b15012301ba060e |
23 |
DIST mercurial-3.8.4.tar.gz 4775341 SHA256 4b2e3ef19d34fa1d781cb7425506a05d4b6b1172bab69d6ea78874175fdf3da6 SHA512 2ee785f631f9ae346e10ca77251a9ce6d3dacd598588c39f1a69ce1f4b668866f6109d682428512c37c300b26741b74672195538d66845e85cfff5ead886cf4c WHIRLPOOL 1f0a12cc6d00f3544ab00e011a9ff9308fe1652c0598045ddba2a41ba17b55c291da200bce85d4c600d673b8746e936c441ffa7398ad810d1069bd97fb32f2db |
24 |
+DIST mercurial-3.9.1.tar.gz 4797967 SHA256 625e4fc7e85ec2278c2828bdc547fce74091b3bbe4d9eeeba2d61af51195df74 SHA512 d96e45cafd36be692d6ce5259e18140641c24f73d4731ff767df0f39af425b0630c687436fc0f53d5882495ceacacaadd5e19f8f7c701b4b94c48631123b4666 WHIRLPOOL ba4e9374b592d294767046fe7d4297df837d9e92ea2279a7a3654054c058a6b994cade2358d2c35a7d30b6985abd0f7afe55af586ccafbe1dc5b50059bc2712f |
25 |
DIST mercurial-3.9.tar.gz 4796280 SHA256 834f25dcff44994198fb8a7ba161a6e24204dbd63c8e6270577e06e6cedbdabc SHA512 148d5f4c1c8c78b654b03d898f8e9624697caf3f75ff8d56496f8ba5b0e28c487f6800ea2e7e26bf2ac5f01e9bdf92e7d3b4941c88521372af090a3587a0227b WHIRLPOOL e9aeddb4e660da53bf7db45472d1f6bd6ea4772ea590ec0c359bba5bb4c51cd2e26c0792c35ab9d311a83556e8e785ed8ebdad53adacf07e9450eaa98b9ce183 |
26 |
|
27 |
diff --git a/dev-vcs/mercurial/mercurial-3.9.1.ebuild b/dev-vcs/mercurial/mercurial-3.9.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000..1e1d7b5 |
30 |
--- /dev/null |
31 |
+++ b/dev-vcs/mercurial/mercurial-3.9.1.ebuild |
32 |
@@ -0,0 +1,135 @@ |
33 |
+# Copyright 1999-2016 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+# $Id$ |
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="~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" |
51 |
+IUSE="bugzilla emacs gpg test tk" |
52 |
+ |
53 |
+RDEPEND="bugzilla? ( dev-python/mysql-python[${PYTHON_USEDEP}] ) |
54 |
+ gpg? ( app-crypt/gnupg ) |
55 |
+ tk? ( dev-lang/tk ) |
56 |
+ app-misc/ca-certificates" |
57 |
+DEPEND="emacs? ( virtual/emacs ) |
58 |
+ test? ( app-arch/unzip |
59 |
+ dev-python/pygments[${PYTHON_USEDEP}] )" |
60 |
+ |
61 |
+SITEFILE="70${PN}-gentoo.el" |
62 |
+ |
63 |
+PATCHES=( "${FILESDIR}/${PN}-3.0.1-po_fixes.patch" ) |
64 |
+ |
65 |
+python_prepare_all() { |
66 |
+ # fix up logic that won't work in Gentoo Prefix (also won't outside in |
67 |
+ # certain cases), bug #362891 |
68 |
+ sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die |
69 |
+ |
70 |
+ distutils-r1_python_prepare_all |
71 |
+} |
72 |
+ |
73 |
+python_configure_all() { |
74 |
+ strip-flags -ftracer -ftree-vectorize |
75 |
+ # Note: make it impl-conditional if py3 is supported |
76 |
+ append-flags -fno-strict-aliasing |
77 |
+ |
78 |
+ "${PYTHON}" setup.py build_mo || die |
79 |
+} |
80 |
+ |
81 |
+python_compile_all() { |
82 |
+ rm -r contrib/{win32,macosx} || die |
83 |
+ if use emacs; then |
84 |
+ cd contrib || die |
85 |
+ elisp-compile mercurial.el || die "elisp-compile failed!" |
86 |
+ fi |
87 |
+} |
88 |
+ |
89 |
+python_install_all() { |
90 |
+ distutils-r1_python_install_all |
91 |
+ |
92 |
+ newbashcomp contrib/bash_completion hg |
93 |
+ |
94 |
+ insinto /usr/share/zsh/site-functions |
95 |
+ newins contrib/zsh_completion _hg |
96 |
+ |
97 |
+ rm -f doc/*.?.txt |
98 |
+ dodoc CONTRIBUTORS |
99 |
+ cp hgweb*.cgi "${ED}"/usr/share/doc/${PF}/ || die |
100 |
+ |
101 |
+ dobin hgeditor |
102 |
+ dobin contrib/hgk |
103 |
+ python_foreach_impl python_doscript contrib/hg-ssh |
104 |
+ |
105 |
+ if use emacs; then |
106 |
+ elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!" |
107 |
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE} |
108 |
+ fi |
109 |
+ |
110 |
+ local RM_CONTRIB=(hgk hg-ssh bash_completion zsh_completion wix buildrpm plan9 |
111 |
+ *.el mercurial.spec) |
112 |
+ for f in ${RM_CONTRIB[@]}; do |
113 |
+ rm -r contrib/$f || die |
114 |
+ done |
115 |
+ |
116 |
+ dodoc -r contrib |
117 |
+ docompress -x /usr/share/doc/${PF}/contrib |
118 |
+ doman doc/*.? |
119 |
+ |
120 |
+ insinto /etc/mercurial/hgrc.d |
121 |
+ doins "${FILESDIR}/cacerts.rc" |
122 |
+} |
123 |
+ |
124 |
+src_test() { |
125 |
+ pushd tests &>/dev/null || die |
126 |
+ rm -rf *svn* # Subversion tests fail with 1.5 |
127 |
+ rm -f test-archive* # Fails due to verbose tar output changes |
128 |
+ rm -f test-convert-baz* # GNU Arch baz |
129 |
+ rm -f test-convert-cvs* # CVS |
130 |
+ rm -f test-convert-darcs* # Darcs |
131 |
+ rm -f test-convert-git* # git |
132 |
+ rm -f test-convert-mtn* # monotone |
133 |
+ rm -f test-convert-tla* # GNU Arch tla |
134 |
+ #rm -f test-doctest* # doctest always fails with python 2.5.x |
135 |
+ rm -f test-largefiles* # tends to time out |
136 |
+ |
137 |
+ popd &>/dev/null || die |
138 |
+ distutils-r1_src_test |
139 |
+} |
140 |
+ |
141 |
+python_test() { |
142 |
+ local TEST_DIR |
143 |
+ |
144 |
+ rm -rf "${TMPDIR}"/test |
145 |
+ distutils_install_for_testing |
146 |
+ cd tests || die |
147 |
+ "${PYTHON}" run-tests.py --verbose \ |
148 |
+ --tmpdir="${TMPDIR}"/test \ |
149 |
+ --with-hg="${TEST_DIR}"/scripts/hg \ |
150 |
+ || die "Tests fail with ${EPYTHON}" |
151 |
+} |
152 |
+ |
153 |
+pkg_postinst() { |
154 |
+ use emacs && elisp-site-regen |
155 |
+ |
156 |
+ elog "If you want to convert repositories from other tools using convert" |
157 |
+ elog "extension please install correct tool:" |
158 |
+ elog " dev-vcs/cvs" |
159 |
+ elog " dev-vcs/darcs" |
160 |
+ elog " dev-vcs/git" |
161 |
+ elog " dev-vcs/monotone" |
162 |
+ elog " dev-vcs/subversion" |
163 |
+} |
164 |
+ |
165 |
+pkg_postrm() { |
166 |
+ use emacs && elisp-site-regen |
167 |
+} |