From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sci-electronics/systemc/Manifest | 8 +++ .../systemc/files/systemc-2.3.0-config.patch | 21 +++++++ sci-electronics/systemc/metadata.xml | 16 +++++ sci-electronics/systemc/systemc-2.3.0-r1.ebuild | 71 ++++++++++++++++++++++ sci-electronics/systemc/systemc-2.3.1-r1.ebuild | 54 ++++++++++++++++ 5 files changed, 170 insertions(+) create mode 100644 sci-electronics/systemc/Manifest create mode 100644 sci-electronics/systemc/files/systemc-2.3.0-config.patch create mode 100644 sci-electronics/systemc/metadata.xml create mode 100644 sci-electronics/systemc/systemc-2.3.0-r1.ebuild create mode 100644 sci-electronics/systemc/systemc-2.3.1-r1.ebuild (limited to 'sci-electronics/systemc') diff --git a/sci-electronics/systemc/Manifest b/sci-electronics/systemc/Manifest new file mode 100644 index 000000000000..6a6005af0506 --- /dev/null +++ b/sci-electronics/systemc/Manifest @@ -0,0 +1,8 @@ +AUX systemc-2.3.0-config.patch 724 SHA256 0b8b207d42211138c5eb9fb14c33220b5b6d58ab1df022141e11249e0f0837cc SHA512 aabe12c73103dd6393b00aed01b70a0d0c124fb0c521cce56f1412157085c07274f1fa41d27e15bfe5b1744342368d46b9290c4f40520b437714f09491cf26ec WHIRLPOOL 017b23d5ac172b3b8306b61ad973470f6c2644cd8d06d285661472435246dbd6d8ec87fbfd39d39706a6250a5c7e60e1d474744350e24538f5ad4e398c1270de +DIST systemc-2.3.0a.tar.gz 7084178 SHA256 b9da6e78e960543eb531b7bfaf65809320f53832744ee22af4431300e81bf8c5 SHA512 3af3c0c96a95ee75e0a6c046fdd94ee822b8fbbc1c79e7bbf9b905e7a2d3689282e6d97cfa56c93094155d79126e74f052c0f0e12f31bf4321b28a03aae347ab WHIRLPOOL b5b3fe7ab3dcf523e5b26177a787649b2793002544cf35c97aec34d1fcc9e5481f47ec8c031cb1a7ad4390876c549e2145283a31551129bde2aecb9a66209fee +DIST systemc-2.3.1a.tar.gz 7050669 SHA256 3e9d0afb5b76f5435305c2f0481b203041373d4a24776c301204c87b3e0f5c81 SHA512 cd52eb6e413c8b852e19c8387766eacbddf85e9b2f4d137f3d82d0d4025f13a44216a2e6cacf7b9e2b972584912a4a1c75cdb37a568330ce66a6bf909ca1b723 WHIRLPOOL 678b655dcf63c0d201a7be3827775baa4a79761411a5643a4132842e576fc92502b166ff876c97a546c2ed78503b2ecb4fc2319b8b651dfcc3437dd9baae26f8 +EBUILD systemc-2.3.0-r1.ebuild 1868 SHA256 251ea4577b5fdb00341b0ad02103615ec0c28c2f198af962b4c380c74c89ab6b SHA512 b3423a48b00ce4b16b93701cadaa469cb14b299b2c105aa043975fda3402a9025733fb6c9742d676d3c89cba1fec311670df3e0053f2660685965b7d5209d01c WHIRLPOOL 6b8a1ac35c07e4fcdaed3dd9911583b96092bc2d10cfe5cd6b26bdf4b6cf30625a7344240e2035e8c03f3f5c761f2757f6c5d3ff28e5c200228635f68db947b5 +EBUILD systemc-2.3.1-r1.ebuild 1332 SHA256 7cf5961a4807a2d13d2bb356dae857da750062007e9e392c674309dff45e5d78 SHA512 766d4e865078ff63b1c85185d6120ebaba75ae7cf2e9a7f8d5dd3747c5824caad0f8c9a2f5535f03aeb06da4328611bc632a44abeeb392ab09c8d6543d567c4f WHIRLPOOL 98b3917a0bd620a3748a6028674c73b30a9338232617d396a6f093cc2617454f69131e4330dccd34ddff3fdccb81a1a6a0dbde9956c26f36f095f7f233f88ee0 +MISC ChangeLog 2581 SHA256 071792326805f5826d2e6f6a8a47646cd550baeeb0741a9123be9a9aabf4852a SHA512 4b038888070b39037f3cafd3166c7b99fcaea999662c46c0e7c0d96facfd24a6f5c0d3170ff8dbbf7e4478c6d279fd8020696a5a0c173ed815abdbbe1951bca5 WHIRLPOOL 374b2cf92e3eb9d606de542860c0a952f0ade412f99af878b4edd22d7de33e796ed407ae50d59025049ff0b9bdae303027fd0d4c8c087515bee6436ac5057f66 +MISC ChangeLog-2015 3307 SHA256 08bb8dd01d817ee2cbb893300015dc969da46a88588206424677b9357a5412ee SHA512 b257974a55add6551dc0557034325b23c06de373cc385d36b7b30a32a81d1e1425bfd79661fe6fd4fe91106c9039b820fa1404d86cb9d4f9bf32f9615925b2fc WHIRLPOOL f2daf12b3cc297809e80a50403860b112b125ff0c5f8695cf2b9d14dfca76abe9f41cdeb9917320043caf847b4e4980e3769f9a4c183c5651b3e08fa93ccf436 +MISC metadata.xml 744 SHA256 d34cba115628a88e8a6b85546b009b664671a548f8a8fd80e1121fa42c715866 SHA512 2a27599c7a3fa1167892fdef844b5bfc56b908a3af4c28d097feda7cd960dddf37d2fca1241ee278d3da62b2c711191f5d3058986acff31ce70bbbdcea01812b WHIRLPOOL aa0e06fc7b2819035f299a802c40d0430a0290127e8e7429947eb05f85876f81628d9fddb1bc938bb95e194e7a1424b98c851acb10a8f5cc9be5812548cb7ada diff --git a/sci-electronics/systemc/files/systemc-2.3.0-config.patch b/sci-electronics/systemc/files/systemc-2.3.0-config.patch new file mode 100644 index 000000000000..581e625c6113 --- /dev/null +++ b/sci-electronics/systemc/files/systemc-2.3.0-config.patch @@ -0,0 +1,21 @@ +# drop compiler check to enable use of CXX +--- configure.in.old 2013-09-15 09:38:54.000000000 +0200 ++++ configure.in 2013-09-15 09:40:31.000000000 +0200 +@@ -134,15 +134,8 @@ + AC_MSG_ERROR("sorry...architecture not supported") + ;; + esac +- case "$CXX_COMP" in +- c++ | g++) +- EXTRA_CXXFLAGS="${EXTRA_CXXFLAGS} -m${CPU_ARCH}" +- EXTRA_ASFLAGS="-m${CPU_ARCH}" +- ;; +- *) +- AC_MSG_ERROR("sorry...compiler not supported") +- ;; +- esac ++ EXTRA_CXXFLAGS="${EXTRA_CXXFLAGS} -m${CPU_ARCH}" ++ EXTRA_ASFLAGS="-m${CPU_ARCH}" + ;; + *freebsd*) + case "$target_cpu" in diff --git a/sci-electronics/systemc/metadata.xml b/sci-electronics/systemc/metadata.xml new file mode 100644 index 000000000000..5915c6eed97e --- /dev/null +++ b/sci-electronics/systemc/metadata.xml @@ -0,0 +1,16 @@ + + + + + sci-electronics@gentoo.org + Gentoo Electronics Project + + + SystemC provides hardware-oriented constructs within the context of C++ + as a class library implemented in standard C++. Its use spans design and + verification from concept to implementation in hardware and software. + SystemC provides an interoperable modeling platform which enables the + development and exchange of very fast system-level C++ models. It also + provides a stable platform for development of system-level tools. + + diff --git a/sci-electronics/systemc/systemc-2.3.0-r1.ebuild b/sci-electronics/systemc/systemc-2.3.0-r1.ebuild new file mode 100644 index 000000000000..0807538938a2 --- /dev/null +++ b/sci-electronics/systemc/systemc-2.3.0-r1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit eutils multilib toolchain-funcs autotools-utils +MY_P="${P}a" + +DESCRIPTION="A C++ based modeling platform for VLSI and system-level co-design" +HOMEPAGE="http://accellera.org/community/systemc" +SRC_URI="http://accellera.org/images/downloads/standards/${PN}/${MY_P}.tar.gz" + +SLOT="0" +LICENSE="Apache-2.0" +IUSE="doc static-libs" +KEYWORDS="~amd64 ~x86" + +RESTRICT="test" + +AUTOTOOLS_IN_SOURCE_BUILD=1 + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # drop compiler check to enable use of CXX + epatch "${FILESDIR}"/${P}-config.patch + + sed -i -e "s:OPT_CXXFLAGS=\"-O3\":OPT_CXXFLAGS=\"\":g" configure.in || die "Patching configure.in failed" + + sed -i -e "s:lib-\$(TARGET_ARCH):$(get_libdir):g" $(find . -name Makefile.am) || die "Patching Makefile.am failed" + + # respect DESTDIR + sed -i -e "s:\$(prefix):\$(DESTDIR)\$(prefix):g" $(find . -name Makefile.am) || die "Patching Makefile.am failed" + + eautoreconf + + sed -i -e "s:\$(DESTDIR)\$(libdir):\$(libdir):g" src/sysc/Makefile.in || die + + for sfile in src/sysc/qt/md/*.s ; do + sed -i -e '$a \ +#if defined(__linux__) && defined(__ELF__) \ +.section .note.GNU-stack,"",%progbits \ +#endif' "${sfile}" || die "Patching ${sfile} failed" + done +} + +src_configure() { + econf $(use_enable static-libs static) CXX=$(tc-getCXX) +} + +src_compile() { + cd src + default +} + +src_install() { + dodoc AUTHORS ChangeLog INSTALL NEWS README RELEASENOTES + use doc && dodoc -r docs/* + cd src + autotools-utils_src_install +} + +pkg_postinst() { + elog "If you want to run the examples, you need to :" + elog " tar xvfz ${PORTAGE_ACTUAL_DISTDIR}/${A}" + elog " cd ${MY_P}" + elog " find examples -name 'Makefile.*' -exec sed -i -e 's/-lm/-lm -lpthread/' '{}' \;" + elog " ./configure" + elog " cd examples" + elog " make check" +} diff --git a/sci-electronics/systemc/systemc-2.3.1-r1.ebuild b/sci-electronics/systemc/systemc-2.3.1-r1.ebuild new file mode 100644 index 000000000000..bd72930845c8 --- /dev/null +++ b/sci-electronics/systemc/systemc-2.3.1-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils toolchain-funcs autotools-utils +MY_P="${P}a" + +DESCRIPTION="A C++ based modeling platform for VLSI and system-level co-design" +HOMEPAGE="http://accellera.org/community/systemc" +SRC_URI="http://accellera.org/images/downloads/standards/${PN}/${MY_P}.tar.gz" + +SLOT="0" +LICENSE="Apache-2.0" +IUSE="doc static-libs" +KEYWORDS="~amd64 ~x86" + +RESTRICT="test" + +AUTOTOOLS_IN_SOURCE_BUILD=1 + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + for sfile in src/sysc/qt/md/*.s ; do + sed -i -e '$a \ +#if defined(__linux__) && defined(__ELF__) \ +.section .note.GNU-stack,"",%progbits \ +#endif' "${sfile}" || die "Patching ${sfile} failed" + done +} + +src_configure() { + econf $(use_enable static-libs static) CXX=$(tc-getCXX)\ + --with-unix-layout +} + +src_install() { + dodoc AUTHORS ChangeLog INSTALL NEWS README RELEASENOTES + rm docs/Makefile* || die + use doc && dodoc -r docs/* + cd src + autotools-utils_src_install +} + +pkg_postinst() { + elog "If you want to run the examples, you need to :" + elog " tar xvfz ${PORTAGE_ACTUAL_DISTDIR}/${A}" + elog " cd ${MY_P}" + elog " find examples -name 'Makefile.*' -exec sed -i -e 's/-lm/-lm -lpthread/' '{}' \;" + elog " ./configure" + elog " cd examples" + elog " make check" +} -- cgit v1.2.3