1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils multilib
9 DESCRIPTION="Tools for manipulating signed PE-COFF binaries"
10 HOMEPAGE="https://github.com/vathpela/pesign"
11 SRC_URI="https://github.com/vathpela/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
20 !libressl? ( dev-libs/openssl:0= )
21 libressl? ( dev-libs/libressl:0= )
31 epatch "${FILESDIR}"/destdir.patch
37 # remove some files that don't make sense for Gentoo installs
38 rm -rf "${ED}/etc/" "${ED}/usr/share/doc/pesign/" || die
41 ln -s libdpe.so "${ED}/usr/$(get_libdir)/libdpe.so.0"
49 # amd64) iarch=x86_64 ;;
50 # *) die "unsupported architecture: ${ARCH}" ;;
52 # sed -i "/^EFI_ARCH=/s:=.*:=${iarch}:" configure || die
53 # sed -i 's/-m64$/& -march=x86-64/' tests/Makefile.in || die