commit: 4d970c67b98a0cb5eb82834563ac5c50c19890e6
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 12 15:48:08 2026 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Thu Mar 12 15:57:35 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d970c67
sci-electronics/ghdl: bump to 6.0.0
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
sci-electronics/ghdl/Manifest | 1 +
sci-electronics/ghdl/ghdl-6.0.0.ebuild | 99 ++++++++++++++++++++++++++++++++++
2 files changed, 100 insertions(+)
diff --git a/sci-electronics/ghdl/Manifest b/sci-electronics/ghdl/Manifest
index 2ae5a003f85d..2cb16e74140b 100644
--- a/sci-electronics/ghdl/Manifest
+++ b/sci-electronics/ghdl/Manifest
@@ -1 +1,2 @@
DIST ghdl-5.1.1.tar.gz 7894213 BLAKE2B
5d8c4ca8e0a85c604d9116087c50af83fac2741f607873810e00827b78231240e8d11af6b8cec634a719971cf2064e733fb91c93870487419f40c47ea295c7d0
SHA512
b70051d49b5f4e427b116512ef29589b826308de1b33f2c4f8fd49c50eaeaf6e09be454c8455665b59f8f7b5cb82c9c198a1c29ebf8ca1110e7126f3e10f5567
+DIST ghdl-6.0.0.gh.tar.gz 8056568 BLAKE2B
79897019b648b2e3e4b09529e61c2b2fa928f2f6f6e3683fa7847517c80cadf2ede5cb177aedb449b8d0ccfb34c1858be031e43247d1adf0fd922d895b87a642
SHA512
9e37fd127638e7676811ef2d43f5b08822f05ea16821773051b8497f5504491eef7970295ddf9ff4969c58a78ab9b34af386144d67740fc3cfd1347e6104519d
diff --git a/sci-electronics/ghdl/ghdl-6.0.0.ebuild
b/sci-electronics/ghdl/ghdl-6.0.0.ebuild
new file mode 100644
index 000000000000..2d0a8868153d
--- /dev/null
+++ b/sci-electronics/ghdl/ghdl-6.0.0.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ADA_COMPAT=( gcc_14 gcc_15 )
+LLVM_COMPAT=( {19..22} ) # Check configure script for supported LLVM versions.
+
+inherit ada edo llvm-r2 toolchain-funcs
+
+DESCRIPTION="Open-source analyzer, compiler, and simulator for VHDL 2008/93/87"
+HOMEPAGE="https://ghdl.github.io/ghdl/
+ https://github.com/ghdl/ghdl/"
+
+if [[ "${PV}" == *9999* ]] ; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/ghdl/${PN}"
+else
+ SRC_URI="https://github.com/ghdl/${PN}/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz"
+
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE="llvm +static-libs"
+
+# The LLVM backend requires static libraries to work, see bug:
https://bugs.gentoo.org/938171
+REQUIRED_USE="${ADA_REQUIRED_USE} llvm? ( static-libs )"
+
+RDEPEND="
+ ${ADA_DEPS}
+ llvm? (
+ $(llvm_gen_dep '
+ llvm-core/llvm:${LLVM_SLOT}=
+ ')
+ )
+"
+DEPEND="
+ ${RDEPEND}
+"
+BDEPEND="
+ dev-util/patchelf
+"
+
+PATCHES=( "${FILESDIR}/${PN}-4.0.0_pre20231218-no-pyunit.patch" )
+
+pkg_setup() {
+ ada_pkg_setup
+ use llvm && llvm-r2_pkg_setup
+}
+
+src_prepare() {
+ default
+ edo sed -i "s|ar rc|$(tc-getAR) rc|g" Makefile.in
+}
+
+src_configure() {
+ tc-export CC CXX
+
+ local -a myconf=(
+ # Build.
+ --disable-werror
+
+ # Install location.
+ --libdir=$(get_libdir)
+ --prefix="/usr"
+
+ # Features.
+ --enable-libghdl
+ --enable-synth
+ )
+
+ if use llvm ; then
+ myconf+=( --with-llvm-config="llvm-config" )
+ fi
+
+ # Not a autotools script!
+ edo sh ./configure "${myconf[@]}"
+}
+
+src_compile() {
+ emake V=1
+ edo patchelf --set-soname libghw.so lib/libghw.so
+}
+
+src_test() {
+ emake V=1 test
+}
+
+src_install() {
+ default
+
+ if ! use static-libs ; then
+ edo find "${ED}" -type f -name '*.a' -delete
+ fi
+}