From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-util/radare2/Manifest | 7 +++ .../files/radare2-fix-syscapstone-2.6.patch | 34 +++++++++++++ dev-util/radare2/metadata.xml | 15 ++++++ dev-util/radare2/radare2-2.6.0.ebuild | 58 ++++++++++++++++++++++ dev-util/radare2/radare2-2.7.0.ebuild | 56 +++++++++++++++++++++ dev-util/radare2/radare2-9999.ebuild | 56 +++++++++++++++++++++ 6 files changed, 226 insertions(+) create mode 100644 dev-util/radare2/Manifest create mode 100644 dev-util/radare2/files/radare2-fix-syscapstone-2.6.patch create mode 100644 dev-util/radare2/metadata.xml create mode 100644 dev-util/radare2/radare2-2.6.0.ebuild create mode 100644 dev-util/radare2/radare2-2.7.0.ebuild create mode 100644 dev-util/radare2/radare2-9999.ebuild (limited to 'dev-util/radare2') diff --git a/dev-util/radare2/Manifest b/dev-util/radare2/Manifest new file mode 100644 index 000000000000..c6fd0b36506b --- /dev/null +++ b/dev-util/radare2/Manifest @@ -0,0 +1,7 @@ +AUX radare2-fix-syscapstone-2.6.patch 954 BLAKE2B 9dd8ebb65f8830643a46c2302e769018ea78045eb18da7ca98adff00ebba63975b5c97eb2398d0eb33970a4102090fdee19734115170f4cbb0c4cd3863c74bbc SHA512 4412c99facdcf15bb6f3202c15e7c0a581df6eda67e5476b70f95e21540d253fdd2dd5518009c139cc7723d589f0d903a2a98f3d6ed33578b0bed2e5c2bf4242 +DIST radare2-2.6.0.tar.gz 6306317 BLAKE2B 213ed0ac92f5b4b9cfc2ba93c5cda9168746cffb0016e1368c4c3939d694bffccf689764c60e0e59a52b70b6b7d49407516c9ecd6e62c59ed0db37c6f72867f5 SHA512 44e7d0c10e17b40d4d71af851cf462c159b03b3242dfccd786bd54d3cf9f92441084f26694166dd1385e84c00626f45dbe09d1fe713595721723c468ac47b01b +DIST radare2-2.7.0.tar.gz 6483865 BLAKE2B 4052a601eb154240fb57c64bf2351063685a25e7d8ca46ad721398cd98b5e8bbec6a6daccb9f2df8e222bad74a0ffb4edc72186d7ca51b69ffbf480a7eb576ba SHA512 4a40e4917967aeef34de6ea69dd3c6d07a215e1f1272221db9af92d898e2d44997e339016b3342d69a276eb99f2d0a1e640ce8e9c889fe728dd86865e917a0fd +EBUILD radare2-2.6.0.ebuild 1187 BLAKE2B bc87ba5b9e174de19a2588bcd567ecfacd53cf8c3852242d9eaf23258369f4fee7484647c3753eb52b026117b596c2cd261f164d93b647bdb486bbb26955067e SHA512 c22851603eff958ad681d981631a58ca28dc3f4ed704d0c516c542d43a2d09a47509fee62055da4e864c2b5d258cda5c31368f52137fd7b3d7653ea49e8fe79d +EBUILD radare2-2.7.0.ebuild 1128 BLAKE2B b5491982ca5801b848892d5c6d9b06cf52f1faba10aef11a4da986ff39d554af7f4bf8dbe848901050d8878460c09c239de88093ee16ce9cc0ad380bb469d3ec SHA512 941c05b0ab8db1a3fdf0752754340b2dc0c3cb48ae373c6bcb9f5f5a52407a31dc03b715b00df6895c0e181ca57f06366384d259fb79f0b745cd3e0dc26ab651 +EBUILD radare2-9999.ebuild 1187 BLAKE2B f526fc8a5b74fd80de3291aebe2a3805bbf7bceda29552772b50fb1ce3a3dab0dbdbbbe2c1895f596dbf79f52ce27445efa43bffcc18a333951b2367db1510a6 SHA512 358c0f8116b15555cb34aec3ccc4ddccfd6c6211a1b9b882242c779f6ea0ac358c7e5dc946bd4d82ed871bfc7a01d45c621eb59ded303ad6a3cb23c1b18c8f56 +MISC metadata.xml 472 BLAKE2B 9eac8a52ecd7dae41e0cd32ff13bc02d7c936d0d36bf52309d28b9d03168ec55655ce3588df2c330c08f0779fc8c1a095c972cd6ee3deecb68a9c333d4811421 SHA512 110f9ec2d6dddd20703b9cf6ec8cd77e2459f67aca74065211dc30888cea9c9154128da8a2f15810063de9c4867e3e1a31658d3c5cb27be44824342784b67365 diff --git a/dev-util/radare2/files/radare2-fix-syscapstone-2.6.patch b/dev-util/radare2/files/radare2-fix-syscapstone-2.6.patch new file mode 100644 index 000000000000..4eb3c053f07a --- /dev/null +++ b/dev-util/radare2/files/radare2-fix-syscapstone-2.6.patch @@ -0,0 +1,34 @@ +From 3752d992f3140806ea1d513739b6f23addf52df1 Mon Sep 17 00:00:00 2001 +From: cc +Date: Tue, 22 May 2018 12:52:12 +0800 +Subject: [PATCH] fix for build with syscapstone + +--- + libr/Makefile | 9 +++++++-- + 1 file changed, 7 insertions(+), 2 deletions(-) + +diff --git a/libr/Makefile b/libr/Makefile +index 05cb40fec7..0b39b48c02 100644 +--- a/libr/Makefile ++++ b/libr/Makefile +@@ -84,13 +84,18 @@ E+=../shlr/bochs/lib/libbochs.${EXT_AR} + #E+=../shlr/sdb/src/libsdb.${EXT_AR} + #endif + ++ifeq ($(USE_CAPSTONE),1) ++E+=$(CAPSTONE_LDFLAGS) ++else ++E+=../shlr/capstone/libcapstone.${EXT_AR} ++endif ++ + libr.${EXT_SO}: .libr + $(CC) -fvisibility=hidden $(MLFLAGS) -shared -dynamiclib -o libr.${EXT_SO} \ + .libr/*.o \ + ../shlr/gdb/lib/libgdbr.${EXT_AR} ../shlr/java/libr_java.${EXT_AR} \ + ../shlr/zip/librz.${EXT_AR} \ +- ../shlr/libr_shlr.${EXT_AR} $(E)\ +- ../shlr/capstone/libcapstone.${EXT_AR} ++ ../shlr/libr_shlr.${EXT_AR} $(E) + + else + diff --git a/dev-util/radare2/metadata.xml b/dev-util/radare2/metadata.xml new file mode 100644 index 000000000000..dc1faaf6b746 --- /dev/null +++ b/dev-util/radare2/metadata.xml @@ -0,0 +1,15 @@ + + + + + slyfox@gentoo.org + Sergei Trofimovich + + + davidroman96@gmail.com + David Roman + + + Use dev-libs/capstone instead of bundled copy. + + diff --git a/dev-util/radare2/radare2-2.6.0.ebuild b/dev-util/radare2/radare2-2.6.0.ebuild new file mode 100644 index 000000000000..74ac2faaaf52 --- /dev/null +++ b/dev-util/radare2/radare2-2.6.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit bash-completion-r1 eutils + +DESCRIPTION="unix-like reverse engineering framework and commandline tools" +HOMEPAGE="http://www.radare.org" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/radare/radare2" +else + SRC_URI="https://github.com/radare/radare2/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86 ~arm ~arm64" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="ssl libressl" + +RDEPEND=" + dev-libs/capstone:0= + ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +PATCHES=( "${FILESDIR}/${PN}-fix-syscapstone-2.6.patch" ) + +src_configure() { + econf \ + --with-syscapstone \ + $(use_with ssl openssl) +} + +src_install() { + default + + insinto /usr/share/zsh/site-functions + doins doc/zsh/_* + + newbashcomp doc/bash_autocompletion.sh "${PN}" + bashcomp_alias "${PN}" rafind2 r2 rabin2 rasm2 radiff2 + + # a workaround for unstable $(INSTALL) call, bug #574866 + local d + for d in doc/*; do + if [[ -d $d ]]; then + rm -rfv "$d" || die "failed to delete '$d'" + fi + done +} diff --git a/dev-util/radare2/radare2-2.7.0.ebuild b/dev-util/radare2/radare2-2.7.0.ebuild new file mode 100644 index 000000000000..44da1cbab237 --- /dev/null +++ b/dev-util/radare2/radare2-2.7.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit bash-completion-r1 eutils + +DESCRIPTION="unix-like reverse engineering framework and commandline tools" +HOMEPAGE="http://www.radare.org" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/radare/radare2" +else + SRC_URI="https://github.com/radare/radare2/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86 ~arm ~arm64" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="ssl libressl" + +RDEPEND=" + dev-libs/capstone:0= + ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +src_configure() { + econf \ + --with-syscapstone \ + $(use_with ssl openssl) +} + +src_install() { + default + + insinto /usr/share/zsh/site-functions + doins doc/zsh/_* + + newbashcomp doc/bash_autocompletion.sh "${PN}" + bashcomp_alias "${PN}" rafind2 r2 rabin2 rasm2 radiff2 + + # a workaround for unstable $(INSTALL) call, bug #574866 + local d + for d in doc/*; do + if [[ -d $d ]]; then + rm -rfv "$d" || die "failed to delete '$d'" + fi + done +} diff --git a/dev-util/radare2/radare2-9999.ebuild b/dev-util/radare2/radare2-9999.ebuild new file mode 100644 index 000000000000..abe520e9a37a --- /dev/null +++ b/dev-util/radare2/radare2-9999.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils bash-completion-r1 + +DESCRIPTION="unix-like reverse engineering framework and commandline tools" +HOMEPAGE="http://www.radare.org" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/radare/radare2" +else + SRC_URI="https://github.com/radare/radare2/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86 ~arm ~arm64" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="ssl libressl +system-capstone" + +RDEPEND=" + ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) + system-capstone? ( dev-libs/capstone:0= ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +src_configure() { + econf \ + $(use_with ssl openssl) \ + $(use_with system-capstone syscapstone) +} + +src_install() { + default + + insinto /usr/share/zsh/site-functions + doins doc/zsh/_* + + newbashcomp doc/bash_autocompletion.sh "${PN}" + bashcomp_alias "${PN}" rafind2 r2 rabin2 rasm2 radiff2 + + # a workaround for unstable $(INSTALL) call, bug #574866 + local d + for d in doc/*; do + if [[ -d $d ]]; then + rm -rfv "$d" || die "failed to delete '$d'" + fi + done +} -- cgit v1.2.3