diff options
Diffstat (limited to 'dev-vcs/mercurial/mercurial-9999.ebuild')
-rw-r--r-- | dev-vcs/mercurial/mercurial-9999.ebuild | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/dev-vcs/mercurial/mercurial-9999.ebuild b/dev-vcs/mercurial/mercurial-9999.ebuild index 2fb319d58180..08e01f60fd0b 100644 --- a/dev-vcs/mercurial/mercurial-9999.ebuild +++ b/dev-vcs/mercurial/mercurial-9999.ebuild @@ -3,10 +3,11 @@ EAPI=8 +CARGO_OPTIONAL=1 +DISTUTILS_USE_PEP517="setuptools" +DISTUTILS_EXT=1 PYTHON_COMPAT=( python3_{9..12} ) PYTHON_REQ_USE="threads(+)" -DISTUTILS_USE_SETUPTOOLS=no -CARGO_OPTIONAL=1 inherit bash-completion-r1 cargo elisp-common distutils-r1 mercurial flag-o-matic multiprocessing @@ -78,6 +79,11 @@ python_compile_all() { if use chg; then emake -C contrib/chg fi + if use rust; then + pushd rust/rhg || die + cargo_src_compile --no-default-features --jobs $(makeopts_jobs) + popd || die + fi if use emacs; then cd contrib || die elisp-compile mercurial.el || die "elisp-compile failed!" @@ -122,6 +128,9 @@ python_install_all() { doman contrib/chg/chg.1 RM_CONTRIB+=( chg ) fi + if use rust; then + dobin rust/target/release/rhg + fi for f in ${RM_CONTRIB[@]}; do rm -rf contrib/${f} || die @@ -168,7 +177,6 @@ python_test() { einfo "Skipping tests for unsupported Python 3.10" return fi - distutils_install_for_testing cd tests || die PYTHONWARNINGS=ignore "${PYTHON}" run-tests.py \ --jobs $(makeopts_jobs) \ |