summaryrefslogtreecommitdiff
path: root/sci-electronics
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-08-02 16:50:29 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-08-02 16:50:29 +0100
commit1f6d51a43dbfcb87ef81da70c688d354560e846a (patch)
tree0a298c9f420161e29e935ba44206262169475726 /sci-electronics
parenta308b9d4bf7fb28a64aec9444316a00068c164f6 (diff)
gentoo auto-resync : 02:08:2023 - 16:50:29
Diffstat (limited to 'sci-electronics')
-rw-r--r--sci-electronics/Manifest.gzbin9038 -> 9036 bytes
-rw-r--r--sci-electronics/nvc/Manifest2
-rw-r--r--sci-electronics/nvc/nvc-1.10.1.ebuild108
3 files changed, 110 insertions, 0 deletions
diff --git a/sci-electronics/Manifest.gz b/sci-electronics/Manifest.gz
index b5a701509473..90883d7c8570 100644
--- a/sci-electronics/Manifest.gz
+++ b/sci-electronics/Manifest.gz
Binary files differ
diff --git a/sci-electronics/nvc/Manifest b/sci-electronics/nvc/Manifest
index 6741cf133304..d4a08f181c79 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.0.tar.gz 1586847 BLAKE2B 109515c362a2f203104f9fdfb22b2e55795fbc17f6f52a2676834a34c26147de2fa1f6931ddb24cc8e12d71e7d9023fdb1fdb93d8ddeb150cd3a9ec1c7390779 SHA512 66a1884c6f38a2308264ae78c8c224a5028c931225b33ffc37f5dd056be6c06bf2936b1272970967311f095821aaf25da24688924ed3de5d48216d5f20a81833
+DIST nvc-1.10.1.tar.gz 1589523 BLAKE2B 608eaa7058cc15df11d326971454ef5d3afffa99505f43a2497e4060e75a1e1958a163d0a78ec036dca40643f006468a9dc6f49cb0a2a3d2368f4a467ad6e94d SHA512 004230b4e571d3b15563f7a2e17472bbcb8e63773d205c27426e077364fac12051617a9bb908ed376928302b266d8751091284f9d5808b3ea8dacb433d440b33
DIST nvc-1.9.2.tar.gz 1487550 BLAKE2B 54105c3523e252ea4e157b352a702979297c6e45ff84f7e82d9a241d8ae6da1bb4393eb0efaec7a59c7f70631b8b5b1f511e1ef029523180e90d45a04b93af06 SHA512 b6033f1ce1017aeacccf15a0220ad0938f631ce5b7b43c6cb189d6f36fca3f4a930ff3304031b0628c133b5806a9dd1ffc087f439adf85f2fdca0954bb581174
EBUILD nvc-1.10.0.ebuild 1865 BLAKE2B 0e41084779c6bd539b5c4c3a870cdb881d4a851fc45f6a9d6c88e9c3fef7ed9d2e5ffd7065df90e716c2c97cf8f4a63fe8df2aafc4d980f02577128aa2e9287b SHA512 8428e39c10b5b0eff643b0587be9c4dc0d381ec1841709789d4e713ce7c7d99ab36178e0ee6636b2896f88f5fdd165b09005b1388f97c2036e053123b56f94f6
+EBUILD nvc-1.10.1.ebuild 1865 BLAKE2B 0e41084779c6bd539b5c4c3a870cdb881d4a851fc45f6a9d6c88e9c3fef7ed9d2e5ffd7065df90e716c2c97cf8f4a63fe8df2aafc4d980f02577128aa2e9287b SHA512 8428e39c10b5b0eff643b0587be9c4dc0d381ec1841709789d4e713ce7c7d99ab36178e0ee6636b2896f88f5fdd165b09005b1388f97c2036e053123b56f94f6
EBUILD nvc-1.9.2.ebuild 1865 BLAKE2B 0e41084779c6bd539b5c4c3a870cdb881d4a851fc45f6a9d6c88e9c3fef7ed9d2e5ffd7065df90e716c2c97cf8f4a63fe8df2aafc4d980f02577128aa2e9287b SHA512 8428e39c10b5b0eff643b0587be9c4dc0d381ec1841709789d4e713ce7c7d99ab36178e0ee6636b2896f88f5fdd165b09005b1388f97c2036e053123b56f94f6
MISC metadata.xml 1301 BLAKE2B 9aa790ace1c48c1c8ae7c6b65d5ee07a396af8ae87f0969c51301a4e3a76720e33dc996d64ea8c3d7fcfb5370c37617b389890fa585e7d04d03fc06424701a36 SHA512 89ff6ff84af364d62debce74d3d6c885a0a4c4c7a48b73486923f6efe286260c377ae9e754721be6d2de1d1af4f72ede4091e9fd2898c74387a6cd35c1728de5
diff --git a/sci-electronics/nvc/nvc-1.10.1.ebuild b/sci-electronics/nvc/nvc-1.10.1.ebuild
new file mode 100644
index 000000000000..38a4bfa346de
--- /dev/null
+++ b/sci-electronics/nvc/nvc-1.10.1.ebuild
@@ -0,0 +1,108 @@
+# 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/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
+}