From d2f5fa9c5505a5c3df8170b498e890f50dfc9553 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 24 Jun 2023 19:27:47 +0100 Subject: gentoo auto-resync : 24:06:2023 - 19:27:47 --- sci-electronics/Manifest.gz | Bin 8718 -> 8878 bytes sci-electronics/nvc/Manifest | 4 + .../nvc/files/nvc-1.9.2-jit-code-capstone.patch | 11 +++ sci-electronics/nvc/metadata.xml | 30 ++++++ sci-electronics/nvc/nvc-1.9.2.ebuild | 104 +++++++++++++++++++++ 5 files changed, 149 insertions(+) create mode 100644 sci-electronics/nvc/Manifest create mode 100644 sci-electronics/nvc/files/nvc-1.9.2-jit-code-capstone.patch create mode 100644 sci-electronics/nvc/metadata.xml create mode 100644 sci-electronics/nvc/nvc-1.9.2.ebuild (limited to 'sci-electronics') diff --git a/sci-electronics/Manifest.gz b/sci-electronics/Manifest.gz index 6c557236409d..e5b6ecca999f 100644 Binary files a/sci-electronics/Manifest.gz and b/sci-electronics/Manifest.gz differ diff --git a/sci-electronics/nvc/Manifest b/sci-electronics/nvc/Manifest new file mode 100644 index 000000000000..691c936827fd --- /dev/null +++ b/sci-electronics/nvc/Manifest @@ -0,0 +1,4 @@ +AUX nvc-1.9.2-jit-code-capstone.patch 200 BLAKE2B f819ef52f6f47b5c2c04d7c938c82a439dc111daffad1ec92506b3d15daa6eb2182fb5384edff8ca76b3120a62085af8ddd01cf7092bea66eb37213985fd90b5 SHA512 11b9be76fb07893fa95b17006fc694faea30c522454f16183b18aa43c772d38098ba5c558ed331203530fd1eb44a37a0c85cff5f3f89d9410164cad29b635375 +DIST nvc-1.9.2.tar.gz 1487550 BLAKE2B 54105c3523e252ea4e157b352a702979297c6e45ff84f7e82d9a241d8ae6da1bb4393eb0efaec7a59c7f70631b8b5b1f511e1ef029523180e90d45a04b93af06 SHA512 b6033f1ce1017aeacccf15a0220ad0938f631ce5b7b43c6cb189d6f36fca3f4a930ff3304031b0628c133b5806a9dd1ffc087f439adf85f2fdca0954bb581174 +EBUILD nvc-1.9.2.ebuild 1835 BLAKE2B 6f0b294342d3c9774880a045f95ecd7f004a1147bf18e9c72b9054fb06b55e658b4d1dc3bbc7aa46c8316da43129f32bfbf00562546361d2a38e629cd167b83a SHA512 e66495bd3e7da25d353cced9005f93574c6f62f3df55e5b4a40de33b1e78c404f3c14142da98c684b054fb4d5947b62d83afd10c3948ae444b94807fbe4727a7 +MISC metadata.xml 1346 BLAKE2B 0d075646b3d4ae8685078b54f195d3f5f1c9245b5c9a62be99139418dc4289bfc47af662c01b8a8e60140a7a9b3261e0a2018e3faf74448f5bc8a25f1d154aad SHA512 1bdfda140908de5bab4100a68e230f035664f9d42856ce676908e9490f98b878f807ade560ae454c50e5a21033bfe913364e306f42c4c0228db5789bb144c17a diff --git a/sci-electronics/nvc/files/nvc-1.9.2-jit-code-capstone.patch b/sci-electronics/nvc/files/nvc-1.9.2-jit-code-capstone.patch new file mode 100644 index 000000000000..963226b34c6d --- /dev/null +++ b/sci-electronics/nvc/files/nvc-1.9.2-jit-code-capstone.patch @@ -0,0 +1,11 @@ +--- a/src/jit/jit-code.c ++++ b/src/jit/jit-code.c +@@ -44,7 +44,7 @@ + #endif + + #ifdef HAVE_CAPSTONE +-#include ++#include + #endif + + #ifndef R_AARCH64_MOVW_UABS_G0_NC diff --git a/sci-electronics/nvc/metadata.xml b/sci-electronics/nvc/metadata.xml new file mode 100644 index 000000000000..0218efffa50a --- /dev/null +++ b/sci-electronics/nvc/metadata.xml @@ -0,0 +1,30 @@ + + + + + + xgqt@gentoo.org + Maciej Barć + + + NVC is a VHDL compiler and simulator. NVC supports almost all of VHDL-2008 + with the exception of PSL, and it has been successfully used to simulate + several real-world designs. Experimental support for VHDL-2019 is under + development. NVC has a particular emphasis on simulation performance and + uses LLVM to compile VHDL to native machine code. NVC is not a synthesizer. + That is, it does not output something that could be used to program an FPGA + or ASIC. It implements only the simulation behaviour of the language as + described by the IEEE 1076 standard. NVC supports popular verification + frameworks including OSVVM, UVVM, and VUnit. See below for installation + instructions. + + + Build LLVM code generator + Enable experimental JIT complilation with LLVM + + + https://github.com/nickg/nvc/issues/ + nickg/nvc + ~nickg/nvc + + diff --git a/sci-electronics/nvc/nvc-1.9.2.ebuild b/sci-electronics/nvc/nvc-1.9.2.ebuild new file mode 100644 index 000000000000..f0d51228e05e --- /dev/null +++ b/sci-electronics/nvc/nvc-1.9.2.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools bash-completion-r1 llvm + +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.git" + + 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 + +LICENSE="GPL-3+" +SLOT="0" +IUSE="debug jit llvm" +REQUIRED_USE="jit? ( llvm )" +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:= + sys-libs/zlib:= + llvm? ( sys-devel/llvm:= ) +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + dev-libs/check + sys-devel/flex +" + +NVC_BUILDDIR="${NVC_SOURCEDIR}_BuildDir" +S="${NVC_BUILDDIR}" + +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() { + use llvm && llvm_pkg_setup +} + +src_unpack() { + default + + mkdir -p "${S}" || die +} + +src_prepare() { + pushd "${NVC_SOURCEDIR}" >/dev/null || die + + default + + eautoreconf + + popd >/dev/null || die +} + +src_configure() { + local ECONF_SOURCE="${NVC_SOURCEDIR}" + local -a myconf=( + --enable-verilog + --enable-vital + --with-bash-completion="$(get_bashcompdir)" + $(use_enable debug) + $(use_enable jit) + $(use_enable llvm) + ) + econf "${myconf[@]}" + + export V=1 # Verbose compilation and install. +} + +src_test() { + emake check +} + +src_install() { + default + + mv "${ED}"/"$(get_bashcompdir)"/nvc{.bash,} || die + + dostrip -x /usr/$(get_libdir)/nvc +} -- cgit v1.2.3