public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-misc/blink1/
@ 2024-06-19  5:20 Arthur Zamarin
  0 siblings, 0 replies; 11+ messages in thread
From: Arthur Zamarin @ 2024-06-19  5:20 UTC (permalink / raw
  To: gentoo-commits

commit:     69afd45916f3b8169194390a882c0b637173de67
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 19 05:19:37 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Wed Jun 19 05:20:37 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69afd459

app-misc/blink1: revbump

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 app-misc/blink1/{blink1-1.98-r2.ebuild => blink1-1.98-r3.ebuild} | 0
 1 file changed, 0 insertions(+), 0 deletions(-)

diff --git a/app-misc/blink1/blink1-1.98-r2.ebuild b/app-misc/blink1/blink1-1.98-r3.ebuild
similarity index 100%
rename from app-misc/blink1/blink1-1.98-r2.ebuild
rename to app-misc/blink1/blink1-1.98-r3.ebuild


^ permalink raw reply	[flat|nested] 11+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-misc/blink1/
@ 2024-06-19  5:20 Arthur Zamarin
  0 siblings, 0 replies; 11+ messages in thread
From: Arthur Zamarin @ 2024-06-19  5:20 UTC (permalink / raw
  To: gentoo-commits

commit:     8cc85335106ddb4c183e99c76da0025ea7d9987c
Author:     Martin Kolleck <martin.kolleck <AT> gmail <DOT> com>
AuthorDate: Tue Jun 18 18:29:30 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Wed Jun 19 05:20:35 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cc85335

app-misc/blink1: Bump to EAPI=8.

Bug: https://bugs.gentoo.org/934200
Signed-off-by: Martin Kolleck <martin.kolleck <AT> gmail.com>
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 app-misc/blink1/blink1-1.98-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-misc/blink1/blink1-1.98-r2.ebuild b/app-misc/blink1/blink1-1.98-r2.ebuild
index 491a0fb73ed2..a80273962a5d 100644
--- a/app-misc/blink1/blink1-1.98-r2.ebuild
+++ b/app-misc/blink1/blink1-1.98-r2.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=8
 
 inherit linux-info
 


^ permalink raw reply related	[flat|nested] 11+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-misc/blink1/
@ 2024-06-19  5:20 Arthur Zamarin
  0 siblings, 0 replies; 11+ messages in thread
From: Arthur Zamarin @ 2024-06-19  5:20 UTC (permalink / raw
  To: gentoo-commits

commit:     78b40eaec64f394ebcf239525b08eddae3a850f1
Author:     Martin Kolleck <martin.kolleck <AT> gmail <DOT> com>
AuthorDate: Tue Jun 18 18:36:41 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Wed Jun 19 05:20:35 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78b40eae

app-misc/blink1: Translate USE flag checks from pkg_setup() to REQUIRED_USE.

Bug: https://bugs.gentoo.org/711348
Signed-off-by: Martin Kolleck <martin.kolleck <AT> gmail.com>
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 app-misc/blink1/blink1-1.98-r2.ebuild | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/app-misc/blink1/blink1-1.98-r2.ebuild b/app-misc/blink1/blink1-1.98-r2.ebuild
index a80273962a5d..cdaee39d6c6f 100644
--- a/app-misc/blink1/blink1-1.98-r2.ebuild
+++ b/app-misc/blink1/blink1-1.98-r2.ebuild
@@ -30,6 +30,8 @@ SLOT="0"
 LICENSE="CC-BY-SA-3.0"
 IUSE="doc examples +tool mini-tool server"
 
+REQUIRED_USE="|| ( tool mini-tool server )"
+
 RDEPEND="dev-libs/hidapi
 	virtual/libusb:1
 	virtual/libudev
@@ -43,12 +45,6 @@ pkg_setup() {
 	linux-info_pkg_setup
 	CONFIG_CHECK="USB_HID"
 	check_extra_config
-	## check for acceptable USE flag settings
-	if ! ( use tool || use mini-tool || use server ); then
-		eerror "At least one of the following USE flags must be enabled:"
-		eerror "tool, mini-tool, server"
-		die "unacceptable USE flag settings"
-	fi
 }
 
 src_compile() {


^ permalink raw reply related	[flat|nested] 11+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-misc/blink1/
@ 2024-06-19  5:20 Arthur Zamarin
  0 siblings, 0 replies; 11+ messages in thread
From: Arthur Zamarin @ 2024-06-19  5:20 UTC (permalink / raw
  To: gentoo-commits

commit:     584bba3ca93fe35d0ed11fa4ea6bea339ca623c1
Author:     Martin Kolleck <martin.kolleck <AT> gmail <DOT> com>
AuthorDate: Tue Jun 18 18:44:17 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Wed Jun 19 05:20:35 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=584bba3c

app-misc/blink1: Building the mini-tool requires libusb:0.

Bug: https://bugs.gentoo.org/831750
Signed-off-by: Martin Kolleck <martin.kolleck <AT> gmail.com>
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 app-misc/blink1/blink1-1.98-r2.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app-misc/blink1/blink1-1.98-r2.ebuild b/app-misc/blink1/blink1-1.98-r2.ebuild
index cdaee39d6c6f..44d029ea0c00 100644
--- a/app-misc/blink1/blink1-1.98-r2.ebuild
+++ b/app-misc/blink1/blink1-1.98-r2.ebuild
@@ -33,6 +33,7 @@ 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
 	sys-apps/attr


^ permalink raw reply related	[flat|nested] 11+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-misc/blink1/
@ 2024-06-19  5:20 Arthur Zamarin
  0 siblings, 0 replies; 11+ messages in thread
From: Arthur Zamarin @ 2024-06-19  5:20 UTC (permalink / raw
  To: gentoo-commits

commit:     7cec887aa0cc3e2d6a79a1316190959f339d54d2
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 19 05:18:39 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> 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 <arthurzam <AT> 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


^ permalink raw reply related	[flat|nested] 11+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-misc/blink1/
@ 2024-06-19  5:20 Arthur Zamarin
  0 siblings, 0 replies; 11+ messages in thread
From: Arthur Zamarin @ 2024-06-19  5:20 UTC (permalink / raw
  To: gentoo-commits

commit:     fac626f38007c363fb7fa58c948f79bf0c03675b
Author:     Martin Kolleck <martin.kolleck <AT> gmail <DOT> com>
AuthorDate: Tue Jun 18 19:32:20 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Wed Jun 19 05:20:36 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fac626f3

app-misc/blink1: Fix QA errors reported through `pkgcheck`.

Signed-off-by: Martin Kolleck <martin.kolleck <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/37207
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 app-misc/blink1/blink1-1.98-r2.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app-misc/blink1/blink1-1.98-r2.ebuild b/app-misc/blink1/blink1-1.98-r2.ebuild
index 6e914c9db749..f0cec6ceb496 100644
--- a/app-misc/blink1/blink1-1.98-r2.ebuild
+++ b/app-misc/blink1/blink1-1.98-r2.ebuild
@@ -25,9 +25,9 @@ SRC_URI="https://github.com/todbot/blink1/archive/v${MY_PV}.tar.gz -> ${MY_P}.ta
 
 S="${WORKDIR}/${MY_P}"
 
-KEYWORDS="~amd64 ~x86"
-SLOT="0"
 LICENSE="CC-BY-SA-3.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
 IUSE="doc examples +tool mini-tool server"
 
 REQUIRED_USE="|| ( tool mini-tool server )"


^ permalink raw reply related	[flat|nested] 11+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-misc/blink1/
@ 2021-05-28 20:12 Sam James
  0 siblings, 0 replies; 11+ messages in thread
From: Sam James @ 2021-05-28 20:12 UTC (permalink / raw
  To: gentoo-commits

commit:     b2e49fa8bdb4d37d863db972680539dc579128a9
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri May 28 20:12:16 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri May 28 20:12:16 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2e49fa8

app-misc/blink1: adjust docinto/dodoc order

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../{blink1-1.98-r1.ebuild => blink1-1.98-r2.ebuild}     | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/app-misc/blink1/blink1-1.98-r1.ebuild b/app-misc/blink1/blink1-1.98-r2.ebuild
similarity index 100%
rename from app-misc/blink1/blink1-1.98-r1.ebuild
rename to app-misc/blink1/blink1-1.98-r2.ebuild
index 5fc417e008a..491a0fb73ed 100644
--- a/app-misc/blink1/blink1-1.98-r1.ebuild
+++ b/app-misc/blink1/blink1-1.98-r2.ebuild
@@ -79,6 +79,14 @@ src_install() {
 		dodoc docs/README.md
 	fi
 
+	if use server; then
+		if use doc; then
+			dodoc docs/{app-url-api.md,app-url-api-examples.md}
+		fi
+
+		dobin commandline/blink1-tiny-server
+	fi
+
 	if use tool; then
 		if use doc; then
 			dodoc docs/{blink1-tool.md,blink1-tool-tips.md,blink1-hid-commands.md,blink1-mk2-tricks.md}
@@ -95,12 +103,4 @@ src_install() {
 	if use mini-tool; then
 		dobin commandline/blink1-mini-tool/blink1-mini-tool
 	fi
-
-	if use server; then
-		if use doc; then
-			dodoc docs/{app-url-api.md,app-url-api-examples.md}
-		fi
-
-		dobin commandline/blink1-tiny-server
-	fi
 }


^ permalink raw reply related	[flat|nested] 11+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-misc/blink1/
@ 2021-05-28 15:57 David Seifert
  0 siblings, 0 replies; 11+ messages in thread
From: David Seifert @ 2021-05-28 15:57 UTC (permalink / raw
  To: gentoo-commits

commit:     2dbd9130883eb6301d6ee1f3859d0e5d0f66ea46
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri May 28 15:56:45 2021 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Fri May 28 15:56:45 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2dbd9130

app-misc/blink1: fix docinto argument (avoid double 'prefix')

Signed-off-by: Sam James <sam <AT> gentoo.org>
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../blink1/{blink1-1.98.ebuild => blink1-1.98-r1.ebuild}     | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/app-misc/blink1/blink1-1.98.ebuild b/app-misc/blink1/blink1-1.98-r1.ebuild
similarity index 96%
rename from app-misc/blink1/blink1-1.98.ebuild
rename to app-misc/blink1/blink1-1.98-r1.ebuild
index 4e4ac4135a5..5fc417e008a 100644
--- a/app-misc/blink1/blink1-1.98.ebuild
+++ b/app-misc/blink1/blink1-1.98-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -60,11 +60,13 @@ src_compile() {
 		emake OS=linux USBLIB_TYPE=HIDAPI blink1-tool
 		popd &>/dev/null
 	fi
+
 	if use mini-tool; then
 		pushd commandline/blink1-mini-tool &>/dev/null
 		emake OS=linux blink1-mini-tool
 		popd &>/dev/null
 	fi
+
 	if use server; then
 		pushd commandline &>/dev/null
 		emake OS=linux blink1-tiny-server
@@ -76,23 +78,29 @@ src_install() {
 	if use doc; then
 		dodoc docs/README.md
 	fi
+
 	if use tool; then
 		if use doc; then
 			dodoc docs/{blink1-tool.md,blink1-tool-tips.md,blink1-hid-commands.md,blink1-mk2-tricks.md}
 		fi
+
 		if use examples; then
-			docinto /usr/share/doc/"${PF}"/examples
+			docinto examples
 			dodoc commandline/scripts/{README.md,blink1-*.sh}
 		fi
+
 		dobin commandline/blink1-tool
 	fi
+
 	if use mini-tool; then
 		dobin commandline/blink1-mini-tool/blink1-mini-tool
 	fi
+
 	if use server; then
 		if use doc; then
 			dodoc docs/{app-url-api.md,app-url-api-examples.md}
 		fi
+
 		dobin commandline/blink1-tiny-server
 	fi
 }


^ permalink raw reply related	[flat|nested] 11+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-misc/blink1/
@ 2020-01-29  6:14 Joonas Niilola
  0 siblings, 0 replies; 11+ messages in thread
From: Joonas Niilola @ 2020-01-29  6:14 UTC (permalink / raw
  To: gentoo-commits

commit:     9f9383fe734fd039757e30a9943e532bfba2534d
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 29 06:11:09 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Jan 29 06:14:05 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f9383fe

app-misc/blink1: fix DeprecatedInsinto CI issue

Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 app-misc/blink1/blink1-1.98.ebuild | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/app-misc/blink1/blink1-1.98.ebuild b/app-misc/blink1/blink1-1.98.ebuild
index 5c644a5a7e3..4e4ac4135a5 100644
--- a/app-misc/blink1/blink1-1.98.ebuild
+++ b/app-misc/blink1/blink1-1.98.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -81,9 +81,8 @@ src_install() {
 			dodoc docs/{blink1-tool.md,blink1-tool-tips.md,blink1-hid-commands.md,blink1-mk2-tricks.md}
 		fi
 		if use examples; then
-			insinto /usr/share/doc/"${PF}"/examples
-			doins commandline/scripts/{README.md,blink1-*.sh}
-			docompress -x /usr/share/doc/"${PF}"/examples
+			docinto /usr/share/doc/"${PF}"/examples
+			dodoc commandline/scripts/{README.md,blink1-*.sh}
 		fi
 		dobin commandline/blink1-tool
 	fi


^ permalink raw reply related	[flat|nested] 11+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-misc/blink1/
@ 2017-09-06 21:00 Michał Górny
  0 siblings, 0 replies; 11+ messages in thread
From: Michał Górny @ 2017-09-06 21:00 UTC (permalink / raw
  To: gentoo-commits

commit:     f25edbfebb91347a5cfd40413c7cf6c27dae368f
Author:     Francesco Turco <fturco <AT> fastmail <DOT> fm>
AuthorDate: Sun Sep  3 16:50:41 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Sep  6 20:59:36 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f25edbfe

app-misc/blink1: use HTTPS for links to dev.gentoo.org

Closes: https://github.com/gentoo/gentoo/pull/5607

 app-misc/blink1/blink1-1.98.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app-misc/blink1/blink1-1.98.ebuild b/app-misc/blink1/blink1-1.98.ebuild
index 2dfea7e2e4e..db7709ef64d 100644
--- a/app-misc/blink1/blink1-1.98.ebuild
+++ b/app-misc/blink1/blink1-1.98.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -16,7 +16,7 @@ SRC_URI="https://github.com/todbot/blink1/archive/v${MY_PV}.tar.gz -> ${MY_P}.ta
 ## selfmade tarball
 #MY_PVR=${PVR/_rc/rc}
 #MY_P="${PN}-${MY_PVR}"
-#SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${MY_P}.tar.gz"
+#SRC_URI="https://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${MY_P}.tar.gz"
 
 ## github commit tarball
 #MY_GIT_COMMIT="1e9c012bd79cb99a53a22980fbaa6f97801e7c03"


^ permalink raw reply related	[flat|nested] 11+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-misc/blink1/
@ 2016-09-05 11:49 Wolfram Schlich
  0 siblings, 0 replies; 11+ messages in thread
From: Wolfram Schlich @ 2016-09-05 11:49 UTC (permalink / raw
  To: gentoo-commits

commit:     b4b8eb700fb391f9742a13c34477e048a0c1124d
Author:     Wolfram Schlich <wschlich <AT> gentoo <DOT> org>
AuthorDate: Mon Sep  5 11:49:07 2016 +0000
Commit:     Wolfram Schlich <wschlich <AT> gentoo <DOT> org>
CommitDate: Mon Sep  5 11:49:07 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4b8eb70

app-misc/blink1: initial import of blink(1) USB RGB LED status light control suite

Package-Manager: portage-2.2.28

 app-misc/blink1/Manifest           |   1 +
 app-misc/blink1/blink1-1.98.ebuild | 100 +++++++++++++++++++++++++++++++++++++
 app-misc/blink1/metadata.xml       |  16 ++++++
 3 files changed, 117 insertions(+)

diff --git a/app-misc/blink1/Manifest b/app-misc/blink1/Manifest
new file mode 100644
index 00000000..55f3cb0
--- /dev/null
+++ b/app-misc/blink1/Manifest
@@ -0,0 +1 @@
+DIST blink1-1.98.tar.gz 29439933 SHA256 2bbf8848c3c656ab8fb01035fd31103a321fbee20164691cf67e3706c4b50b16 SHA512 2057e3ccf149dbdaaea2d09dabaa95317125d65151dc79c675365f55e85a3d0988232fd5ff404bdcfd127ebc266495afa04fb1b3fd0e4ac931bb711b0bb63568 WHIRLPOOL 24872d94ce246e3f64b096462496ead02b14ed2dd19e6ca1fc1b6f03e5c12069e18cde9e5ace5c4ed49ee7d7a35a3d61542a06019242a43d953ab0a2a820f7c2

diff --git a/app-misc/blink1/blink1-1.98.ebuild b/app-misc/blink1/blink1-1.98.ebuild
new file mode 100644
index 00000000..7d6e17a
--- /dev/null
+++ b/app-misc/blink1/blink1-1.98.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit linux-info
+
+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="http://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}"
+
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+LICENSE="CC-BY-SA-3.0"
+IUSE="doc examples +tool mini-tool server"
+
+RDEPEND="dev-libs/hidapi
+	virtual/libusb:1
+	virtual/libudev
+	sys-apps/attr
+	sys-libs/libcap"
+DEPEND="${RDEPEND}
+	virtual/pkgconfig"
+
+pkg_setup() {
+	## check for USB HID kernel support
+	linux-info_pkg_setup
+	CONFIG_CHECK="USB_HID"
+	check_extra_config
+	## check for acceptable USE flag settings
+	if ! ( use tool || use mini-tool || use server ); then
+		eerror "At least one of the following USE flags must be enabled:"
+		eerror "tool, mini-tool, server"
+		die "unacceptable USE flag settings"
+	fi
+}
+
+src_compile() {
+	if use tool; then
+		pushd commandline &>/dev/null
+		# USBLIB_TYPE=HIDAPI
+		# USBLIB_TYPE=HIDAPI_HIDRAW
+		# USBLIB_TYPE=HIDDATA
+		emake OS=linux USBLIB_TYPE=HIDAPI blink1-tool || die "emake blink1-tool failed"
+		popd &>/dev/null
+	fi
+	if use mini-tool; then
+		pushd commandline/blink1-mini-tool &>/dev/null
+		emake OS=linux blink1-mini-tool || die "emake blink1-mini-tool failed"
+		popd &>/dev/null
+	fi
+	if use server; then
+		pushd commandline &>/dev/null
+		emake OS=linux blink1-tiny-server || die "emake blink1-tiny-server failed"
+		popd &>/dev/null
+	fi
+}
+
+src_install() {
+	if use doc; then
+		dodoc docs/README.md
+	fi
+	if use tool; then
+		if use doc; then
+			dodoc docs/{blink1-tool.md,blink1-tool-tips.md,blink1-hid-commands.md,blink1-mk2-tricks.md}
+		fi
+		if use examples; then
+			insinto /usr/share/doc/"${PF}"/examples
+			doins commandline/scripts/{README.md,blink1-*.sh}
+			docompress -x /usr/share/doc/"${PF}"/examples
+		fi
+		dobin commandline/blink1-tool
+	fi
+	if use mini-tool; then
+		dobin commandline/blink1-mini-tool/blink1-mini-tool
+	fi
+	if use server; then
+		if use doc; then
+			dodoc docs/{app-url-api.md,app-url-api-examples.md}
+		fi
+		dobin commandline/blink1-tiny-server
+	fi
+}

diff --git a/app-misc/blink1/metadata.xml b/app-misc/blink1/metadata.xml
new file mode 100644
index 00000000..0e55ab8
--- /dev/null
+++ b/app-misc/blink1/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="person">
+    <email>wschlich@gentoo.org</email>
+    <name>Wolfram Schlich</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="github">todbot/blink1</remote-id>
+  </upstream>
+  <use>
+    <flag name="tool">Build and install command-line tool blink1-tool</flag>
+    <flag name="mini-tool">Build and install command-line mini-tool blink1-mini-tool (normally used for embedded devices)</flag>
+    <flag name="server">Build and install REST API server (currently hard-coded to TCP port 8080)</flag>
+  </use>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-06-19  5:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-19  5:20 [gentoo-commits] repo/gentoo:master commit in: app-misc/blink1/ Arthur Zamarin
  -- strict thread matches above, loose matches on Subject: below --
2024-06-19  5:20 Arthur Zamarin
2024-06-19  5:20 Arthur Zamarin
2024-06-19  5:20 Arthur Zamarin
2024-06-19  5:20 Arthur Zamarin
2024-06-19  5:20 Arthur Zamarin
2021-05-28 20:12 Sam James
2021-05-28 15:57 David Seifert
2020-01-29  6:14 Joonas Niilola
2017-09-06 21:00 Michał Górny
2016-09-05 11:49 Wolfram Schlich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox