From 59c2499e0c9720169c9d5a02168c51c807a21467 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 14 May 2024 00:01:24 +0100 Subject: gentoo auto-resync : 14:05:2024 - 00:01:24 --- sci-electronics/nvc/Manifest | 2 + sci-electronics/nvc/nvc-1.12.1.ebuild | 114 ++++++++++++++++++++++++++++++++++ 2 files changed, 116 insertions(+) create mode 100644 sci-electronics/nvc/nvc-1.12.1.ebuild (limited to 'sci-electronics/nvc') diff --git a/sci-electronics/nvc/Manifest b/sci-electronics/nvc/Manifest index bc389ceb3e79..447959dd1d32 100644 --- a/sci-electronics/nvc/Manifest +++ b/sci-electronics/nvc/Manifest @@ -1,4 +1,6 @@ AUX nvc-1.9.2-jit-code-capstone.patch 200 BLAKE2B f819ef52f6f47b5c2c04d7c938c82a439dc111daffad1ec92506b3d15daa6eb2182fb5384edff8ca76b3120a62085af8ddd01cf7092bea66eb37213985fd90b5 SHA512 11b9be76fb07893fa95b17006fc694faea30c522454f16183b18aa43c772d38098ba5c558ed331203530fd1eb44a37a0c85cff5f3f89d9410164cad29b635375 DIST nvc-1.12.0.tar.gz 1929184 BLAKE2B a344c7f483aea26fb665b94b021e6c402b24c0d653604c32260833c9b2975fb6d461241e151b52056508a394f16f7d12ba4a29139e820e5028235d3ee95f3a03 SHA512 bd33fe13105e323cd9689ca1ea865f289d7833e519e0abca1c50615532b4909abecb07c29abb27afedcd3c288801e29d61a1a85cd58d449c67f5d5638437414d +DIST nvc-1.12.1.tar.gz 1931464 BLAKE2B 7081387b81afd20d05ad69d8e29c6549e286d4b5e90ca7e044ddcc8df80d1db7a3a398b11303c7b2e90cf8863e3b7a910530b353c6664d03c2be0e18ee40379f SHA512 33df2d4be7938be381f763f33b95b09a49f5d10d3b240f280379e83d367c05f886a867fdd945acc23debb1652b52a76ca2ec0c338d87b146a02ed2c858a8960b EBUILD nvc-1.12.0.ebuild 1968 BLAKE2B 55d571f0da8264c886f71a30347c5131e8646af8990d40bbec6f8fa3c692a2716956bab5158e73d89e6586abce05c5ff4eaa836bd0ebce6ab63c70dc382928d4 SHA512 00f9248753f6db90901d986e7eaac7ca51efaedb40abc4e3b071e3dfcef04024e9b9f92540d9cfe8e5bf4952faf8db1a2de4946d8ece7fc6f4b3ae7d6ef13406 +EBUILD nvc-1.12.1.ebuild 1968 BLAKE2B 55d571f0da8264c886f71a30347c5131e8646af8990d40bbec6f8fa3c692a2716956bab5158e73d89e6586abce05c5ff4eaa836bd0ebce6ab63c70dc382928d4 SHA512 00f9248753f6db90901d986e7eaac7ca51efaedb40abc4e3b071e3dfcef04024e9b9f92540d9cfe8e5bf4952faf8db1a2de4946d8ece7fc6f4b3ae7d6ef13406 MISC metadata.xml 1226 BLAKE2B 128540883638e57fd16a3e1620a49cc6dae4db49fcb5b6863007f9cda3af8801a2f47d0c2bf400727fde7e88b22c9c06b5c8cc8c073e150ad3046f8b37b098a2 SHA512 20ac4aa36dd420487eefa409de17ea2351f4225bf864d82817e201fc452dd9efc4ced9e6e7bae35eaf4901eb66d25da6463c82f7802a698336c5e8be6a053286 diff --git a/sci-electronics/nvc/nvc-1.12.1.ebuild b/sci-electronics/nvc/nvc-1.12.1.ebuild new file mode 100644 index 000000000000..dd4ecc425726 --- /dev/null +++ b/sci-electronics/nvc/nvc-1.12.1.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_MAX_SLOT=16 + +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 + +NVC_BUILDDIR="${NVC_SOURCEDIR}_BuildDir" +S="${NVC_BUILDDIR}" + +LICENSE="GPL-3+" +SLOT="0" +IUSE="debug 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? ( + /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-verilog + --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() { + PATH="${S}/bin:${PATH}" emake check-TESTS +} + +src_install() { + default + + mv "${D}/$(get_bashcompdir)"/nvc{.bash,} || die + dostrip -x "/usr/$(get_libdir)/nvc" +} -- cgit v1.2.3