From d72a987a342949e200b5e9decbd71f246da53788 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 12 May 2024 00:01:15 +0100 Subject: gentoo auto-resync : 12:05:2024 - 00:01:15 --- dev-vcs/mercurial/Manifest | 6 +- dev-vcs/mercurial/mercurial-6.6.2.ebuild | 2 +- dev-vcs/mercurial/mercurial-6.7.2.ebuild | 368 ------------------------------- dev-vcs/mercurial/mercurial-6.7.3.ebuild | 368 +++++++++++++++++++++++++++++++ 4 files changed, 372 insertions(+), 372 deletions(-) delete mode 100644 dev-vcs/mercurial/mercurial-6.7.2.ebuild create mode 100644 dev-vcs/mercurial/mercurial-6.7.3.ebuild (limited to 'dev-vcs/mercurial') diff --git a/dev-vcs/mercurial/Manifest b/dev-vcs/mercurial/Manifest index 47fdcee8a6b0..c2d1eca6da50 100644 --- a/dev-vcs/mercurial/Manifest +++ b/dev-vcs/mercurial/Manifest @@ -80,7 +80,7 @@ DIST memmap2-0.5.8.crate 26592 BLAKE2B ca38d5b65ce834560a26e5a3e0068db9d600ddea1 DIST memoffset-0.6.5.crate 7686 BLAKE2B 9a797388702389076c426052c3d54dc62802d5db8bc5c9c83990429f2ffaec4fab4c7dd3f09cd0704d1ea555e87976563bb43408ba54b5e66ce7e406d4604009 SHA512 11bdd9185b99dfee8e659e051b09ee301c7142a372a8117864745a5085c015436d2efbb1478192886f09cbc562529e209d2e3325d94938a64bc75b1d91d2bf3f DIST mercurial-6.5.3.tar.gz 8235306 BLAKE2B d48c467e2c791a7421741e7aaae223eabcfb0bea5123cf80886edb6ef5ddec411540bae49f085ff03a478d42e63ef4803fd32c8953470cadc2de0153b9372aad SHA512 af90ec414fbf9da518ce0de5b855b5dd6e4141f838ab0da54a40f31aa00245d21f14f1352fe537744fb6ae5a3e4f2723076f4773fafac649b8483fefd002b510 DIST mercurial-6.6.2.tar.gz 8252567 BLAKE2B 8fb2395e463bc6678cadb902c5559aea5a9ae08eebe2733228dabe78ed52cef89c8fb2690c677c9d1f9e5fdcf6a89ff065def0b9daa7292136b32ab45f9136d7 SHA512 cf45c7c43555bd64d95ec6de2af7952bb50c2fba9ec59ce1afd9437b1fb53e399bd1e6f1b6e17cc5699f598cca4e087f82b3097d2d772219dd0337bbbde2d16b -DIST mercurial-6.7.2.tar.gz 8302143 BLAKE2B 1406f8eb757672085634c0deef81ac2478689f83729cd122d4856b8b524ad561ad67d3b9031c0c1aaca5b4ade5843ced0c3117159afe89806ecaff6980464372 SHA512 cb64daf885451d606ad34c408fbefc900be0fab7c0e0c2fc63dda32676de1c77a9d194c8c4974a608020a0f09e326682443537769eaa97acaf89ad7e385e0ce5 +DIST mercurial-6.7.3.tar.gz 8306045 BLAKE2B 9cb1ae3945d422e24a6d481c87f3c5b13f6e8f86669f15973ab6a2c2fb185954ffb3c460ce266619171b98bd91703c0b67458ca4642727c34abaf49837b7e01b SHA512 40a8f085904d4974160a875ab30f3cec6ebee514ca11fbc821df258196e304c173393b1ed6f2724ddcfc775f8be89dda9a1297879d0e4b5804ddf958f79fe19c DIST miniz_oxide-0.5.4.crate 53485 BLAKE2B 8836697bdc3707f89fa869e6b09a36ee4d83ce2ae0a53bc7b06bbad70ed7ac25f8f67d841f3f611f6756d891f0eddb0abf7fcaf87570f8ab32220f113583ea6d SHA512 589dac16ca9c2f94e6fa92b68bcf51d140f46562cbb3a1b791b75c59feae51da5ec16042604bbd6bcb7d7f0c7f75e98ea1af8cf42d177133a5eaa86429cf3114 DIST nom8-0.2.0.crate 162020 BLAKE2B e196fb349cdbb263d4fc754f922cd3b819f85bd323672f2f23ad465eea5352fdd631a7e411381f19447ff3b1f2780186fbb738d6f04fff33d97ca060ab94c2c2 SHA512 0d4cca8f13978e9101cc2eb9fb65ad879929a5361353c9a04e9850061e788e942948a6ea064c6986440a2576c10ce84daa8aa21d75214f322691da5f63668454 DIST num-integer-0.1.45.crate 22529 BLAKE2B 4da3e801f71ba8f92c692497e200bfc8d32183c94eaad91260683b09f4697c03175fec7cff5a9ff3782d5db5d514d74f22f7a61a102c0f0d2e67a7a4b4f29222 SHA512 731bdc09c3af7f9d8b171041f2957aa60facef93b06886000d8ba60d410aabbbee358d700bf31b2588b2e077464f290f24a0b712df7bb7f12972675b6c9bd735 @@ -177,7 +177,7 @@ DIST zstd-0.12.3+zstd.1.5.2.crate 29693 BLAKE2B 57789ec212f12d3416784d7d8830a197 DIST zstd-safe-6.0.4+zstd.1.5.4.crate 20856 BLAKE2B 05ef99fecb0d49c47dda75c23e89b7c5193ea00cee153be1856818ce3cbb97171b631ad27c01bde6fb02cc532a4aa8115ad9c6f2359ae6917e86062d833b75e4 SHA512 db03385ae800053ddb1bb6a2089712f284c21e43a99deeed6367ca8dabbb3f96b12066dfb57f484172a386fc9576c28e38d1a7bbf838debc05877bc68cd5c9cf DIST zstd-sys-2.0.7+zstd.1.5.4.crate 732100 BLAKE2B 1859d1feb7c31d53df56b198b88a391bf09e221d09d449878043dc780ae6e3b3a0ad05fe3fb4980e849ab914f68d281d41f51f7bbceec6e1403d9b4e25572b4c SHA512 dcddc4f0d7486ee144df4e2173536dc02c9714b6f702edb9a9e04b4c02f4d347b5a70fbc020c1d08c079d38a423c4dc8b6b86e7e43ec3ccfcc8e3ff9861be11b EBUILD mercurial-6.5.3.ebuild 7474 BLAKE2B 614777cfb4b82b4b93399faaa94e7b67654254573cc02dee3e9447bb8a97e8371c865ef50481649d28b269bf63852a64f21869c64eb34a6e6a125c6564fbea44 SHA512 d8fc0ceb48facd399a7bd56ed8c851626a41d2aee0a573e6be6bd1d8e959f1b00fdbd783b911da76e4110f293b3a03c24c37fc242acf27ed86a93c0aa6e155fc -EBUILD mercurial-6.6.2.ebuild 7637 BLAKE2B 595eb862b4220fa7b6b6460b3afe083a9b0bc1e585f9d84e9188b484f12ec480fa9297b0b69f04b0ae9f7d7f197dd0d615392edea2acfc90008ed3f4b9c8c572 SHA512 5e196c88994cdeecc2b9f61a4dd92e9560877db8251de848f8073704625a8e52e066a949a5cd8693d569aa34d78b0f98c4d1450bfe98494f7078aa1d588d8496 -EBUILD mercurial-6.7.2.ebuild 7875 BLAKE2B 854ccd99363f669aad7fb7e1525f8f5b11867a02ca7b3a30be1916302bd9505ab381a484d3baa45a10e0de10b5e486a0ecbc61c903f3a4fe0cabbf5fb53fb605 SHA512 3b88e2b33b29623365898a5edc3c9b4c4f509ab8432d9f9861787ecf27a6c06b6bbe0e62781a949ef46a73c2033554cbc4b587b2f7ef14f06ec03169fa83a58e +EBUILD mercurial-6.6.2.ebuild 7636 BLAKE2B 79272ddbbdcc84d62611301f2afaf759ae357b058c38d89a2b846521f9e0fccf24f63218489a17467ea5456107450e0ae026f0704f92b67dcb3ca24a76eb8266 SHA512 4e244863bdf2c780097a8e30c3ede576ec6686aa77f4dc9ec8d9f459d92a4226f7ff3b81907a0c1b24a435ace1fe888494af4d549a3e880dab1c68a8f9c519c5 +EBUILD mercurial-6.7.3.ebuild 7875 BLAKE2B 854ccd99363f669aad7fb7e1525f8f5b11867a02ca7b3a30be1916302bd9505ab381a484d3baa45a10e0de10b5e486a0ecbc61c903f3a4fe0cabbf5fb53fb605 SHA512 3b88e2b33b29623365898a5edc3c9b4c4f509ab8432d9f9861787ecf27a6c06b6bbe0e62781a949ef46a73c2033554cbc4b587b2f7ef14f06ec03169fa83a58e EBUILD mercurial-9999.ebuild 4373 BLAKE2B 77b6ebbae8a7040105592071542639c4dbc976f945338275ef02c50e32dff3cd836845e482dac1758aa61b51286fd598c5ec219898abee74dc423a24242e615e SHA512 a3cbb3537bff0d0061467bdecbb43b453772f40e3d86b78a7b00f97c1a0f21235bd3f317f61f2e0e4f7485b11b76f0aa49478579f78b276992715bf165118d34 MISC metadata.xml 543 BLAKE2B 648353ce40bb4e93585e0f34b7bd7eba764b421ae9962835d2e00ae6e893e1b0c9f7e94e1e3548f098a57f5901840986784e5c7e163679b41f6475ff9ba190ce SHA512 e6850e1b5088298ad42f2a9ce5313a4c974562242ee77e7af5c53bcb91bddb1676a24690a14d67dbac911735aaef462d70019b6fb764e1e17556df29b0ac7e1b diff --git a/dev-vcs/mercurial/mercurial-6.6.2.ebuild b/dev-vcs/mercurial/mercurial-6.6.2.ebuild index 5f7c2066c802..4f7b98fedf5f 100644 --- a/dev-vcs/mercurial/mercurial-6.6.2.ebuild +++ b/dev-vcs/mercurial/mercurial-6.6.2.ebuild @@ -181,7 +181,7 @@ LICENSE="GPL-2+ rust? ( 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD Boost-1.0 MIT MPL-2.0 PSF-2 Unicode-DFS-2016 Unlicense ZLIB )" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" IUSE="+chg emacs gpg test tk rust" BDEPEND="rust? ( ${RUST_DEPEND} )" diff --git a/dev-vcs/mercurial/mercurial-6.7.2.ebuild b/dev-vcs/mercurial/mercurial-6.7.2.ebuild deleted file mode 100644 index e3538643ddbe..000000000000 --- a/dev-vcs/mercurial/mercurial-6.7.2.ebuild +++ /dev/null @@ -1,368 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -CARGO_OPTIONAL=1 -DISTUTILS_USE_PEP517="setuptools" -DISTUTILS_EXT=1 -PYTHON_COMPAT=( python3_{10..12} ) -PYTHON_REQ_USE="threads(+)" - -CRATES=" - adler@1.0.2 - ahash@0.8.2 - aho-corasick@0.7.19 - android-tzdata@0.1.1 - android_system_properties@0.1.5 - atty@0.2.14 - autocfg@1.1.0 - bitflags@1.3.2 - bitmaps@2.1.0 - bitvec@1.0.1 - block-buffer@0.9.0 - block-buffer@0.10.3 - bumpalo@3.11.1 - byteorder@1.4.3 - bytes-cast@0.3.0 - bytes-cast-derive@0.2.0 - cc@1.0.76 - cfg-if@1.0.0 - chrono@0.4.34 - clap@4.0.24 - clap_derive@4.0.21 - clap_lex@0.3.0 - codespan-reporting@0.11.1 - convert_case@0.4.0 - core-foundation-sys@0.8.3 - cpufeatures@0.2.5 - cpython@0.7.1 - crc32fast@1.3.2 - crossbeam-channel@0.5.6 - crossbeam-deque@0.8.2 - crossbeam-epoch@0.9.11 - crossbeam-utils@0.8.12 - crypto-common@0.1.6 - ctor@0.1.26 - cxx@1.0.81 - cxx-build@1.0.81 - cxxbridge-flags@1.0.81 - cxxbridge-macro@1.0.81 - derive_more@0.99.17 - diff@0.1.13 - digest@0.9.0 - digest@0.10.5 - either@1.8.0 - env_logger@0.9.3 - fastrand@1.8.0 - flate2@1.0.24 - format-bytes@0.3.0 - format-bytes-macros@0.4.0 - funty@2.0.0 - generic-array@0.14.6 - getrandom@0.1.16 - getrandom@0.2.8 - hashbrown@0.12.3 - hashbrown@0.13.1 - heck@0.4.0 - hermit-abi@0.1.19 - hex@0.4.3 - home@0.5.4 - humantime@2.1.0 - iana-time-zone@0.1.53 - iana-time-zone-haiku@0.1.1 - im-rc@15.1.0 - indexmap@1.9.2 - instant@0.1.12 - itertools@0.10.5 - jobserver@0.1.25 - js-sys@0.3.60 - lazy_static@1.4.0 - libc@0.2.137 - libm@0.2.6 - libz-sys@1.1.8 - link-cplusplus@1.0.7 - log@0.4.17 - logging_timer@1.1.0 - logging_timer_proc_macros@1.1.0 - memchr@2.5.0 - memmap2@0.5.8 - memoffset@0.6.5 - miniz_oxide@0.5.4 - nom8@0.2.0 - num-traits@0.2.15 - num_cpus@1.14.0 - once_cell@1.16.0 - opaque-debug@0.3.0 - os_str_bytes@6.4.0 - output_vt100@0.1.3 - paste@1.0.9 - pkg-config@0.3.26 - ppv-lite86@0.2.17 - pretty_assertions@1.3.0 - proc-macro-error@1.0.4 - proc-macro-error-attr@1.0.4 - proc-macro2@1.0.47 - python3-sys@0.7.1 - quote@1.0.21 - radium@0.7.0 - rand@0.7.3 - rand@0.8.5 - rand_chacha@0.2.2 - rand_chacha@0.3.1 - rand_core@0.5.1 - rand_core@0.6.4 - rand_distr@0.4.3 - rand_hc@0.2.0 - rand_pcg@0.3.1 - rand_xoshiro@0.6.0 - rayon@1.7.0 - rayon-core@1.11.0 - redox_syscall@0.2.16 - regex@1.7.0 - regex-syntax@0.6.28 - remove_dir_all@0.5.3 - rustc_version@0.4.0 - same-file@1.0.6 - scopeguard@1.1.0 - scratch@1.0.2 - self_cell@1.0.0 - semver@1.0.14 - serde@1.0.152 - serde_derive@1.0.152 - serde_spanned@0.6.1 - sha-1@0.9.8 - sha-1@0.10.0 - sized-chunks@0.6.5 - stable_deref_trait@1.2.0 - static_assertions@1.1.0 - strsim@0.10.0 - syn@1.0.109 - tap@1.0.1 - tempfile@3.3.0 - termcolor@1.1.3 - thread_local@1.1.4 - toml@0.6.0 - toml_datetime@0.5.1 - toml_edit@0.18.1 - twox-hash@1.6.3 - typenum@1.15.0 - unicode-ident@1.0.5 - unicode-width@0.1.10 - vcpkg@0.2.15 - vcsgraph@0.2.0 - version_check@0.9.4 - wasi@0.9.0+wasi-snapshot-preview1 - wasi@0.11.0+wasi-snapshot-preview1 - wasm-bindgen@0.2.83 - wasm-bindgen-backend@0.2.83 - wasm-bindgen-macro@0.2.83 - wasm-bindgen-macro-support@0.2.83 - wasm-bindgen-shared@0.2.83 - web-sys@0.3.60 - which@4.3.0 - whoami@1.4.0 - winapi@0.3.9 - winapi-i686-pc-windows-gnu@0.4.0 - winapi-util@0.1.5 - winapi-x86_64-pc-windows-gnu@0.4.0 - windows-targets@0.52.0 - windows_aarch64_gnullvm@0.52.0 - windows_aarch64_msvc@0.52.0 - windows_i686_gnu@0.52.0 - windows_i686_msvc@0.52.0 - windows_x86_64_gnu@0.52.0 - windows_x86_64_gnullvm@0.52.0 - windows_x86_64_msvc@0.52.0 - wyz@0.5.1 - yansi@0.5.1 - zstd@0.12.3+zstd.1.5.2 - zstd-safe@6.0.4+zstd.1.5.4 - zstd-sys@2.0.7+zstd.1.5.4 -" - -inherit bash-completion-r1 cargo elisp-common distutils-r1 flag-o-matic multiprocessing - -DESCRIPTION="Scalable distributed SCM" -HOMEPAGE="https://www.mercurial-scm.org/" -SRC_URI="https://www.mercurial-scm.org/release/${P}.tar.gz - rust? ( ${CARGO_CRATE_URIS} )" - -LICENSE="GPL-2+ - rust? ( - 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD Boost-1.0 MIT MPL-2.0 PSF-2 Unicode-DFS-2016 Unlicense ZLIB )" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" -IUSE="+chg emacs gpg test tk rust" - -BDEPEND="rust? ( ${RUST_DEPEND} )" -RDEPEND=" - app-misc/ca-certificates - gpg? ( app-crypt/gnupg ) - tk? ( dev-lang/tk )" - -DEPEND="emacs? ( >=app-editors/emacs-23.1:* ) - test? ( - app-arch/unzip - dev-python/pygments[${PYTHON_USEDEP}] - )" - -SITEFILE="70${PN}-gentoo.el" - -RESTRICT="!test? ( test )" - -src_unpack() { - default_src_unpack - if use rust; then - local S="${S}/rust/hg-cpython" - cargo_src_unpack - fi -} - -python_prepare_all() { - # fix up logic that won't work in Gentoo Prefix (also won't outside in - # certain cases), bug #362891 - sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die - sed -i -e 's/__APPLE__/__NO_APPLE__/g' mercurial/cext/osutil.c || die - - distutils-r1_python_prepare_all -} - -src_compile() { - if use rust; then - pushd rust/hg-cpython || die - cargo_src_compile --no-default-features --jobs $(makeopts_jobs) - popd || die - fi - distutils-r1_src_compile -} - -python_compile() { - filter-flags -ftracer -ftree-vectorize - if use rust; then - local -x HGWITHRUSTEXT="cpython" - fi - distutils-r1_python_compile build_ext -} - -python_compile_all() { - rm -r contrib/win32 || die - 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!" - fi -} - -src_install() { - distutils-r1_src_install -} - -python_install() { - if use rust; then - local -x HGWITHRUSTEXT="cpython" - fi - - distutils-r1_python_install build_ext - python_doscript contrib/hg-ssh -} - -python_install_all() { - distutils-r1_python_install_all - - newbashcomp contrib/bash_completion hg - - insinto /usr/share/zsh/site-functions - newins contrib/zsh_completion _hg - - dobin hgeditor - if use tk; then - dobin contrib/hgk - fi - - if use emacs; then - elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!" - elisp-make-site-file "${SITEFILE}" - fi - - local RM_CONTRIB=( hgk hg-ssh bash_completion zsh_completion plan9 *.el ) - - if use chg; then - dobin contrib/chg/chg - 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 - done - - dodoc -r contrib - docompress -x /usr/share/doc/${PF}/contrib - doman doc/*.? - dodoc CONTRIBUTORS hgweb.cgi - - insinto /etc/mercurial/hgrc.d - doins "${FILESDIR}/cacerts.rc" -} - -src_test() { - pushd tests &>/dev/null || die - rm -rf *svn* # Subversion tests fail with 1.5 - rm -f test-archive* # Fails due to verbose tar output changes - rm -f test-convert-baz* # GNU Arch baz - rm -f test-convert-cvs* # CVS - rm -f test-convert-darcs* # Darcs - rm -f test-convert-git* # git - rm -f test-convert-mtn* # monotone - rm -f test-convert-tla* # GNU Arch tla - rm -f test-largefiles* # tends to time out - rm -f test-https* # requires to support tls1.0 - rm -rf test-removeemptydirs* # requires access to access parent directories - if [[ ${EUID} -eq 0 ]]; then - einfo "Removing tests which require user privileges to succeed" - rm -f test-convert* - rm -f test-lock-badness* - rm -f test-permissions* - rm -f test-pull-permission* - rm -f test-journal-exists* - rm -f test-repair-strip* - fi - - popd &>/dev/null || die - distutils-r1_src_test -} - -python_test() { - cd tests || die - PYTHONWARNINGS=ignore "${PYTHON}" run-tests.py \ - --jobs $(makeopts_jobs) \ - --timeout 0 \ - || die "Tests fail with ${EPYTHON}" -} - -pkg_postinst() { - use emacs && elisp-site-regen - - elog "If you want to convert repositories from other tools using convert" - elog "extension please install correct tool:" - elog " dev-vcs/cvs" - elog " dev-vcs/darcs" - elog " dev-vcs/git" - elog " dev-vcs/monotone" - elog " dev-vcs/subversion" -} - -pkg_postrm() { - use emacs && elisp-site-regen -} diff --git a/dev-vcs/mercurial/mercurial-6.7.3.ebuild b/dev-vcs/mercurial/mercurial-6.7.3.ebuild new file mode 100644 index 000000000000..e3538643ddbe --- /dev/null +++ b/dev-vcs/mercurial/mercurial-6.7.3.ebuild @@ -0,0 +1,368 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CARGO_OPTIONAL=1 +DISTUTILS_USE_PEP517="setuptools" +DISTUTILS_EXT=1 +PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_REQ_USE="threads(+)" + +CRATES=" + adler@1.0.2 + ahash@0.8.2 + aho-corasick@0.7.19 + android-tzdata@0.1.1 + android_system_properties@0.1.5 + atty@0.2.14 + autocfg@1.1.0 + bitflags@1.3.2 + bitmaps@2.1.0 + bitvec@1.0.1 + block-buffer@0.9.0 + block-buffer@0.10.3 + bumpalo@3.11.1 + byteorder@1.4.3 + bytes-cast@0.3.0 + bytes-cast-derive@0.2.0 + cc@1.0.76 + cfg-if@1.0.0 + chrono@0.4.34 + clap@4.0.24 + clap_derive@4.0.21 + clap_lex@0.3.0 + codespan-reporting@0.11.1 + convert_case@0.4.0 + core-foundation-sys@0.8.3 + cpufeatures@0.2.5 + cpython@0.7.1 + crc32fast@1.3.2 + crossbeam-channel@0.5.6 + crossbeam-deque@0.8.2 + crossbeam-epoch@0.9.11 + crossbeam-utils@0.8.12 + crypto-common@0.1.6 + ctor@0.1.26 + cxx@1.0.81 + cxx-build@1.0.81 + cxxbridge-flags@1.0.81 + cxxbridge-macro@1.0.81 + derive_more@0.99.17 + diff@0.1.13 + digest@0.9.0 + digest@0.10.5 + either@1.8.0 + env_logger@0.9.3 + fastrand@1.8.0 + flate2@1.0.24 + format-bytes@0.3.0 + format-bytes-macros@0.4.0 + funty@2.0.0 + generic-array@0.14.6 + getrandom@0.1.16 + getrandom@0.2.8 + hashbrown@0.12.3 + hashbrown@0.13.1 + heck@0.4.0 + hermit-abi@0.1.19 + hex@0.4.3 + home@0.5.4 + humantime@2.1.0 + iana-time-zone@0.1.53 + iana-time-zone-haiku@0.1.1 + im-rc@15.1.0 + indexmap@1.9.2 + instant@0.1.12 + itertools@0.10.5 + jobserver@0.1.25 + js-sys@0.3.60 + lazy_static@1.4.0 + libc@0.2.137 + libm@0.2.6 + libz-sys@1.1.8 + link-cplusplus@1.0.7 + log@0.4.17 + logging_timer@1.1.0 + logging_timer_proc_macros@1.1.0 + memchr@2.5.0 + memmap2@0.5.8 + memoffset@0.6.5 + miniz_oxide@0.5.4 + nom8@0.2.0 + num-traits@0.2.15 + num_cpus@1.14.0 + once_cell@1.16.0 + opaque-debug@0.3.0 + os_str_bytes@6.4.0 + output_vt100@0.1.3 + paste@1.0.9 + pkg-config@0.3.26 + ppv-lite86@0.2.17 + pretty_assertions@1.3.0 + proc-macro-error@1.0.4 + proc-macro-error-attr@1.0.4 + proc-macro2@1.0.47 + python3-sys@0.7.1 + quote@1.0.21 + radium@0.7.0 + rand@0.7.3 + rand@0.8.5 + rand_chacha@0.2.2 + rand_chacha@0.3.1 + rand_core@0.5.1 + rand_core@0.6.4 + rand_distr@0.4.3 + rand_hc@0.2.0 + rand_pcg@0.3.1 + rand_xoshiro@0.6.0 + rayon@1.7.0 + rayon-core@1.11.0 + redox_syscall@0.2.16 + regex@1.7.0 + regex-syntax@0.6.28 + remove_dir_all@0.5.3 + rustc_version@0.4.0 + same-file@1.0.6 + scopeguard@1.1.0 + scratch@1.0.2 + self_cell@1.0.0 + semver@1.0.14 + serde@1.0.152 + serde_derive@1.0.152 + serde_spanned@0.6.1 + sha-1@0.9.8 + sha-1@0.10.0 + sized-chunks@0.6.5 + stable_deref_trait@1.2.0 + static_assertions@1.1.0 + strsim@0.10.0 + syn@1.0.109 + tap@1.0.1 + tempfile@3.3.0 + termcolor@1.1.3 + thread_local@1.1.4 + toml@0.6.0 + toml_datetime@0.5.1 + toml_edit@0.18.1 + twox-hash@1.6.3 + typenum@1.15.0 + unicode-ident@1.0.5 + unicode-width@0.1.10 + vcpkg@0.2.15 + vcsgraph@0.2.0 + version_check@0.9.4 + wasi@0.9.0+wasi-snapshot-preview1 + wasi@0.11.0+wasi-snapshot-preview1 + wasm-bindgen@0.2.83 + wasm-bindgen-backend@0.2.83 + wasm-bindgen-macro@0.2.83 + wasm-bindgen-macro-support@0.2.83 + wasm-bindgen-shared@0.2.83 + web-sys@0.3.60 + which@4.3.0 + whoami@1.4.0 + winapi@0.3.9 + winapi-i686-pc-windows-gnu@0.4.0 + winapi-util@0.1.5 + winapi-x86_64-pc-windows-gnu@0.4.0 + windows-targets@0.52.0 + windows_aarch64_gnullvm@0.52.0 + windows_aarch64_msvc@0.52.0 + windows_i686_gnu@0.52.0 + windows_i686_msvc@0.52.0 + windows_x86_64_gnu@0.52.0 + windows_x86_64_gnullvm@0.52.0 + windows_x86_64_msvc@0.52.0 + wyz@0.5.1 + yansi@0.5.1 + zstd@0.12.3+zstd.1.5.2 + zstd-safe@6.0.4+zstd.1.5.4 + zstd-sys@2.0.7+zstd.1.5.4 +" + +inherit bash-completion-r1 cargo elisp-common distutils-r1 flag-o-matic multiprocessing + +DESCRIPTION="Scalable distributed SCM" +HOMEPAGE="https://www.mercurial-scm.org/" +SRC_URI="https://www.mercurial-scm.org/release/${P}.tar.gz + rust? ( ${CARGO_CRATE_URIS} )" + +LICENSE="GPL-2+ + rust? ( + 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD Boost-1.0 MIT MPL-2.0 PSF-2 Unicode-DFS-2016 Unlicense ZLIB )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="+chg emacs gpg test tk rust" + +BDEPEND="rust? ( ${RUST_DEPEND} )" +RDEPEND=" + app-misc/ca-certificates + gpg? ( app-crypt/gnupg ) + tk? ( dev-lang/tk )" + +DEPEND="emacs? ( >=app-editors/emacs-23.1:* ) + test? ( + app-arch/unzip + dev-python/pygments[${PYTHON_USEDEP}] + )" + +SITEFILE="70${PN}-gentoo.el" + +RESTRICT="!test? ( test )" + +src_unpack() { + default_src_unpack + if use rust; then + local S="${S}/rust/hg-cpython" + cargo_src_unpack + fi +} + +python_prepare_all() { + # fix up logic that won't work in Gentoo Prefix (also won't outside in + # certain cases), bug #362891 + sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die + sed -i -e 's/__APPLE__/__NO_APPLE__/g' mercurial/cext/osutil.c || die + + distutils-r1_python_prepare_all +} + +src_compile() { + if use rust; then + pushd rust/hg-cpython || die + cargo_src_compile --no-default-features --jobs $(makeopts_jobs) + popd || die + fi + distutils-r1_src_compile +} + +python_compile() { + filter-flags -ftracer -ftree-vectorize + if use rust; then + local -x HGWITHRUSTEXT="cpython" + fi + distutils-r1_python_compile build_ext +} + +python_compile_all() { + rm -r contrib/win32 || die + 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!" + fi +} + +src_install() { + distutils-r1_src_install +} + +python_install() { + if use rust; then + local -x HGWITHRUSTEXT="cpython" + fi + + distutils-r1_python_install build_ext + python_doscript contrib/hg-ssh +} + +python_install_all() { + distutils-r1_python_install_all + + newbashcomp contrib/bash_completion hg + + insinto /usr/share/zsh/site-functions + newins contrib/zsh_completion _hg + + dobin hgeditor + if use tk; then + dobin contrib/hgk + fi + + if use emacs; then + elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!" + elisp-make-site-file "${SITEFILE}" + fi + + local RM_CONTRIB=( hgk hg-ssh bash_completion zsh_completion plan9 *.el ) + + if use chg; then + dobin contrib/chg/chg + 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 + done + + dodoc -r contrib + docompress -x /usr/share/doc/${PF}/contrib + doman doc/*.? + dodoc CONTRIBUTORS hgweb.cgi + + insinto /etc/mercurial/hgrc.d + doins "${FILESDIR}/cacerts.rc" +} + +src_test() { + pushd tests &>/dev/null || die + rm -rf *svn* # Subversion tests fail with 1.5 + rm -f test-archive* # Fails due to verbose tar output changes + rm -f test-convert-baz* # GNU Arch baz + rm -f test-convert-cvs* # CVS + rm -f test-convert-darcs* # Darcs + rm -f test-convert-git* # git + rm -f test-convert-mtn* # monotone + rm -f test-convert-tla* # GNU Arch tla + rm -f test-largefiles* # tends to time out + rm -f test-https* # requires to support tls1.0 + rm -rf test-removeemptydirs* # requires access to access parent directories + if [[ ${EUID} -eq 0 ]]; then + einfo "Removing tests which require user privileges to succeed" + rm -f test-convert* + rm -f test-lock-badness* + rm -f test-permissions* + rm -f test-pull-permission* + rm -f test-journal-exists* + rm -f test-repair-strip* + fi + + popd &>/dev/null || die + distutils-r1_src_test +} + +python_test() { + cd tests || die + PYTHONWARNINGS=ignore "${PYTHON}" run-tests.py \ + --jobs $(makeopts_jobs) \ + --timeout 0 \ + || die "Tests fail with ${EPYTHON}" +} + +pkg_postinst() { + use emacs && elisp-site-regen + + elog "If you want to convert repositories from other tools using convert" + elog "extension please install correct tool:" + elog " dev-vcs/cvs" + elog " dev-vcs/darcs" + elog " dev-vcs/git" + elog " dev-vcs/monotone" + elog " dev-vcs/subversion" +} + +pkg_postrm() { + use emacs && elisp-site-regen +} -- cgit v1.2.3