mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 03:53:22 -04:00
56 lines
1.2 KiB
Bash
56 lines
1.2 KiB
Bash
# Copyright 1999-2019 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
PYTHON_COMPAT=( python3_{8,9} )
|
|
inherit eutils python-any-r1
|
|
|
|
ABC_COMMIT="ed90ce20df9c7c4d6e1db5d3f786f9b52e06bab1"
|
|
EGIT_COMMIT="c9555c9adeba886a308c60615ac794ec20d9276e"
|
|
|
|
SRC_URI="https://github.com/cliffordwolf/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${PN}-${EGIT_COMMIT}.tar.gz https://github.com/berkeley-abc/abc/archive/${ABC_COMMIT}.tar.gz -> berkeley-abc-${ABC_COMMIT}.tar.gz"
|
|
|
|
DESCRIPTION="Yosys - Yosys Open SYnthesis Suite"
|
|
HOMEPAGE="http://www.clifford.at/icestorm/"
|
|
LICENSE="ISC"
|
|
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="+abc"
|
|
|
|
RDEPEND="
|
|
sys-libs/readline:=
|
|
dev-libs/libffi:=
|
|
dev-vcs/git
|
|
dev-lang/tcl:="
|
|
|
|
DEPEND="
|
|
${PYTHON_DEPS}
|
|
sys-devel/bison
|
|
sys-devel/flex
|
|
sys-apps/gawk
|
|
virtual/pkgconfig
|
|
${RDEPEND}"
|
|
|
|
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
|
|
|
|
src_prepare() {
|
|
ln -s "${WORKDIR}/abc-${ABC_COMMIT}" 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" STRIP=true install
|
|
}
|