public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Rui Huang" <vowstar@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sci-electronics/slang/
Date: Mon,  5 Jun 2023 07:16:39 +0000 (UTC)	[thread overview]
Message-ID: <1685949384.6d80ebc55eb9d0977ed7a1688e490258b7be34a9.vowstar@gentoo> (raw)

commit:     6d80ebc55eb9d0977ed7a1688e490258b7be34a9
Author:     Huang Rui <vowstar <AT> gmail <DOT> com>
AuthorDate: Mon Jun  5 07:16:24 2023 +0000
Commit:     Rui Huang <vowstar <AT> gmail <DOT> com>
CommitDate: Mon Jun  5 07:16:24 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6d80ebc5

sci-electronics/slang: add 3.0

Signed-off-by: Huang Rui <vowstar <AT> gmail.com>

 sci-electronics/slang/Manifest         |  1 +
 sci-electronics/slang/slang-3.0.ebuild | 64 ++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)

diff --git a/sci-electronics/slang/Manifest b/sci-electronics/slang/Manifest
index 37c981edb..1788d079b 100644
--- a/sci-electronics/slang/Manifest
+++ b/sci-electronics/slang/Manifest
@@ -1,2 +1,3 @@
 DIST slang-1.0.tar.gz 1239664 BLAKE2B 98355987b5c355eb914dd0d38c7441d5d39b7a0259e557d9cfd6271fd35aab642db6036d55228f75522fef0c31a4c82dea4d09cdb04ea33c60d843a3ca14caf0 SHA512 25ef7f5abb1b73928f61b853db5462baf72077a47daa9419311aba1f8fdca0bd499518c2f64dfff95b3c0671e52f2b1cd37edb7d1c74fb983b74de08fe7eea37
 DIST slang-2.0.tar.gz 1026299 BLAKE2B d55e0f419e030a37ff80aef3c0b16a96ee402707c758797fea3d1914e29247d22d240693cd873f95f634438fad5b8ed65961a324c69788fc3e62f83ce0a94869 SHA512 3d18961cda7eb40877932e937364b19cfcef3127a8467fbfc70febd1d6ef8b267aeae8244355a4b0206197ef126ee5a65aa4a4fb49d0970fe6c626725b7e6b21
+DIST slang-3.0.tar.gz 1097223 BLAKE2B 87f7ac55fb719e64049e56792af9edbe20c39cebcd496f3fa3c980f54490a885f8bc3443b0c841930baf1d57854aba54747acf3f6a8debda3e1cb110dae364f0 SHA512 3d340ccdd7573d61b9e391861712d6b97a2c686b2bae351c1b25f11539146f6d00539b044c69f7dc362ed160828a1bb00f180553dcb760affe912e521bc56a8a

diff --git a/sci-electronics/slang/slang-3.0.ebuild b/sci-electronics/slang/slang-3.0.ebuild
new file mode 100644
index 000000000..52a620660
--- /dev/null
+++ b/sci-electronics/slang/slang-3.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+PYTHON_COMPAT=( python3_{9..11} )
+inherit cmake python-single-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-cpp/catch-3.0.1
+	>=dev-libs/libfmt-9.1.0
+	>=dev-libs/unordered_dense-2.0.1 <dev-libs/unordered_dense-2.0.2
+	$(python_gen_cond_dep '
+		>=dev-python/pybind11-2.10[${PYTHON_USEDEP}]
+	')
+"
+
+DEPEND="
+	${RDEPEND}
+"
+
+src_configure() {
+	python_setup
+	local mycmakeargs=(
+		-D CMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)"
+		-D BUILD_SHARED_LIBS=ON
+		-D SLANG_USE_BOOST=OFF
+		-D SLANG_INCLUDE_PYLIB=$(usex python)
+		-D SLANG_INCLUDE_TESTS=$(usex test)
+	)
+	cmake_src_configure
+}
+
+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
+	fi
+}


             reply	other threads:[~2023-06-05  7:16 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-05  7:16 Rui Huang [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-09  4:32 [gentoo-commits] repo/proj/guru:dev commit in: sci-electronics/slang/ Rui Huang
2024-10-09  4:32 Rui Huang
2024-04-22  2:32 Rui Huang
2024-03-01 14:12 Steffen Winter
2024-02-17  2:40 [gentoo-commits] repo/proj/guru:master " Rui Huang
2024-02-16 15:13 ` [gentoo-commits] repo/proj/guru:dev " Rui Huang
2023-09-15 11:48 Rui Huang
2023-09-15 10:58 Rui Huang
2023-09-15 10:58 Rui Huang
2023-06-05  7:16 Rui Huang
2023-04-01  5:42 Rui Huang
2023-03-31  4:55 Rui Huang
2023-03-15 11:49 Rui Huang
2022-11-06  3:34 Rui Huang
2022-10-20  3:04 Rui Huang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1685949384.6d80ebc55eb9d0977ed7a1688e490258b7be34a9.vowstar@gentoo \
    --to=vowstar@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox