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 ED162158649 for ; Tue, 9 May 2023 19:30:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0CAC0E075F; Tue, 9 May 2023 19:30:28 +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 E1410E07BA for ; Tue, 9 May 2023 19:30:27 +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 925A9340D56 for ; Tue, 9 May 2023 19:30:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E2AD5990 for ; Tue, 9 May 2023 19:30:24 +0000 (UTC) From: "Anna Vyalkova" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anna Vyalkova" Message-ID: <1683660607.68db6d9b906fc6c0efecfdbc797aa286bc155546.cybertailor@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: eclass/ X-VCS-Repository: repo/proj/guru X-VCS-Files: eclass/shards.eclass X-VCS-Directories: eclass/ X-VCS-Committer: cybertailor X-VCS-Committer-Name: Anna Vyalkova X-VCS-Revision: 68db6d9b906fc6c0efecfdbc797aa286bc155546 X-VCS-Branch: dev Date: Tue, 9 May 2023 19:30:24 +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: 35d718af-7d4a-4340-8b8a-53bd517b132f X-Archives-Hash: 2b9c4cd2ffbb0790da9756be0030bf3e commit: 68db6d9b906fc6c0efecfdbc797aa286bc155546 Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Tue May 9 19:28:54 2023 +0000 Commit: Anna Vyalkova sysrq in> CommitDate: Tue May 9 19:30:07 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=68db6d9b shards.eclass: detect build targets using gshards Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> eclass/shards.eclass | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/eclass/shards.eclass b/eclass/shards.eclass index 5fd9f6c10..0de0deb47 100644 --- a/eclass/shards.eclass +++ b/eclass/shards.eclass @@ -28,7 +28,7 @@ inherit crystal-utils multiprocessing toolchain-funcs BDEPEND=" ${CRYSTAL_DEPS} ${SHARDS_DEPS} - dev-util/gshards + >=dev-util/gshards-0.2 " IUSE="debug doc" @@ -67,10 +67,15 @@ shards_src_configure() { # @FUNCTION: shards_src_compile # @DESCRIPTION: -# Function for building the package's documentation. +# Function for building the package's executables and documentation. shards_src_compile() { debug-print-function ${FUNCNAME} "${@}" + local args + gshards-print-targets | while read -r args; do + crystal_build "${@}" ${args} + done + if use doc; then ecrystal docs HTML_DOCS=( docs/. ) @@ -95,14 +100,10 @@ shards_src_test() { # @FUNCTION: shards_src_install # @DESCRIPTION: -# Function for installing the package. +# Function for installing the package's source. shards_src_install() { debug-print-function ${FUNCNAME} "${@}" - if [[ -d "bin" ]]; then - dobin bin/* - fi - if [[ -d "src" ]]; then insinto $(shards_get_libdir)/$(shards_get_pkgname) doins -r src