diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-12-08 05:11:05 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-12-08 05:11:05 +0000 |
commit | ac778f2cf394586c43beb5d753a19ff3f6063556 (patch) | |
tree | 9015459d4bfc90b4ad8f40df9dc3365f8adf9758 /sci-electronics/nvc | |
parent | ce7471cce94841a4e1ee35d359b9ce5e16fc3243 (diff) |
gentoo auto-resync : 08:12:2023 - 05:11:04
Diffstat (limited to 'sci-electronics/nvc')
-rw-r--r-- | sci-electronics/nvc/Manifest | 2 | ||||
-rw-r--r-- | sci-electronics/nvc/nvc-1.11.0.ebuild | 114 |
2 files changed, 116 insertions, 0 deletions
diff --git a/sci-electronics/nvc/Manifest b/sci-electronics/nvc/Manifest index 9e7ca1c44d3b..f66114e6db11 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.3.tar.gz 1594551 BLAKE2B 0b607dfdcb0fba0edf5ca56d35786bce3e20cc7f9ecd90d0fd8ebbf492171d08fcd7f4df9ba200446fe890244d7a7fee70f5de0b22d16fb5872550fc69bc199c SHA512 cd5bae71e765c87f0c8a1f21bb4cdd1022470bd4bb9dc5ecc2d15cfa365ed0a2c0e85c4edffd9fa90080db6a44db7101a11cd6fcc134c7870d64601183994893 DIST nvc-1.10.4.tar.gz 1595656 BLAKE2B bea13b231dbbc191c6bfb2c52014d2486fc5ba86c12910d289f4308037d5d64f030a050ff6f4f1755e5ad0e8dd1b17ed4dac11cf360f72084d9e704495518b4a SHA512 49638b0a661a34985ef944d955292e93b0f9d9aca3e8a616308ddcca4537bee996ac8e91dc632e882ddb36b6e95d6df9f013a87b480276270759293585e19e22 +DIST nvc-1.11.0.tar.gz 1839019 BLAKE2B f21317bd4941621d5bcbe5dda43b3b1a0e37e15b5783474c33d2ad840cfd1c6d5aea4873cbf2e41b1dd3fe816eebca6b4dae994f93468ce42437368b953a22a6 SHA512 8f05fbc889f766f6005bbd85ed927b258df15b940208ef330b0c29b4d3b7d35f5a201d301d141be498b2072fa5752e5ce260fb64ee314504585902b69b53a621 EBUILD nvc-1.10.3-r1.ebuild 1988 BLAKE2B 54ef07ad2d69af700886f5dcbde0517d6ec1de96bd85f3819ae8966c75f55a5d141604ce670e8f50b8ffd206435f32bd247961011e28d444d38d56a1cc7769ed SHA512 6002d7b5cf0616c858a2aeea85a3700e5d83c6643cd8dac27c967e35d83c00507f3c240d12f5e97550b95aae1a6704a835d1f0b754d99454a6851596ca5de49b EBUILD nvc-1.10.4.ebuild 1988 BLAKE2B 54ef07ad2d69af700886f5dcbde0517d6ec1de96bd85f3819ae8966c75f55a5d141604ce670e8f50b8ffd206435f32bd247961011e28d444d38d56a1cc7769ed SHA512 6002d7b5cf0616c858a2aeea85a3700e5d83c6643cd8dac27c967e35d83c00507f3c240d12f5e97550b95aae1a6704a835d1f0b754d99454a6851596ca5de49b +EBUILD nvc-1.11.0.ebuild 2005 BLAKE2B 94f864b06a68f0234e183d303e1fbb53b947af8e698ad521f2ef791159a9d34bf201d3976b1069f0113c8df3f6a4889972743b2d548b14d16aa99bb8ca4ac945 SHA512 6cca971eff9b5214ecbde5534c90702d47589b88557a60fb5930678448ff129fd1e9cd1c9bc021db3212a9f38eb87df68810de8dcae3166ab21a295425c167dc MISC metadata.xml 1301 BLAKE2B 9aa790ace1c48c1c8ae7c6b65d5ee07a396af8ae87f0969c51301a4e3a76720e33dc996d64ea8c3d7fcfb5370c37617b389890fa585e7d04d03fc06424701a36 SHA512 89ff6ff84af364d62debce74d3d6c885a0a4c4c7a48b73486923f6efe286260c377ae9e754721be6d2de1d1af4f72ede4091e9fd2898c74387a6cd35c1728de5 diff --git a/sci-electronics/nvc/nvc-1.11.0.ebuild b/sci-electronics/nvc/nvc-1.11.0.ebuild new file mode 100644 index 000000000000..4a942567b467 --- /dev/null +++ b/sci-electronics/nvc/nvc-1.11.0.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2023 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 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-$((${LLVM_MAX_SLOT} + 1)):= ) +" +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() { + # 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 jit) + $(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 "$(get_bashcompdir)"/nvc{.bash,} || die + + dostrip -x "/usr/$(get_libdir)/nvc" +} |