Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/mercurial/
Date: Sun, 04 Jun 2017 21:11:54
Message-Id: 1496610703.9c1b2aba59a76d4140ab9ca91210cde654fc0aae.polynomial-c@gentoo
1 commit: 9c1b2aba59a76d4140ab9ca91210cde654fc0aae
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 4 20:54:23 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 4 21:11:43 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c1b2aba
7
8 dev-vcs/mercurial: Bunp to version 4.2.1
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 dev-vcs/mercurial/Manifest | 1 +
13 dev-vcs/mercurial/mercurial-4.2.1.ebuild | 134 +++++++++++++++++++++++++++++++
14 2 files changed, 135 insertions(+)
15
16 diff --git a/dev-vcs/mercurial/Manifest b/dev-vcs/mercurial/Manifest
17 index fc74b0c8b1c..77d47a46a02 100644
18 --- a/dev-vcs/mercurial/Manifest
19 +++ b/dev-vcs/mercurial/Manifest
20 @@ -1,3 +1,4 @@
21 DIST mercurial-3.8.4.tar.gz 4775341 SHA256 4b2e3ef19d34fa1d781cb7425506a05d4b6b1172bab69d6ea78874175fdf3da6 SHA512 2ee785f631f9ae346e10ca77251a9ce6d3dacd598588c39f1a69ce1f4b668866f6109d682428512c37c300b26741b74672195538d66845e85cfff5ead886cf4c WHIRLPOOL 1f0a12cc6d00f3544ab00e011a9ff9308fe1652c0598045ddba2a41ba17b55c291da200bce85d4c600d673b8746e936c441ffa7398ad810d1069bd97fb32f2db
22 DIST mercurial-4.1.3.tar.gz 5134965 SHA256 103d2ae187d5c94110c0e86ccc3b46f55fcd8e21c78d1c209bac7b59a73e86d8 SHA512 794c513b7e061bc56d270ef57adc0fadeffd5bcc988da0934b24db686b76bf573aef2bbaa3baa9220f31463795bc6e6a99fc1284ebcf8d7e49f42b8129347811 WHIRLPOOL a2f5d5e3e89f794415521bf0bc93ff0e8a67aec6c39951437b6b585f9f6d604bd556af10cce50951128c746719db54ea48f86fb7c262a36a29576ba539be1e79
23 +DIST mercurial-4.2.1.tar.gz 5317692 SHA256 d7d5572f5aa0797fbf2168440eaa51149df88645fe37af8b15fa660d9a8158a0 SHA512 0349fb5343210869bacb2247d30546676e5cf486f64fb8ebb2b1c6cdf7d564e7b754a43fb5b61c7d7e66a67609c514c8e15f415f4189bccbebb2fbb5a5474645 WHIRLPOOL f64df61fe2a10abca4765f150952e5d529034909666f1bee6df40d628af52d650086bd51c5d2db2e0ce2874f38fd439bb9d958bda3d2d63dccbf861b933d51f1
24 DIST mercurial-4.2.tar.gz 5303367 SHA256 23a412308fc9c2b354a0e91a89588a4af2af061b47da80bc4233ccb0cceef47d SHA512 bd03134a70fe0576a31d86cb6ca2d232b8f98bd9b038dc972a4d332889bb39c776f47d44ea9c45588d6e53590a8e3fbd48ca25238525919b8e44beab3d3c79cb WHIRLPOOL 930882698c0e662f5fadc8a57a14ce00270cce70f7a9f8f0081647a28c3558aeda1a4d7bc5aa7e264cb60ec85051dae6a16cc62df0f51be3cc406bf587ff5485
25
26 diff --git a/dev-vcs/mercurial/mercurial-4.2.1.ebuild b/dev-vcs/mercurial/mercurial-4.2.1.ebuild
27 new file mode 100644
28 index 00000000000..a04546c6f07
29 --- /dev/null
30 +++ b/dev-vcs/mercurial/mercurial-4.2.1.ebuild
31 @@ -0,0 +1,134 @@
32 +# Copyright 1999-2017 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,macosx} || 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 buildrpm plan9
109 + *.el mercurial.spec)
110 + for f in ${RM_CONTRIB[@]}; do
111 + rm -r contrib/$f || die
112 + done
113 +
114 + dodoc -r contrib
115 + docompress -x /usr/share/doc/${PF}/contrib
116 + doman doc/*.?
117 +
118 + insinto /etc/mercurial/hgrc.d
119 + doins "${FILESDIR}/cacerts.rc"
120 +}
121 +
122 +src_test() {
123 + pushd tests &>/dev/null || die
124 + rm -rf *svn* # Subversion tests fail with 1.5
125 + rm -f test-archive* # Fails due to verbose tar output changes
126 + rm -f test-convert-baz* # GNU Arch baz
127 + rm -f test-convert-cvs* # CVS
128 + rm -f test-convert-darcs* # Darcs
129 + rm -f test-convert-git* # git
130 + rm -f test-convert-mtn* # monotone
131 + rm -f test-convert-tla* # GNU Arch tla
132 + #rm -f test-doctest* # doctest always fails with python 2.5.x
133 + rm -f test-largefiles* # tends to time out
134 +
135 + popd &>/dev/null || die
136 + distutils-r1_src_test
137 +}
138 +
139 +python_test() {
140 + local TEST_DIR
141 +
142 + rm -rf "${TMPDIR}"/test
143 + distutils_install_for_testing
144 + cd tests || die
145 + "${PYTHON}" run-tests.py --verbose \
146 + --tmpdir="${TMPDIR}"/test \
147 + --with-hg="${TEST_DIR}"/scripts/hg \
148 + || die "Tests fail with ${EPYTHON}"
149 +}
150 +
151 +pkg_postinst() {
152 + use emacs && elisp-site-regen
153 +
154 + elog "If you want to convert repositories from other tools using convert"
155 + elog "extension please install correct tool:"
156 + elog " dev-vcs/cvs"
157 + elog " dev-vcs/darcs"
158 + elog " dev-vcs/git"
159 + elog " dev-vcs/monotone"
160 + elog " dev-vcs/subversion"
161 +}
162 +
163 +pkg_postrm() {
164 + use emacs && elisp-site-regen
165 +}