diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
commit | 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (patch) | |
tree | 758c221bad35c9288d0bd6df9c7dfc226728e52c /dev-util/rizin | |
parent | 8d5dbd847cbc704a6a06405856e94b461011afe3 (diff) |
gentoo resync : 28.04.2021
Diffstat (limited to 'dev-util/rizin')
-rw-r--r-- | dev-util/rizin/Manifest | 6 | ||||
-rw-r--r-- | dev-util/rizin/metadata.xml | 16 | ||||
-rw-r--r-- | dev-util/rizin/rizin-0.2.0-r1.ebuild | 85 | ||||
-rw-r--r-- | dev-util/rizin/rizin-0.2.1.ebuild | 79 |
4 files changed, 186 insertions, 0 deletions
diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest new file mode 100644 index 000000000000..310f9daee647 --- /dev/null +++ b/dev-util/rizin/Manifest @@ -0,0 +1,6 @@ +DIST rizin-src-v0.2.0.tar.xz 51438288 BLAKE2B 2db80b74cb1f40387e8d173fea19418d0a95be6a93acd5fb39da2fd51a0db6d77b20a7e8c551c461ce10ec2a39aa51958c238cd8dad7a357cd886804e87efa93 SHA512 d9522423110553e4b0ac80bfce6edd4b642a1df74e76b77ab23a7b13a37a37a3858ad294e14742a349265ed509345fb0277b910de6814eee3b970a6b9b344d12 +DIST rizin-src-v0.2.1.tar.xz 51439132 BLAKE2B 3ce048c5e93afa43b33bb7c36e7f7a96734886a44a67339c18b36de84b6e3dd015aa49fd048815bc7cb26a39bd3c44ebd00227fdb0c3dc9d9f07ff2ff1f1948d SHA512 4d0a68971a8fe1de3860f8ee18197606f59c22d4c24f3fcce691c73b45c8fe8c356a9b411604e9c3d4e5bb01f695b6ead32cdc217134eb4ddfec76867c16c327 +DIST rizin-testbins-a80fd0d56d538d07a05ef01e29c8cb430a4f9d72.tar.gz 119214206 BLAKE2B 33916d466d77aaa0aeb6b221529a570a2bd2ad07b59b45967d75a84e3efbbc8ca3b8fff9cd88d61598b4e785ead2f8bc58eb7c1cb31007c27e497d80f36e4d2d SHA512 9b01a63ff281ac19b427e715d669e6080c4afdfd777ae762c30537c59bd2cdc2865adc1b34ccb61430b172e54995375b48bb35fd88f098b6a9839e9f3669fde4 +EBUILD rizin-0.2.0-r1.ebuild 2244 BLAKE2B 4a000f2c062a7219fd77d69189fafb2fd2c84087bcc39602b846447989f29fbe328a4217cbfe5c9d1f012e350bf5d024e6c48424dd41d4954484ebcf28f2216c SHA512 338714a0c9b4af8084e1a1628d7726c58423ca7a2cb894b91ae599c616e7e02a7effb23276d365f41fc3046fd01032a4ba83975a6829377f76688f88e7fb1ccd +EBUILD rizin-0.2.1.ebuild 1937 BLAKE2B f2d4794d029c3f9ce7080e626f972c3a6792669a76202c71379c3d7b6239d01071a611fbef445672116ad2dbe5f5975ec797b10ae353227c3b45bf25c8d328f5 SHA512 80799cf3ccf24f6607b20d4e83106c644c77116ca2e550dff8b27ce7acb72b43ca1db54ad11d39fa6a32b46616abe7b2229f195a07095182e1744371c759be07 +MISC metadata.xml 459 BLAKE2B 90d71202d4ac6732aac13f9b1e36b485682fef7381b52b20e904c6f502bcea0a12b2001c0b74e82e0924f29ae9e3c21cc4ceaed2a1e54a2218f8e25d23d5ce20 SHA512 0ff5f7f10ee319340283ed838f371c13943b78b2b57ff2be8cdf6203d591e952a610eabf4266111a89d9dec865b7043d27a6d9ae6330940d1573733d00ecbb8f diff --git a/dev-util/rizin/metadata.xml b/dev-util/rizin/metadata.xml new file mode 100644 index 000000000000..65f8f96f8fa7 --- /dev/null +++ b/dev-util/rizin/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>ajak@gentoo.org</email> + <name>John Helmert III</name> + </maintainer> + <maintainer type="person"> + <email>sam@gentoo.org</email> + <name>Sam James</name> + </maintainer> + <maintainer type="person"> + <email>slyfox@gentoo.org</email> + <name>Sergei Trofimovich</name> + </maintainer> +</pkgmetadata> diff --git a/dev-util/rizin/rizin-0.2.0-r1.ebuild b/dev-util/rizin/rizin-0.2.0-r1.ebuild new file mode 100644 index 000000000000..dfac4e598d75 --- /dev/null +++ b/dev-util/rizin/rizin-0.2.0-r1.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=(python3_{6,7,8,9}) + +# This is the commit that the CI for the release commit used +BINS_COMMIT="a80fd0d56d538d07a05ef01e29c8cb430a4f9d72" + +inherit meson python-any-r1 + +DESCRIPTION="reverse engineering framework for binary analysis" +HOMEPAGE="https://rizin.re/" + +SRC_URI="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 ~x86" + +LICENSE="Apache-2.0 BSD LGPL-3 MIT" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + sys-apps/file + app-arch/lz4:0= + dev-libs/capstone:0= + dev-libs/libuv:0= + dev-libs/libzip:0= + dev-libs/openssl:0= + dev-libs/tree-sitter + dev-libs/xxhash + sys-libs/zlib:0= +" +DEPEND="${RDEPEND}" +BDEPEND="${PYTHON_DEPS}" + +S="${WORKDIR}/${PN}-v${PV}" + +src_prepare() { + default + + # TODO: is there a better way to override it in meson? + # Maybe we can inject something to '[binaries]' + # https://bugs.gentoo.org/781827 + sed "s/py3_exe = import('python').find_installation('python3')/py3_exe = import('python').find_installation('${EPYTHON}')/" \ + -i subprojects/sdb/meson.build || die + + local py_to_mangle=( + librz/core/cmd_descs/cmd_descs_generate.py + subprojects/lz4-1.9.3/contrib/meson/meson/GetLz4LibraryVersion.py + subprojects/lz4-1.9.3/contrib/meson/meson/InstallSymlink.py + subprojects/lz4-1.9.3/tests/test-lz4-list.py + subprojects/lz4-1.9.3/tests/test-lz4-speed.py + subprojects/lz4-1.9.3/tests/test-lz4-versions.py + sys/clang-format.py + test/fuzz/scripts/fuzz_rz_asm.py + test/scripts/gdbserver.py + ) + + python_fix_shebang "${py_to_mangle[@]}" + + if use test; then + mv "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}/test/bins" || die + fi +} + +src_configure() { + local emesonargs=( + -Dcli=enabled + -Duse_sys_capstone=enabled + -Duse_sys_magic=enabled + -Duse_sys_libzip=enabled + -Duse_sys_zlib=enabled + -Duse_sys_lz4=enabled + -Duse_sys_xxhash=enabled + -Duse_sys_openssl=enabled + -Duse_sys_tree_sitter=enabled + + $(meson_use test enable_tests) + $(meson_use test enable_rz_test) + ) + meson_src_configure +} diff --git a/dev-util/rizin/rizin-0.2.1.ebuild b/dev-util/rizin/rizin-0.2.1.ebuild new file mode 100644 index 000000000000..a07d3af1106b --- /dev/null +++ b/dev-util/rizin/rizin-0.2.1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=(python3_{6,7,8,9}) + +# This is the commit that the CI for the release commit used +BINS_COMMIT="a80fd0d56d538d07a05ef01e29c8cb430a4f9d72" + +inherit meson python-any-r1 + +DESCRIPTION="reverse engineering framework for binary analysis" +HOMEPAGE="https://rizin.re/" + +SRC_URI="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 ~x86" + +LICENSE="Apache-2.0 BSD LGPL-3 MIT" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + sys-apps/file + app-arch/lz4:0= + dev-libs/capstone:0= + dev-libs/libuv:0= + dev-libs/libzip:0= + dev-libs/openssl:0= + dev-libs/tree-sitter + dev-libs/xxhash + sys-libs/zlib:0= +" +DEPEND="${RDEPEND}" +BDEPEND="${PYTHON_DEPS}" + +S="${WORKDIR}/${PN}-v${PV}" + +src_prepare() { + default + + local py_to_mangle=( + librz/core/cmd_descs/cmd_descs_generate.py + subprojects/lz4-1.9.3/contrib/meson/meson/GetLz4LibraryVersion.py + subprojects/lz4-1.9.3/contrib/meson/meson/InstallSymlink.py + subprojects/lz4-1.9.3/tests/test-lz4-list.py + subprojects/lz4-1.9.3/tests/test-lz4-speed.py + subprojects/lz4-1.9.3/tests/test-lz4-versions.py + sys/clang-format.py + test/fuzz/scripts/fuzz_rz_asm.py + test/scripts/gdbserver.py + ) + + python_fix_shebang "${py_to_mangle[@]}" + + if use test; then + mv "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}/test/bins" || die + fi +} + +src_configure() { + local emesonargs=( + -Dcli=enabled + -Duse_sys_capstone=enabled + -Duse_sys_magic=enabled + -Duse_sys_libzip=enabled + -Duse_sys_zlib=enabled + -Duse_sys_lz4=enabled + -Duse_sys_xxhash=enabled + -Duse_sys_openssl=enabled + -Duse_sys_tree_sitter=enabled + + $(meson_use test enable_tests) + $(meson_use test enable_rz_test) + ) + meson_src_configure +} |