Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 329489 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-13 / +20 lines)
Line  Link Here
0
-- mercurial-1.6.3.ebuild
0
++ mercurial-1.6.3.ebuild
Lines 3-10 Link Here
3
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/mercurial-1.6.3.ebuild,v 1.1 2010/08/26 17:24:24 djc Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/mercurial-1.6.3.ebuild,v 1.1 2010/08/26 17:24:24 djc Exp $
4
4
5
EAPI=3
5
EAPI=3
6
PYTHON_DEPEND="2"
7
PYTHON_USE_WITH="threads"
8
SUPPORT_PYTHON_ABIS="1"
9
RESTRICT_PYTHON_ABIS="3.*"
6
10
7
inherit bash-completion elisp-common flag-o-matic eutils distutils
11
inherit bash-completion elisp-common eutils distutils
8
12
9
DESCRIPTION="Scalable distributed SCM"
13
DESCRIPTION="Scalable distributed SCM"
10
HOMEPAGE="http://mercurial.selenic.com/"
14
HOMEPAGE="http://mercurial.selenic.com/"
Lines 15-37 Link Here
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
19
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
16
IUSE="bugzilla emacs gpg test tk zsh-completion"
20
IUSE="bugzilla emacs gpg test tk zsh-completion"
17
21
18
CDEPEND=">=dev-lang/python-2.4[threads]"
22
RDEPEND="bugzilla? ( dev-python/mysql-python )
19
RDEPEND="${CDEPEND}
20
	bugzilla? ( dev-python/mysql-python )
21
	gpg? ( app-crypt/gnupg )
23
	gpg? ( app-crypt/gnupg )
22
	tk? ( dev-lang/tk )
24
	tk? ( dev-lang/tk )
23
	zsh-completion? ( app-shells/zsh )"
25
	zsh-completion? ( app-shells/zsh )"
24
DEPEND="${CDEPEND}
26
DEPEND="emacs? ( virtual/emacs )
25
	emacs? ( virtual/emacs )
26
	test? ( app-arch/unzip
27
	test? ( app-arch/unzip
27
		dev-python/pygments )"
28
		dev-python/pygments )"
28
29
30
PYTHON_CFLAGS=(
31
	"2.* + -fno-strict-aliasing"
32
	"* - -ftracer -ftree-vectorize"
33
)
34
29
PYTHON_MODNAME="${PN} hgext"
35
PYTHON_MODNAME="${PN} hgext"
30
SITEFILE="70${PN}-gentoo.el"
36
SITEFILE="70${PN}-gentoo.el"
31
37
32
src_compile() {
38
src_compile() {
33
	filter-flags -ftracer -ftree-vectorize
34
35
	distutils_src_compile
39
	distutils_src_compile
36
40
37
	if use emacs; then
41
	if use emacs; then
Lines 99-108 Link Here
99
		rm -f test-journal-exists
103
		rm -f test-journal-exists
100
		rm -f test-repair-strip
104
		rm -f test-repair-strip
101
	fi
105
	fi
102
	local testdir="${T}/tests"
106
103
	rm -rf "${testdir}"
107
	testing() {
104
	einfo "Running Mercurial tests ..."
108
		local testdir="${T}/tests-${PYTHON_ABI}"
105
	python run-tests.py -j4 --tmpdir="${testdir}" || die "test failed"
109
		rm -rf "${testdir}"
110
		"$(PYTHON)" run-tests.py -j4 --tmpdir="${testdir}"
111
	}
112
	python_execute_function testing
106
}
113
}
107
114
108
pkg_postinst() {
115
pkg_postinst() {

Return to bug 329489