From 2fe5661a32d6ec0ba1d6b37cc8ae67e3f81459ec Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 7 May 2023 17:37:01 +0100 Subject: gentoo auto-resync : 07:05:2023 - 17:37:01 --- dev-util/Manifest.gz | Bin 68288 -> 68297 bytes dev-util/maturin/Manifest | 4 +- dev-util/maturin/maturin-0.15.0.ebuild | 477 -------------------------------- dev-util/maturin/maturin-0.15.1.ebuild | 477 ++++++++++++++++++++++++++++++++ dev-util/visualvm/Manifest | 6 + dev-util/visualvm/visualvm-2.1.5.ebuild | 129 +++++++++ 6 files changed, 614 insertions(+), 479 deletions(-) delete mode 100644 dev-util/maturin/maturin-0.15.0.ebuild create mode 100644 dev-util/maturin/maturin-0.15.1.ebuild create mode 100644 dev-util/visualvm/visualvm-2.1.5.ebuild (limited to 'dev-util') diff --git a/dev-util/Manifest.gz b/dev-util/Manifest.gz index 615b6c2d071e..04f1707edab1 100644 Binary files a/dev-util/Manifest.gz and b/dev-util/Manifest.gz differ diff --git a/dev-util/maturin/Manifest b/dev-util/maturin/Manifest index 0dd5de883604..57907ca44ac2 100644 --- a/dev-util/maturin/Manifest +++ b/dev-util/maturin/Manifest @@ -187,7 +187,7 @@ DIST lzxd-0.1.4.crate 21891 BLAKE2B 8271b79bdf6c65a17b5fe77a4d8b7d3a96ccf1752d21 DIST mailparse-0.13.8.crate 36008 BLAKE2B 8112658b4ceb5b3528375f4f8a178a26c18b5494ba582c333e09de6263769869b5a4903ec2d62cab7a032635fa5d28f00f3f80337b968221e386e252f842cf36 SHA512 c7557f741c170c421d5ccef8cb771fce544b3f3da0475b170f82116c00cdd7522fe29fc8bb4dfa20735345b2c72e12af0bcc4317d9ada412b59f9ff4266e14ac DIST matchers-0.1.0.crate 6948 BLAKE2B ec3a5d01d2fedbb4dbf5bb185afbb9401410463a61f51674e0df6a571db352b2bbabfb99cdbdcfb4e511ae783165bf0258f5163f240a229b9087f9edbd0df41a SHA512 84214c1a84952d85631aa1ab5115df7cda223ac64e2acf055b6129ba1aa26ddc87615a8b51ca890ce3fee0419053fa7fe1599ae128f1d211b58c07b0c4af3b19 DIST maturin-0.14.17.gh.tar.gz 392461 BLAKE2B 4d0d2d5101a05017883b27dca270c3f3b84c77dd53f19db04c2b5a988b699f3b39b6b7a88c7ac02b5e322679f5509bdf68b5c5f27ec229816c394ebc5fb57fd8 SHA512 d12503530b0d865b6b3c40e564742d0e798107102fb7167c137c1b0a4fa63bfad739320901cff15a680a09034aae553c3cd55cf0c8f1d3ed0fd96404bb93cbfe -DIST maturin-0.15.0.gh.tar.gz 425158 BLAKE2B 43b23a97e078f67b3352ac888d09ae5737072ab26c7fbfdbdcbeb60afb1b52f275b9e29f88053c32ec87f0242ea27e62e72818861e6befb93117ef41c9584af8 SHA512 31d6d3165a9d201b847713b562bda82ee9d25da9195e5a32db3d6a1ded09d5597d929b1fb3c3bcbbef90bcd0eee78ef42358db7f1c7969924e67fd0d4745a2f7 +DIST maturin-0.15.1.gh.tar.gz 425107 BLAKE2B 2a1b50080033618c062ec2013779465a1eb11cbd5b2f8800cbd8b46b9c75709cbe0cdbeb3fe0d5f7564e10e3d27e6439e9e2caea6bf7a0049f5474353c1ba53c SHA512 e298abb3cbfeae266c5f7c4bc8e57154527a5d040bf0276afe6e63e6d56978101ef399ab4883e7a5826d5eaa31f03019130200ca519b08d4e3bb0a12bee8eb77 DIST memchr-2.5.0.crate 65812 BLAKE2B 57966413a1f933dcb2d2d4ccb29c247070f65a83299b2a9f5aa83f5a48a5c5f1c4c7c632fa63bd19f9508e9291e7258db2f16e2813a56fd84e0856f70f1e67ab SHA512 444a163b484c233e78c0e2e4d51f01ce2da93d7d29f516a95e4b0866b20bdfd3f34137653abed53eb70387991ee3e2b5937d8d4360a85bbcb50a93005a75defa DIST memoffset-0.6.5.crate 7686 BLAKE2B 9a797388702389076c426052c3d54dc62802d5db8bc5c9c83990429f2ffaec4fab4c7dd3f09cd0704d1ea555e87976563bb43408ba54b5e66ce7e406d4604009 SHA512 11bdd9185b99dfee8e659e051b09ee301c7142a372a8117864745a5085c015436d2efbb1478192886f09cbc562529e209d2e3325d94938a64bc75b1d91d2bf3f DIST memoffset-0.8.0.crate 8912 BLAKE2B 19ad3abed21fc39461b0382b15a8cc312378aba36f042b1e5335012115d31b350a4e3bc720f1eea300d7d19b9b317f75a28d4ccd78ff3b31defd9e4b3147899c SHA512 47adcae0848ff967035e10543ea599c7af9c5bad387023eb4dc77c9e8d875994ec8139b9941b3ecc4fc17214d80944a47a3be174a45b334661914a5a7382dfbe @@ -503,5 +503,5 @@ DIST zip-0.6.4.crate 62396 BLAKE2B cfe4d7fcdb71ee6da3b6bf6f8cf4ecca9f717f7bbe963 DIST zvariant-2.10.0.crate 64374 BLAKE2B 65f5ec09b812217b2d96f57fcaca7fba97545dc715b1395cafe6386553a52e9a72d08c3a599bc08d5f563ea71324f1e7d60db2797c3ad1ad23a9c322a3939346 SHA512 48227afe709c1cc54cb70b4d9ae26e7f836559b4b11a68136d7720d01bacf757c1f5f40cad9de634fa27e196e4942df69c33a7de1334bb23ca995ea34690c5ba DIST zvariant_derive-2.10.0.crate 8746 BLAKE2B 8408e6689f6f849d37d0ade5549dbac25a01a8ef6de5692290f24462e0984128fb5b1d72e87e94e4c422896d68f9acaa382ca6af57f47f470448894a85071b1a SHA512 ba06d0761de8e20839246517d89494e5728fd654cf95eec193a4ca4cdb90090542bbfd7ed0ffbc9fc44edda38c5270139f54e63cb88d09f6c26b39199ea1deec EBUILD maturin-0.14.17.ebuild 10078 BLAKE2B 21fafcff8200d77969ed07c3025a7847105ce0009e8edcef01ca48ef5e628961af3127be432014aeed9fa8252494ba71be6f9b8a8d0e8c3db70e50ddbe30c397 SHA512 9d6fdf6f349453efc1fbc2355a51371fb21739708ae2ef1791b5dffc947891ddbda85ed14a1240ed5200662f0bd0b3043d87dceea14f2550b1afae8e469808d4 -EBUILD maturin-0.15.0.ebuild 10254 BLAKE2B ac8dde56e8b8ffaa8e53fff79e01dfcf44ba0dc446ab60778a65b2633efd35b3cddefc71c697a86ea639b1c0ce7c6811cd28268602351e85d1edef37b359be13 SHA512 9d29540c30a901f32ceea982d1519ec765285fd9e52ffb0f3540f35c91173fc31d4ed71be62e7ed48a5eeea746a974da167931e4dae384e7a21540715dd0e8c1 +EBUILD maturin-0.15.1.ebuild 10254 BLAKE2B ac8dde56e8b8ffaa8e53fff79e01dfcf44ba0dc446ab60778a65b2633efd35b3cddefc71c697a86ea639b1c0ce7c6811cd28268602351e85d1edef37b359be13 SHA512 9d29540c30a901f32ceea982d1519ec765285fd9e52ffb0f3540f35c91173fc31d4ed71be62e7ed48a5eeea746a974da167931e4dae384e7a21540715dd0e8c1 MISC metadata.xml 644 BLAKE2B 68c4178fb0120813b880155cf6660aa7092335e3cd0daa9a112ad7f00fb081c8076cfb30c2b7299797fba0929dc2b223585da6f9c57d28e1b9d91e2d40843355 SHA512 9fa1da4be0fc70d10a6aaf6381a0d211a14807f0335660b501f86d2e750e93f76d31ae9b141aa0a170cb5ef36d52fd744c75dc4342226c2179e07f579d108ff7 diff --git a/dev-util/maturin/maturin-0.15.0.ebuild b/dev-util/maturin/maturin-0.15.0.ebuild deleted file mode 100644 index ee39e5179621..000000000000 --- a/dev-util/maturin/maturin-0.15.0.ebuild +++ /dev/null @@ -1,477 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -CRATES=" - adler-1.0.2 - ahash-0.7.6 - aho-corasick-0.7.20 - anyhow-1.0.71 - autocfg-1.1.0 - base64-0.13.1 - base64-0.21.0 - bitflags-1.3.2 - block-buffer-0.10.4 - bstr-1.4.0 - bumpalo-3.12.1 - byteorder-1.4.3 - bytes-1.4.0 - bytesize-1.2.0 - bzip2-0.4.4 - bzip2-sys-0.1.11+1.0.8 - cab-0.4.1 - camino-1.1.4 - cargo-config2-0.1.7 - cargo-options-0.6.0 - cargo-platform-0.1.2 - cargo-xwin-0.14.2 - cargo-zigbuild-0.16.7 - cargo_metadata-0.15.4 - cbindgen-0.24.3 - cc-1.0.79 - cfb-0.7.3 - cfg-expr-0.15.1 - cfg-if-1.0.0 - charset-0.1.3 - chumsky-0.9.2 - clap-4.1.10 - clap_complete-4.1.6 - clap_complete_command-0.5.1 - clap_complete_fig-4.1.2 - clap_complete_nushell-0.1.10 - clap_derive-4.1.9 - clap_lex-0.3.3 - cli-table-0.4.7 - concolor-0.0.11 - concolor-query-0.1.0 - configparser-3.0.2 - console-0.15.5 - content_inspector-0.2.4 - core-foundation-0.9.3 - core-foundation-sys-0.8.4 - cpufeatures-0.2.6 - crc32fast-1.3.2 - crossbeam-channel-0.5.8 - crossbeam-deque-0.8.3 - crossbeam-epoch-0.9.14 - crossbeam-utils-0.8.15 - crypto-common-0.1.6 - ctor-0.1.26 - data-encoding-2.3.3 - dialoguer-0.10.4 - diff-0.1.13 - digest-0.10.6 - dirs-4.0.0 - dirs-sys-0.3.7 - dunce-1.0.4 - either-1.8.1 - encode_unicode-0.3.6 - encoding_rs-0.8.32 - errno-0.2.8 - errno-dragonfly-0.1.2 - fastrand-1.9.0 - fat-macho-0.4.6 - filetime-0.2.19 - flate2-1.0.26 - fnv-1.0.7 - foreign-types-0.3.2 - foreign-types-shared-0.1.1 - form_urlencoded-1.1.0 - fs-err-2.9.0 - generic-array-0.14.7 - getrandom-0.2.9 - glob-0.3.1 - globset-0.4.10 - goblin-0.6.1 - hashbrown-0.12.3 - heck-0.4.1 - hermit-abi-0.2.6 - home-0.5.4 - humantime-2.1.0 - humantime-serde-1.1.1 - idna-0.3.0 - ignore-0.4.20 - indexmap-1.9.3 - indicatif-0.17.3 - indoc-2.0.1 - instant-0.1.12 - io-lifetimes-1.0.4 - is-terminal-0.4.2 - itertools-0.10.5 - itoa-1.0.6 - js-sys-0.3.61 - keyring-2.0.2 - lazy_static-1.4.0 - lddtree-0.3.2 - libc-0.2.142 - linux-keyutils-0.2.3 - linux-raw-sys-0.1.4 - lock_api-0.4.9 - log-0.4.17 - lzxd-0.1.4 - mailparse-0.13.8 - matchers-0.1.0 - memchr-2.5.0 - memoffset-0.8.0 - mime-0.3.17 - mime_guess-2.0.4 - minijinja-0.31.1 - minimal-lexical-0.2.1 - miniz_oxide-0.7.1 - msi-0.5.1 - multipart-0.18.0 - native-tls-0.2.11 - nom-7.1.3 - normalize-line-endings-0.3.0 - normpath-1.0.1 - nu-ansi-term-0.46.0 - num_cpus-1.15.0 - number_prefix-0.4.0 - once_cell-1.17.1 - openssl-0.10.50 - openssl-macros-0.1.0 - openssl-probe-0.1.5 - openssl-src-111.25.2+1.1.1t - openssl-sys-0.9.85 - os_pipe-1.1.2 - os_str_bytes-6.5.0 - output_vt100-0.1.3 - overload-0.1.1 - parking_lot-0.12.1 - parking_lot_core-0.9.6 - path-slash-0.2.1 - pep440_rs-0.3.6 - pep508_rs-0.1.5 - percent-encoding-2.2.0 - pin-project-lite-0.2.9 - pkg-config-0.3.26 - plain-0.2.3 - platform-info-1.0.2 - portable-atomic-0.3.19 - 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.56 - psm-0.1.21 - pyproject-toml-0.6.0 - python-pkginfo-0.5.5 - quote-1.0.26 - quoted_printable-0.4.8 - rand-0.8.5 - rand_chacha-0.3.1 - rand_core-0.6.4 - rayon-1.7.0 - rayon-core-1.11.0 - redox_syscall-0.2.16 - redox_users-0.4.3 - regex-1.7.3 - regex-automata-0.1.10 - regex-syntax-0.6.29 - rfc2047-decoder-0.2.2 - ring-0.16.20 - rustc_version-0.4.0 - rustix-0.36.7 - rustls-0.20.8 - rustls-pemfile-1.0.2 - rustversion-1.0.12 - ryu-1.0.13 - same-file-1.0.6 - schannel-0.1.21 - scopeguard-1.1.0 - scroll-0.11.0 - scroll_derive-0.11.0 - sct-0.7.0 - security-framework-2.8.2 - security-framework-sys-2.8.0 - semver-1.0.17 - serde-1.0.155 - serde_derive-1.0.155 - serde_json-1.0.95 - serde_spanned-0.6.1 - sha2-0.10.6 - sharded-slab-0.1.4 - shell-escape-0.1.5 - shell-words-1.1.0 - shlex-1.1.0 - similar-2.2.1 - smallvec-1.10.0 - smawk-0.3.1 - snapbox-0.4.4 - snapbox-macros-0.3.1 - socks-0.3.4 - spin-0.5.2 - stacker-0.1.15 - static_assertions-1.1.0 - strsim-0.10.0 - syn-1.0.109 - tar-0.4.38 - target-lexicon-0.12.7 - tempfile-3.4.0 - termcolor-1.2.0 - terminal_size-0.2.3 - textwrap-0.16.0 - thiserror-1.0.39 - thiserror-impl-1.0.39 - thread_local-1.1.7 - time-0.3.20 - time-core-0.1.0 - time-macros-0.2.8 - tinyvec-1.6.0 - tinyvec_macros-0.1.1 - toml-0.5.11 - toml-0.7.3 - toml_datetime-0.6.1 - toml_edit-0.19.8 - tracing-0.1.37 - tracing-attributes-0.1.23 - tracing-core-0.1.30 - tracing-log-0.1.3 - tracing-serde-0.1.3 - tracing-subscriber-0.3.17 - trycmd-0.14.11 - twox-hash-1.6.3 - typenum-1.16.0 - unicase-2.6.0 - unicode-bidi-0.3.13 - unicode-ident-1.0.8 - unicode-linebreak-0.1.4 - unicode-normalization-0.1.22 - unicode-width-0.1.10 - untrusted-0.7.1 - ureq-2.6.2 - url-2.3.1 - uuid-1.3.1 - valuable-0.1.0 - vcpkg-0.2.15 - version_check-0.9.4 - versions-4.1.0 - wait-timeout-0.2.0 - walkdir-2.3.3 - wasi-0.11.0+wasi-snapshot-preview1 - wasm-bindgen-0.2.84 - wasm-bindgen-backend-0.2.84 - wasm-bindgen-macro-0.2.84 - wasm-bindgen-macro-support-0.2.84 - wasm-bindgen-shared-0.2.84 - web-sys-0.3.61 - webpki-0.22.0 - webpki-roots-0.22.6 - which-4.4.0 - wild-2.1.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-sys-0.42.0 - windows_aarch64_gnullvm-0.42.2 - windows_aarch64_msvc-0.42.2 - windows_i686_gnu-0.42.2 - windows_i686_msvc-0.42.2 - windows_x86_64_gnu-0.42.2 - windows_x86_64_gnullvm-0.42.2 - windows_x86_64_msvc-0.42.2 - winnow-0.4.6 - xattr-0.2.3 - xwin-0.2.12 - yansi-0.5.1 - zeroize-1.6.0 - zip-0.6.4" -# additional crates used by test-crates/* test packages, -# `grep test-crates tests/run.rs` to see which are needed -CRATES_TEST=" - anyhow-1.0.69 - askama-0.11.1 - askama_derive-0.11.2 - askama_escape-0.10.3 - askama_shared-0.12.2 - bincode-1.3.3 - camino-1.1.2 - cargo_metadata-0.15.3 - cc-1.0.73 - cc-1.0.74 - getrandom-0.2.8 - goblin-0.6.0 - indoc-1.0.7 - itoa-1.0.5 - libc-0.2.134 - libc-0.2.137 - libc-0.2.141 - mime-0.3.16 - once_cell-1.15.0 - once_cell-1.16.0 - once_cell-1.17.0 - parking_lot_core-0.9.3 - parking_lot_core-0.9.4 - parking_lot_core-0.9.7 - paste-1.0.11 - proc-macro2-1.0.46 - proc-macro2-1.0.47 - proc-macro2-1.0.51 - pyo3-0.18.1 - pyo3-0.18.3 - pyo3-build-config-0.18.1 - pyo3-build-config-0.18.3 - pyo3-ffi-0.18.1 - pyo3-ffi-0.18.3 - pyo3-macros-0.18.1 - pyo3-macros-backend-0.18.1 - python3-dll-a-0.2.6 - quote-1.0.21 - quote-1.0.23 - ryu-1.0.12 - semver-1.0.16 - serde-1.0.152 - serde_derive-1.0.152 - serde_json-1.0.93 - siphasher-0.3.10 - syn-1.0.102 - syn-1.0.103 - syn-1.0.107 - thiserror-1.0.38 - thiserror-impl-1.0.38 - unicode-ident-1.0.5 - unicode-ident-1.0.6 - uniffi-0.23.0 - uniffi_bindgen-0.23.0 - uniffi_build-0.23.0 - uniffi_checksum_derive-0.23.0 - uniffi_core-0.23.0 - uniffi_macros-0.23.0 - uniffi_meta-0.23.0 - uniffi_testing-0.23.0 - unindent-0.1.10 - weedle2-4.0.0 - windows-sys-0.36.1 - windows-sys-0.45.0 - windows-targets-0.42.2 - windows_aarch64_gnullvm-0.42.0 - windows_aarch64_msvc-0.36.1 - windows_aarch64_msvc-0.42.0 - windows_i686_gnu-0.36.1 - windows_i686_gnu-0.42.0 - windows_i686_msvc-0.36.1 - windows_i686_msvc-0.42.0 - windows_x86_64_gnu-0.36.1 - windows_x86_64_gnu-0.42.0 - windows_x86_64_gnullvm-0.42.0 - windows_x86_64_msvc-0.36.1 - windows_x86_64_msvc-0.42.0" -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( pypy3 python3_{9..11} ) -inherit bash-completion-r1 cargo distutils-r1 edo flag-o-matic toolchain-funcs - -DESCRIPTION="Build and publish crates with pyo3, rust-cpython and cffi bindings" -HOMEPAGE="https://www.maturin.rs/" -SRC_URI=" - https://github.com/PyO3/maturin/archive/refs/tags/v${PV}.tar.gz - -> ${P}.gh.tar.gz - $(cargo_crate_uris) - test? ( $(cargo_crate_uris ${CRATES_TEST}) )" - -# note: ring is unused, so SSLeay+openssl licenses can be skipped -LICENSE=" - 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD CC0-1.0 ISC - MIT MPL-2.0 Unicode-DFS-2016 doc? ( CC-BY-4.0 OFL-1.1 )" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -IUSE="doc +ssl test" -RESTRICT="!test? ( test )" - -RDEPEND="$(python_gen_cond_dep 'dev-python/tomli[${PYTHON_USEDEP}]' 3.{9..10})" -DEPEND="ssl? ( dev-libs/openssl:= )" -BDEPEND=" - dev-python/setuptools-rust[${PYTHON_USEDEP}] - doc? ( app-text/mdbook ) - test? ( - ${RDEPEND} - $(python_gen_cond_dep 'dev-python/cffi[${PYTHON_USEDEP}]' 'python*') - dev-python/boltons[${PYTHON_USEDEP}] - dev-python/virtualenv[${PYTHON_USEDEP}] - dev-vcs/git - )" -RDEPEND+=" ${DEPEND}" - -QA_FLAGS_IGNORED="usr/bin/${PN}" - -src_prepare() { - distutils-r1_src_prepare - - if use test; then - # used to prevent use of network during tests - cat > "${T}"/pip.conf <<-EOF || die - [install] - no-index = yes - no-dependencies = yes - EOF - - # needed by *git_sdist_generator tests - git init -q || die - git config --global user.email "larry@gentoo.org" || die - git config --global user.name "Larry the Cow" || die - git add . || die - git commit -qm 'init' || die - fi -} - -src_configure() { - filter-lto # TODO: cleanup after bug #893658 - - local cargoargs=( - # TODO: try switching to `--profile gentoo` then should be able to - # remove all `use debug` checks and --release in tests, but needs: - # https://github.com/gentoo/gentoo/pull/29510 - $(usev debug '--profile dev') - --no-default-features - # like release.yml + native-tls for better platform support than rustls - --features full,password-storage$(usev ssl ,native-tls) - ) - - export MATURIN_SETUP_ARGS=${cargoargs[*]} # --no-default-features if empty - export OPENSSL_NO_VENDOR=1 -} - -python_compile_all() { - use !doc || mdbook build -d html guide || die - - if ! tc-is-cross-compiler; then - local maturin=target/$(usex debug{,} release)/maturin - ${maturin} completions bash > "${T}"/${PN} || die - ${maturin} completions fish > "${T}"/${PN}.fish || die - ${maturin} completions zsh > "${T}"/_${PN} || die - else - ewarn "shell completion files were skipped due to cross-compilation" - fi -} - -python_test() { - local -x COLUMNS=100 # what tests/cmd was generated for - local -x MATURIN_TEST_PYTHON=${EPYTHON} - local -x PIP_CONFIG_FILE=${T}/pip.conf - local -x VIRTUALENV_SYSTEM_SITE_PACKAGES=1 - - local skip=( - # avoid need for wasm over a single hello world test - --skip integration_wasm_hello_world - # fragile depending on rust version, also wants libpypy*-c.so for pypy - --skip pyo3_no_extension_module - ) - - edo cargo test $(usev !debug --release) ${MATURIN_SETUP_ARGS} -- "${skip[@]}" -} - -python_install_all() { - dodoc Changelog.md README.md - use doc && dodoc -r guide/html - - if ! tc-is-cross-compiler; then - dobashcomp "${T}"/${PN} - - insinto /usr/share/fish/vendor_completions.d - doins "${T}"/${PN}.fish - - insinto /usr/share/zsh/site-functions - doins "${T}"/_${PN} - fi -} diff --git a/dev-util/maturin/maturin-0.15.1.ebuild b/dev-util/maturin/maturin-0.15.1.ebuild new file mode 100644 index 000000000000..ee39e5179621 --- /dev/null +++ b/dev-util/maturin/maturin-0.15.1.ebuild @@ -0,0 +1,477 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES=" + adler-1.0.2 + ahash-0.7.6 + aho-corasick-0.7.20 + anyhow-1.0.71 + autocfg-1.1.0 + base64-0.13.1 + base64-0.21.0 + bitflags-1.3.2 + block-buffer-0.10.4 + bstr-1.4.0 + bumpalo-3.12.1 + byteorder-1.4.3 + bytes-1.4.0 + bytesize-1.2.0 + bzip2-0.4.4 + bzip2-sys-0.1.11+1.0.8 + cab-0.4.1 + camino-1.1.4 + cargo-config2-0.1.7 + cargo-options-0.6.0 + cargo-platform-0.1.2 + cargo-xwin-0.14.2 + cargo-zigbuild-0.16.7 + cargo_metadata-0.15.4 + cbindgen-0.24.3 + cc-1.0.79 + cfb-0.7.3 + cfg-expr-0.15.1 + cfg-if-1.0.0 + charset-0.1.3 + chumsky-0.9.2 + clap-4.1.10 + clap_complete-4.1.6 + clap_complete_command-0.5.1 + clap_complete_fig-4.1.2 + clap_complete_nushell-0.1.10 + clap_derive-4.1.9 + clap_lex-0.3.3 + cli-table-0.4.7 + concolor-0.0.11 + concolor-query-0.1.0 + configparser-3.0.2 + console-0.15.5 + content_inspector-0.2.4 + core-foundation-0.9.3 + core-foundation-sys-0.8.4 + cpufeatures-0.2.6 + crc32fast-1.3.2 + crossbeam-channel-0.5.8 + crossbeam-deque-0.8.3 + crossbeam-epoch-0.9.14 + crossbeam-utils-0.8.15 + crypto-common-0.1.6 + ctor-0.1.26 + data-encoding-2.3.3 + dialoguer-0.10.4 + diff-0.1.13 + digest-0.10.6 + dirs-4.0.0 + dirs-sys-0.3.7 + dunce-1.0.4 + either-1.8.1 + encode_unicode-0.3.6 + encoding_rs-0.8.32 + errno-0.2.8 + errno-dragonfly-0.1.2 + fastrand-1.9.0 + fat-macho-0.4.6 + filetime-0.2.19 + flate2-1.0.26 + fnv-1.0.7 + foreign-types-0.3.2 + foreign-types-shared-0.1.1 + form_urlencoded-1.1.0 + fs-err-2.9.0 + generic-array-0.14.7 + getrandom-0.2.9 + glob-0.3.1 + globset-0.4.10 + goblin-0.6.1 + hashbrown-0.12.3 + heck-0.4.1 + hermit-abi-0.2.6 + home-0.5.4 + humantime-2.1.0 + humantime-serde-1.1.1 + idna-0.3.0 + ignore-0.4.20 + indexmap-1.9.3 + indicatif-0.17.3 + indoc-2.0.1 + instant-0.1.12 + io-lifetimes-1.0.4 + is-terminal-0.4.2 + itertools-0.10.5 + itoa-1.0.6 + js-sys-0.3.61 + keyring-2.0.2 + lazy_static-1.4.0 + lddtree-0.3.2 + libc-0.2.142 + linux-keyutils-0.2.3 + linux-raw-sys-0.1.4 + lock_api-0.4.9 + log-0.4.17 + lzxd-0.1.4 + mailparse-0.13.8 + matchers-0.1.0 + memchr-2.5.0 + memoffset-0.8.0 + mime-0.3.17 + mime_guess-2.0.4 + minijinja-0.31.1 + minimal-lexical-0.2.1 + miniz_oxide-0.7.1 + msi-0.5.1 + multipart-0.18.0 + native-tls-0.2.11 + nom-7.1.3 + normalize-line-endings-0.3.0 + normpath-1.0.1 + nu-ansi-term-0.46.0 + num_cpus-1.15.0 + number_prefix-0.4.0 + once_cell-1.17.1 + openssl-0.10.50 + openssl-macros-0.1.0 + openssl-probe-0.1.5 + openssl-src-111.25.2+1.1.1t + openssl-sys-0.9.85 + os_pipe-1.1.2 + os_str_bytes-6.5.0 + output_vt100-0.1.3 + overload-0.1.1 + parking_lot-0.12.1 + parking_lot_core-0.9.6 + path-slash-0.2.1 + pep440_rs-0.3.6 + pep508_rs-0.1.5 + percent-encoding-2.2.0 + pin-project-lite-0.2.9 + pkg-config-0.3.26 + plain-0.2.3 + platform-info-1.0.2 + portable-atomic-0.3.19 + 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.56 + psm-0.1.21 + pyproject-toml-0.6.0 + python-pkginfo-0.5.5 + quote-1.0.26 + quoted_printable-0.4.8 + rand-0.8.5 + rand_chacha-0.3.1 + rand_core-0.6.4 + rayon-1.7.0 + rayon-core-1.11.0 + redox_syscall-0.2.16 + redox_users-0.4.3 + regex-1.7.3 + regex-automata-0.1.10 + regex-syntax-0.6.29 + rfc2047-decoder-0.2.2 + ring-0.16.20 + rustc_version-0.4.0 + rustix-0.36.7 + rustls-0.20.8 + rustls-pemfile-1.0.2 + rustversion-1.0.12 + ryu-1.0.13 + same-file-1.0.6 + schannel-0.1.21 + scopeguard-1.1.0 + scroll-0.11.0 + scroll_derive-0.11.0 + sct-0.7.0 + security-framework-2.8.2 + security-framework-sys-2.8.0 + semver-1.0.17 + serde-1.0.155 + serde_derive-1.0.155 + serde_json-1.0.95 + serde_spanned-0.6.1 + sha2-0.10.6 + sharded-slab-0.1.4 + shell-escape-0.1.5 + shell-words-1.1.0 + shlex-1.1.0 + similar-2.2.1 + smallvec-1.10.0 + smawk-0.3.1 + snapbox-0.4.4 + snapbox-macros-0.3.1 + socks-0.3.4 + spin-0.5.2 + stacker-0.1.15 + static_assertions-1.1.0 + strsim-0.10.0 + syn-1.0.109 + tar-0.4.38 + target-lexicon-0.12.7 + tempfile-3.4.0 + termcolor-1.2.0 + terminal_size-0.2.3 + textwrap-0.16.0 + thiserror-1.0.39 + thiserror-impl-1.0.39 + thread_local-1.1.7 + time-0.3.20 + time-core-0.1.0 + time-macros-0.2.8 + tinyvec-1.6.0 + tinyvec_macros-0.1.1 + toml-0.5.11 + toml-0.7.3 + toml_datetime-0.6.1 + toml_edit-0.19.8 + tracing-0.1.37 + tracing-attributes-0.1.23 + tracing-core-0.1.30 + tracing-log-0.1.3 + tracing-serde-0.1.3 + tracing-subscriber-0.3.17 + trycmd-0.14.11 + twox-hash-1.6.3 + typenum-1.16.0 + unicase-2.6.0 + unicode-bidi-0.3.13 + unicode-ident-1.0.8 + unicode-linebreak-0.1.4 + unicode-normalization-0.1.22 + unicode-width-0.1.10 + untrusted-0.7.1 + ureq-2.6.2 + url-2.3.1 + uuid-1.3.1 + valuable-0.1.0 + vcpkg-0.2.15 + version_check-0.9.4 + versions-4.1.0 + wait-timeout-0.2.0 + walkdir-2.3.3 + wasi-0.11.0+wasi-snapshot-preview1 + wasm-bindgen-0.2.84 + wasm-bindgen-backend-0.2.84 + wasm-bindgen-macro-0.2.84 + wasm-bindgen-macro-support-0.2.84 + wasm-bindgen-shared-0.2.84 + web-sys-0.3.61 + webpki-0.22.0 + webpki-roots-0.22.6 + which-4.4.0 + wild-2.1.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-sys-0.42.0 + windows_aarch64_gnullvm-0.42.2 + windows_aarch64_msvc-0.42.2 + windows_i686_gnu-0.42.2 + windows_i686_msvc-0.42.2 + windows_x86_64_gnu-0.42.2 + windows_x86_64_gnullvm-0.42.2 + windows_x86_64_msvc-0.42.2 + winnow-0.4.6 + xattr-0.2.3 + xwin-0.2.12 + yansi-0.5.1 + zeroize-1.6.0 + zip-0.6.4" +# additional crates used by test-crates/* test packages, +# `grep test-crates tests/run.rs` to see which are needed +CRATES_TEST=" + anyhow-1.0.69 + askama-0.11.1 + askama_derive-0.11.2 + askama_escape-0.10.3 + askama_shared-0.12.2 + bincode-1.3.3 + camino-1.1.2 + cargo_metadata-0.15.3 + cc-1.0.73 + cc-1.0.74 + getrandom-0.2.8 + goblin-0.6.0 + indoc-1.0.7 + itoa-1.0.5 + libc-0.2.134 + libc-0.2.137 + libc-0.2.141 + mime-0.3.16 + once_cell-1.15.0 + once_cell-1.16.0 + once_cell-1.17.0 + parking_lot_core-0.9.3 + parking_lot_core-0.9.4 + parking_lot_core-0.9.7 + paste-1.0.11 + proc-macro2-1.0.46 + proc-macro2-1.0.47 + proc-macro2-1.0.51 + pyo3-0.18.1 + pyo3-0.18.3 + pyo3-build-config-0.18.1 + pyo3-build-config-0.18.3 + pyo3-ffi-0.18.1 + pyo3-ffi-0.18.3 + pyo3-macros-0.18.1 + pyo3-macros-backend-0.18.1 + python3-dll-a-0.2.6 + quote-1.0.21 + quote-1.0.23 + ryu-1.0.12 + semver-1.0.16 + serde-1.0.152 + serde_derive-1.0.152 + serde_json-1.0.93 + siphasher-0.3.10 + syn-1.0.102 + syn-1.0.103 + syn-1.0.107 + thiserror-1.0.38 + thiserror-impl-1.0.38 + unicode-ident-1.0.5 + unicode-ident-1.0.6 + uniffi-0.23.0 + uniffi_bindgen-0.23.0 + uniffi_build-0.23.0 + uniffi_checksum_derive-0.23.0 + uniffi_core-0.23.0 + uniffi_macros-0.23.0 + uniffi_meta-0.23.0 + uniffi_testing-0.23.0 + unindent-0.1.10 + weedle2-4.0.0 + windows-sys-0.36.1 + windows-sys-0.45.0 + windows-targets-0.42.2 + windows_aarch64_gnullvm-0.42.0 + windows_aarch64_msvc-0.36.1 + windows_aarch64_msvc-0.42.0 + windows_i686_gnu-0.36.1 + windows_i686_gnu-0.42.0 + windows_i686_msvc-0.36.1 + windows_i686_msvc-0.42.0 + windows_x86_64_gnu-0.36.1 + windows_x86_64_gnu-0.42.0 + windows_x86_64_gnullvm-0.42.0 + windows_x86_64_msvc-0.36.1 + windows_x86_64_msvc-0.42.0" +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{9..11} ) +inherit bash-completion-r1 cargo distutils-r1 edo flag-o-matic toolchain-funcs + +DESCRIPTION="Build and publish crates with pyo3, rust-cpython and cffi bindings" +HOMEPAGE="https://www.maturin.rs/" +SRC_URI=" + https://github.com/PyO3/maturin/archive/refs/tags/v${PV}.tar.gz + -> ${P}.gh.tar.gz + $(cargo_crate_uris) + test? ( $(cargo_crate_uris ${CRATES_TEST}) )" + +# note: ring is unused, so SSLeay+openssl licenses can be skipped +LICENSE=" + 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD CC0-1.0 ISC + MIT MPL-2.0 Unicode-DFS-2016 doc? ( CC-BY-4.0 OFL-1.1 )" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="doc +ssl test" +RESTRICT="!test? ( test )" + +RDEPEND="$(python_gen_cond_dep 'dev-python/tomli[${PYTHON_USEDEP}]' 3.{9..10})" +DEPEND="ssl? ( dev-libs/openssl:= )" +BDEPEND=" + dev-python/setuptools-rust[${PYTHON_USEDEP}] + doc? ( app-text/mdbook ) + test? ( + ${RDEPEND} + $(python_gen_cond_dep 'dev-python/cffi[${PYTHON_USEDEP}]' 'python*') + dev-python/boltons[${PYTHON_USEDEP}] + dev-python/virtualenv[${PYTHON_USEDEP}] + dev-vcs/git + )" +RDEPEND+=" ${DEPEND}" + +QA_FLAGS_IGNORED="usr/bin/${PN}" + +src_prepare() { + distutils-r1_src_prepare + + if use test; then + # used to prevent use of network during tests + cat > "${T}"/pip.conf <<-EOF || die + [install] + no-index = yes + no-dependencies = yes + EOF + + # needed by *git_sdist_generator tests + git init -q || die + git config --global user.email "larry@gentoo.org" || die + git config --global user.name "Larry the Cow" || die + git add . || die + git commit -qm 'init' || die + fi +} + +src_configure() { + filter-lto # TODO: cleanup after bug #893658 + + local cargoargs=( + # TODO: try switching to `--profile gentoo` then should be able to + # remove all `use debug` checks and --release in tests, but needs: + # https://github.com/gentoo/gentoo/pull/29510 + $(usev debug '--profile dev') + --no-default-features + # like release.yml + native-tls for better platform support than rustls + --features full,password-storage$(usev ssl ,native-tls) + ) + + export MATURIN_SETUP_ARGS=${cargoargs[*]} # --no-default-features if empty + export OPENSSL_NO_VENDOR=1 +} + +python_compile_all() { + use !doc || mdbook build -d html guide || die + + if ! tc-is-cross-compiler; then + local maturin=target/$(usex debug{,} release)/maturin + ${maturin} completions bash > "${T}"/${PN} || die + ${maturin} completions fish > "${T}"/${PN}.fish || die + ${maturin} completions zsh > "${T}"/_${PN} || die + else + ewarn "shell completion files were skipped due to cross-compilation" + fi +} + +python_test() { + local -x COLUMNS=100 # what tests/cmd was generated for + local -x MATURIN_TEST_PYTHON=${EPYTHON} + local -x PIP_CONFIG_FILE=${T}/pip.conf + local -x VIRTUALENV_SYSTEM_SITE_PACKAGES=1 + + local skip=( + # avoid need for wasm over a single hello world test + --skip integration_wasm_hello_world + # fragile depending on rust version, also wants libpypy*-c.so for pypy + --skip pyo3_no_extension_module + ) + + edo cargo test $(usev !debug --release) ${MATURIN_SETUP_ARGS} -- "${skip[@]}" +} + +python_install_all() { + dodoc Changelog.md README.md + use doc && dodoc -r guide/html + + if ! tc-is-cross-compiler; then + dobashcomp "${T}"/${PN} + + insinto /usr/share/fish/vendor_completions.d + doins "${T}"/${PN}.fish + + insinto /usr/share/zsh/site-functions + doins "${T}"/_${PN} + fi +} diff --git a/dev-util/visualvm/Manifest b/dev-util/visualvm/Manifest index ee43db69a83b..c858519f7060 100644 --- a/dev-util/visualvm/Manifest +++ b/dev-util/visualvm/Manifest @@ -1,8 +1,14 @@ AUX visualvm-r2.sh 423 BLAKE2B cdc5db4465a339735ccff5f37bed89d76da2f2d514f522b7768fa37aad46804997d267285b09d6346674d43964d0ef0a0cadb24d28e9b90256a593d7420aab4a SHA512 eb7356e10a94db048fb471215b2115b93764931ed4178594bca5a1aac480f2262ef361b2f53fc23dbcdb4d44e1aeab678204c50583abb8016696a7d87288a9bb DIST common-8.0.1.jar 435506 BLAKE2B e3c0db1691c9f27d39b5d0cad18707cd27e708d74d0db17a13b0ee4ddcc1d96cdd7455a8f5c69d01675434e2789fdb1870d87fffc8eae1776b396cf38c50c723 SHA512 0ee73534f08349c07a0c4c8654526030e634a3aee3175ff3986ad4e37dba0ea3b7d760582c8b612d316cf72f455596c1c50f08e6ddb2d175dc4bb12feba65b22 +DIST common-8.2.1.jar 435008 BLAKE2B 70785320a50b5ec3fa7865187ba8dd483b709a7350d395afd4a5d1df785b678f64b1263ea6523589ab022e5fd08990dcdbc9833ff39faabb94facec1c25897d0 SHA512 c52f4290f1fe93ed7f86b45e0973e7868672a4a4802214ce76ce19089c3e70e1ad076f6c19c4ef0a76b4ff9aad7e327213975752a64438fa73e88ee258192abe DIST encoder-1.2.2.jar 37529 BLAKE2B 0e61c679db8c559005de726c8fc358cc5f04ab51b357fe53889cb585c8d006a77a3e24cb51043912ea9be11739ffa14de86f22d3dc4663aefee8bc75b9ff6862 SHA512 eed5529b326a9fd493032539dd50c7d60439fed0743cd567d348aa334e837d412ac10b220fd5099edcf9098fc7c684fba98b92916b9ef79831395686fd83b7dc +DIST encoder-1.2.3.jar 37931 BLAKE2B b416d455424b3fd87c94f7f963c819d3a8d76e763c112947718514e2bc1b67b40c6cd9cc051c5cfae6b2aa1cbc92961d1bcc3565ba3dcf3bf58395d543c5aae9 SHA512 ba7887259007272c533228cec1e2c5caebd639ef05b7b8925be6a0b5a7da5859e82489af4d462153e64bf2ce1234a8d6caa606fc6e42675a41cf7a067cfc5f6b DIST flightrecorder-8.0.1.jar 500815 BLAKE2B af9f024e7199e7f577e75b3d40f40a3e65f8e98be768415e5832aa6e1ffcfc9ecc391ef4d3fa515411d6d3ed051f35579656bae8cf8e1aea2023d54b072c84a0 SHA512 08c98ed3444b396e6e1ae0f909378c56e2ce04741f7b7ee83e39ae8a0699802709a5419f29c3a7bd44a11caba984071ef4f0554183fd5260ed28741edd191809 +DIST flightrecorder-8.2.1.jar 524427 BLAKE2B ba854d92a8655a1bbae108dd8f2dc0ad41d2be6d57cf96cc1870b28d47a680019e27cc7b53b6e10a441205d341bd03608173949dfe1231f8e6494a91c4a41f05 SHA512 362134638a6911c18c629e72705c662497d1bdfcccd986dc395fb50629526656e83629b9801b2ed137c511883332dc8e7ecf3d1de3a50f545fe89048effc7590 DIST lz4-java-1.7.1.jar 649950 BLAKE2B caed7593dad078fcaf3853a4dffbd540d7e5a3298b13092dee4b82a70359494584b9901da600239d65e9930e7a769adf1a45eac85033f8ca0cfcaef6a3b09544 SHA512 ff48daeca92c5a7657aa9c7fe41c5ae75a5fa0aad05c655bacb64a40acfe93ffd3d40bef16544614ce8a38db3e1df177023101773f6f7c1d32031413270e42d2 +DIST nb140_platform_20220908.zip 25886909 BLAKE2B 28cf8180eddd81fcfee513faf19e4a9ec2f3b7c35ad1ee23fe89bf6b5611432c3f41e9376b733ec5504fce1258e7dd27e0c229d291a5fbed3755df7fe0e99421 SHA512 cc2b320caa8fa0b4dbc5469e44453f1a586b6713af3bca799a654c7d1223741eab3a463fe53c955fb5639ec580f73ed93a7cc0ac26ce5dd84d55c418e024523e DIST visualvm-2.1.2.tar.gz 36393559 BLAKE2B ba925ddacfb1474f47d0ab393c7f8f14d18e12ef25aef82efd59a273eb8464d8758e0cc82cf41238b0356546dd03fed319b8c04366c4037fa99251d358f5e1c2 SHA512 f324bdec570f050c3df3d047cf9ab9e8565ed95150d1bcb5d86166aa221d0a3c55a2c3cdb345ddbf42b9cef35cb6a21033ed24fd203c0dbb67d2f8dc2b5f2960 +DIST visualvm-2.1.5.tar.gz 11604281 BLAKE2B 0bea756221af59bf2eac44da1aa80a0f4a53691853afa17be23f25b0bd3a8e28c86c03a4b3215e182f1ec1ae9cd9309a6367384562d7d673b4ee34f4f6d22144 SHA512 1acefcd655d2312c01684ca2016f8b476cabb2acd43a89946bf03f185a846a6c90649b2033dc4b5c94ae73c0526972111e9a0fcd2e84921d8b6b70373ec82257 EBUILD visualvm-2.1.2.ebuild 3010 BLAKE2B 2908c91fd3f7e577e009114e102e193a6fd16ff626814f7afe1286d8e0af9d1696fe44c612bfc6300fb9aacef911aa2372221ba776294dd6f0d052671d4d4dc9 SHA512 5acaa9e212caf5066f25aed0b2a15fe5152c6fb440320ecd9bc89d963db59d88b107e6cb37ff6c72a1eb763951c5d06070b62e4749d94b56f98541b656045d81 +EBUILD visualvm-2.1.5.ebuild 4460 BLAKE2B 4a9a98ddbe8bfa8f8d02d4c4e9271725f2924b43aa9ee5ec2be9a6184c4ba5dff64d1fea44dd5e33d08ad94192c80332db456c4cfb51c428c64d8b9e59f41d01 SHA512 d309e8a8ae2ee03b58cb69b4530df89f61950b21987150f39b16d9f3217448d54b43d17bf91cf546a95f109702efdf7c2b47ba1e2e374e03233497a2554a242b MISC metadata.xml 317 BLAKE2B e5f32379a40e3c2180df4f3ac4e7ea03a7dbfe69b1cb6537c1693262cc06e6334959abfb68f888c588fa933f60e85f137355bb57ff769107dfe805595d1a3ad1 SHA512 605d7206793c3d865547b69f9715305d46d433d18096b886b362d2d86adf4eda894c23af1819b6af95423fbe2a37781d1d100a9df9f15a01942f66c73dc2fa2c diff --git a/dev-util/visualvm/visualvm-2.1.5.ebuild b/dev-util/visualvm/visualvm-2.1.5.ebuild new file mode 100644 index 000000000000..bc1c98b7b552 --- /dev/null +++ b/dev-util/visualvm/visualvm-2.1.5.ebuild @@ -0,0 +1,129 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +NBV=140 +NBT=20220908 +NBZ=nb${NBV}_platform_${NBT}.zip +FLIGHT_RECORDER_VERSION="8.2.1" +FLIGHT_RECORDER_FILE="flightrecorder-${FLIGHT_RECORDER_VERSION}.jar" +COMMON_VERSION="8.2.1" +COMMON_FILE="common-${COMMON_VERSION}.jar" +ENCODER_VERSION="1.2.3" +ENCODER_FILE="encoder-${ENCODER_VERSION}.jar" +LZ4_JAVA_VERSION="1.8.0" +LZ4_JAVA_FILE="lz4-java-${LZ4_JAVA_VERSION}.jar" + +inherit java-pkg-2 java-ant-2 desktop + +DESCRIPTION="Integrates commandline JDK tools and profiling capabilities" +HOMEPAGE="https://visualvm.github.io" + +SRC_URI="https://github.com/oracle/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz + https://github.com/oracle/${PN}/releases/download/${PV}/${NBZ} + https://repo1.maven.org/maven2/org/openjdk/jmc/flightrecorder/${FLIGHT_RECORDER_VERSION}/${FLIGHT_RECORDER_FILE} + https://repo1.maven.org/maven2/org/openjdk/jmc/common/${COMMON_VERSION}/${COMMON_FILE} + https://repo1.maven.org/maven2/org/owasp/encoder/encoder/${ENCODER_VERSION}/${ENCODER_FILE}" + +LICENSE="GPL-2-with-linking-exception" +SLOT="7" +KEYWORDS="~amd64" + +COMMON_DEPEND=" + dev-java/lz4-java:0 +" + +RDEPEND=" + ${COMMON_DEPEND} + dev-java/asm:9 + dev-java/hamcrest-core:1.3 + dev-java/jna:4 + dev-java/junit:4 + dev-java/junit:5 + dev-java/testng:0 + >=virtual/jre-1.8:*" + +# it does not compile with java 11 +DEPEND=" + ${COMMON_DEPEND} + virtual/jdk:1.8" + +BDEPEND="app-arch/unzip" + +S="${WORKDIR}/${P}/${PN}" + +QA_PREBUILT=" + /usr/share/visualvm/platform/modules/lib/amd64/linux/libjnidispatch-nb.so + /usr/share/visualvm/cluster/lib/deployed/jdk1[56]/linux-amd64/libprofilerinterface.so +" + +EANT_BUILD_TARGET=build +EANT_EXTRA_ARGS="-Dext.binaries.downloaded=true" +INSTALL_DIR=/usr/share/${PN} + +src_unpack() { + unpack ${P}.tar.gz + cd "${S}" || die + unpack ${NBZ} +} + +src_prepare() { + default + + # Remove unneeded binaries + rm -rv netbeans/platform/lib/*.{dll,exe} \ + netbeans/platform/modules/lib/{amd64/*.dll,i386,x86} || die + find libs.profiler/lib.profiler/release/lib/deployed/jdk1? -mindepth 1 \ + -maxdepth 1 ! -name linux-amd64 -exec rm -rv {} + || die + + # link in downloaded jars + for file in ${FLIGHT_RECORDER_FILE} ${COMMON_FILE} ${ENCODER_FILE}; do + ln -s "${DISTDIR}/${file}" jfr.generic/external/ || die "Failed to link file ${file}" + done + + java-pkg_jar-from --into jfr.generic/external lz4-java lz4-java.jar ${LZ4_JAVA_FILE} || die "Failed to link lz4 java jar" +} + +src_install() { + # this is the visualvm cluster + insinto ${INSTALL_DIR} + doins -r build/cluster netbeans/{harness,platform} + + # configuration file that can be used to tweak visualvm startup parameters + insinto /etc/${PN} + newins launcher/visualvm.conf ${PN}.conf + sed -i "s%visualvm_default_userdir=.*%visualvm_default_userdir=\"\${HOME}/.visualvm\"%g" "${ED}/etc/${PN}/visualvm.conf" || die "Failed to update userdir" + sed -i "s%visualvm_default_cachedir=.*%visualvm_default_cachedir=\"\${HOME}/.cache/visualvm\"%g" "${ED}/etc/${PN}/visualvm.conf" || die "Failed to update cachedir" + echo -e "\nvisualvm_jdkhome=\"\$(java-config -O)\"" >> "${ED}/etc/${PN}/visualvm.conf" || die "Failed to set jdk detection" + + # replace bundled stuff + pushd "${ED}/${INSTALL_DIR}/platform/core" > /dev/null || die + for name in asm{,-commons,-tree}; do + rm ${name}-9.2.jar && java-pkg_jar-from asm-9 ${name}.jar ${name}-9.2.jar || die + done + popd > /dev/null + + pushd "${ED}/${INSTALL_DIR}/platform/modules/ext" > /dev/null || die + rm hamcrest-core-1.3.jar && java-pkg_jar-from hamcrest-core-1.3 hamcrest-core.jar hamcrest-core-1.3.jar || die + rm jcommander-1.78.jar && java-pkg_jar-from jcommander jcommander.jar jcommander-1.78.jar || die + for name in jna{,-platform}; do + rm ${name}-5.12.1.jar && java-pkg_jar-from jna-4 ${name}.jar ${name}-5.12.1.jar || die + done + rm junit-4.13.2.jar && java-pkg_jar-from junit-4 junit.jar junit-4.13.2.jar || die + for name in junit-jupiter-{api,engine,params}; do + rm ${name}-5.6.0.jar && java-pkg_jar-from junit-5 ${name}.jar ${name}-5.6.0.jar || die + done + rm testng-6.14.3.jar && java-pkg_jar-from testng testng.jar testng-6.14.3.jar || die + popd > /dev/null + + pushd "${ED}/${INSTALL_DIR}/cluster/modules/ext" > /dev/null || die + rm ${LZ4_JAVA_FILE} && java-pkg_jar-from lz4-java lz4-java.jar ${LZ4_JAVA_FILE} || die + popd > /dev/null + + # visualvm runtime script + newbin "${FILESDIR}"/${PN}-r2.sh ${PN} + + # makes visualvm entry + make_desktop_entry ${PN} VisualVM java "Development;Java;" +} -- cgit v1.2.3