mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 13:33:32 -04:00
sci-electronics/slang: add 10.0, drop 9.1
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
@@ -1 +1 @@
|
||||
DIST slang-9.1.tar.gz 1714001 BLAKE2B 2b5463f106a943500150932cddedfc3d7604f9968bea32ddc20c2f085f7b27979cf6c42a5ee586dadf3764ea80b8ee909db6ef9c8f57bd9788415221563ab2a4 SHA512 e7591ac54a55d305440f5800e5b0f74025036160e68841db9a008fec8d7b5e95fde581654c7560d843733483b71b7a9a691b1674e8d7092239209218d6c7e860
|
||||
DIST slang-10.0.tar.gz 1769416 BLAKE2B b21d148c4ba66efd185064d9287d10238582bb165ea066f6cad764f2557b620979f67b13dcc2d6425ed6090830b22589b560ff3dc1fad39fb11ee9d24f557a7c SHA512 f8402e422e8278be363d4630f264885230f11dcf969ffeafefc88c0ac5d0761dd81e7ee5d50bab1d4363d0783600bb974181db78609c021bde4406d8fcf1dbc5
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="8"
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
inherit cmake python-single-r1
|
||||
|
||||
DESCRIPTION="SystemVerilog compiler and language services"
|
||||
@@ -32,20 +32,16 @@ RDEPEND="
|
||||
$(python_gen_cond_dep '
|
||||
>=dev-python/pybind11-2.10[${PYTHON_USEDEP}]
|
||||
')
|
||||
dev-libs/libfmt:=
|
||||
>=dev-libs/libfmt-12.1:=
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
>=dev-libs/libfmt-9.1.0:=
|
||||
test? ( >=dev-cpp/catch-3.0.1 )
|
||||
>=dev-libs/libfmt-12.1
|
||||
test? ( >=dev-cpp/catch-3.11 )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# In order to compile smoothly, the minimum version of fmt must be lowered.
|
||||
sed -i \
|
||||
-e 's/set(fmt_min_version.*)/set(fmt_min_version "9.0")/' \
|
||||
"${S}/external/CMakeLists.txt" || die
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
@@ -65,8 +61,13 @@ src_install() {
|
||||
cmake_src_install
|
||||
|
||||
if use python; then
|
||||
# fix python unexpected paths QA
|
||||
mkdir -p "${D}/$(python_get_sitedir)" || die
|
||||
mv "${D}"/usr/pyslang* "${D}/$(python_get_sitedir)" || die
|
||||
# CMake installs pyslang files flat into /usr/; relocate them into
|
||||
# a proper pyslang package directory under site-packages.
|
||||
local pydir="${D}/$(python_get_sitedir)/pyslang"
|
||||
mkdir -p "${pydir}" || die
|
||||
mv "${D}"/usr/pyslang* "${pydir}" || die
|
||||
mv "${D}"/usr/__init__.py "${pydir}" || die
|
||||
mv "${D}"/usr/py.typed "${pydir}" || die
|
||||
python_optimize "${D}/$(python_get_sitedir)"
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user