summaryrefslogtreecommitdiff
path: root/dev-util/emilpro
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-util/emilpro
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-util/emilpro')
-rw-r--r--dev-util/emilpro/Manifest10
-rw-r--r--dev-util/emilpro/emilpro-3-r3.ebuild65
-rw-r--r--dev-util/emilpro/emilpro-9999.ebuild64
-rw-r--r--dev-util/emilpro/files/emilpro-3-system-binutils.patch48
-rw-r--r--dev-util/emilpro/files/emilpro-9999-system-binutils.patch52
-rw-r--r--dev-util/emilpro/files/or1k-2.patch22
-rw-r--r--dev-util/emilpro/files/or1k.patch70
-rw-r--r--dev-util/emilpro/files/respect-cflags.patch12
-rw-r--r--dev-util/emilpro/metadata.xml11
9 files changed, 354 insertions, 0 deletions
diff --git a/dev-util/emilpro/Manifest b/dev-util/emilpro/Manifest
new file mode 100644
index 000000000000..8c428dfabca9
--- /dev/null
+++ b/dev-util/emilpro/Manifest
@@ -0,0 +1,10 @@
+AUX emilpro-3-system-binutils.patch 1639 BLAKE2B 2090f21225210305bc3bb26737ce7a351009cc14bbd09e99162a4c5967755690a6cf24bf3ff233ea61ce21bde497e61b60f722ac3302a093c35ce33d543f7cf4 SHA512 e80467cd91b19c6d4034cf121ff5b812638384e6a6dde6fc8c6dc1a38edb77dbd2ec259fa4e1ef6f8ff8f1a4df9e89bfc4dbaef5fab3ddd7e1020aadac6d3281
+AUX emilpro-9999-system-binutils.patch 1784 BLAKE2B 2d52a9b6bfe8f9afc7ea448415e230f2a6b29b4fed52fa043c4985158e896b201fc32d1312dc69b0fe5ebd794840bae955a6943127772489df8cd074543faad0 SHA512 1edb7f4f534f99cd1b9379040e21ba9fadadc93ecdea67f5da490d3c92d1f7526088451c00959275b6bc9ee02d683f09054d730adcaef2bdb40d77658aa238b7
+AUX or1k-2.patch 1299 BLAKE2B 3096fc122d0551fb6376f48f2f4ee78a11a760cea78a992eb306c51c3d632c615e68de796cba9c787afddcad6aaefe5a51b34ab0d2eb9c12e3d5ede3615a8ec4 SHA512 d142e5cabf6393b8d8af83391ab3e8fd9514e64a67dd6af8175c605402fdfc136cf79c0fc5a6ecd1c2f4c4dcef7a208c363e4c95ed5545d116160f80aed3e17a
+AUX or1k.patch 4386 BLAKE2B 5851de07ac3d48595a61442425123372fa39ac6cb4bcd436e2d7b832c701ab29fd6fe2a800f5fc0be0ef12d04256745ad21b205c2852acae98dabf64de6c2bfe SHA512 7ddc06d15c50095720588899b6fc8889c4184d894fe28c8e6bfca9d9bf4f38a937b4d2722d98c45883c9271e6caac4b838c381c78660233ad8bb91fac1f80bee
+AUX respect-cflags.patch 662 BLAKE2B b7aadf77fc42c717e0246d3c2bc5be58f1d10e933a726972e51a413548b8df76b76c8b0e5bdc9048e88305b0fd1c1dafbc7a625d010efa6bed4047045b136163 SHA512 5d308894752de0df6fee2f19ebc3664a0cd980a3e6babed9707db39a342ce3eb2f2c56e7680d0d9d969b3dff9059c2ef1b9cb14ea23af991b3b9e10653a0bda6
+DIST binutils-2.23.2.tar.bz2 21440347 BLAKE2B 9e85ae032d27b75fd5a868c2d59da470849a67016170b549550f28ae0aeed938e9d887d80de0e3354aa3e9956783e68ce9c0a32e9fce8783620601fb96b57599 SHA512 dec753bbba008f1526b89cf1bd85feba78f362f5333ffdf93953fd131eb755976dec82a0a4ba38c43d2434da007137780cfe674de5414be5cf7ce7fbc6af6d16
+DIST emilpro-3.tar.gz 120276 BLAKE2B 97f45f1ee4f48f936c1332dd8256ecbd4de89fb728691cf18a91d25ffdc725a9d8fc310b7a15a2c9f62d254538058871eedd56448e9e89eb369240ae43e402d4 SHA512 18a90dd672a4fb878f0da1eefacb01f159e25b28c94ea6707578deab74dbf07ee0f9d276e376f4eaff7b00c4dd7edcf5b7cbb3e5b316f4d720fe0343e1c36727
+EBUILD emilpro-3-r3.ebuild 1654 BLAKE2B e074352d7f74a808dc98db2ff3e84cf3c970d2976d1ee7e7d3736339f33b5cc35b26e0698326d69cee1a7a6cebfd07e8ebf7e68ffdeb740442554e2d188270f7 SHA512 df5a61bfcaa3f3f5d0665522c7d9e3622eb90304bcc03d2879a20f110165f5cc3ebe8ba4690c918d2c4c9fd14d940d8ffae1e8c6670b8516b5ae404b7b991f6f
+EBUILD emilpro-9999.ebuild 1579 BLAKE2B f510a5f1ad4d0f0eecc1f5c7a6362b64020ff756999c2ab46f078be5a5ad064111218b6ab9de6cffbf27c5d4a30a63f1c5459b4748008d010c9c8e8b4f38d82e SHA512 dd5005b1322ba00d6b1d323fc73c402109dada2c226eb6353beb88d3ef89d6c141cdb0656afa5ba036a4748de6098062917be14a2f52ea0305bcce3e93fd286c
+MISC metadata.xml 371 BLAKE2B 5070db4fdc4d08e734a6e06436712d07321e07e4da449530e20ae03099b347c5b4491cb7876b7ced979914b6c630d1ae8e200494b1ff94a0f2eb0ab4861a614c SHA512 133f1a99dcc7b0eaa0ed4c28334fb7ee73010987f5435d9d2ccaa1e5956ff4a9cc4f4b0fcb9f755e44fb5e0453aa9b69684a7435ac6d7d4c27bcb01dbe65117c
diff --git a/dev-util/emilpro/emilpro-3-r3.ebuild b/dev-util/emilpro/emilpro-3-r3.ebuild
new file mode 100644
index 000000000000..e40bc9b228ee
--- /dev/null
+++ b/dev-util/emilpro/emilpro-3-r3.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils eutils
+
+DESCRIPTION="a graphical disassembler for a large number of instruction sets"
+HOMEPAGE="http://www.emilpro.com/"
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/SimonKagstrom/emilpro"
+ inherit git-r3
+ KEYWORDS=""
+ SRC_URI="!system-binutils? ( mirror://gnu/binutils/binutils-2.23.2.tar.bz2 )"
+else
+ SRC_URI="http://www.emilpro.com/${P}.tar.gz
+ !system-binutils? ( mirror://gnu/binutils/binutils-2.23.2.tar.bz2 )"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="+system-binutils"
+
+DEPEND="
+ dev-cpp/gtkmm:3.0
+ dev-cpp/gtksourceviewmm:3.0
+ dev-cpp/libxmlpp:2.6
+ dev-cpp/glibmm
+ dev-cpp/pangomm
+ dev-cpp/cairomm
+ dev-libs/libsigc++:2
+ dev-libs/glib:2
+ system-binutils? ( >=sys-libs/binutils-libs-2.25.1-r2:=[multitarget] )
+ net-misc/curl
+ virtual/libelf:0="
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/respect-cflags.patch
+ if use system-binutils; then
+ epatch "${FILESDIR}"/${P}-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
+ epatch "${FILESDIR}"/or1k.patch
+ epatch "${FILESDIR}"/or1k-2.patch
+ 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
+}
diff --git a/dev-util/emilpro/emilpro-9999.ebuild b/dev-util/emilpro/emilpro-9999.ebuild
new file mode 100644
index 000000000000..3cad6fafde7f
--- /dev/null
+++ b/dev-util/emilpro/emilpro-9999.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils eutils
+
+DESCRIPTION="a graphical disassembler for a large number of instruction sets"
+HOMEPAGE="http://www.emilpro.com/"
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/SimonKagstrom/emilpro"
+ inherit git-r3
+ KEYWORDS=""
+ SRC_URI="!system-binutils? ( mirror://gnu/binutils/binutils-2.23.2.tar.bz2 )"
+else
+ SRC_URI="http://www.emilpro.com/${P}.tar.gz
+ !system-binutils? ( mirror://gnu/binutils/binutils-2.23.2.tar.bz2 )"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="+system-binutils"
+
+DEPEND="
+ dev-cpp/gtkmm:3.0
+ dev-cpp/gtksourceviewmm:3.0
+ dev-cpp/libxmlpp:2.6
+ dev-cpp/glibmm
+ dev-cpp/pangomm
+ dev-cpp/cairomm
+ dev-libs/libsigc++:2
+ dev-libs/glib:2
+ system-binutils? ( >=sys-libs/binutils-libs-2.25.1-r2:=[multitarget] )
+ net-misc/curl
+ virtual/libelf:0="
+# automagic dep
+# dev-util/capstone
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ if use system-binutils; then
+ epatch "${FILESDIR}"/${P}-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
+}
diff --git a/dev-util/emilpro/files/emilpro-3-system-binutils.patch b/dev-util/emilpro/files/emilpro-3-system-binutils.patch
new file mode 100644
index 000000000000..d73f402a3005
--- /dev/null
+++ b/dev-util/emilpro/files/emilpro-3-system-binutils.patch
@@ -0,0 +1,48 @@
+diff -Naur emilpro-3-orig/CMakeLists.txt emilpro-3/CMakeLists.txt
+--- emilpro-3-orig/CMakeLists.txt 2016-03-29 13:19:47.035441401 -0400
++++ emilpro-3/CMakeLists.txt 2016-03-29 13:18:36.650443067 -0400
+@@ -11,7 +11,6 @@
+ set (BASE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
+
+ # Dependencies
+-include (${CMAKE_CURRENT_SOURCE_DIR}/cmake/BuildBinutils.cmake)
+
+ find_package (LibElf REQUIRED)
+ find_package (PkgConfig REQUIRED)
+@@ -30,7 +29,6 @@
+ pkg_check_modules(LIBCURL libcurl)
+
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wall -D_GLIBCXX_USE_NANOSLEEP -DPACKAGE=emilpro -DPACKAGE_VERSION=1")
+-LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/install-binutils/lib ${CMAKE_BINARY_DIR}/install-binutils/lib64)
+
+ if (HAVE_BFD_MULTIARCH)
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_BFD_MULTIARCH")
+@@ -110,7 +108,6 @@
+ src/include/
+ ${CMAKE_BINARY_DIR}
+ ${LIBELF_INCLUDE_DIRS}
+- ${CMAKE_BINARY_DIR}/install-binutils/include/
+ ${GTKMM_INCLUDE_DIRS}
+ ${GTKSOURCEVIEWMM_INCLUDE_DIRS}
+ ${LIBXMLPP_INCLUDE_DIRS}
+@@ -128,8 +125,6 @@
+ tools/squash-instruction-models.cc
+ )
+
+-set_property(TARGET emilpro APPEND PROPERTY OBJECT_DEPENDS binutils)
+-set_property(TARGET tools/squash-instruction-models APPEND PROPERTY OBJECT_DEPENDS binutils)
+
+ set (BASE_LIBS
+ ${LIBELF_LIBRARIES}
+diff -Naur emilpro-3-orig/src/namemangler.cc emilpro-3/src/namemangler.cc
+--- emilpro-3-orig/src/namemangler.cc 2016-03-29 13:17:23.957444786 -0400
++++ emilpro-3/src/namemangler.cc 2016-03-29 13:18:57.306442578 -0400
+@@ -1,7 +1,7 @@
+ #include <namemangler.hh>
+
+ #include <bfd.h>
+-#include <demangle.h>
++#include <libiberty/demangle.h>
+
+ using namespace emilpro;
+
diff --git a/dev-util/emilpro/files/emilpro-9999-system-binutils.patch b/dev-util/emilpro/files/emilpro-9999-system-binutils.patch
new file mode 100644
index 000000000000..194e8d10b6e4
--- /dev/null
+++ b/dev-util/emilpro/files/emilpro-9999-system-binutils.patch
@@ -0,0 +1,52 @@
+diff -Naur emilpro-9999-orig/CMakeLists.txt emilpro-9999/CMakeLists.txt
+--- emilpro-9999-orig/CMakeLists.txt 2016-03-29 14:30:48.017340585 -0400
++++ emilpro-9999/CMakeLists.txt 2016-03-29 14:31:21.335339797 -0400
+@@ -11,7 +11,6 @@
+ set (BASE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
+
+ # Dependencies
+-include (${CMAKE_CURRENT_SOURCE_DIR}/cmake/BuildBinutils.cmake)
+
+ find_package (LibElf REQUIRED)
+ find_package (LibCapstone)
+@@ -40,10 +39,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 +115,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 +137,6 @@
+ tools/squash-instruction-models.cc
+ )
+
+-set_property(TARGET emilpro APPEND PROPERTY OBJECT_DEPENDS binutils)
+-set_property(TARGET tools/squash-instruction-models APPEND PROPERTY OBJECT_DEPENDS binutils)
+-
+ set (BASE_LIBS
+ ${LIBELF_LIBRARIES}
+ opcodes
+diff -Naur emilpro-9999-orig/src/namemangler.cc emilpro-9999/src/namemangler.cc
+--- emilpro-9999-orig/src/namemangler.cc 2016-03-29 14:30:48.017340585 -0400
++++ emilpro-9999/src/namemangler.cc 2016-03-29 14:31:06.397340150 -0400
+@@ -1,7 +1,7 @@
+ #include <namemangler.hh>
+
+ #include <bfd.h>
+-#include <demangle.h>
++#include <libiberty/demangle.h>
+
+ using namespace emilpro;
+
diff --git a/dev-util/emilpro/files/or1k-2.patch b/dev-util/emilpro/files/or1k-2.patch
new file mode 100644
index 000000000000..9dd4e195342a
--- /dev/null
+++ b/dev-util/emilpro/files/or1k-2.patch
@@ -0,0 +1,22 @@
+From 5b41e51bfb9fdeac7c6a2441badf8c3b92463fef Mon Sep 17 00:00:00 2001
+From: Alex Chernetz <andy80586@gmail.com>
+Date: Fri, 1 May 2015 14:34:31 -0700
+Subject: [PATCH] Function is print_insn_or1k, not print_insn_little_or1k
+
+---
+ src/bfd-disassembly.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/bfd-disassembly.cc b/src/bfd-disassembly.cc
+index bf3e768..eeecbe4 100644
+--- a/src/bfd-disassembly.cc
++++ b/src/bfd-disassembly.cc
+@@ -38,7 +38,7 @@ class Disassembly : public IDisassembly,
+ m_arch[bfd_arch_m68k] = BfdArch(bfd_arch_m68k, bfd_mach_m68040, print_insn_m68k); /* Motorola 68xxx */
+ m_arch[bfd_arch_vax] = BfdArch(bfd_arch_vax, 0, print_insn_vax); /* DEC Vax */
+ m_arch[bfd_arch_i960] = BfdArch(bfd_arch_i960, 0, print_insn_i960); /* Intel 960 */
+- m_arch[bfd_arch_or1k] = BfdArch(bfd_arch_or1k, 0, print_insn_little_or1k); /* OpenRISC 32 */
++ m_arch[bfd_arch_or1k] = BfdArch(bfd_arch_or1k, 0, print_insn_or1k); /* OpenRISC 32 */
+ m_arch[bfd_arch_sparc] = BfdArch(bfd_arch_sparc, 0, print_insn_sparc); /* SPARC */
+ m_arch[bfd_arch_spu] = BfdArch(bfd_arch_spu, 0, print_insn_spu); /* PowerPC SPU */
+ m_arch[bfd_arch_i860] = BfdArch(bfd_arch_i860, 0, print_insn_i860); /* Intel 860 */
diff --git a/dev-util/emilpro/files/or1k.patch b/dev-util/emilpro/files/or1k.patch
new file mode 100644
index 000000000000..e7a4392f0bdb
--- /dev/null
+++ b/dev-util/emilpro/files/or1k.patch
@@ -0,0 +1,70 @@
+From f59c5f424a268313c1fcc009fd1e40c00bf6c4f2 Mon Sep 17 00:00:00 2001
+From: Alex Chernetz <andy80586@gmail.com>
+Date: Fri, 1 May 2015 13:32:27 -0700
+Subject: [PATCH] or32 and openrisc architectures are replaced by or1k in
+ current binutils
+
+---
+ src/architecturefactory.cc | 6 ++----
+ src/bfd-disassembly.cc | 3 +--
+ 2 files changed, 3 insertions(+), 6 deletions(-)
+
+diff --git a/src/architecturefactory.cc b/src/architecturefactory.cc
+index 709b770..25ccf80 100644
+--- a/src/architecturefactory.cc
++++ b/src/architecturefactory.cc
+@@ -10,7 +10,7 @@ ArchitectureFactory::ArchitectureFactory() :
+ m_architectureNameMap[(unsigned)bfd_arch_m68k] = "m68k";
+ m_architectureNameMap[(unsigned)bfd_arch_vax] = "vax";
+ m_architectureNameMap[(unsigned)bfd_arch_i960] = "i960";
+- m_architectureNameMap[(unsigned)bfd_arch_or32] = "or32";
++ m_architectureNameMap[(unsigned)bfd_arch_or1k] = "or1k";
+ m_architectureNameMap[(unsigned)bfd_arch_sparc] = "sparc";
+ m_architectureNameMap[(unsigned)bfd_arch_mips] = "mips";
+ m_architectureNameMap[(unsigned)bfd_arch_i386] = "i386";
+@@ -68,7 +68,6 @@ ArchitectureFactory::ArchitectureFactory() :
+ m_architectureNameMap[(unsigned)bfd_arch_cris] = "cris";
+ m_architectureNameMap[(unsigned)bfd_arch_s390] = "s390";
+ m_architectureNameMap[(unsigned)bfd_arch_score] = "score";
+- m_architectureNameMap[(unsigned)bfd_arch_openrisc] = "openrisc";
+ m_architectureNameMap[(unsigned)bfd_arch_mmix] = "mmix";
+ m_architectureNameMap[(unsigned)bfd_arch_xstormy16] = "xstormy16";
+ m_architectureNameMap[(unsigned)bfd_arch_xc16x] = "xc16x";
+@@ -81,7 +80,7 @@ ArchitectureFactory::ArchitectureFactory() :
+ m_nameArchitectureMap["m68k"] = (unsigned)bfd_arch_m68k;
+ m_nameArchitectureMap["vax"] = (unsigned)bfd_arch_vax;
+ m_nameArchitectureMap["i960"] = (unsigned)bfd_arch_i960;
+- m_nameArchitectureMap["or32"] = (unsigned)bfd_arch_or32;
++ m_nameArchitectureMap["or1k"] = (unsigned)bfd_arch_or1k;
+ m_nameArchitectureMap["sparc"] = (unsigned)bfd_arch_sparc;
+ m_nameArchitectureMap["mips"] = (unsigned)bfd_arch_mips;
+ m_nameArchitectureMap["i386"] = (unsigned)bfd_arch_i386;
+@@ -139,7 +138,6 @@ ArchitectureFactory::ArchitectureFactory() :
+ m_nameArchitectureMap["cris"] = (unsigned)bfd_arch_cris;
+ m_nameArchitectureMap["s390"] = (unsigned)bfd_arch_s390;
+ m_nameArchitectureMap["score"] = (unsigned)bfd_arch_score;
+- m_nameArchitectureMap["openrisc"] = (unsigned)bfd_arch_openrisc;
+ m_nameArchitectureMap["mmix"] = (unsigned)bfd_arch_mmix;
+ m_nameArchitectureMap["xstormy16"] = (unsigned)bfd_arch_xstormy16;
+ m_nameArchitectureMap["xc16x"] = (unsigned)bfd_arch_xc16x;
+diff --git a/src/bfd-disassembly.cc b/src/bfd-disassembly.cc
+index 5cda9e2..bf3e768 100644
+--- a/src/bfd-disassembly.cc
++++ b/src/bfd-disassembly.cc
+@@ -38,7 +38,7 @@ class Disassembly : public IDisassembly,
+ m_arch[bfd_arch_m68k] = BfdArch(bfd_arch_m68k, bfd_mach_m68040, print_insn_m68k); /* Motorola 68xxx */
+ m_arch[bfd_arch_vax] = BfdArch(bfd_arch_vax, 0, print_insn_vax); /* DEC Vax */
+ m_arch[bfd_arch_i960] = BfdArch(bfd_arch_i960, 0, print_insn_i960); /* Intel 960 */
+- m_arch[bfd_arch_or32] = BfdArch(bfd_arch_or32, 0, print_insn_little_or32); /* OpenRISC 32 */
++ m_arch[bfd_arch_or1k] = BfdArch(bfd_arch_or1k, 0, print_insn_little_or1k); /* OpenRISC 32 */
+ m_arch[bfd_arch_sparc] = BfdArch(bfd_arch_sparc, 0, print_insn_sparc); /* SPARC */
+ m_arch[bfd_arch_spu] = BfdArch(bfd_arch_spu, 0, print_insn_spu); /* PowerPC SPU */
+ m_arch[bfd_arch_i860] = BfdArch(bfd_arch_i860, 0, print_insn_i860); /* Intel 860 */
+@@ -89,7 +89,6 @@ class Disassembly : public IDisassembly,
+ m_arch[bfd_arch_rl78] = BfdArch(bfd_arch_rl78, 0, print_insn_rl78);
+ m_arch[bfd_arch_rx] = BfdArch(bfd_arch_rx, 0, print_insn_rx); /* Renesas RX. */
+ m_arch[bfd_arch_s390] = BfdArch(bfd_arch_s390, bfd_mach_s390_64, print_insn_s390); /* IBM s390 */
+- m_arch[bfd_arch_openrisc] = BfdArch(bfd_arch_openrisc, 0, print_insn_openrisc); /* OpenRISC */
+ m_arch[bfd_arch_mmix] = BfdArch(bfd_arch_mmix, 0, print_insn_mmix); /* Donald Knuth's educational processor. */
+ m_arch[bfd_arch_xstormy16] = BfdArch(bfd_arch_xstormy16, 0, print_insn_xstormy16);
+ m_arch[bfd_arch_msp430] = BfdArch(bfd_arch_msp430, 0, print_insn_msp430); /* Texas Instruments MSP430 architecture. */
diff --git a/dev-util/emilpro/files/respect-cflags.patch b/dev-util/emilpro/files/respect-cflags.patch
new file mode 100644
index 000000000000..12d5bd52db5d
--- /dev/null
+++ b/dev-util/emilpro/files/respect-cflags.patch
@@ -0,0 +1,12 @@
+diff -Naur emilpro-3/CMakeLists.txt emilpro-3-cflags/CMakeLists.txt
+--- emilpro-3/CMakeLists.txt 2013-12-28 04:22:34.000000000 -0500
++++ emilpro-3-cflags/CMakeLists.txt 2014-03-18 17:59:47.534542384 -0400
+@@ -29,7 +29,7 @@
+ pkg_check_modules(LIBXMLPP libxml++-2.6)
+ pkg_check_modules(LIBCURL libcurl)
+
+-set (CMAKE_CXX_FLAGS "-std=c++0x -Wall -D_GLIBCXX_USE_NANOSLEEP -DPACKAGE=emilpro -DPACKAGE_VERSION=1")
++set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wall -D_GLIBCXX_USE_NANOSLEEP -DPACKAGE=emilpro -DPACKAGE_VERSION=1")
+ LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/install-binutils/lib ${CMAKE_BINARY_DIR}/install-binutils/lib64)
+
+ if (HAVE_BFD_MULTIARCH)
diff --git a/dev-util/emilpro/metadata.xml b/dev-util/emilpro/metadata.xml
new file mode 100644
index 000000000000..cccc81ee370e
--- /dev/null
+++ b/dev-util/emilpro/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+<email>zerochaos@gentoo.org</email>
+<name>Rick Farina</name>
+</maintainer>
+<use>
+<flag name="system-binutils">Use the gentoo binutils instead of building against an unpatched vanilla version</flag>
+</use>
+</pkgmetadata>