# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 inherit eutils toolchain-funcs autotools-utils DESCRIPTION="A SystemC Verification Library (SCV)" HOMEPAGE="http://accellera.org/community/systemc" SRC_URI="http://accellera.org/images/downloads/standards/systemc/${P}.zip" SLOT="0" LICENSE="Apache-2.0" IUSE="doc static-libs" KEYWORDS="~amd64 ~x86" RESTRICT="test" DEPEND="sci-electronics/systemc" AUTOTOOLS_IN_SOURCE_BUILD=1 src_unpack () { unpack "${A}" # dirty hack for original tarball (source unpacked in scv-2.0.0.a-20161019 dir) ln -snf "${S}-20161019" "${S}" } src_configure() { econf $(use_enable static-libs static) CXX=$(tc-getCXX)\ --with-systemc=/usr } src_install() { dodoc AUTHORS ChangeLog INSTALL NEWS README RELEASENOTES rm docs/Makefile* || die use doc && dodoc -r docs/* cd src autotools-utils_src_install }