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 14AF3158041 for ; Sun, 25 Feb 2024 13:32:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5D033E29CD; Sun, 25 Feb 2024 13:32:17 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 44C99E29CD for ; Sun, 25 Feb 2024 13:32:17 +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 5AE0133BF60 for ; Sun, 25 Feb 2024 13:32:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9A972955 for ; Sun, 25 Feb 2024 13:32:14 +0000 (UTC) From: "Gonçalo Negrier Duarte" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Gonçalo Negrier Duarte" Message-ID: <1708867919.e677aba9653d7a6ea8fb283605f75590ca6ec019.gonegrier.duarte@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: gui-apps/eww/ X-VCS-Repository: repo/proj/guru X-VCS-Files: gui-apps/eww/eww-0.5.0-r1.ebuild gui-apps/eww/eww-0.5.0.ebuild gui-apps/eww/eww-9999.ebuild X-VCS-Directories: gui-apps/eww/ X-VCS-Committer: gonegrier.duarte X-VCS-Committer-Name: Gonçalo Negrier Duarte X-VCS-Revision: e677aba9653d7a6ea8fb283605f75590ca6ec019 X-VCS-Branch: dev Date: Sun, 25 Feb 2024 13:32:14 +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: 137354b4-c2bf-45c3-a3e3-6e9b60232f8a X-Archives-Hash: f35d4a0a53fc3d033d876d38804233cb commit: e677aba9653d7a6ea8fb283605f75590ca6ec019 Author: Gonçalo Negrier Duarte gmail com> AuthorDate: Sun Feb 25 13:25:15 2024 +0000 Commit: Gonçalo Negrier Duarte gmail com> CommitDate: Sun Feb 25 13:31:59 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e677aba9 gui-apps/eww: drop 0.5.0, add 0.5.0-r1 * improve how features are enable using cargo.eclass * fix SRC_URI 0.5.0 * improving src_unpack (not sure is really need but just to be safe) * closing old bug of 0.4.0 since was drop Closes: https://bugs.gentoo.org/925317 Closes: https://bugs.gentoo.org/925426 Closes: https://bugs.gentoo.org/884457 Closes: https://bugs.gentoo.org/884455 Closes: https://bugs.gentoo.org/877675 Closes: https://bugs.gentoo.org/863095 Signed-off-by: Gonçalo Negrier Duarte gmail.com> .../eww/{eww-0.5.0.ebuild => eww-0.5.0-r1.ebuild} | 35 +++++++++++++--------- gui-apps/eww/eww-9999.ebuild | 35 +++++++++++++--------- 2 files changed, 42 insertions(+), 28 deletions(-) diff --git a/gui-apps/eww/eww-0.5.0.ebuild b/gui-apps/eww/eww-0.5.0-r1.ebuild similarity index 93% rename from gui-apps/eww/eww-0.5.0.ebuild rename to gui-apps/eww/eww-0.5.0-r1.ebuild index b6019b0dbe..581a66992d 100644 --- a/gui-apps/eww/eww-0.5.0.ebuild +++ b/gui-apps/eww/eww-0.5.0-r1.ebuild @@ -305,24 +305,16 @@ if [[ "${PV}" == 9999 ]]; then EGIT_REPO_URI="https://github.com/elkowar/${PN}.git" else SRC_URI=" - https://github.com/elkowar/${PV}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/elkowar/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz ${CARGO_CRATE_URIS} " + KEYWORDS="~amd64" fi LICENSE=" - Apache-2.0 - || ( Apache-2.0 MIT ) - || ( Apache-2.0 BSL-1.1 ) - || ( Artistic-2 CC0-1.0 ) - BSD - CC0-1.0 - ISC MIT - || ( MIT Unlicense ) " SLOT="0" -KEYWORDS="~amd64" IUSE="X wayland" REQUIRED_USE="|| ( X wayland )" @@ -346,11 +338,26 @@ RDEPEND=" QA_FLAGS_IGNORED="usr/bin/.*" +src_unpack() { + if [[ "${PV}" == 9999 ]]; then + git-r3_src_unpack + cargo_live_src_unpack + else + cargo_src_unpack + fi +} + +src_configure() { + local myfeatures=( + $(usev X x11) + $(usev wayland wayland) + ) + cargo_src_configure +} + src_compile() { - use X && features="--no-default-features --features=x11" - use wayland && features="--no-default-features --features=wayland" - use X && use wayland && features="--no-default-features --features=wayland,x11" - cargo_src_compile ${features} + cargo_gen_config + cargo_src_compile } src_install() { diff --git a/gui-apps/eww/eww-9999.ebuild b/gui-apps/eww/eww-9999.ebuild index a9aad5e71a..581a66992d 100644 --- a/gui-apps/eww/eww-9999.ebuild +++ b/gui-apps/eww/eww-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022-2024 Gentoo Authors +# Copyright 2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -305,22 +305,14 @@ if [[ "${PV}" == 9999 ]]; then EGIT_REPO_URI="https://github.com/elkowar/${PN}.git" else SRC_URI=" - https://github.com/elkowar/${PV}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/elkowar/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz ${CARGO_CRATE_URIS} " KEYWORDS="~amd64" fi LICENSE=" - Apache-2.0 - || ( Apache-2.0 MIT ) - || ( Apache-2.0 BSL-1.1 ) - || ( Artistic-2 CC0-1.0 ) - BSD - CC0-1.0 - ISC MIT - || ( MIT Unlicense ) " SLOT="0" IUSE="X wayland" @@ -346,11 +338,26 @@ RDEPEND=" QA_FLAGS_IGNORED="usr/bin/.*" +src_unpack() { + if [[ "${PV}" == 9999 ]]; then + git-r3_src_unpack + cargo_live_src_unpack + else + cargo_src_unpack + fi +} + +src_configure() { + local myfeatures=( + $(usev X x11) + $(usev wayland wayland) + ) + cargo_src_configure +} + src_compile() { - use X && features="--no-default-features --features=x11" - use wayland && features="--no-default-features --features=wayland" - use X && use wayland && features="--no-default-features --features=wayland,x11" - cargo_src_compile ${features} + cargo_gen_config + cargo_src_compile } src_install() {