public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Wolfram Schlich" <wschlich@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/blink1/
Date: Mon,  5 Sep 2016 11:49:17 +0000 (UTC)	[thread overview]
Message-ID: <1473076147.b4b8eb700fb391f9742a13c34477e048a0c1124d.wschlich@gentoo> (raw)

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>


             reply	other threads:[~2016-09-05 11:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-05 11:49 Wolfram Schlich [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-09-06 21:00 [gentoo-commits] repo/gentoo:master commit in: app-misc/blink1/ Michał Górny
2020-01-29  6:14 Joonas Niilola
2021-05-28 15:57 David Seifert
2021-05-28 20:12 Sam James
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
2024-06-19  5:20 Arthur Zamarin

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=1473076147.b4b8eb700fb391f9742a13c34477e048a0c1124d.wschlich@gentoo \
    --to=wschlich@gentoo.org \
    --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