From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 finch.gentoo.org (Postfix) with ESMTPS id E16781582EF for ; Sun, 09 Mar 2025 00:22:17 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id C983A343066 for ; Sun, 09 Mar 2025 00:22:17 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 1A166110370; Sun, 09 Mar 2025 00:22:14 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 13493110370 for ; Sun, 09 Mar 2025 00:22: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 B7B5C342FDE for ; Sun, 09 Mar 2025 00:22:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4CF70289D for ; Sun, 09 Mar 2025 00:22:12 +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: <1741479729.f8d79f8ff4a25fb1d6ed76f010d2eea21a89bf99.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.15.2.ebuild X-VCS-Directories: sci-electronics/nvc/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: f8d79f8ff4a25fb1d6ed76f010d2eea21a89bf99 X-VCS-Branch: master Date: Sun, 09 Mar 2025 00:22:12 +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: a3a9ecfd-688b-48f4-8c9c-4d9b6665c684 X-Archives-Hash: 2a07c4abb2f9cd6684f58b6f9ca85e68 commit: f8d79f8ff4a25fb1d6ed76f010d2eea21a89bf99 Author: Maciej Barć gentoo org> AuthorDate: Sat Mar 8 22:41:25 2025 +0000 Commit: Maciej Barć gentoo org> CommitDate: Sun Mar 9 00:22:09 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8d79f8f sci-electronics/nvc: bump to 1.15.2 Signed-off-by: Maciej Barć gentoo.org> sci-electronics/nvc/Manifest | 1 + sci-electronics/nvc/nvc-1.15.2.ebuild | 116 ++++++++++++++++++++++++++++++++++ 2 files changed, 117 insertions(+) diff --git a/sci-electronics/nvc/Manifest b/sci-electronics/nvc/Manifest index 706c4b4f859e..6bd522164ed1 100644 --- a/sci-electronics/nvc/Manifest +++ b/sci-electronics/nvc/Manifest @@ -1 +1,2 @@ DIST nvc-1.15.1.tar.gz 2112212 BLAKE2B 1a283b29dbc6b421e6eeddd72eec45b22b12c90652c6d371901f4af44113320076afd86faf6ad1dcb1727c84c0c654a9f5c820e9a054e6e660803d26d843db02 SHA512 a6c3abc365cdad0fd8a486f4223e60aac5b6eebf840e166e558f63a9c05c6ca00595f26a289082689a54fff833766f984e5e3023846db9247ae2de8e84bc86df +DIST nvc-1.15.2.tar.gz 2114293 BLAKE2B ce8211f72825c81e98b2dc5c3930bb7cac62b75ff46021732fc34dd759413a91eee0e8b7bbef4f02b6aeb8123be8ad0d72935367d664de3a4c589fecf67fbb7d SHA512 f3c5c847f0243302fdbb82c342458de72c5cc68a710f1c40bccc700c14d3171fe16f2ec0ad8068b47ccb74d53d0758a1b8cf346914b09103fe3605b938eb57fd diff --git a/sci-electronics/nvc/nvc-1.15.2.ebuild b/sci-electronics/nvc/nvc-1.15.2.ebuild new file mode 100644 index 000000000000..5770424e35be --- /dev/null +++ b/sci-electronics/nvc/nvc-1.15.2.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_COMPAT=( {18..19} ) + +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 ' + llvm-core/llvm:${LLVM_SLOT}= + ') + ) +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + dev-libs/check + sys-apps/which + 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-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" +}