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 09D3A15817D for ; Wed, 19 Jun 2024 05:20:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5182EE2A6E; Wed, 19 Jun 2024 05:20:55 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 3C032E2A6E for ; Wed, 19 Jun 2024 05:20:55 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 84A8B33B864 for ; Wed, 19 Jun 2024 05:20:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A42551D28 for ; Wed, 19 Jun 2024 05:20:51 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1718774436.7cec887aa0cc3e2d6a79a1316190959f339d54d2.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/blink1/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/blink1/blink1-1.98-r2.ebuild X-VCS-Directories: app-misc/blink1/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 7cec887aa0cc3e2d6a79a1316190959f339d54d2 X-VCS-Branch: master Date: Wed, 19 Jun 2024 05:20:51 +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: cc7d500c-ddbb-4de8-b673-06c025b17a28 X-Archives-Hash: a974b44f9103e8164f0ee3664ac93e6f commit: 7cec887aa0cc3e2d6a79a1316190959f339d54d2 Author: Arthur Zamarin gentoo org> AuthorDate: Wed Jun 19 05:18:39 2024 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Wed Jun 19 05:20:36 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cec887a app-misc/blink1: mass refactor Signed-off-by: Arthur Zamarin gentoo.org> app-misc/blink1/blink1-1.98-r2.ebuild | 49 +++++++++++++---------------------- 1 file changed, 18 insertions(+), 31 deletions(-) diff --git a/app-misc/blink1/blink1-1.98-r2.ebuild b/app-misc/blink1/blink1-1.98-r2.ebuild index f0cec6ceb496..418691a46207 100644 --- a/app-misc/blink1/blink1-1.98-r2.ebuild +++ b/app-misc/blink1/blink1-1.98-r2.ebuild @@ -1,56 +1,43 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit linux-info +inherit linux-info toolchain-funcs DESCRIPTION="blink(1) USB RGB LED status light control suite" HOMEPAGE="https://blink1.thingm.com/" - -## github release tarball -MY_PV=${PV/_rc/rc} -MY_P="${PN}-${MY_PV}" -SRC_URI="https://github.com/todbot/blink1/archive/v${MY_PV}.tar.gz -> ${MY_P}.tar.gz" - -## selfmade tarball -#MY_PVR=${PVR/_rc/rc} -#MY_P="${PN}-${MY_PVR}" -#SRC_URI="https://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${MY_P}.tar.gz" - -## github commit tarball -#MY_GIT_COMMIT="1e9c012bd79cb99a53a22980fbaa6f97801e7c03" -#MY_P="todbot-${PN}-${MY_GIT_COMMIT:0:7}" -#SRC_URI="https://github.com/todbot/${PN}/tarball/${MY_GIT_COMMIT} -> ${PF}.tar.gz" - -S="${WORKDIR}/${MY_P}" +SRC_URI="https://github.com/todbot/blink1/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S=${WORKDIR}/${P} LICENSE="CC-BY-SA-3.0" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="doc examples +tool mini-tool server" - REQUIRED_USE="|| ( tool mini-tool server )" -RDEPEND="dev-libs/hidapi - mini-tool? ( virtual/libusb:0 ) - virtual/libusb:1 - virtual/libudev +RDEPEND=" + dev-libs/hidapi sys-apps/attr - sys-libs/libcap" -DEPEND="${RDEPEND} - virtual/pkgconfig" + sys-libs/libcap + virtual/libudev + virtual/libusb:1 + mini-tool? ( virtual/libusb:0 ) +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" -PATCHES=( "${FILESDIR}/${P}-ldflags.patch" ) +PATCHES=( + "${FILESDIR}/${P}-ldflags.patch" +) pkg_setup() { - ## check for USB HID kernel support + local CONFIG_CHECK="USB_HID" linux-info_pkg_setup - CONFIG_CHECK="USB_HID" - check_extra_config } src_compile() { + tc-export CC if use tool; then pushd commandline &>/dev/null # USBLIB_TYPE=HIDAPI