diff options
Diffstat (limited to 'sci-electronics/systemc/systemc-2.3.4.ebuild')
-rw-r--r-- | sci-electronics/systemc/systemc-2.3.4.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/sci-electronics/systemc/systemc-2.3.4.ebuild b/sci-electronics/systemc/systemc-2.3.4.ebuild new file mode 100644 index 000000000000..b9efef41568a --- /dev/null +++ b/sci-electronics/systemc/systemc-2.3.4.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PV="${PV}_pub_rev_20190614" + +inherit autotools + +DESCRIPTION="A C++ based modeling platform for VLSI and system-level co-design" +HOMEPAGE=" + https://accellera.org/community/systemc + https://github.com/accellera-official/systemc +" + +if [[ "${PV}" == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/accellera-official/${PN}.git" + inherit git-r3 +else + SRC_URI="https://github.com/accellera-official/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~x86" + S="${WORKDIR}/${PN}-${MY_PV}" +fi + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="debug static-libs test" +RESTRICT="!test? ( test )" + +DOCS=(AUTHORS.md CONTRIBUTING.md INSTALL.md LICENSE NOTICE README.md RELEASENOTES) + +src_prepare() { + default + eautoconf --force +} + +src_configure() { + econf CXX=$(tc-getCXX) \ + $(use_enable debug) \ + $(use_enable static-libs static) \ + --with-unix-layout +} + +pkg_postinst() { + elog "If you want to run the examples, you need to :" + elog " tar xvfz ${PORTAGE_ACTUAL_DISTDIR}/${A}" + elog " cd ${PN}-${MY_PV}" + elog " mkdir build && cd build" + elog " cmake .." + elog " cd examples" + elog " make check" +} |