linamh/sci-electronics/ghdl/ghdl-2.0.0.ebuild

40 lines
833 B
Bash
Raw Normal View History

# Copyright 2020-2022 Gentoo Authors
2022-03-20 18:42:52 +01:00
# Distributed under the terms of the GNU General Public License v2
2023-07-20 20:28:34 +02:00
EAPI=8
2022-03-20 18:42:52 +01:00
2023-07-20 20:28:34 +02:00
ADA_COMPAT=(gnat_2021)
2022-03-20 18:42:52 +01:00
inherit ada multilib
DESCRIPTION="VHDL 2008/93/87 simulator"
HOMEPAGE="http://ghdl.free.fr/"
SRC_URI="https://github.com/ghdl/ghdl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="synth"
DEPEND="${ADA_DEPS}"
RDEPEND="${DEPEND}"
BDEPEND=""
REQUIRED_USE="${ADA_REQUIRED_USE}"
src_prepare() {
default
sed -e 's#$(prefix)/lib$#$(prefix)/'"$(get_libdir)"'#g' -i "${S}/Makefile.in" \
|| die 'unable to fix library install path'
}
src_configure() {
echo $EADA
ada_export GCC GNATMAKE
./configure --prefix="${EPREFIX}"/usr --disable-werror $(use_enable synth)
}
src_compile() {
ada_export GCC GNATMAKE
emake GCC="${GCC}" GNATMAKE="${GNATMAKE}"
}