# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 if [[ ${PV} == *9999 ]]; then inherit autotools git-r3 EGIT_REPO_URI="https://github.com/svanderburg/libiff.git" else SRC_URI="https://github.com/svanderburg/libiff/archives/master.tar.gz" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" fi DESCRIPTION="libiff is a portable, extensible parser library implemented in ANSI C, for EA-IFF 85: Electronic Arts\' Interchange File Format (IFF)" HOMEPAGE="http://github.com/svanderburg/libiff" MAKEOPTS="-j1" LICENSE="MIT" SLOT="0" IUSE="static-libs test" RDEPEND="" DEPEND="${RDEPEND}" BDEPEND=" virtual/pkgconfig sys-devel/autogen" src_prepare() { default [[ ${PV} == *9999 ]] && eautoreconf } multilib_src_configure() { ECONF_SOURCE="${S}" econf \ $(use_enable static-libs static) \ $(use_enable test test) } multilib_src_install_all() { einstalldocs # package provides .pc files find "${D}" -name '*.la' -delete || die }