sci-electronics/nvc: bump to 1.20.1

Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć
2026-05-06 11:20:16 +02:00
parent dd1174a43c
commit aade7473f2
2 changed files with 125 additions and 0 deletions
+1
View File
@@ -1 +1,2 @@
DIST nvc-1.20.0.tar.gz 2330820 BLAKE2B 6f21df6cd6b0c860c59e254acadfe7b81c99cdde400fd7ff9c30dfff9b418961ebf0d550777584e6fb994036fe50a3dd1f5a2603dc9ee4b450b86edc60f4ccd7 SHA512 0fb67774b1d99e5c2cb1dc2387ee4e2c4661c4495cc71e6d06fb1d3fc27eaa3dfb3ef12b935fb67c6bfb276f985f4c6a79d1a06091f761f3d121ae044e261abf
DIST nvc-1.20.1.tar.gz 2339208 BLAKE2B 4c8d3b8de0a44c4445e5d34c80d4b64022396e41824bd1510193c70afbd5a4b141edc07a6a70d99e14359f46fa0824aef72e550ddf6545c3f534f81c0715626a SHA512 5be73559baa804057931df187d20ed9f391959d0438a81f8c27583e3671d1a226d84795a22cc578e761ab6a0d38037f2b9939759f198d05cd279f3544e099f4c
+124
View File
@@ -0,0 +1,124 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
LLVM_COMPAT=( {20..22} )
inherit autotools bash-completion-r1 llvm-r2
DESCRIPTION="NVC is a VHDL compiler and simulator"
HOMEPAGE="https://www.nickg.me.uk/nvc/
https://github.com/nickg/nvc/"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/nickg/nvc"
NVC_SOURCEDIR="${WORKDIR}/${PN}-${PV}"
else
SRC_URI="https://github.com/nickg/nvc/archive/r${PV}.tar.gz
-> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
NVC_SOURCEDIR="${WORKDIR}/${PN}-r${PV}"
fi
NVC_BUILDDIR="${NVC_SOURCEDIR}_BuildDir"
S="${NVC_BUILDDIR}"
LICENSE="GPL-3+"
SLOT="0"
IUSE="debug llvm test"
RESTRICT="test" # Some tests fail.
RDEPEND="
app-arch/bzip2:=
app-arch/zstd:=
dev-libs/capstone:=
dev-libs/elfutils
dev-libs/icu:=
dev-libs/libffi:=
dev-libs/libxml2:=
sys-libs/ncurses:=
virtual/zlib:=
llvm? (
$(llvm_gen_dep '
llvm-core/llvm:${LLVM_SLOT}=
')
)
"
DEPEND="
${RDEPEND}
"
BDEPEND="
dev-libs/check
sys-apps/which
sys-devel/bison
sys-devel/flex
test? (
dev-libs/check
)
"
PATCHES=( "${FILESDIR}/nvc-1.9.2-jit-code-capstone.patch" )
# Special libraries for NVC.
QA_FLAGS_IGNORED="usr/lib[0-9]*/nvc/preload[0-9]*.so"
pkg_setup() {
if use llvm ; then
llvm-r2_pkg_setup
fi
}
src_unpack() {
default
mkdir -p "${S}" || die
}
src_prepare() {
pushd "${NVC_SOURCEDIR}" >/dev/null || die
default
eautoreconf
popd >/dev/null || die
}
src_configure() {
# Needs "bison" and "flex" exactly.
unset LEX
unset YACC
local ECONF_SOURCE="${NVC_SOURCEDIR}"
local -a myconf=(
--enable-vital
--with-bash-completion="$(get_bashcompdir)"
$(use_enable debug)
$(use_enable llvm)
)
econf "${myconf[@]}"
export V="1" # Verbose compilation and install.
}
src_compile() {
emake -j1
}
src_test() {
local -x ASAN_OPTIONS="detect_leaks=0"
local -x PATH="${S}/bin:${PATH}"
nonfatal emake -j1 check-TESTS
}
src_install() {
default
mv "${D}/$(get_bashcompdir)"/nvc{.bash,} || die
dostrip -x "/usr/$(get_libdir)/nvc"
}