summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2019-05-31 17:15:36 -0700
committerPalmer Dabbelt <palmer@dabbelt.com>2019-05-31 17:15:36 -0700
commita5f1f9643b448e67c428136b189169244b1da338 (patch)
tree3c4d5f5a3cedeee262c68fd406e6e78c034d6b1b
parentAdd Verilator (diff)
downloadpalmer-a5f1f9643b448e67c428136b189169244b1da338.tar.gz
palmer-a5f1f9643b448e67c428136b189169244b1da338.tar.bz2
palmer-a5f1f9643b448e67c428136b189169244b1da338.zip
dev-embedded/yosys-0.8: New ebuild
Signed-off-by: Palmer Dabbelt <palmer@dabbelt.com>
-rw-r--r--dev-embedded/yosys/.yosys-0.8.ebuild.swpbin0 -> 12288 bytes
-rw-r--r--dev-embedded/yosys/Manifest2
-rw-r--r--dev-embedded/yosys/yosys-0.8.ebuild55
3 files changed, 57 insertions, 0 deletions
diff --git a/dev-embedded/yosys/.yosys-0.8.ebuild.swp b/dev-embedded/yosys/.yosys-0.8.ebuild.swp
new file mode 100644
index 0000000..4b7cc8c
--- /dev/null
+++ b/dev-embedded/yosys/.yosys-0.8.ebuild.swp
Binary files differ
diff --git a/dev-embedded/yosys/Manifest b/dev-embedded/yosys/Manifest
new file mode 100644
index 0000000..97e4435
--- /dev/null
+++ b/dev-embedded/yosys/Manifest
@@ -0,0 +1,2 @@
+DIST berkeley-abc-ae6716b064c842f45109a88e84dca71fe4cc311f.tar.gz 5653452 BLAKE2B 55e78020d0ed22680af24f7c4a9e006a6a77a85121d9f1c60cf0ed7a38384f4041b88fbefb7a3b0d3c2b3a813e86196383de925c4ddec266e5b2ca670f847df7 SHA512 b01176ec722390a346338d70362aae915a5aa7c7fec5461341279c733cefd91b12abb6e825501c9cfbd8d1348815fb164f4670cc42f9b9e8d37d4691657ebd72
+DIST yosys-0.8.tar.gz 1118433 BLAKE2B 5b6c7b593ef50109aac37072695ab92a1bebe95d9dd0707edd88097dc874ef03d49b6117d257afbda287c6e2fcc6ab6d333b97aae19ad0c338086573a02648d1 SHA512 92364592f755b77bca5efaa99ed8050f4278a406066601a217c567e238ad2f59f9d85b7c91295dbd7125b2f9a0da74c511e238d8ae996bba1cd4aace71dc3d10
diff --git a/dev-embedded/yosys/yosys-0.8.ebuild b/dev-embedded/yosys/yosys-0.8.ebuild
new file mode 100644
index 0000000..dd5cc0f
--- /dev/null
+++ b/dev-embedded/yosys/yosys-0.8.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+PYTHON_COMPAT=( python3_{4,5,6,7} )
+inherit eutils python-any-r1
+
+# Be sure to keep this up to date with the Makefile
+ABC_HASH="ae6716b064c842f45109a88e84dca71fe4cc311f"
+
+DESCRIPTION="Yosys - Yosys Open SYnthesis Suite"
+HOMEPAGE="http://www.clifford.at/icestorm/"
+LICENSE="ISC"
+SRC_URI="https://github.com/cliffordwolf/${PN}/archive/${P}.tar.gz https://github.com/berkeley-abc/abc/archive/${ABC_HASH}.tar.gz -> berkeley-abc-${ABC_HASH}.tar.gz"
+
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+abc"
+
+RDEPEND="
+ sys-libs/readline:=
+ virtual/libffi
+ dev-vcs/git
+ dev-lang/tcl:=
+ dev-vcs/mercurial"
+
+DEPEND="
+ ${PYTHON_DEPS}
+ sys-devel/bison
+ sys-devel/flex
+ sys-apps/gawk
+ virtual/pkgconfig
+ ${RDEPEND}"
+
+S="${WORKDIR}/${PN}-${P}"
+
+src_prepare() {
+ ln -s ${WORKDIR}/abc-${ABC_HASH} abc
+ sed "s/^ABCREV = .*/ABCREV = default/g" -i Makefile
+ default
+}
+
+src_configure() {
+ emake config-gcc
+ echo "ENABLE_ABC := $(usex abc 1 0)" >> "${S}/Makefile.conf"
+}
+
+src_compile() {
+ emake PREFIX="${EPREFIX}/usr"
+}
+
+src_install() {
+ emake PREFIX="${ED}/usr" install
+}