diff options
Diffstat (limited to 'dev-util/cutter')
-rw-r--r-- | dev-util/cutter/Manifest | 3 | ||||
-rw-r--r-- | dev-util/cutter/cutter-1.10.1.ebuild | 56 | ||||
-rw-r--r-- | dev-util/cutter/files/cutter-1.10.1-radare2-4.3.0.patch | 12 |
3 files changed, 71 insertions, 0 deletions
diff --git a/dev-util/cutter/Manifest b/dev-util/cutter/Manifest index 8c0ac9d5f28c..902fb2e8526e 100644 --- a/dev-util/cutter/Manifest +++ b/dev-util/cutter/Manifest @@ -1,9 +1,11 @@ +AUX cutter-1.10.1-radare2-4.3.0.patch 492 BLAKE2B 3f6115c29ffcacabcb6fed3870f73bbf4dbbd5d5afd4ccf0c44d1a40e98519f44a8611571ee491f21c675edfad01ed4ff1d132e64f122c7ca7859a1081ef0c0b SHA512 ca97982571f98cb4549ddf82e0d8c13214c2006cf30710d55073b7704b8e6561b6c597157011af70af2e57a058ccade89cee56d18207453b2a367a5a18b7c228 AUX cutter-1.4-python3-config.patch 800 BLAKE2B 33618c26a6b98330fdeaf8cabf6ba6578b2c889d851b06aad0fa7dccf7872010452c0b3d2bd0c1952835cf2d20e05e767d154634e5f21f139eea4f7154950ec6 SHA512 f0e3e6874a3dbcf88176676135896830ed57830066205cf380d13d9c2ba1495af63adcfa4cf55e4e10256d30b95a09948e9f1bc519b4717f7ba5e55090415264 AUX cutter-1.6-python3-config.patch 800 BLAKE2B 33618c26a6b98330fdeaf8cabf6ba6578b2c889d851b06aad0fa7dccf7872010452c0b3d2bd0c1952835cf2d20e05e767d154634e5f21f139eea4f7154950ec6 SHA512 f0e3e6874a3dbcf88176676135896830ed57830066205cf380d13d9c2ba1495af63adcfa4cf55e4e10256d30b95a09948e9f1bc519b4717f7ba5e55090415264 AUX cutter-1.7-python3-config.patch 800 BLAKE2B 33618c26a6b98330fdeaf8cabf6ba6578b2c889d851b06aad0fa7dccf7872010452c0b3d2bd0c1952835cf2d20e05e767d154634e5f21f139eea4f7154950ec6 SHA512 f0e3e6874a3dbcf88176676135896830ed57830066205cf380d13d9c2ba1495af63adcfa4cf55e4e10256d30b95a09948e9f1bc519b4717f7ba5e55090415264 AUX cutter-1.7.4-python3-config.patch 800 BLAKE2B 33618c26a6b98330fdeaf8cabf6ba6578b2c889d851b06aad0fa7dccf7872010452c0b3d2bd0c1952835cf2d20e05e767d154634e5f21f139eea4f7154950ec6 SHA512 f0e3e6874a3dbcf88176676135896830ed57830066205cf380d13d9c2ba1495af63adcfa4cf55e4e10256d30b95a09948e9f1bc519b4717f7ba5e55090415264 AUX cutter-1.8.0-python3-config.patch 1133 BLAKE2B ec9af0be413e7ce04dbdffe68e58e8aab5ba69e588d69aee85b93e13bacafebda27aa3eb4b0859e26b7043b1c8d56fd86353930278e624503cff770cfb052f0a SHA512 67a749d3763050b684740a7039150e675a72fd7f32395d7b00e393477be6a920f432e7ee75285a0035cbc110cb6fff7e15f41ac6ebb9f623245c6ab0c76b2202 DIST cutter-1.0.tar.gz 614826 BLAKE2B 8f75343e57bf986d80dde3dc3ceb59675d28854744d8cc5fac783514e9c200595990d4860ee45db6544537d4f367df5b62a034e298bf273e44302edfa1647c84 SHA512 af6be59be7871d21d4f665e8ecb7f8224d99ccf7d62793e989ccd780ee521641c6ec0d941b46bb82770f5d44e5c0ef2efc29f9be303385e8e757e62a54bf53b1 +DIST cutter-1.10.1.tar.gz 1839344 BLAKE2B 883d0fa3d224d190b2dbec66e0bad1f2a542357bec9ce168706d60fa23794be23841157815323c989c1ddab9e1e428446e50ca0d71a91f7dbc8f01fe796caee2 SHA512 66f530687810a0bea3e4fcdf9962427964454a4a26e8d626d970bca358aab16b7939857fdbe22f0a611cdbdfbf67b5ab5f12959d8f04549c4cf8177cae49a54b DIST cutter-1.4.tar.gz 1067162 BLAKE2B 2f7eceffcfb3c542695e03ec72de1c99451f8278e91f50abc2e87542efbd2cc73d5a52b0e5303b9cea751edf91bc71b63295edd5b32d1b2b9ed3a1443cfc92e7 SHA512 54caec67e57f2ff3908942c1ebd1e909c65204c6f31d0ec95e31f46e03364f309898006b93555ba81287c0d74faf407272226e5ec65b3148ecde8feec11ca3be DIST cutter-1.6.tar.gz 1083427 BLAKE2B d51b88f2b9dd2655ef58d7075086959ec3ed59ed4b21db81a792ee165deda523a4e59378c954d0f2aa5b0af25d67329ed2119c004edc402c9b593a3b230a6fd9 SHA512 83aaadfbaccdaa514606408868c050e22d0a80a749b98a9f6df929467a16e69b0d454b25ce1cf53e35ebbfb74e9b39e2bd390057488c9bb3992a442ca306c2f1 DIST cutter-1.7.4.tar.gz 1182307 BLAKE2B 7b80c99654c430c7d694b658c5757a0f75463f02867ca33baa12bbd84a16782421350b5db63c90dd999a17b89865ecc5a87783f2a5e6df2a7395f957076c3e28 SHA512 d5750e756b51a0a140f53946b7cd7ed6f12b81c798335873781d5ecb906012fe0e257ff27e5c75e0ece6000f65a8b602530d80e6f9da22abbb8beac6573db6ac @@ -12,6 +14,7 @@ DIST cutter-1.8.0.tar.gz 1431831 BLAKE2B 8fd54238acb83f5747679e520b40981fbffa4a1 DIST cutter-1.8.2.tar.gz 1527164 BLAKE2B 49ad9d208d77332c87acb2ed389d854ed8866bd561e89582266effd448bd3f1260f2e8d91ebc2fcbb7beb40aec39e460bc7a327021a4339db157af5a809cbc19 SHA512 16cb6a158882f17435e4c146b021a7ddb61a331efcb53e5a29e3598f399e71b59003473fa5a07cc0769148e67b02dbf955051bbb5ceb4df69b4cf1805b85f4cc DIST cutter-1.9.0.tar.gz 1548575 BLAKE2B 810b6d9f3b203f79711e38b26b60f545fd65f96e5b7d7638538c074ab7dbe83104d79b11f6b552d16e4a30236c5965ed377ad7d9c71cb8fce0a1d9d13076cd54 SHA512 f9b68469320e0e54562612cba21632f69dfe1e0bb1f21d05d7f0a083208e11f2e1a0ab338f8db43fb324aa8538b6f93d566eda13283d5b96ab1127c2d846b388 EBUILD cutter-1.0.ebuild 637 BLAKE2B a7ee78a5d5f0f988ca10b0f7af3a5d5f63d433eea111358953599db557bd4cdbb656858619aaeb53293faf2749f8cb4540670ee590e6e3a9ec373a98f099da64 SHA512 71f8a88e2ac7b0d3215cbb32c3cc3c3b9d433010deb6755d5fcabfee26e1440948eb33c658374a2070c1e5f844099c715f461935da410d3fbdf2daf2be181a88 +EBUILD cutter-1.10.1.ebuild 1057 BLAKE2B 0e69f2fe39258ebaafd1d7762bd5de7fcc5983fb5f4fba0bc87e1e1f0ba6d18c20969b2d5a5adc174f15fa6771f67b574e00e4ca4ecd6e85034cff5523394e42 SHA512 9107645f9fa7b302ec0bba142cfb80e907f22b8fa05af98b5eea7e83a0baef32aad39622719cdeab19fada018f1703f3fa5e91fe0cb8c466a82ffbec92f57d82 EBUILD cutter-1.4.ebuild 1009 BLAKE2B a0056eeecee4e95a9b9e6332b9d8ddd9007ff569d93c473257ebc59bcc3a80a9a6bae8dc996f50ba355b8e29298d1a9c6c158402f77f4056bfca6674875135ba SHA512 9b78868d333fd97fc424e3eaa46d136098298f79860db68898dbad3841353dc81dbd513a312431f16d536c3273c968a5317f6bf58250f9f9ae792b9643ad659a EBUILD cutter-1.6.ebuild 1009 BLAKE2B b511368dcafb04f330ba2a9212cc5a2ce451f6ac69efc4b02dd789f63c326536af8a1b2339c2a17c50a2f47fa41f80bf5465ceced2c3880a90e482fcca372137 SHA512 3ec586afa2c3c9b040acb05e54a37b767dcf35fe0e9fe840befb0d8cd7221d2c6f91d994ce3006fb0d45666c29d79c47fdd0d3c4a3160aaf4661de077c00b903 EBUILD cutter-1.7.4.ebuild 1177 BLAKE2B d692a0279ecfe0dec8e7b6d13c0ca45e0ed3b8ba4cfd4797a8a2853e80d0fcae422939da225a45e2df2be60740d935e1cca6d9dbf1d6e27766f5293fe11a6ae6 SHA512 3f92f93fc9c9718a688c6cd0c4b5ca3a16092c87a14cab00cfdb47430067fd20fb0a651ab4f744cebf5f735e6dc517410c4ff1686490940c421195bdeb19e48e diff --git a/dev-util/cutter/cutter-1.10.1.ebuild b/dev-util/cutter/cutter-1.10.1.ebuild new file mode 100644 index 000000000000..5e855969acf6 --- /dev/null +++ b/dev-util/cutter/cutter-1.10.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +inherit qmake-utils xdg-utils python-single-r1 + +DESCRIPTION="A Qt and C++ GUI for radare2 reverse engineering framework" +HOMEPAGE="https://www.radare.org" +SRC_URI="https://github.com/radareorg/cutter/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND=" + ${PYTHON_DEPS} + >=dev-qt/qtcore-5.9.1:5 + >=dev-qt/qtgui-5.9.1:5 + >=dev-qt/qtsvg-5.9.1:5 + >=dev-qt/qtwidgets-5.9.1:5 + dev-qt/qtnetwork:5 + >=dev-util/radare2-4.3.0 +" + +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${PN}-1.8.0-python3-config.patch" + "${FILESDIR}/${PN}-1.10.1-radare2-4.3.0.patch" +) + +src_configure() { + local myqmakeargs=( + CUTTER_ENABLE_PYTHON=true + PREFIX=\'${EPREFIX}/usr\' + ) + + eqmake5 "${myqmakeargs[@]}" src +} + +src_install() { + emake INSTALL_ROOT="${D}" install +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +} diff --git a/dev-util/cutter/files/cutter-1.10.1-radare2-4.3.0.patch b/dev-util/cutter/files/cutter-1.10.1-radare2-4.3.0.patch new file mode 100644 index 000000000000..590a07063c51 --- /dev/null +++ b/dev-util/cutter/files/cutter-1.10.1-radare2-4.3.0.patch @@ -0,0 +1,12 @@ +diff -Naur cutter-1.10.1-orig/src/core/Cutter.cpp cutter-1.10.1/src/core/Cutter.cpp +--- cutter-1.10.1-orig/src/core/Cutter.cpp 2020-02-01 16:54:36.000000000 +0100 ++++ cutter-1.10.1/src/core/Cutter.cpp 2020-03-08 16:05:36.332364202 +0100 +@@ -535,7 +535,7 @@ + } + + ut64 hashLimit = getConfigut64("cfg.hashlimit"); +- r_bin_file_hash(core->bin, hashLimit, path.toUtf8().constData(), NULL); ++ r_bin_file_compute_hashes(core->bin, hashLimit); + + fflush(stdout); + return true; |