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 06BE815803E for ; Sat, 6 Jan 2024 18:42:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8AD922BC02F; Sat, 6 Jan 2024 18:42:08 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 707372BC02F for ; Sat, 6 Jan 2024 18:42:08 +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 B50B63430F6 for ; Sat, 6 Jan 2024 18:42:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C0A7E14B5 for ; Sat, 6 Jan 2024 18:42:04 +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: <1704566521.eb659e28403037b0902f1ea864379f1884fde8c7.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.11.2.ebuild X-VCS-Directories: sci-electronics/nvc/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: eb659e28403037b0902f1ea864379f1884fde8c7 X-VCS-Branch: master Date: Sat, 6 Jan 2024 18:42:04 +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: 8469e295-1cd1-4c38-94bc-c19d0d023e72 X-Archives-Hash: c0e71dd92ca9c02b8dc42a608dc4270e commit: eb659e28403037b0902f1ea864379f1884fde8c7 Author: Maciej Barć gentoo org> AuthorDate: Sat Jan 6 18:18:05 2024 +0000 Commit: Maciej Barć gentoo org> CommitDate: Sat Jan 6 18:42:01 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb659e28 sci-electronics/nvc: bump to 1.11.2 Signed-off-by: Maciej Barć gentoo.org> sci-electronics/nvc/Manifest | 1 + sci-electronics/nvc/nvc-1.11.2.ebuild | 113 ++++++++++++++++++++++++++++++++++ 2 files changed, 114 insertions(+) diff --git a/sci-electronics/nvc/Manifest b/sci-electronics/nvc/Manifest index 6ac812cf9c20..590cde3d6651 100644 --- a/sci-electronics/nvc/Manifest +++ b/sci-electronics/nvc/Manifest @@ -1 +1,2 @@ DIST nvc-1.11.1.tar.gz 1839664 BLAKE2B fe5bb05f7590158a04af8b5e8b748b742f6a624b73add0953ae456a32084301a5a7301cf64593db7827c454678825151165fca720f53bff4bf098728f29f8fd6 SHA512 b77350fa7897105dc6dd850dbf3033a43557f73d17bd7cb36b49c493bc896bb74e47f5daa2b771b7796a64a80f377df56aafd4306bbdbe9a7756b6086ac45b49 +DIST nvc-1.11.2.tar.gz 1842005 BLAKE2B e2d616f70088cfead82931f27ff346e0343b53181c1cd1257ae38790146a0927b5a650e575a91191174c472f2d877cfe596aad879f9af0c043361eb286846648 SHA512 a129ec6a845e956cc55b2158bb8913eedd0b5a3b866726992f2d249d29b268287b60a3e2a74709d146e2bc68696f6bd3db4f1a2003c78a161037d2ae12cfa3d5 diff --git a/sci-electronics/nvc/nvc-1.11.2.ebuild b/sci-electronics/nvc/nvc-1.11.2.ebuild new file mode 100644 index 000000000000..5ed8a314d8ca --- /dev/null +++ b/sci-electronics/nvc/nvc-1.11.2.ebuild @@ -0,0 +1,113 @@ +# 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 + +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 +} + +src_install() { + default + + mv "${D}/$(get_bashcompdir)"/nvc{.bash,} || die + + dostrip -x "/usr/$(get_libdir)/nvc" +}