dev-util/radare2: drop USE=-system-capstone
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 28 Apr 2018 12:20:47 +0000 (13:20 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 28 Apr 2018 12:21:04 +0000 (13:21 +0100)
Enable system capstone unconditionally for releases.
radare2 does not ship bundled capstone in 2.5.0.

Reported-by: Michael Palimaka (kensington)
Closes: https://bugs.gentoo.org/645552
Package-Manager: Portage-2.3.31, Repoman-2.3.9

dev-util/radare2/files/radare2-0.9.9-nogit.patch [deleted file]
dev-util/radare2/radare2-2.5.0.ebuild
dev-util/radare2/radare2-9999.ebuild

diff --git a/dev-util/radare2/files/radare2-0.9.9-nogit.patch b/dev-util/radare2/files/radare2-0.9.9-nogit.patch
deleted file mode 100644 (file)
index 9a6979e..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-capstone-sync does not work correctly for release tarballs.
-It tries to sync/revert from upstream git repo unconditionaly.
-diff --git a/shlr/Makefile b/shlr/Makefile
-index a1796ce..f8d179a 100644
---- a/shlr/Makefile
-+++ b/shlr/Makefile
-@@ -144,5 +144,5 @@ else
- ifeq ($(CS_TAR),)
--capstone: capstone-sync
-+capstone: # capstone-sync
- capstone-sync:
index abe520e9a37a7ac9f05dafd0cacecb5777933da7..e054a7433d6f8ea02be4f544e125c987434b5845 100644 (file)
@@ -18,14 +18,14 @@ fi
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="ssl libressl +system-capstone"
+IUSE="ssl libressl"
 
 RDEPEND="
+       dev-libs/capstone:0=
        ssl? (
                !libressl? ( dev-libs/openssl:0= )
                libressl? ( dev-libs/libressl:0= )
        )
-       system-capstone? ( dev-libs/capstone:0= )
 "
 DEPEND="${RDEPEND}
        virtual/pkgconfig
@@ -33,8 +33,8 @@ DEPEND="${RDEPEND}
 
 src_configure() {
        econf \
-               $(use_with ssl openssl) \
-               $(use_with system-capstone syscapstone)
+               --with-syscapstone \
+               $(use_with ssl openssl)
 }
 
 src_install() {
index 89e71ebcc423ba70d53deb104ac48244d7d2afd3..abe520e9a37a7ac9f05dafd0cacecb5777933da7 100644 (file)
@@ -14,7 +14,6 @@ if [[ ${PV} == *9999 ]]; then
 else
        SRC_URI="https://github.com/radare/radare2/archive/${PV}.tar.gz -> ${P}.tar.gz"
        KEYWORDS="~amd64 ~x86 ~arm ~arm64"
-       PATCHES=( "${FILESDIR}"/${PN}-0.9.9-nogit.patch )
 fi
 
 LICENSE="GPL-2"