diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-22 12:05:36 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-22 12:05:36 +0100 |
commit | 02eb6576978c38afed5787f6f2dbab8353379d66 (patch) | |
tree | 0b82220aae58c1307bef3aff0f342f4cdf858161 /dev-util | |
parent | 490ef2c2dc8b4e808f37add1adee21a754efd9a9 (diff) |
gentoo auto-resync : 22:04:2024 - 12:05:36
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/Manifest.gz | bin | 65283 -> 65285 bytes | |||
-rw-r--r-- | dev-util/cutter/Manifest | 2 | ||||
-rw-r--r-- | dev-util/cutter/cutter-2.3.4.ebuild | 63 | ||||
-rw-r--r-- | dev-util/debootstrap/Manifest | 4 | ||||
-rw-r--r-- | dev-util/debootstrap/debootstrap-1.0.134.ebuild | 51 | ||||
-rw-r--r-- | dev-util/debootstrap/metadata.xml | 15 | ||||
-rw-r--r-- | dev-util/rizin/Manifest | 6 | ||||
-rw-r--r-- | dev-util/rizin/rizin-0.6.3-r1.ebuild | 5 | ||||
-rw-r--r-- | dev-util/rizin/rizin-0.7.1-r1.ebuild | 5 | ||||
-rw-r--r-- | dev-util/rizin/rizin-0.7.3.ebuild | 99 |
10 files changed, 240 insertions, 10 deletions
diff --git a/dev-util/Manifest.gz b/dev-util/Manifest.gz Binary files differindex dedad713e931..d1d718902766 100644 --- a/dev-util/Manifest.gz +++ b/dev-util/Manifest.gz diff --git a/dev-util/cutter/Manifest b/dev-util/cutter/Manifest index 238face6ed41..c62d31916c82 100644 --- a/dev-util/cutter/Manifest +++ b/dev-util/cutter/Manifest @@ -1,5 +1,7 @@ DIST cutter-2.3.2.tar.gz 11280258 BLAKE2B 20dba40d96fed296b9af0b0e0b66dd46901bfc6621ba59cce1940ed2980acfc1e8b6447c20995bbeace71c7eeb1c9b180bf3b2076bbae9035706c6d4aff6dc5f SHA512 65ca98f6618b1e60efa25d33bb4f3ef6b36dfd8496cf1f40c6a6b9744df3c2f77673d1d3cc1142c1b3b064abd0698ca07a20c5e4009ba5f6b05fc7f7501a4435 DIST cutter-2.3.3.tar.gz 11609727 BLAKE2B bea428892d242c8112d5004b9960d9f74b3aa48b5988436bba54983abf3d26f4bca89b4dc75061e857c2cc51f724ea392fc4f380f227c36f38618078ec0a5761 SHA512 7731b6a2efa03a745cd0760d905df474383dc77906d5aefada7bd94098d771b75ae030cb71ed33256cc2f3e23c1c4930d45355cf6371361cb9780b26996dd2cb +DIST cutter-2.3.4.tar.gz 11608176 BLAKE2B f83cd117bdd1a9ea985b52d4029bd3874f92b08709ac50dd1c6a526aadd022e05f9b75586cf826cc6b46c2004cb6b3185c5770b8622bc3c6a7140307a9c1a98a SHA512 c35a7091aaf2c99a4595b48029017353092b178ed6a57cbe2f0d9758f1330d2521e3fc339558ffc0dfa500ace0510daded8591f7a04b0efa0209ba4f8a5e7d33 EBUILD cutter-2.3.2.ebuild 1530 BLAKE2B aced04ddaa1d532f319020fded521542b8a7ee64e3689f0cdbc3134ade3dd0b75722c85adf28fdf2c6a0d8ee14bf9bf805b9350b1c5748be7e2a185a18815a51 SHA512 60b2702e0205615a1e740aff6ab02b124ccafc85a5c55073d79635510708a1c5f8bc89d53593611c922a49c15baa0759f8c09196027ba5f402a0cdf0f5835524 EBUILD cutter-2.3.3.ebuild 1531 BLAKE2B 63c1039c4ee18d048c73ba7977f81c32f174989dc609d4cadeff90a97f67abd8d3cf524885ed402a026c7703397d8fafab60e66607220d3f939732c2bf2495f8 SHA512 4af3ea900e91c295de97c06dae74eda45ea6f9b3343330140a177f15a1d73ead7622baf37c8f909eb45e7db4cbaaf2166bc4a79cde22d258d45b0ac73e8a178a +EBUILD cutter-2.3.4.ebuild 1531 BLAKE2B 4b760ee01ca8a24d90ea52d76c48bb2cf20f426d05c78473b33130ef3b4387896db3d459e9f5716cf2b288c79f26a400a860772acef46a5fb5e7352245201e60 SHA512 aaad3ed2e6c250a9baa829c1441e915405c0e96c21dbb0cc89974d6c40f8a039eea19e78faa4e9b0ee52a2f0313bbcda2300d2380ebb283e206b0eb4a89f2699 MISC metadata.xml 329 BLAKE2B ccc11908a8ba66fdc15f6fe8ea45e62e797050488dc82de159525338cb4ffc4d52609bd815dd0a2ad3ad23a915e5bf631dc3db640a0e7c314fb5fa66cfe5b2b7 SHA512 208b070fdb02df4825d364ee5d86c3be7658fb6c84420d53b5e4f72427de0a2b8c201e46a6bae9d923eb5e9b0f195fb639336452c89dd4affc5527908cd152fb diff --git a/dev-util/cutter/cutter-2.3.4.ebuild b/dev-util/cutter/cutter-2.3.4.ebuild new file mode 100644 index 000000000000..6e3ac9dccc29 --- /dev/null +++ b/dev-util/cutter/cutter-2.3.4.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) + +inherit cmake flag-o-matic toolchain-funcs xdg-utils python-single-r1 + +MY_P="${PN^}-v${PV}" + +DESCRIPTION="A Qt and C++ GUI for rizin reverse engineering framework" +HOMEPAGE="https://cutter.re https://github.com/rizinorg/cutter/" +SRC_URI="https://github.com/rizinorg/${PN}/releases/download/v${PV}/${MY_P}-src.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="CC-BY-SA-3.0 GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="graphviz" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${PYTHON_DEPS} + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtsvg:5 + dev-qt/qtwidgets:5 + >=dev-util/rizin-0.7.1:= + graphviz? ( media-gfx/graphviz )" +RDEPEND="${DEPEND} + !net-analyzer/cutter" # https://bugs.gentoo.org/897738 +BDEPEND="dev-qt/linguist-tools:5" + +src_configure() { + # -Werror=odr + # https://bugs.gentoo.org/925901 + # https://github.com/rizinorg/cutter/pull/3317 + # + # Fixed in git dev. Remove as part of next version bump. + filter-lto + + local mycmakeargs=( + -DCMAKE_CXX_COMPILER="$(tc-getCXX)" + -DCMAKE_C_COMPILER="$(tc-getCC)" + -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr" + -DCUTTER_ENABLE_GRAPHVIZ="$(usex graphviz)" + -DCUTTER_ENABLE_KSYNTAXHIGHLIGHTING=OFF + -DCUTTER_ENABLE_PYTHON=ON + -DCUTTER_USE_ADDITIONAL_RIZIN_PATHS=OFF + -DCUTTER_USE_BUNDLED_RIZIN=OFF + ) + + cmake_src_configure +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +} diff --git a/dev-util/debootstrap/Manifest b/dev-util/debootstrap/Manifest index 1e42040524fa..7a56ee1c1fcb 100644 --- a/dev-util/debootstrap/Manifest +++ b/dev-util/debootstrap/Manifest @@ -1,6 +1,8 @@ DIST debootstrap-1.0.128+nmu2.tar.bz2 70406 BLAKE2B 7ba8f2cb63da3217594e9b058e1b0b4452823d9daeaaff0f91a298bd9d29ec16b332eda03259a12a9259dc759f63f1123654454341eb32f6fd882def0f3e4582 SHA512 a8baa7df3956d407c1b9344a0f0acb8162d951b55c3f402f7f04d8b652e00a366fd0e8be8fb4ecfd3997d6374c0271a329ccc631b32958a2296c73e389d622d3 +DIST debootstrap-1.0.134.tar.bz2 76120 BLAKE2B ce885d57a9c98864ea045dd3151553b57f6d9feadaba41df063f8f9056a7d1294ade2ac32374bc59cbfcae5993956bb68cb19759a109520419b8e1134563fddc SHA512 e7b9726632d3816975c8cbd0020882f69db6d2a84f6c2d086a4e002c58afa61f8b08a8a35b40dd6a284e2cdb584817292462e5dc354fb83d177d50a56aa8cda6 DIST debootstrap_1.0.123.tar.gz 78175 BLAKE2B e507ee76817eef20cfea4e37eaf893f8e64acaa791806ebd55bec97b8e60eb3c59b68bfe5e6023dc6e73706bde2468db46b84f0176ec46d086c3ea9423a206c7 SHA512 3b23f61528d4993750ba22b8765c10cfb9695793177017d9e4faf546da076be6660c5d6e0d1bf30bafe14f6d70f886190d3ec42a0057b895f40e860475eea794 DIST devices.tar.gz 47835 BLAKE2B 03bfe097fda12a7a0aa19d3308c0d44382ad945defea05a63b17a72e4051ef94f0e60e75bde35baeace81da59d9f04126f6e463163609475b9c0fdf518f533ef SHA512 994ec8d72e3d52d2d872f7ff0da2336e4cbd3a5fa73bb6cdb9e06f5e7f5b8c69cea639c738fdba1186f382d6dcf62e7746fface664bfbd744aac24b16f034432 EBUILD debootstrap-1.0.123.ebuild 1179 BLAKE2B a3ab2788c9ed0fa9f1c28ac92d47035f6eedfe3561a5b677e632e8595f14dfefa1384d51d3ee40415bbbaa00bfe261f4bdeacd2aa6286f3a119cb4e463354226 SHA512 c8cd5b8e721918a020a7f16aafc30105f1867529ff6bf3020fd19a4da83acdeb2401a8618e0b398714c15ba358437889f46b3f6a6f531bd708c1d7b1363624e2 EBUILD debootstrap-1.0.128_p2.ebuild 1264 BLAKE2B 4e369566c01b8eeee4337955a6563219978a67cfc209880cabbe37a15e550b7937e1fd4cfc85f833b1889608fa844bccc3771c87624d039d67fe82a9b881a1cd SHA512 41b1fc9c1e25066599a04ed0878a5d8f37064f4805c57eb061042e9fd62a2f577927e60dd95b7e0c533dc5bcd23334bcf8c770cd17aa0e7ae26cf7967dd5665b -MISC metadata.xml 168 BLAKE2B 2e0e000b4c3b6ca04c12903fdbe278415c05a822623c52e9aa95cbbf3d50bcb1246b7edbda7d2f6b559af8950c6374e6e0a69b76319964cfe686bf50b0604a57 SHA512 4dcf45d1809e8390a2d8155c8ebfe0dd610203e392aeab0ccd8a10f42cc8532a4925eff32b35e7a6c35598a4efd288229034ec0732299dbd8cfa0acff705fed3 +EBUILD debootstrap-1.0.134.ebuild 1271 BLAKE2B ad47e403d2b3e213ff4426496370ddaeb9ca744932efcdd9292802af3966fb6988ff4532a0c482adca9e08ec15ed2c08bfbf889987845bae5e712b27d358cf25 SHA512 903aea3098a6da96437d2328b2983f5f1e0a26317d5fc6d4d9f75a56afd554fbe87a3a7b02cee624bd6d26f471d24f93366ad914f96e874445c3866c988a8283 +MISC metadata.xml 812 BLAKE2B 6c607eb4a6403cd0b2c92e536d3c74e899c84c7c5a1ab091d09dde27d3a9bfed22d0cce0480de5870af156fe1528836d8d348d502109f32190fd85bf44cec9b2 SHA512 706bf733c643b2e5528c14ab328eb0d137e28fe75ad29eae68898a30bf1eb7330cf89f8bf7cb98c59bb20c6b9a75a36ca8465a3a5e1d731a64ba3803bdb726d0 diff --git a/dev-util/debootstrap/debootstrap-1.0.134.ebuild b/dev-util/debootstrap/debootstrap-1.0.134.ebuild new file mode 100644 index 000000000000..f3548f563311 --- /dev/null +++ b/dev-util/debootstrap/debootstrap-1.0.134.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PV="${PV/_p/+nmu}" + +DESCRIPTION="Debian/Ubuntu bootstrap scripts" +HOMEPAGE="https://packages.qa.debian.org/d/debootstrap.html" +SRC_URI="https://salsa.debian.org/installer-team/${PN}/-/archive/${MY_PV}/${PN}-${MY_PV}.tar.bz2 + mirror://gentoo/devices.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + app-arch/dpkg + net-misc/wget + sys-devel/binutils +" + +S="${WORKDIR}/${PN}-${MY_PV}" + +src_unpack() { + unpack "${PN}-${MY_PV}".tar.bz2 + cp "${DISTDIR}"/devices.tar.gz "${S}" || die +} + +src_compile() { + : +} + +src_install() { + local DOCS=( TODO debian/changelog ) + default + doman debootstrap.8 +} + +pkg_postinst() { + if ! has_version ${CATEGORY}/${PN} && ! has_version app-crypt/gnupg; then + elog "To check Release files against a keyring (--keyring=K), please" + elog "install app-crypt/gnupg" + fi + + if ! has_version app-crypt/debian-archive-keyring || ! has_version app-crypt/ubuntu-keyring; then + elog "To check Release files from Debian or Ubuntu, please install" + elog " app-crypt/debian-archive-keyring or" + elog " app-crypt/ubuntu-keyring as required" + fi +} diff --git a/dev-util/debootstrap/metadata.xml b/dev-util/debootstrap/metadata.xml index 115e9d64a669..d0adaf9c63d2 100644 --- a/dev-util/debootstrap/metadata.xml +++ b/dev-util/debootstrap/metadata.xml @@ -1,5 +1,18 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <!-- maintainer-needed --> + <longdescription lang="en"> + Debootstrap is a tool which will install a Debian base system into + a subdirectory of another, already installed system. It doesn't + require an installation CD, just access to a Debian repository. It + can also be installed and run from another operating system, so, + for instance, you can use debootstrap to install Debian onto an + unused partition from a running Gentoo system. It can also be used + to create a rootfs for a machine of a different architecture, which + is known as "cross-debootstrapping". + </longdescription> + <maintainer type="person"> + <email>tamiko@gentoo.org</email> + <name>Matthias Maier</name> + </maintainer> </pkgmetadata> diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest index 39d0b5d46a3c..375de51aaae9 100644 --- a/dev-util/rizin/Manifest +++ b/dev-util/rizin/Manifest @@ -2,8 +2,10 @@ AUX rizin-0.4.0-never-rebuild-parser.patch 1568 BLAKE2B c77276adb8349188ebc937d8 AUX rizin-0.5.2-find-tree-sitter-parser.patch 1128 BLAKE2B c3a72fda5005d50f47b2a1c5350b017f8e6fd4d4d232c8502adcceef6542d509c70f68ef396ffff159c4f37a8575931e4a440c689c403a653ac9145489fa4405 SHA512 2977c1004b76740a2e35156a2f92e415530a401eeaddbf59f4efc8ee36bc0fdec7f0402b4aa1732fc0827a4a5c505cc2851db65fb7a25d254ddb631c6c8542c9 DIST rizin-src-v0.6.3.tar.xz 15411052 BLAKE2B 4ddde26dc2541917e1d16f38339bf1467b2148524a1365d739c417857ee856ecb7fbc9210a0f3b562a429c962e31f637bb88a0c0817f42a59868ed3093b0e902 SHA512 031ae1c5b43237d55b3e48d825d4bd9cda16a4a84a47464eb1745a02265a1412e2864345595c0dca7f8ea0cb348fe9760ea424556ff6b915ac8014a7f410b03c DIST rizin-src-v0.7.1.tar.xz 18941692 BLAKE2B d0384a272e5e8274c970dd9253d84204e8bc026de05ec63fe0252cb6fc9eaee9729bbf03ef3dba100c6e55c58e4a81f7755d7ecb15eebbbb041aa9bfb4c53d30 SHA512 e59b6fd748e551f10169da9a04f7c04ffb017182d3eb5856467df3b167c6d9b387d0faccdb0cd97ee7321ac71179eb7d9a28fa954f34dc028ea8e4259211eac7 +DIST rizin-src-v0.7.3.tar.xz 18604220 BLAKE2B 9bbfbd8cf86839dcfdc30beb12d4472abf68e7d8c81561f6124b4d8ac781242bbbe8b62e06d2873928830d2524203c18ab1c17fa35855ac2d344af7649b64b3c SHA512 bad89888b2cb1ce1227ce629ff1209f18d1afb9da55685f0ea4ead7dd1b4dfbf8ed72c173048b2ee47362a10d5e20a6c34e09d0bbaa210f3873073c10ebc4dc1 DIST rizin-testbins-1203a9a2f51e32337c8434d9f4f7c4543552e271.tar.gz 185572487 BLAKE2B b274a58bebe0123bd8ab7b18a4e88833e7de53133d8f640d00b9efa953cf8ef766582acd5a0f65750ebb273be70d5cc1daf9b700cd6b9bfd4d464cf59ab735ba SHA512 47e8993bea5d7805acb46c1c4e034524fe47d2b0b2471af00d3255f3e853430617658cd6b1f8a4706a748704a52646ec43495f0d4e80f16bce4aaf34e29539a4 DIST rizin-testbins-903588ed69d7717069955322b31dad5e666b338a.tar.gz 181644100 BLAKE2B ea491bea61a6d17fa2727e1b08b810be2bb99d05cf2afa4e97dc440a69a4fd376a39c25c6e86e9e2d499732b55e7c75e5eef39adef84f571e48d147e410d04e5 SHA512 fffef043d76440976e02e2b890138f57df849f507c0a7a48bd97b421fc1683e73696c50b6daddf906a53685eccfd7346e25881d3d498417e4e55b97ef56b8317 -EBUILD rizin-0.6.3-r1.ebuild 2532 BLAKE2B 3dc25870d0900fe52eb29c022ec2d061a8d543757f013a0042e6ea1330c860d6bf051a8e470fc15a0bba8fd63a5c138e4822fd1e37d7b9ce08591c7f598860c0 SHA512 49e64374f4fdb9caae0d47684caf46979d54e5d299d90388859a098d59d09ceb9fe53ecfe654e2c49f8a432ea6a2d07fc7b4e2e04051789e6312e5b877afc760 -EBUILD rizin-0.7.1-r1.ebuild 2517 BLAKE2B 52a08f75e60b15c1284b8b182b874e76c17d636afed3a1269a786515d293ece54e0284d5652a5a305bed34283498df5f0efb5745b3c5791ffd671fcba29dbebc SHA512 94cdb12ca5f5e983598f66ff79b1a4ee7b91b56e74b922fcf71c2704db1b36dd7d7238956680a94438324d0230964510a1bff4d076468e88908f909a96a17b89 +EBUILD rizin-0.6.3-r1.ebuild 2531 BLAKE2B f0b8ed9b9bb4e75634987d4aaa1a40ac28207eb1504b352d83300501005b9f287aa940d90c96465652a1367b2ea33fcd26ed0babed7e4a09dbda35d3a9062f05 SHA512 48a966414515f9d748f5d8995aefb33c8024a58fef0f87e4e41777560fc6e69aebfec812da2d84adca4b9787b2f27dd742ac01898eecd9d94ca10ff949495cf4 +EBUILD rizin-0.7.1-r1.ebuild 2516 BLAKE2B af12df34e35b77560532f9a3d581c5eece60c8cbe5ce742e0c09572d43d9744d682d45b0e752b542fef0d6ac388df1e6fe523f02860d416e0261f1dd6296e0c6 SHA512 f99be075af1613e1e926d95df11c5b3da6e042c847b87261e16060d481465f31c9b740727a5c4ec196bed67a03b181a0127b381896ca4587ea7daa0ae1c75372 +EBUILD rizin-0.7.3.ebuild 2514 BLAKE2B 39cc4fc096bbb969cea78d1d8610c5bf928958d0d18a45903bf1ca924e76f0b8ef09116e01beb52bd4e33b6fa1d0d01e26c9fed083e326d0b437d9ccbf98c68a SHA512 be049d24ed3638c590faf7230081cd75aac81814327e567e1fc7f9c3b5d4edc4661d3de8b9dc008776433800bc352bc7a66c1e3865382970a61dde25c43ab20d MISC metadata.xml 427 BLAKE2B 2937970e78526f69e371b4451a3406b1fdc35a01707d366e8b54e23f9d13e8a713254902825ae111817ee00ea3aaf3bc968db8b6d944b15f869e2b89ba8e16b8 SHA512 65cc9c4cd5f2f64cd02e89b0f7f4972fefec51cb175650625da263b729022587c9487e9ab9faed8517200ed622a8ca5ec35b2b6f4c67966d78344c043197c981 diff --git a/dev-util/rizin/rizin-0.6.3-r1.ebuild b/dev-util/rizin/rizin-0.6.3-r1.ebuild index 4f402e6fed56..49186f6b9d14 100644 --- a/dev-util/rizin/rizin-0.6.3-r1.ebuild +++ b/dev-util/rizin/rizin-0.6.3-r1.ebuild @@ -15,10 +15,11 @@ HOMEPAGE="https://rizin.re/" SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz test? ( https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> rizin-testbins-${BINS_COMMIT}.tar.gz )" -KEYWORDS="amd64 ~arm64 ~x86" +S="${WORKDIR}/${PN}-v${PV}" LICENSE="Apache-2.0 BSD LGPL-3 MIT" SLOT="0/${PV}" +KEYWORDS="amd64 ~arm64 ~x86" IUSE="test" # Need to audit licenses of the binaries used for testing @@ -45,8 +46,6 @@ PATCHES=( "${FILESDIR}/${PN}-0.5.2-find-tree-sitter-parser.patch" ) -S="${WORKDIR}/${PN}-v${PV}" - src_prepare() { default diff --git a/dev-util/rizin/rizin-0.7.1-r1.ebuild b/dev-util/rizin/rizin-0.7.1-r1.ebuild index 549798343329..13d65081e186 100644 --- a/dev-util/rizin/rizin-0.7.1-r1.ebuild +++ b/dev-util/rizin/rizin-0.7.1-r1.ebuild @@ -15,10 +15,11 @@ HOMEPAGE="https://rizin.re/" SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz test? ( https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> rizin-testbins-${BINS_COMMIT}.tar.gz )" -KEYWORDS="~amd64 ~arm64 ~x86" +S="${WORKDIR}/${PN}-v${PV}" LICENSE="Apache-2.0 BSD LGPL-3 MIT" SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm64 ~x86" IUSE="test" # Need to audit licenses of the binaries used for testing @@ -46,8 +47,6 @@ PATCHES=( "${FILESDIR}/${PN}-0.4.0-never-rebuild-parser.patch" ) -S="${WORKDIR}/${PN}-v${PV}" - src_prepare() { default diff --git a/dev-util/rizin/rizin-0.7.3.ebuild b/dev-util/rizin/rizin-0.7.3.ebuild new file mode 100644 index 000000000000..7e7a1b76d7c5 --- /dev/null +++ b/dev-util/rizin/rizin-0.7.3.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) + +# This is the commit that the CI for the release commit used +BINS_COMMIT="1203a9a2f51e32337c8434d9f4f7c4543552e271" + +inherit meson python-any-r1 + +DESCRIPTION="reverse engineering framework for binary analysis" +HOMEPAGE="https://rizin.re/" + +SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz + test? ( https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> rizin-testbins-${BINS_COMMIT}.tar.gz )" +S="${WORKDIR}/${PN}-v${PV}" + +LICENSE="Apache-2.0 BSD LGPL-3 MIT" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" + +# Need to audit licenses of the binaries used for testing +RESTRICT="test? ( fetch ) !test? ( test )" + +# TODO: unbundle dev-libs/blake3 +RDEPEND=" + app-arch/lz4:0= + app-arch/xz-utils + app-arch/zstd:= + >=dev-libs/capstone-5:0= + dev-libs/libmspack + dev-libs/libzip:0= + dev-libs/openssl:0= + dev-libs/libpcre2:0= + >=dev-libs/tree-sitter-0.19.0 + dev-libs/xxhash + sys-apps/file + sys-libs/zlib:0= +" +DEPEND="${RDEPEND}" +BDEPEND="${PYTHON_DEPS}" + +PATCHES=( + "${FILESDIR}/${PN}-0.4.0-never-rebuild-parser.patch" +) + +src_prepare() { + default + + local py_to_mangle=( + librz/core/cmd_descs/cmd_descs_generate.py + sys/clang-format.py + test/fuzz/scripts/fuzz_rz_asm.py + test/scripts/gdbserver.py + ) + + python_fix_shebang "${py_to_mangle[@]}" + + # https://github.com/rizinorg/rizin/issues/3459 + sed -ie '/dyld_chained_ptr_arm64e_auth/d' test/unit/test_bin_mach0.c || die + + if use test; then + cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}/test/bins" || die + cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}" || die + fi +} + +src_configure() { + local emesonargs=( + -Dcli=enabled + -Duse_sys_capstone=enabled + -Duse_sys_libmspack=enabled + -Duse_sys_libzip=enabled + -Duse_sys_libzstd=enabled + -Duse_sys_lz4=enabled + -Duse_sys_lzma=enabled + -Duse_sys_magic=enabled + -Duse_sys_openssl=enabled + -Duse_sys_pcre2=enabled + -Duse_sys_tree_sitter=enabled + -Duse_sys_xxhash=enabled + -Duse_sys_zlib=enabled + + $(meson_use test enable_tests) + $(meson_use test enable_rz_test) + ) + meson_src_configure +} + +src_test() { + # We can select running either unit or integration tests, or all of + # them by not passing --suite. According to upstream, integration + # tests are more fragile and unit tests are sufficient for testing + # packaging, so only run those. + meson_src_test --suite unit +} |