capstone: varios QA fixes w/o bump

This commit is contained in:
Anton Bolshakov 2014-01-01 13:45:13 +00:00
parent eb4cb6eedb
commit 7c415d47eb
3 changed files with 39 additions and 3 deletions

View file

@ -1,2 +1,4 @@
AUX capstone-coname.patch 602 SHA256 88bc05269ee6e2e6bfd0159ebcd469ba2606079638967aeac7e85c9075621c26 SHA512 8928e1d6f1a00cf4ba7401270e029c687d14b6c23deedb945c5c87a97887973ba66cdfec3b8bee87d2a66af9fa4181881c108fd117c03ac17d7b9198412795db WHIRLPOOL 22dd9f955803cf697d74538f7d2a93e3fda5124755e3c0a5c03d7fbcb1b1fbe61c66c0e83c1fb44388c6951aa64c5b72c362e8f19816e2a235f0d88de0270f8c
AUX capstone-lib.patch 466 SHA256 76a00856c56d6cb10b11c1fdc88aee859f293004fc4259383f95286633a663ac SHA512 d56bdda1ff414c62b011fd70c1b3bb16a56f7ca30790984bd44df7642077ba88a88c6217c6f3c22f649d5dff16de5bf5bc3c73fdf312ca8d7b833125d2231b70 WHIRLPOOL a29346d557a47cd8d84c1427e6f38429f6021937136c155f01e9fe7d84973f3a99d9fa292f0d71a96461068a7b5384f85a985c9b3b288705594adf04855e7d42
DIST capstone-1.0.tgz 1635062 SHA256 3fb3512b0476d03dcd1b347b0ff6b966216bf6d0158f79374aec4aa67cd30eca SHA512 bdcc0a40f5c212c4fa280cd94af1580b49a0b64ef87db744c37856056a80987a06b2932c48ba0a88e221dead23913c83818efcd3a611debb728b565711022b13 WHIRLPOOL b39ff8e934af33fea957fbbe4ee3f697af4ef35b9065879754d1432c8eb4c27960ff50946e55d541323ba41cf10c05b50d62d5eaef8e47e52f4961eeb66e29e7
EBUILD capstone-1.0.ebuild 727 SHA256 3e6f93e3644993b6b392b54fd0c7488fee9dc0d8de63e4b7bdd08e77d1ef0a3d SHA512 1d3586b5f2b4d3117f1883e2164224b9a9252187b6fad7943a9acc62ac08c081b5ff98c6b40755c686712ff3cf7e56e16ad4013be3ad433111b5ff032c31a7c7 WHIRLPOOL 192331dc891fe64e933a50e71d1ee095a20e7aa2b5116aaca367f954695a150a89c00d2173a8d2cdb467317510c97343efdfb256ac59ddb929d9a6895075d10e
EBUILD capstone-1.0.ebuild 958 SHA256 6477eb07166099cc6048fcfdc909d4b9ecb6315f5d4adefbb11229f2142d77dd SHA512 9749f1334efa9582ccdc38a5cd8a16dd7035eabe6a1fc963685917d402aab62952624beb97f909f31a754e81c25c0c6d3c190cc53a6ad02314f6fafe538e9bcc WHIRLPOOL 9a9640b0a5c98472b54c0162906dd43f85e89d65353a1a1be7573d90431aac7223be868efa3317df3051f565779bcfa3f5cfb07609ca5a6958c02e2d7783f591

View file

@ -4,7 +4,7 @@
EAPI=5
inherit multilib
inherit eutils multilib
DESCRIPTION="A lightweight multi-platform, multi-architecture disassembly framework"
HOMEPAGE="http://www.capstone-engine.org/"
@ -16,7 +16,11 @@ KEYWORDS="~amd64 ~arm ~x86"
#TODO: add java and python bindings
src_compile() {
src_prepare() {
epatch "${FILESDIR}/${PN}-coname.patch"
#https://github.com/aquynh/capstone/issues/57
sed -e 's|${CC} $(CFLAGS)|$(CC) $(LDFLAGS) $(CFLAGS)|g' -i tests/Makefile || die "sed failed"
#https://github.com/aquynh/capstone/issues/51
sed -e 's:$(PREFIX)/lib:$(PREFIX)/'"$(get_libdir)"':' -i Makefile
}

View file

@ -0,0 +1,30 @@
--- Makefile (old copy)
+++ Makefile (working copy)
@@ -47,13 +47,11 @@ ifneq (,$(findstring aarch64,$(CAPSTONE_ARCHS)))
endif
LIBOBJ += MCInst.o
-EXT = so
-AR_EXT = a
-
# OSX?
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
EXT = dylib
+AR_EXT = a
else
# Cygwin?
IS_CYGWIN := $(shell $(CC) -dumpmachine | grep -i cygwin | wc -l)
@@ -72,6 +70,11 @@ AR_EXT = dll.a
# mingw doesn't like -fPIC either
CFLAGS := $(CFLAGS:-fPIC=)
# On Windows we need the shared library to be executable
+else
+# Linux, *BSD
+EXT = so
+AR_EXT = a
+LDFLAGS += -Wl,-soname,$(LIBRARY)
endif
endif
endif