summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Sokolov <sokolov@google.com>2020-09-12 22:40:33 +0100
committerPatrick McLean <chutzpah@gentoo.org>2020-09-15 19:54:29 -0700
commit1634183b8e7d5150365a88e7de4cacb8eb50edd7 (patch)
tree60f959da604c37c5514e8778aa815b3a059c7280
parentapp-misc/OpenRGB: drop old (diff)
downloadgentoo-1634183b8e7d5150365a88e7de4cacb8eb50edd7.tar.gz
gentoo-1634183b8e7d5150365a88e7de4cacb8eb50edd7.tar.bz2
gentoo-1634183b8e7d5150365a88e7de4cacb8eb50edd7.zip
app-misc/OpenRGB: 0.4
Package-Manager: Portage-3.0.4, Repoman-2.3.23 Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org> Closes: https://github.com/gentoo/gentoo/pull/17515 Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
-rw-r--r--app-misc/OpenRGB/Manifest1
-rw-r--r--app-misc/OpenRGB/OpenRGB-0.4.ebuild55
2 files changed, 56 insertions, 0 deletions
diff --git a/app-misc/OpenRGB/Manifest b/app-misc/OpenRGB/Manifest
index 54fa4556ab5b..b0e97bdac960 100644
--- a/app-misc/OpenRGB/Manifest
+++ b/app-misc/OpenRGB/Manifest
@@ -1 +1,2 @@
DIST OpenRGB-release_0.3.tar.bz2 2146596 BLAKE2B fc9228d8746770440b7d6bace1a858fed6e2b2db63b84f0e403352e1bd46dd594f24d929da447acdeee22a08a9e2e5394a58107643630c5e38c9780fd02bf2f4 SHA512 53924f315fd6f35ed8530798ed5fadd6171a0e896567173e95c9ac258cfc959db6d920730e606f9fceb9d360c9c87709d65e12ba00652f500d6c2f39506c9a44
+DIST OpenRGB-release_0.4.tar.bz2 2195819 BLAKE2B 6416e143707e5ae48d0f26d205e1cc27571299d7d4b8483d18cc03db237d71ebc3574973fc1540dacc24662c536888e575e89db417e52dc9672d412fe41c540b SHA512 9ecdf0a0aec5916b1c705c1ad0bd567f46f9b0a4409211cb195ec7a4bfbc95c80bde13798839d23e867ed613cb34c6e9629da4aac942490f58ca9528f5f0a8bd
diff --git a/app-misc/OpenRGB/OpenRGB-0.4.ebuild b/app-misc/OpenRGB/OpenRGB-0.4.ebuild
new file mode 100644
index 000000000000..f8119c80c919
--- /dev/null
+++ b/app-misc/OpenRGB/OpenRGB-0.4.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit qmake-utils udev
+
+if [[ ${PV} == *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI=${EGIT_REPO_URI:-"https://gitlab.com/CalcProgrammer1/OpenRGB"}
+else
+ SRC_URI="https://gitlab.com/CalcProgrammer1/OpenRGB/-/archive/release_${PV}/OpenRGB-release_${PV}.tar.bz2"
+ S="${WORKDIR}/OpenRGB-release_${PV}"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="Open source RGB lighting control that doesn't depend on manufacturer software"
+HOMEPAGE="https://gitlab.com/CalcProgrammer1/OpenRGB/"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="udev"
+
+DEPEND="
+ dev-libs/hidapi:=
+ dev-qt/qtcore:5=
+ dev-qt/qtgui:5=
+ dev-qt/qtwidgets:5=
+ virtual/libusb:1
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ default
+ rm -rf dependencies/{hidapi,libusb}* || die
+ if [[ ${PV} != *9999* ]]; then
+ eapply "${FILESDIR}/OpenRGB-0.2-build-system.patch"
+ fi
+}
+
+src_configure() {
+ eqmake5
+}
+
+src_install() {
+ emake INSTALL_ROOT="${ED}" install
+
+ dodoc README.md OpenRGB.patch
+
+ if use udev; then
+ udev_dorules 60-openrgb.rules
+ fi
+}