diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-electronics/systemc | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-electronics/systemc')
-rw-r--r-- | sci-electronics/systemc/Manifest | 3 | ||||
-rw-r--r-- | sci-electronics/systemc/files/systemc-2.3.0-config.patch | 21 | ||||
-rw-r--r-- | sci-electronics/systemc/metadata.xml | 13 | ||||
-rw-r--r-- | sci-electronics/systemc/systemc-2.2.0-r2.ebuild | 67 | ||||
-rw-r--r-- | sci-electronics/systemc/systemc-2.3.0.ebuild | 76 | ||||
-rw-r--r-- | sci-electronics/systemc/systemc-2.3.1.ebuild | 59 |
6 files changed, 239 insertions, 0 deletions
diff --git a/sci-electronics/systemc/Manifest b/sci-electronics/systemc/Manifest new file mode 100644 index 000000000000..fecaf6143f90 --- /dev/null +++ b/sci-electronics/systemc/Manifest @@ -0,0 +1,3 @@ +DIST systemc-2.2.0.tgz 2050634 SHA256 fd7db3ac2b547bf54c94c0310f15f079ed59ffa318ed5b0043a65410960859e7 SHA512 221e411d8037bd75ce4c5ced858351dd7e24554cdf541ece35f087fae7c9905315be4ebde5210f365dba9594167affe37f267ccf10b01ddb82fa5c980b2affc7 WHIRLPOOL 85cce5a92f7c912a11bb7bdd5817f410b2ed11d85ff9d6d8c82ba42fc436bc2ad2802d7cabc2f0b8dd05800f69cc92fdd7166afbd7329cfccc709fcff3cecc02 +DIST systemc-2.3.0.tgz 7209233 SHA256 20e52b1f42ea18dd0dbeab354161fb70a7dac87c294e00499f63514a12ab8b2a SHA512 38a349fd16a76cc7b27f54d096482ed7d253b25d25c5304806f7cc72b1bc8f32f8fd627ab023b23f8491023913a3172c11351fe5b2c8b7b9d80fb60fe687ab22 WHIRLPOOL 87c130a563fec5e36f208776e4b005851562aec73cf859c9151fdae6f1f16dca51cbdc359f6268b2a25fa7e48e2a9bdbd58b4d2e6107cc22e60fa23cac43810b +DIST systemc-2.3.1.tgz 7291190 SHA256 7ce0f68fd4759e746a9808936b54e62d498f5b583e83fc47758ca86917b4f800 SHA512 e150f90ceb2fcab099956afb6a119a47d7dcac82ba100bb52734b12acff47fdb1210168cfb97d89701a40c561befb5ea9bec23bc9e66a3bd908409c14092776e WHIRLPOOL 992d29e6a4adc2da3c1e5ea5421c85b22c99b857a3640154f02622d9d6260db4c02846aa4326aa5bce1c165d01a40fc0963fb38273cab3a4b9cd3d2877ea0aaa 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..b2e59d373fab --- /dev/null +++ b/sci-electronics/systemc/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>sci-electronics</herd> + <longdescription> + 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. + </longdescription> +</pkgmetadata> diff --git a/sci-electronics/systemc/systemc-2.2.0-r2.ebuild b/sci-electronics/systemc/systemc-2.2.0-r2.ebuild new file mode 100644 index 000000000000..61e52e80f9b1 --- /dev/null +++ b/sci-electronics/systemc/systemc-2.2.0-r2.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit versionator multilib toolchain-funcs + +DESCRIPTION="A C++ based modeling platform for VLSI and system-level co-design" +HOMEPAGE="http://www.systemc.org/" +SRC_URI="${P}.tgz" + +SLOT="0" +LICENSE="SOPLA-2.3" +IUSE="" +KEYWORDS="~amd64 ~x86" + +RESTRICT="fetch test" + +pkg_nofetch() { + elog "${PN} developers require end-users to accept their license agreement" + elog "by registering on their Web site (${HOMEPAGE})." + elog "Please download ${A} manually and place it in ${DISTDIR}." +} + +src_prepare() { + sed -i -e "s:lib-\$(TARGET_ARCH):$(get_libdir):g" $(find . -name Makefile.in) || die "Patching Makefile.in failed" + + sed -i -e "s:OPT_CXXFLAGS=\"-O3\":OPT_CXXFLAGS=\"${CXXFLAGS}\":g" configure || die "Patching configure failed" + + sed -i -e '/#include "sysc\/utils\/sc_report.h"/a \ +#include <cstdlib> \ +#include <cstring>' src/sysc/utils/sc_utils_ids.cpp || die "Patching failed" + + 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 --disable-dependency-tracking CXX=$(tc-getCXX) +} + +src_compile() { + cd src + default +} + +src_install() { + dodoc AUTHORS ChangeLog INSTALL NEWS README RELEASENOTES + doins -r docs + cd src + default +} + +pkg_postinst() { + elog "If you want to run the examples, you need to :" + elog " tar xvfz ${PORTAGE_ACTUAL_DISTDIR}/${A}" + elog " cd ${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.0.ebuild b/sci-electronics/systemc/systemc-2.3.0.ebuild new file mode 100644 index 000000000000..ef729877cef0 --- /dev/null +++ b/sci-electronics/systemc/systemc-2.3.0.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils multilib toolchain-funcs autotools-utils + +DESCRIPTION="A C++ based modeling platform for VLSI and system-level co-design" +HOMEPAGE="http://www.systemc.org/" +SRC_URI="${P}.tgz" + +SLOT="0" +LICENSE="SOPLA-3.0" +IUSE="doc static-libs" +KEYWORDS="~amd64 ~x86" + +RESTRICT="fetch test" + +AUTOTOOLS_IN_SOURCE_BUILD=1 + +pkg_nofetch() { + elog "${PN} developers require end-users to accept their license agreement" + elog "by registering on their Web site (${HOMEPAGE})." + elog "Please download ${A} manually and place it in ${DISTDIR}." +} + +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 + rm docs/License.pdf || 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 ${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.ebuild b/sci-electronics/systemc/systemc-2.3.1.ebuild new file mode 100644 index 000000000000..9638dfc0b732 --- /dev/null +++ b/sci-electronics/systemc/systemc-2.3.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils toolchain-funcs autotools-utils + +DESCRIPTION="A C++ based modeling platform for VLSI and system-level co-design" +HOMEPAGE="http://www.systemc.org/" +SRC_URI="${P}.tgz" + +SLOT="0" +LICENSE="SOPLA-3.0" +IUSE="doc static-libs" +KEYWORDS="~amd64 ~x86" + +RESTRICT="fetch test" + +AUTOTOOLS_IN_SOURCE_BUILD=1 + +pkg_nofetch() { + elog "${PN} developers require end-users to accept their license agreement" + elog "by registering on their Web site (${HOMEPAGE})." + elog "Please download ${A} manually and place it in ${DISTDIR}." +} + +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/SystemC_Open_Source_License.pdf || die + 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 ${P}" + elog " find examples -name 'Makefile.*' -exec sed -i -e 's/-lm/-lm -lpthread/' '{}' \;" + elog " ./configure" + elog " cd examples" + elog " make check" +} |