diff options
Diffstat (limited to 'dev-libs/udis86/udis86-1.7.2-r1.ebuild')
-rw-r--r-- | dev-libs/udis86/udis86-1.7.2-r1.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-libs/udis86/udis86-1.7.2-r1.ebuild b/dev-libs/udis86/udis86-1.7.2-r1.ebuild new file mode 100644 index 000000000000..5cc32041f20e --- /dev/null +++ b/dev-libs/udis86/udis86-1.7.2-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) + +inherit autotools multilib-minimal python-any-r1 + +DESCRIPTION="Disassembler library for the x86/-64 architecture sets" +HOMEPAGE="http://udis86.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + test? ( + ${PYTHON_DEPS} + amd64? ( dev-lang/yasm ) + x86? ( dev-lang/yasm ) + )" + +PATCHES=( + "${FILESDIR}"/${P}-docdir.patch + "${FILESDIR}"/${P}-python3.patch +) + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + +src_prepare() { + default + eautoreconf +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf \ + --disable-static \ + --enable-shared \ + --with-pic \ + PYTHON="${EPYTHON}" +} + +multilib_src_install_all() { + einstalldocs + + # no static archives + find "${ED}" -name '*.la' -delete || die +} |