1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit cmake-utils eutils
9 DESCRIPTION="a graphical disassembler for a large number of instruction sets"
10 HOMEPAGE="http://www.emilpro.com/"
12 if [[ ${PV} == "9999" ]] ; then
13 EGIT_REPO_URI="https://github.com/SimonKagstrom/emilpro"
16 SRC_URI="mirror://gnu/binutils/binutils-2.23.2.tar.bz2"
18 SRC_URI="http://www.emilpro.com/${P}.tar.gz
19 !system-binutils? ( mirror://gnu/binutils/binutils-2.23.2.tar.bz2 )"
20 KEYWORDS="~amd64 ~x86"
25 IUSE="+system-binutils"
27 DEPEND="|| ( dev-libs/elfutils dev-libs/libelf )
29 dev-cpp/gtksourceviewmm:3.0
36 system-binutils? ( >=sys-devel/binutils-2.25.1-r1:*[multitarget] )
41 epatch "${FILESDIR}"/respect-cflags.patch
42 if use system-binutils; then
43 epatch "${FILESDIR}"/use-gentoo-binutils.patch
45 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
47 epatch "${FILESDIR}"/or1k.patch
48 epatch "${FILESDIR}"/or1k-2.patch
49 cmake-utils_src_prepare
53 if use system-binutils; then
54 cmake-utils_src_compile
56 #bundled binutils is broken, always builds with one thread
57 #but somehow it still fails if I don't do this
64 dobin "${BUILD_DIR}"/emilpro