diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-11-04 03:03:54 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-11-04 03:03:54 +0000 |
commit | 3cc82055be7dba177f4aea15af9f5414b532da7e (patch) | |
tree | 1eed8bbe7a93b3a0a7d6091ead40e81519978a38 /sci-electronics/nvc | |
parent | 212000bb5eabdfeb9a6e7a9b8f28e2740cae555a (diff) |
gentoo auto-resync : 04:11:2024 - 03:03:54
Diffstat (limited to 'sci-electronics/nvc')
-rw-r--r-- | sci-electronics/nvc/Manifest | 2 | ||||
-rw-r--r-- | sci-electronics/nvc/nvc-1.14.1.ebuild | 116 |
2 files changed, 118 insertions, 0 deletions
diff --git a/sci-electronics/nvc/Manifest b/sci-electronics/nvc/Manifest index 7e23f8051c05..19d8dc8aceb4 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.14.0.tar.gz 2030838 BLAKE2B e8c3e98077efcd1f024a70bb7a39e0cc1333b0ecf5e372f12eea5660e5a2907fbb660b7b5ee6ae7bf691f02134c4da898905baee650efae87839732565d7ece4 SHA512 6d498bfef7a3fc69784c93ce5799db401993802b54554be04da5f4872a2965066a0e93a0a98d2d7de07c4bcf1ecef7b11f6360b6bac392e9ad34875656d49db0 +DIST nvc-1.14.1.tar.gz 2033076 BLAKE2B 8c17d08aaf01d8dec293530b9e28e37261396e846433a574532e7d1c68bd13424879e25a00e186e46523fa73b9e731a624088312c8133b3fa0d5626f42681d8b SHA512 13648a8c9b952a64c0ec053f733f359ee138a0a3f02ac160ed8d7ac2ace0db658a9092695229a0fe6d1bebf7bae4386969b6b2883e720ae6f4e8ab8098960cc2 EBUILD nvc-1.14.0.ebuild 1989 BLAKE2B 52b36e73ef7f7e616714f4e852cda26d02005b3fd59bb726d89bf69f736a09b08b2d16c40210de8797a97645e02003d1511b661901565f62c3205d3a8949c4bd SHA512 f665a5a4772312a09fd2419e9adf4a0f367b021889e81dd9a1fb890846eed337867b278cc12c9fe5c07846a5d21150cafff51b882b7466587b7679604911724d +EBUILD nvc-1.14.1.ebuild 1989 BLAKE2B 52b36e73ef7f7e616714f4e852cda26d02005b3fd59bb726d89bf69f736a09b08b2d16c40210de8797a97645e02003d1511b661901565f62c3205d3a8949c4bd SHA512 f665a5a4772312a09fd2419e9adf4a0f367b021889e81dd9a1fb890846eed337867b278cc12c9fe5c07846a5d21150cafff51b882b7466587b7679604911724d MISC metadata.xml 1226 BLAKE2B 128540883638e57fd16a3e1620a49cc6dae4db49fcb5b6863007f9cda3af8801a2f47d0c2bf400727fde7e88b22c9c06b5c8cc8c073e150ad3046f8b37b098a2 SHA512 20ac4aa36dd420487eefa409de17ea2351f4225bf864d82817e201fc452dd9efc4ced9e6e7bae35eaf4901eb66d25da6463c82f7802a698336c5e8be6a053286 diff --git a/sci-electronics/nvc/nvc-1.14.1.ebuild b/sci-electronics/nvc/nvc-1.14.1.ebuild new file mode 100644 index 000000000000..326d6b674270 --- /dev/null +++ b/sci-electronics/nvc/nvc-1.14.1.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-apps/which + 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-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" +} |