diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-12-22 01:53:56 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-12-22 01:53:56 +0000 |
commit | 9f4b8d7fbdb3e35f8854c2e1c63926e383d299ea (patch) | |
tree | fe6bc16c271fcb3387f3243f0fb6f829b98b75fb /sci-electronics/nvc | |
parent | fe3d938433735c9b681b7e72296a5ae70fd2a7e9 (diff) |
gentoo auto-resync : 22:12:2023 - 01:53:56
Diffstat (limited to 'sci-electronics/nvc')
-rw-r--r-- | sci-electronics/nvc/Manifest | 2 | ||||
-rw-r--r-- | sci-electronics/nvc/nvc-1.11.1.ebuild | 113 |
2 files changed, 115 insertions, 0 deletions
diff --git a/sci-electronics/nvc/Manifest b/sci-electronics/nvc/Manifest index 9ea6a61d3fac..c3ee6f8825c3 100644 --- a/sci-electronics/nvc/Manifest +++ b/sci-electronics/nvc/Manifest @@ -1,4 +1,6 @@ AUX nvc-1.9.2-jit-code-capstone.patch 200 BLAKE2B f819ef52f6f47b5c2c04d7c938c82a439dc111daffad1ec92506b3d15daa6eb2182fb5384edff8ca76b3120a62085af8ddd01cf7092bea66eb37213985fd90b5 SHA512 11b9be76fb07893fa95b17006fc694faea30c522454f16183b18aa43c772d38098ba5c558ed331203530fd1eb44a37a0c85cff5f3f89d9410164cad29b635375 DIST nvc-1.11.0.tar.gz 1839019 BLAKE2B f21317bd4941621d5bcbe5dda43b3b1a0e37e15b5783474c33d2ad840cfd1c6d5aea4873cbf2e41b1dd3fe816eebca6b4dae994f93468ce42437368b953a22a6 SHA512 8f05fbc889f766f6005bbd85ed927b258df15b940208ef330b0c29b4d3b7d35f5a201d301d141be498b2072fa5752e5ce260fb64ee314504585902b69b53a621 +DIST nvc-1.11.1.tar.gz 1839664 BLAKE2B fe5bb05f7590158a04af8b5e8b748b742f6a624b73add0953ae456a32084301a5a7301cf64593db7827c454678825151165fca720f53bff4bf098728f29f8fd6 SHA512 b77350fa7897105dc6dd850dbf3033a43557f73d17bd7cb36b49c493bc896bb74e47f5daa2b771b7796a64a80f377df56aafd4306bbdbe9a7756b6086ac45b49 EBUILD nvc-1.11.0.ebuild 1960 BLAKE2B 82c97773a75e7e86e6804155290f8cdfff388e67f586e5eb60053ece049c77f6fd1550c35836f48d083ebece4d33d01913b9a14f0f922de555a8b5302b3df995 SHA512 5fb7f68a2bbae0a56bd3d46bd6be3b5dfdf34b560c9f704e277002196c0c6211647c11509054e570ed5932cd1f88ccac8781289b87c369555b57c02d2c293df4 +EBUILD nvc-1.11.1.ebuild 1960 BLAKE2B 82c97773a75e7e86e6804155290f8cdfff388e67f586e5eb60053ece049c77f6fd1550c35836f48d083ebece4d33d01913b9a14f0f922de555a8b5302b3df995 SHA512 5fb7f68a2bbae0a56bd3d46bd6be3b5dfdf34b560c9f704e277002196c0c6211647c11509054e570ed5932cd1f88ccac8781289b87c369555b57c02d2c293df4 MISC metadata.xml 1226 BLAKE2B 128540883638e57fd16a3e1620a49cc6dae4db49fcb5b6863007f9cda3af8801a2f47d0c2bf400727fde7e88b22c9c06b5c8cc8c073e150ad3046f8b37b098a2 SHA512 20ac4aa36dd420487eefa409de17ea2351f4225bf864d82817e201fc452dd9efc4ced9e6e7bae35eaf4901eb66d25da6463c82f7802a698336c5e8be6a053286 diff --git a/sci-electronics/nvc/nvc-1.11.1.ebuild b/sci-electronics/nvc/nvc-1.11.1.ebuild new file mode 100644 index 000000000000..6dd03d3a04b4 --- /dev/null +++ b/sci-electronics/nvc/nvc-1.11.1.ebuild @@ -0,0 +1,113 @@ +# 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 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 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" +} |