diff options
author | Maciej Barć <xgqt@gentoo.org> | 2024-05-25 15:32:40 +0200 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2024-05-25 16:05:57 +0200 |
commit | 1026a08202a44f22d3cb4b8a6d6a19a995413157 (patch) | |
tree | bf6fa86f571658ba411384a1b075a49a84f02b3a /sci-electronics/nvc | |
parent | sci-electronics/nvc: drop old 1.12.0 (diff) | |
download | gentoo-1026a08202a44f22d3cb4b8a6d6a19a995413157.tar.gz gentoo-1026a08202a44f22d3cb4b8a6d6a19a995413157.tar.bz2 gentoo-1026a08202a44f22d3cb4b8a6d6a19a995413157.zip |
sci-electronics/nvc: bump to 1.12.2
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.12.2.ebuild | 114 |
2 files changed, 115 insertions, 0 deletions
diff --git a/sci-electronics/nvc/Manifest b/sci-electronics/nvc/Manifest index e4e8ee692a6a..5d5160e81c24 100644 --- a/sci-electronics/nvc/Manifest +++ b/sci-electronics/nvc/Manifest @@ -1 +1,2 @@ DIST nvc-1.12.1.tar.gz 1931464 BLAKE2B 7081387b81afd20d05ad69d8e29c6549e286d4b5e90ca7e044ddcc8df80d1db7a3a398b11303c7b2e90cf8863e3b7a910530b353c6664d03c2be0e18ee40379f SHA512 33df2d4be7938be381f763f33b95b09a49f5d10d3b240f280379e83d367c05f886a867fdd945acc23debb1652b52a76ca2ec0c338d87b146a02ed2c858a8960b +DIST nvc-1.12.2.tar.gz 1932149 BLAKE2B 6a71c9bb5ea5254c6b1d2283e4f3e14f13c8399204810cbbc05fae25b50cd5307cb3cdbf101c129dbc1863a135e493fafd8672903665eb4f5f3c9a95c6fcaf82 SHA512 d386cd32533d60c0ab795955a376a4c0de4b35d2ce7fdbda9e4f4c79605fb8e0422ddee574204f1f8a951caf0d87e4446ebb28ff5b3352644307c0c13bbe8765 diff --git a/sci-electronics/nvc/nvc-1.12.2.ebuild b/sci-electronics/nvc/nvc-1.12.2.ebuild new file mode 100644 index 000000000000..dd4ecc425726 --- /dev/null +++ b/sci-electronics/nvc/nvc-1.12.2.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2024 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 + +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? ( + <sys-devel/llvm-$((${LLVM_MAX_SLOT} + 1)):= + ) +" +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_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" +} |