From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2C559159C9B for ; Wed, 31 Jul 2024 00:03:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 59CBD2BC0A9; Wed, 31 Jul 2024 00:03:15 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A5C2D2BC0A9 for ; Wed, 31 Jul 2024 00:03:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C7939340CB1 for ; Wed, 31 Jul 2024 00:03:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D4A521E81 for ; Wed, 31 Jul 2024 00:03:08 +0000 (UTC) From: "Maciej Barć" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" Message-ID: <1722384179.45db12010eafd30212aed9942222bf1c55c91a5b.xgqt@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-electronics/nvc/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-electronics/nvc/Manifest sci-electronics/nvc/nvc-1.13.1.ebuild X-VCS-Directories: sci-electronics/nvc/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: 45db12010eafd30212aed9942222bf1c55c91a5b X-VCS-Branch: master Date: Wed, 31 Jul 2024 00:03:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: eaccbfa6-6307-49b2-bda9-30f49e12c558 X-Archives-Hash: 3de5d6dea9ae692e2fd6eac8c60bed9e commit: 45db12010eafd30212aed9942222bf1c55c91a5b Author: Maciej Barć gentoo org> AuthorDate: Tue Jul 30 23:38:38 2024 +0000 Commit: Maciej Barć gentoo org> CommitDate: Wed Jul 31 00:02:59 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45db1201 sci-electronics/nvc: bump to 1.13.1 Signed-off-by: Maciej Barć gentoo.org> sci-electronics/nvc/Manifest | 1 + sci-electronics/nvc/nvc-1.13.1.ebuild | 116 ++++++++++++++++++++++++++++++++++ 2 files changed, 117 insertions(+) diff --git a/sci-electronics/nvc/Manifest b/sci-electronics/nvc/Manifest index 9d2a4e6c9910..08aff42ed00a 100644 --- a/sci-electronics/nvc/Manifest +++ b/sci-electronics/nvc/Manifest @@ -1 +1,2 @@ DIST nvc-1.13.0.tar.gz 1961847 BLAKE2B 5cb2e99baeb0c190ccd83535f7a5114327410b80339448eb50188147f2160a0320edaa612579c77327d7b67d51c7e312ebed6ac07bfe3ab636b3322baf050f53 SHA512 c93fa48dda45de734dafa996eda0b924f11c497feeee5e19b49be22594dcd9324abfe2e1d31c706f2d058950cd2525af46a3aa5ac61506628c3dc7af73685a39 +DIST nvc-1.13.1.tar.gz 1958325 BLAKE2B 13b8a6fdb330b23d0a6fbf26b6ba770f15d66a1c62c4491b42b0ed4aa5acc8be580f8617f313c79accef94c12f9890162d49e3997bb405dcc4c1db0564c8a940 SHA512 49ac03c5c404b899061a5a45650561fe5e60f48d89afde733a315c0d2e6e5cad00db136864d161eab7c2aa375f8d880b520d8cc744e8b2ec984096b91d3aafad diff --git a/sci-electronics/nvc/nvc-1.13.1.ebuild b/sci-electronics/nvc/nvc-1.13.1.ebuild new file mode 100644 index 000000000000..7beab1f0813a --- /dev/null +++ b/sci-electronics/nvc/nvc-1.13.1.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" +}