diff options
author | Maciej Barć <xgqt@gentoo.org> | 2024-09-03 18:54:03 +0200 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2024-09-03 20:44:39 +0200 |
commit | 3032ecd87df56b21a7ca4ff1a609dec7d58344c1 (patch) | |
tree | 0c9fc74e547936b17b6366be7c59cd707be2c991 /sci-electronics/nvc | |
parent | sci-electronics/nvc: drop old 1.13.1 (diff) | |
download | gentoo-3032ecd87df56b21a7ca4ff1a609dec7d58344c1.tar.gz gentoo-3032ecd87df56b21a7ca4ff1a609dec7d58344c1.tar.bz2 gentoo-3032ecd87df56b21a7ca4ff1a609dec7d58344c1.zip |
sci-electronics/nvc: bump to 1.13.3
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'sci-electronics/nvc')
-rw-r--r-- | sci-electronics/nvc/Manifest | 1 | ||||
-rw-r--r-- | sci-electronics/nvc/nvc-1.13.3.ebuild | 116 |
2 files changed, 117 insertions, 0 deletions
diff --git a/sci-electronics/nvc/Manifest b/sci-electronics/nvc/Manifest index 1306b3f83172..5108a188c853 100644 --- a/sci-electronics/nvc/Manifest +++ b/sci-electronics/nvc/Manifest @@ -1 +1,2 @@ DIST nvc-1.13.2.tar.gz 1960586 BLAKE2B 6cd7a362690be61ef9fa16bf59cc03ffa6abcc95d6e8fa28e3f5b80e732a61a6507f6fd8569111dfdd961c924adb06856b351c33140c5d989e0e8d461a081f84 SHA512 8d81949bbf8b89475ffec5729b9009203fef0c2116be4ce644dc2dc1d3ebb3158dc597f2dc7a9ac8f5fb9c5114ea01403a787964c3820091731942d95beb35bf +DIST nvc-1.13.3.tar.gz 1963182 BLAKE2B c03cb06b8e94e6d5c139ec4da17d6665cb5ce899fabe0ffe60459681aad329ddf9ac6ad9082515e3be76fd32aad56a6c0c89c02c0f22a55ea15a8a3a9e61e763 SHA512 c65904762081429660998f59ec25fbbdc8084a7472be06bad99e42457f5eca5516a65f472a8960cbd9dc0b0a6f5ccfa0d6a8b3d238805ab0120c046bbe56ff3b diff --git a/sci-electronics/nvc/nvc-1.13.3.ebuild b/sci-electronics/nvc/nvc-1.13.3.ebuild new file mode 100644 index 000000000000..7beab1f0813a --- /dev/null +++ b/sci-electronics/nvc/nvc-1.13.3.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" +} |