From 16be64511bd21e32a29645b49e37611507709790 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 18 Aug 2024 12:24:45 +0100 Subject: gentoo auto-resync : 18:08:2024 - 12:24:44 --- sci-electronics/Manifest.gz | Bin 8725 -> 8724 bytes sci-electronics/nvc/Manifest | 2 + sci-electronics/nvc/nvc-1.13.2.ebuild | 116 ++++++++++++++++++++++++++++++++++ 3 files changed, 118 insertions(+) create mode 100644 sci-electronics/nvc/nvc-1.13.2.ebuild (limited to 'sci-electronics') diff --git a/sci-electronics/Manifest.gz b/sci-electronics/Manifest.gz index db82d503c745..dfc66d14529b 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 index fa58a007fcda..aa2950991b31 100644 --- a/sci-electronics/nvc/Manifest +++ b/sci-electronics/nvc/Manifest @@ -1,6 +1,8 @@ AUX nvc-1.9.2-jit-code-capstone.patch 200 BLAKE2B f819ef52f6f47b5c2c04d7c938c82a439dc111daffad1ec92506b3d15daa6eb2182fb5384edff8ca76b3120a62085af8ddd01cf7092bea66eb37213985fd90b5 SHA512 11b9be76fb07893fa95b17006fc694faea30c522454f16183b18aa43c772d38098ba5c558ed331203530fd1eb44a37a0c85cff5f3f89d9410164cad29b635375 DIST nvc-1.13.0.tar.gz 1961847 BLAKE2B 5cb2e99baeb0c190ccd83535f7a5114327410b80339448eb50188147f2160a0320edaa612579c77327d7b67d51c7e312ebed6ac07bfe3ab636b3322baf050f53 SHA512 c93fa48dda45de734dafa996eda0b924f11c497feeee5e19b49be22594dcd9324abfe2e1d31c706f2d058950cd2525af46a3aa5ac61506628c3dc7af73685a39 DIST nvc-1.13.1.tar.gz 1958325 BLAKE2B 13b8a6fdb330b23d0a6fbf26b6ba770f15d66a1c62c4491b42b0ed4aa5acc8be580f8617f313c79accef94c12f9890162d49e3997bb405dcc4c1db0564c8a940 SHA512 49ac03c5c404b899061a5a45650561fe5e60f48d89afde733a315c0d2e6e5cad00db136864d161eab7c2aa375f8d880b520d8cc744e8b2ec984096b91d3aafad +DIST nvc-1.13.2.tar.gz 1960586 BLAKE2B 6cd7a362690be61ef9fa16bf59cc03ffa6abcc95d6e8fa28e3f5b80e732a61a6507f6fd8569111dfdd961c924adb06856b351c33140c5d989e0e8d461a081f84 SHA512 8d81949bbf8b89475ffec5729b9009203fef0c2116be4ce644dc2dc1d3ebb3158dc597f2dc7a9ac8f5fb9c5114ea01403a787964c3820091731942d95beb35bf EBUILD nvc-1.13.0.ebuild 1968 BLAKE2B 55d571f0da8264c886f71a30347c5131e8646af8990d40bbec6f8fa3c692a2716956bab5158e73d89e6586abce05c5ff4eaa836bd0ebce6ab63c70dc382928d4 SHA512 00f9248753f6db90901d986e7eaac7ca51efaedb40abc4e3b071e3dfcef04024e9b9f92540d9cfe8e5bf4952faf8db1a2de4946d8ece7fc6f4b3ae7d6ef13406 EBUILD nvc-1.13.1.ebuild 1992 BLAKE2B 30ebca75a733a863a3c3aac5b531514e3ca8eec216733fca2b6c61d11f234a01b19edfa060408889bc196ee5478e289f09ad9cfe43ec008b36f8eb3141b75100 SHA512 5ec7253f7dce95fbff143b4bcca7129aaf73f1bec14da924882af55931c790457bfc5bd9f1cbb1ab6dcbeb404f5548623ef72149e4c40dda9bfccc6567d070bb +EBUILD nvc-1.13.2.ebuild 1992 BLAKE2B 30ebca75a733a863a3c3aac5b531514e3ca8eec216733fca2b6c61d11f234a01b19edfa060408889bc196ee5478e289f09ad9cfe43ec008b36f8eb3141b75100 SHA512 5ec7253f7dce95fbff143b4bcca7129aaf73f1bec14da924882af55931c790457bfc5bd9f1cbb1ab6dcbeb404f5548623ef72149e4c40dda9bfccc6567d070bb MISC metadata.xml 1226 BLAKE2B 128540883638e57fd16a3e1620a49cc6dae4db49fcb5b6863007f9cda3af8801a2f47d0c2bf400727fde7e88b22c9c06b5c8cc8c073e150ad3046f8b37b098a2 SHA512 20ac4aa36dd420487eefa409de17ea2351f4225bf864d82817e201fc452dd9efc4ced9e6e7bae35eaf4901eb66d25da6463c82f7802a698336c5e8be6a053286 diff --git a/sci-electronics/nvc/nvc-1.13.2.ebuild b/sci-electronics/nvc/nvc-1.13.2.ebuild new file mode 100644 index 000000000000..7beab1f0813a --- /dev/null +++ b/sci-electronics/nvc/nvc-1.13.2.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_COMPAT=( {17..18} ) + +inherit autotools bash-completion-r1 llvm-r1 + +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? ( + $(llvm_gen_dep ' + sys-devel/llvm:${LLVM_SLOT}= + ') + ) +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + dev-libs/check + sys-devel/bison + sys-devel/flex +" + +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-r1_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() { + # 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