From 4eeee822487f780361d7d47b4c1b999f93e15b27 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 18 Sep 2023 23:07:14 +0100 Subject: gentoo auto-resync : 18:09:2023 - 23:07:14 --- sci-electronics/nvc/Manifest | 2 + sci-electronics/nvc/nvc-1.10.3.ebuild | 109 ++++++++++++++++++++++++++++++++++ 2 files changed, 111 insertions(+) create mode 100644 sci-electronics/nvc/nvc-1.10.3.ebuild (limited to 'sci-electronics/nvc') diff --git a/sci-electronics/nvc/Manifest b/sci-electronics/nvc/Manifest index 0adde9c64b14..0a091bd451f6 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.10.1.tar.gz 1589523 BLAKE2B 608eaa7058cc15df11d326971454ef5d3afffa99505f43a2497e4060e75a1e1958a163d0a78ec036dca40643f006468a9dc6f49cb0a2a3d2368f4a467ad6e94d SHA512 004230b4e571d3b15563f7a2e17472bbcb8e63773d205c27426e077364fac12051617a9bb908ed376928302b266d8751091284f9d5808b3ea8dacb433d440b33 DIST nvc-1.10.2.tar.gz 1591682 BLAKE2B 6b98ffd2a35498a572627e1460ef075653d1aed917a0b21de65c4740236570ac243fade51d795752062f022b1dc2ea9f7608ca47aee1ea6161fbfb6a525f926e SHA512 f5022f0871810ae6a9a53639a7b7c9055bb3c6fd243557eac71db14167ea073c7434a287b83cfc427920cff6433d0342bb8c4d44cee3d3a2b24ad73def8a7715 +DIST nvc-1.10.3.tar.gz 1594551 BLAKE2B 0b607dfdcb0fba0edf5ca56d35786bce3e20cc7f9ecd90d0fd8ebbf492171d08fcd7f4df9ba200446fe890244d7a7fee70f5de0b22d16fb5872550fc69bc199c SHA512 cd5bae71e765c87f0c8a1f21bb4cdd1022470bd4bb9dc5ecc2d15cfa365ed0a2c0e85c4edffd9fa90080db6a44db7101a11cd6fcc134c7870d64601183994893 EBUILD nvc-1.10.1-r1.ebuild 1882 BLAKE2B d826b0031d7f82a2ae1b3503d9f384d33229d7a8a1cd21545d3c4ff6129cd6dd131d0081c9c170dbf025b0795263023cfe174dcd687b5c2d553e6b7075071408 SHA512 dadce36a14e5bdaac31e0dd0594d2e32f2c3511c507e9222545c1feaddb1f4850586a9a7c9df133de252fd7f5cb8f71ca25144fbf8ce444de5c89abf4bb72575 EBUILD nvc-1.10.2-r1.ebuild 1882 BLAKE2B d826b0031d7f82a2ae1b3503d9f384d33229d7a8a1cd21545d3c4ff6129cd6dd131d0081c9c170dbf025b0795263023cfe174dcd687b5c2d553e6b7075071408 SHA512 dadce36a14e5bdaac31e0dd0594d2e32f2c3511c507e9222545c1feaddb1f4850586a9a7c9df133de252fd7f5cb8f71ca25144fbf8ce444de5c89abf4bb72575 +EBUILD nvc-1.10.3.ebuild 1882 BLAKE2B d826b0031d7f82a2ae1b3503d9f384d33229d7a8a1cd21545d3c4ff6129cd6dd131d0081c9c170dbf025b0795263023cfe174dcd687b5c2d553e6b7075071408 SHA512 dadce36a14e5bdaac31e0dd0594d2e32f2c3511c507e9222545c1feaddb1f4850586a9a7c9df133de252fd7f5cb8f71ca25144fbf8ce444de5c89abf4bb72575 MISC metadata.xml 1301 BLAKE2B 9aa790ace1c48c1c8ae7c6b65d5ee07a396af8ae87f0969c51301a4e3a76720e33dc996d64ea8c3d7fcfb5370c37617b389890fa585e7d04d03fc06424701a36 SHA512 89ff6ff84af364d62debce74d3d6c885a0a4c4c7a48b73486923f6efe286260c377ae9e754721be6d2de1d1af4f72ede4091e9fd2898c74387a6cd35c1728de5 diff --git a/sci-electronics/nvc/nvc-1.10.3.ebuild b/sci-electronics/nvc/nvc-1.10.3.ebuild new file mode 100644 index 000000000000..412e7011f9b2 --- /dev/null +++ b/sci-electronics/nvc/nvc-1.10.3.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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 jit llvm" +REQUIRED_USE="jit? ( 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? ( sys-devel/llvm:= ) +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + dev-libs/check + sys-devel/bison + sys-devel/flex +" + +NVC_BUILDDIR="${NVC_SOURCEDIR}_BuildDir" +S="${NVC_BUILDDIR}" + +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_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() { + local ECONF_SOURCE="${NVC_SOURCEDIR}" + local -a myconf=( + --enable-verilog + --enable-vital + --with-bash-completion="$(get_bashcompdir)" + $(use_enable debug) + $(use_enable jit) + $(use_enable llvm) + ) + econf "${myconf[@]}" + + export V=1 # Verbose compilation and install. +} + +src_compile() { + emake -j1 +} + +src_test() { + emake check +} + +src_install() { + default + + mv "${ED}"/"$(get_bashcompdir)"/nvc{.bash,} || die + + dostrip -x /usr/$(get_libdir)/nvc +} -- cgit v1.2.3