linamh/sci-electronics/ghdl/ghdl-2.0.0.ebuild
Mario Fetka 8a5eee90b7 sci-electronics/ghdl: update metadata
Package-Manager: Portage-3.0.30, Repoman-3.0.3
2022-04-05 13:43:50 +02:00

40 lines
843 B
Bash

# Copyright 2020-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
ADA_COMPAT=(gnat_2020 gnat_2021)
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}"
}