diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-12-23 07:52:18 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-12-23 07:52:18 +0000 |
commit | 4035d30ea0ada73d992bb7d583c0b37a053714fe (patch) | |
tree | 7a69165d1193f74105c13af2ed89082f75db7fe1 /sci-electronics/ghdl | |
parent | 686be77442c7f389d8c06c6dafb97294b819146b (diff) |
gentoo auto-resync : 23:12:2023 - 07:52:17
Diffstat (limited to 'sci-electronics/ghdl')
-rw-r--r-- | sci-electronics/ghdl/Manifest | 3 | ||||
-rw-r--r-- | sci-electronics/ghdl/files/ghdl-4.0.0_pre20231218-no-pyunit.patch | 18 | ||||
-rw-r--r-- | sci-electronics/ghdl/ghdl-4.0.0_pre20231218.ebuild | 84 |
3 files changed, 105 insertions, 0 deletions
diff --git a/sci-electronics/ghdl/Manifest b/sci-electronics/ghdl/Manifest index 1f1e81960446..ed647a625462 100644 --- a/sci-electronics/ghdl/Manifest +++ b/sci-electronics/ghdl/Manifest @@ -1,4 +1,7 @@ AUX ghdl-3.0.0-no-pyunit.patch 509 BLAKE2B 5b495473bb805acf64ca277a6e6ea6b72f9f9f1131114efd7f98a5e10a3a4eeb1cf10ac81ef071f97214aa6f9d0c0d8eb7a82ac57f94aa1ddba42bbb8030e9c8 SHA512 4ba377c893b9fc2399f76c46fdaa17217c4808ecada9de0fee0c84b5bb0b172cccb9f82c7ec3392077f4d605fcabce6ba262adc067892114e7949ad82a75eb2d +AUX ghdl-4.0.0_pre20231218-no-pyunit.patch 689 BLAKE2B 2df3df07e290240b2e99422fda33d2ccee9f01a5f3c3aa3535e40ab66bf5de95cbef3821a3e31b0f36b82f5bc90e078e9d2f9424ea5226f7c671ce4dec571458 SHA512 9149bb90346b0c97683a4ed7056cecb727f4ff9a5b89f8b4046983475cd40937f363438129304c72199442bcc3ad948f2c86cb38b6bd0d314dba9199f34a37a6 DIST ghdl-3.0.0.tar.gz 7160245 BLAKE2B 685d8976db48dd6d7074540ff24fae11e8d75f2b0e91de3095b356c9ed1e8dd762c486b7fb1df5a874a653181c6d4f4be4f8e3f5881d10db941c467a95590f45 SHA512 11b638d0ae757ce2e247ab438c15a8f5cd78c3a025ba6272aa05df548d2a7276c25dbbf83b846284ded8c9864eca3dcdb8342cb532faecd01e7cefaada524ab0 +DIST ghdl-4.0.0_pre20231218.tar.gz 7761842 BLAKE2B d5b3ae4c28b245881681695cee74eca1d69092d8089cb1ec042f42d26e62aa420ace8f04899023d98259d845ea89700d77c453b892c176d4d1b367ac7a8237a6 SHA512 6b9ac7221bee5b8ec2cc7971fbad5aff615839aa3c3170fa39079c68e65da8b4a8d60f5c53d9fa88146c9f865b0d8a059fd03358e20b660b6543cf1b0c0b0c84 EBUILD ghdl-3.0.0.ebuild 1403 BLAKE2B 7074d6ed13265cac1ff4ba480d829e19d7be9dd9e5764d5a3c9f83c56107f736762f808c7e9a9866181e4962897c591f9e9aa397c92f50f8b94b4560387cb49e SHA512 4e05ccdb71ecd29bda762d8f39226bfba9ebc42b1853497bae1e9dd04eaaaf6fb9269e8ff66665f696cd2a849574a4b417ec07bd008b00770fce9651422ab08b +EBUILD ghdl-4.0.0_pre20231218.ebuild 1537 BLAKE2B edea93cf46cb11dec587c2e8d590bcd1ecc445484c8223df3b944ab38ac145f9435ac0e1639123bbeaef70ec0d200fac7136f4a22f91c455ec624132981805a7 SHA512 6fb788f2ad3484e5f5b61ed86279b6f704610f56e3f62370dbc169111adf60c5e0a6658b219b9a456b99fdb04467c180c86cee3864e09dfefcaec0d9c54c4c29 MISC metadata.xml 1462 BLAKE2B a403ab50a3463fc26ddfb6ad65aa2cfe9782e98b74cd91fe24ef81678e7c52a2211b0bcad27accc4cd57db281ed23ad5d8697ae69dd8b67c623465949d6d3434 SHA512 4bd4c20a8fbbdaa80a63373f81bd96144e110371403832627aba81a7a95d073ee73922516a6d5c193898affbeb8bd7f1ce9fc4203faa13464cf39ba809c82d5d diff --git a/sci-electronics/ghdl/files/ghdl-4.0.0_pre20231218-no-pyunit.patch b/sci-electronics/ghdl/files/ghdl-4.0.0_pre20231218-no-pyunit.patch new file mode 100644 index 000000000000..91cb22d6035a --- /dev/null +++ b/sci-electronics/ghdl/files/ghdl-4.0.0_pre20231218-no-pyunit.patch @@ -0,0 +1,18 @@ +diff --git a/testsuite/testsuite.sh.orig b/testsuite/testsuite.sh +index 0c1049f..52da6db 100755 +--- a/testsuite/testsuite.sh.orig ++++ b/testsuite/testsuite.sh +@@ -130,9 +130,10 @@ do_test() { + pyunit) + # The Python Unit testsuite: regression testsuite for Python bindings to libghdl + # pyunit/dom fails with python 3.12 +- gstart "[GHDL - test] pyunit" +- PYTHONPATH=$(pwd)/.. ${PYTHON:-python3} -m pytest -vsrA pyunit/lsp pyunit/libghdl +- gend ++ # gstart "[GHDL - test] pyunit" ++ # PYTHONPATH=$(pwd)/.. ${PYTHON:-python3} -m pytest -vsrA pyunit/lsp pyunit/libghdl ++ # gend ++ echo "Python Unit testsuite is disabled!" + ;; + + vests) diff --git a/sci-electronics/ghdl/ghdl-4.0.0_pre20231218.ebuild b/sci-electronics/ghdl/ghdl-4.0.0_pre20231218.ebuild new file mode 100644 index 000000000000..84be680e666c --- /dev/null +++ b/sci-electronics/ghdl/ghdl-4.0.0_pre20231218.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +[[ "${PV}" = *_pre20231218 ]] && COMMIT=2135cbf1458bd1b8b8f42bda81222ab57bd66de6 + +ADA_COMPAT=( gnat_2021 ) +LLVM_MAX_SLOT=17 # Check "configure" script for supported LLVM versions. + +inherit ada edo llvm 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}.git" +else + SRC_URI="https://github.com/ghdl/${PN}/archive/${COMMIT}.tar.gz + -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${COMMIT}" + + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-2+" +SLOT="0" +IUSE="llvm" +REQUIRED_USE="${ADA_REQUIRED_USE}" + +RDEPEND=" + ${ADA_DEPS} + llvm? ( <sys-devel/llvm-$((${LLVM_MAX_SLOT} + 1)):= ) +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + dev-util/patchelf +" + +PATCHES=( "${FILESDIR}/${PN}-4.0.0_pre20231218-no-pyunit.patch" ) + +pkg_setup() { + ada_pkg_setup + + use llvm && llvm_pkg_setup +} + +src_prepare() { + default + + sed -i "s|ar rc|$(tc-getAR) rc|g" Makefile.in || die +} + +src_configure() { + tc-export CC CXX + + local -a myconf=( + --disable-werror + + --libdir=$(get_libdir) + --prefix=/usr + + --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() { + default + + patchelf --set-soname libghw.so lib/libghw.so || die +} |