mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-22 23:01:02 +02:00
emilpro: bump the latest snapshot
This commit is contained in:
parent
90a9fe4e3d
commit
c1fc3c16b6
3 changed files with 115 additions and 1 deletions
62
dev-util/emilpro/emilpro-3_p20170708.ebuild
Normal file
62
dev-util/emilpro/emilpro-3_p20170708.ebuild
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils eutils git-r3
|
||||
|
||||
DESCRIPTION="Graphical disassembler for a large number of instruction sets"
|
||||
HOMEPAGE="http://www.emilpro.com/"
|
||||
|
||||
EGIT_REPO_URI="https://github.com/SimonKagstrom/emilpro.git"
|
||||
EGIT_COMMIT="0e8a615d463244a9969df3a0b92b2b77d1c61365"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="+system-binutils"
|
||||
|
||||
DEPEND="virtual/libelf:0=
|
||||
dev-cpp/gtkmm:3.0
|
||||
dev-cpp/gtksourceviewmm:3.0
|
||||
dev-cpp/libxmlpp:2.6
|
||||
net-misc/curl
|
||||
dev-libs/capstone
|
||||
sys-devel/bison
|
||||
sys-apps/texinfo
|
||||
|
||||
system-binutils? ( >=sys-libs/binutils-libs-2.25.1-r2:=[multitarget] )
|
||||
"
|
||||
|
||||
# dev-cpp/glibmm
|
||||
# dev-cpp/pangomm
|
||||
# dev-cpp/cairomm
|
||||
# dev-libs/libsigc++:2
|
||||
# dev-libs/glib:2
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
if use system-binutils; then
|
||||
epatch "${FILESDIR}"/${PN}-9999-system-binutils.patch
|
||||
else
|
||||
sed -i "s#wget -O binutils.tar.bz2 https://ftp.gnu.org/gnu/binutils/binutils-2.23.2.tar.bz2#cp \"${DISTDIR}/binutils-2.23.2.tar.bz2\" ./binutils.tar.bz2#" cmake/BuildBinutils.cmake
|
||||
fi
|
||||
cmake-utils_src_prepare
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if use system-binutils; then
|
||||
cmake-utils_src_compile
|
||||
else
|
||||
#bundled binutils is broken, always builds with one thread
|
||||
#but somehow it still fails if I don't do this
|
||||
cd "${BUILD_DIR}"
|
||||
emake -j1
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "${BUILD_DIR}"/emilpro
|
||||
}
|
||||
52
dev-util/emilpro/files/emilpro-9999-system-binutils.patch
Normal file
52
dev-util/emilpro/files/emilpro-9999-system-binutils.patch
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
--- CMakeLists.txt.orig 2017-07-12 07:29:43.000000000 +0800
|
||||
+++ CMakeLists.txt 2017-07-12 07:34:44.000000000 +0800
|
||||
@@ -10,9 +10,6 @@
|
||||
|
||||
set (BASE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
-# Dependencies
|
||||
-include (${CMAKE_CURRENT_SOURCE_DIR}/cmake/BuildBinutils.cmake)
|
||||
-
|
||||
find_package (LibElf REQUIRED)
|
||||
find_package (LibCapstone)
|
||||
find_package (PkgConfig REQUIRED)
|
||||
@@ -40,10 +37,6 @@
|
||||
pkg_check_modules(LIBCURL REQUIRED libcurl)
|
||||
|
||||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wall -D_GLIBCXX_USE_NANOSLEEP -DPACKAGE=emilpro -DPACKAGE_VERSION=1 -pthread")
|
||||
-LINK_DIRECTORIES(
|
||||
- ${CMAKE_BINARY_DIR}/install-binutils/lib ${CMAKE_BINARY_DIR}/install-binutils/lib64
|
||||
- ${CMAKE_BINARY_DIR}/binutils/libiberty
|
||||
- )
|
||||
|
||||
if (HAVE_BFD_MULTIARCH)
|
||||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_BFD_MULTIARCH")
|
||||
@@ -120,7 +113,6 @@
|
||||
set_property(SOURCE src/emilpro.cc APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_BINARY_DIR}/built_in_instruction_models.hh)
|
||||
|
||||
include_directories(
|
||||
- ${CMAKE_BINARY_DIR}/install-binutils/include/
|
||||
src/gtk/include/
|
||||
src/include/
|
||||
${CMAKE_BINARY_DIR}
|
||||
@@ -143,9 +135,6 @@
|
||||
tools/squash-instruction-models.cc
|
||||
)
|
||||
|
||||
-add_dependencies(emilpro binutils)
|
||||
-add_dependencies(tools/squash-instruction-models binutils)
|
||||
-
|
||||
set (BASE_LIBS
|
||||
${LIBELF_LIBRARIES}
|
||||
opcodes
|
||||
--- src/namemangler.cc.orig 2017-07-12 07:29:43.000000000 +0800
|
||||
+++ src/namemangler.cc 2017-07-12 07:33:50.000000000 +0800
|
||||
@@ -1,7 +1,7 @@
|
||||
#include <namemangler.hh>
|
||||
|
||||
#include <bfd.h>
|
||||
-#include <demangle.h>
|
||||
+#include <libiberty/demangle.h>
|
||||
|
||||
using namespace emilpro;
|
||||
|
||||
|
|
@ -5,7 +5,7 @@ dev-util/jenkins-bin ~amd64
|
|||
=dev-util/edb-debugger-0.9*
|
||||
~dev-util/calpp-0.90
|
||||
=dev-util/dex2jar-2.1*
|
||||
~dev-util/emilpro-3
|
||||
=dev-util/emilpro-3*
|
||||
|
||||
~dev-util/skipfish-2.10_beta
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue