You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.3 KiB
55 lines
1.3 KiB
7 years ago
|
# Copyright 1999-2017 Gentoo Foundation
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=5
|
||
|
|
||
|
inherit eutils toolchain-funcs autotools-utils
|
||
7 years ago
|
MY_P="${P}a"
|
||
10 years ago
|
|
||
|
DESCRIPTION="A C++ based modeling platform for VLSI and system-level co-design"
|
||
7 years ago
|
HOMEPAGE="http://accellera.org/community/systemc"
|
||
|
SRC_URI="http://accellera.org/images/downloads/standards/${PN}/${MY_P}.tar.gz"
|
||
10 years ago
|
|
||
|
SLOT="0"
|
||
7 years ago
|
LICENSE="Apache-2.0"
|
||
10 years ago
|
IUSE="doc static-libs"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
|
||
7 years ago
|
RESTRICT="test"
|
||
10 years ago
|
|
||
|
AUTOTOOLS_IN_SOURCE_BUILD=1
|
||
|
|
||
7 years ago
|
S="${WORKDIR}/${MY_P}"
|
||
|
|
||
10 years ago
|
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}"
|
||
7 years ago
|
elog " cd ${MY_P}"
|
||
10 years ago
|
elog " find examples -name 'Makefile.*' -exec sed -i -e 's/-lm/-lm -lpthread/' '{}' \;"
|
||
|
elog " ./configure"
|
||
|
elog " cd examples"
|
||
|
elog " make check"
|
||
|
}
|