From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BF508158020 for ; Thu, 20 Oct 2022 03:04:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 67874E084A; Thu, 20 Oct 2022 03:04:48 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 44667E084A for ; Thu, 20 Oct 2022 03:04:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C9D9B340EE0 for ; Thu, 20 Oct 2022 03:04:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 26DC9615 for ; Thu, 20 Oct 2022 03:04:45 +0000 (UTC) From: "Rui Huang" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Rui Huang" Message-ID: <1666235073.576b93e95cfec6043037dd12360011fd72204a42.vowstar@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: sci-electronics/slang/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sci-electronics/slang/Manifest sci-electronics/slang/metadata.xml sci-electronics/slang/slang-1.0.ebuild sci-electronics/slang/slang-9999.ebuild X-VCS-Directories: sci-electronics/slang/ X-VCS-Committer: vowstar X-VCS-Committer-Name: Rui Huang X-VCS-Revision: 576b93e95cfec6043037dd12360011fd72204a42 X-VCS-Branch: dev Date: Thu, 20 Oct 2022 03:04:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f8ebc880-67b5-45cd-93d7-0e245282a0ca X-Archives-Hash: cccf2eb354a48ad65f8dcbc67564c059 commit: 576b93e95cfec6043037dd12360011fd72204a42 Author: Huang Rui gmail com> AuthorDate: Thu Oct 20 03:04:33 2022 +0000 Commit: Rui Huang gmail com> CommitDate: Thu Oct 20 03:04:33 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=576b93e9 sci-electronics/slang: new package, add 1.0, 9999 Signed-off-by: Huang Rui gmail.com> sci-electronics/slang/Manifest | 1 + sci-electronics/slang/metadata.xml | 20 +++++++++++ sci-electronics/slang/slang-1.0.ebuild | 59 +++++++++++++++++++++++++++++++++ sci-electronics/slang/slang-9999.ebuild | 59 +++++++++++++++++++++++++++++++++ 4 files changed, 139 insertions(+) diff --git a/sci-electronics/slang/Manifest b/sci-electronics/slang/Manifest new file mode 100644 index 000000000..db3d59054 --- /dev/null +++ b/sci-electronics/slang/Manifest @@ -0,0 +1 @@ +DIST slang-1.0.tar.gz 1239664 BLAKE2B 98355987b5c355eb914dd0d38c7441d5d39b7a0259e557d9cfd6271fd35aab642db6036d55228f75522fef0c31a4c82dea4d09cdb04ea33c60d843a3ca14caf0 SHA512 25ef7f5abb1b73928f61b853db5462baf72077a47daa9419311aba1f8fdca0bd499518c2f64dfff95b3c0671e52f2b1cd37edb7d1c74fb983b74de08fe7eea37 diff --git a/sci-electronics/slang/metadata.xml b/sci-electronics/slang/metadata.xml new file mode 100644 index 000000000..a2f50fb62 --- /dev/null +++ b/sci-electronics/slang/metadata.xml @@ -0,0 +1,20 @@ + + + + + vowstar@gmail.com + Huang Rui + + + MikePopoloski/slang + + + slang is a software library that provides various components for lexing, + parsing, type checking, and elaborating SystemVerilog code. It comes with + an executable tool that can compile and lint any SystemVerilog project, + but it is also intended to be usable as a front end for synthesis tools, + simulators, linters, code editors, and refactoring tools. + slang is the fastest and most compliant SystemVerilog frontend + (according to the open source chipsalliance test suite). + + diff --git a/sci-electronics/slang/slang-1.0.ebuild b/sci-electronics/slang/slang-1.0.ebuild new file mode 100644 index 000000000..1e1d7d743 --- /dev/null +++ b/sci-electronics/slang/slang-1.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +PYTHON_COMPAT=( python3_{8..11} ) +inherit cmake python-r1 + +DESCRIPTION="SystemVerilog compiler and language services" +HOMEPAGE=" + https://sv-lang.com + https://github.com/MikePopoloski/slang +" + +if [[ "${PV}" == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/MikePopoloski/${PN}.git" +else + SRC_URI="https://github.com/MikePopoloski/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~riscv ~x86" + S="${WORKDIR}/${P}" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="python test" +REQUIRED_USE=" ${PYTHON_REQUIRED_USE} " +RESTRICT="!test? ( test )" + +RDEPEND=" + ${PYTHON_DEPS} + dev-libs/libfmt +" + +DEPEND=" + ${RDEPEND} +" + +src_configure() { + python_setup + + local mycmakeargs=( + -D CMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)" + -D BUILD_SHARED_LIBS=ON + -D SLANG_INCLUDE_PYLIB=$(usex python) + -D SLANG_INCLUDE_TESTS=$(usex test) + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + # fix libdir path + if [[ "$(get_libdir)" != "lib" ]] ; then + mv "${D}"/usr/lib "${D}"/usr/"$(get_libdir)" || die + fi + # file collisions of internal fmt + rm -r "${D}"/usr/include/fmt || die +} diff --git a/sci-electronics/slang/slang-9999.ebuild b/sci-electronics/slang/slang-9999.ebuild new file mode 100644 index 000000000..1e1d7d743 --- /dev/null +++ b/sci-electronics/slang/slang-9999.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +PYTHON_COMPAT=( python3_{8..11} ) +inherit cmake python-r1 + +DESCRIPTION="SystemVerilog compiler and language services" +HOMEPAGE=" + https://sv-lang.com + https://github.com/MikePopoloski/slang +" + +if [[ "${PV}" == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/MikePopoloski/${PN}.git" +else + SRC_URI="https://github.com/MikePopoloski/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~riscv ~x86" + S="${WORKDIR}/${P}" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="python test" +REQUIRED_USE=" ${PYTHON_REQUIRED_USE} " +RESTRICT="!test? ( test )" + +RDEPEND=" + ${PYTHON_DEPS} + dev-libs/libfmt +" + +DEPEND=" + ${RDEPEND} +" + +src_configure() { + python_setup + + local mycmakeargs=( + -D CMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)" + -D BUILD_SHARED_LIBS=ON + -D SLANG_INCLUDE_PYLIB=$(usex python) + -D SLANG_INCLUDE_TESTS=$(usex test) + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + # fix libdir path + if [[ "$(get_libdir)" != "lib" ]] ; then + mv "${D}"/usr/lib "${D}"/usr/"$(get_libdir)" || die + fi + # file collisions of internal fmt + rm -r "${D}"/usr/include/fmt || die +}