diff options
author | Alexey Sokolov <sokolov@google.com> | 2020-08-15 01:07:17 +0100 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2020-08-27 14:25:36 -0700 |
commit | 1461450a8b3b976c387e93724e249ffad46245c4 (patch) | |
tree | 9e5ea1aa75f3f74c80b4dc0fb77098a5e0893eba /app-misc/OpenRGB | |
parent | x11-terms/alacritty: use compat logo (diff) | |
download | gentoo-1461450a8b3b976c387e93724e249ffad46245c4.tar.gz gentoo-1461450a8b3b976c387e93724e249ffad46245c4.tar.bz2 gentoo-1461450a8b3b976c387e93724e249ffad46245c4.zip |
app-misc/OpenRGB: add improvements from my overlay
* fix installation on Prefix
* use release tarball instead of snapshot
* use udev eclass
* add live ebuild
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Closes: https://github.com/gentoo/gentoo/pull/17124
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'app-misc/OpenRGB')
-rw-r--r-- | app-misc/OpenRGB/Manifest | 1 | ||||
-rw-r--r-- | app-misc/OpenRGB/OpenRGB-0.3-r2.ebuild | 57 | ||||
-rw-r--r-- | app-misc/OpenRGB/OpenRGB-9999.ebuild | 57 |
3 files changed, 115 insertions, 0 deletions
diff --git a/app-misc/OpenRGB/Manifest b/app-misc/OpenRGB/Manifest index 436a2c36c152..459f45eae2a3 100644 --- a/app-misc/OpenRGB/Manifest +++ b/app-misc/OpenRGB/Manifest @@ -1 +1,2 @@ DIST OpenRGB-0.3.tar.bz2 2153970 BLAKE2B 2b913fd867cfd2d856d70d15ec91abd6a6d2822b367bc72f8f4275784793474beab4f442bc1af0ec3c3f33630b2f6b09d490d4f326fa4dbc4dbe11e4944cbc6f SHA512 629eb654636051b18da0f49cccf4e35dbe11a1373941cd355b27492b8382c113637d80039fa7aa749ae3f36bf838ad4da8da00f5abf5a0b8910be0ad1ecd999c +DIST OpenRGB-release_0.3.tar.bz2 2146596 BLAKE2B fc9228d8746770440b7d6bace1a858fed6e2b2db63b84f0e403352e1bd46dd594f24d929da447acdeee22a08a9e2e5394a58107643630c5e38c9780fd02bf2f4 SHA512 53924f315fd6f35ed8530798ed5fadd6171a0e896567173e95c9ac258cfc959db6d920730e606f9fceb9d360c9c87709d65e12ba00652f500d6c2f39506c9a44 diff --git a/app-misc/OpenRGB/OpenRGB-0.3-r2.ebuild b/app-misc/OpenRGB/OpenRGB-0.3-r2.ebuild new file mode 100644 index 000000000000..c599eb227297 --- /dev/null +++ b/app-misc/OpenRGB/OpenRGB-0.3-r2.ebuild @@ -0,0 +1,57 @@ +# 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-libs/libbsd:= + dev-qt/qtcore:5= + dev-qt/qtgui:5= + dev-qt/qtwidgets:5= + virtual/libusb:1 +" +RDEPEND="${DEPEND}" +BDEPEND=" + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}/OpenRGB-0.2-build-system.patch" +) + +src_prepare() { + default + rm -rf dependencies/{hidapi,libusb}* || die +} + +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 +} diff --git a/app-misc/OpenRGB/OpenRGB-9999.ebuild b/app-misc/OpenRGB/OpenRGB-9999.ebuild new file mode 100644 index 000000000000..c599eb227297 --- /dev/null +++ b/app-misc/OpenRGB/OpenRGB-9999.ebuild @@ -0,0 +1,57 @@ +# 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-libs/libbsd:= + dev-qt/qtcore:5= + dev-qt/qtgui:5= + dev-qt/qtwidgets:5= + virtual/libusb:1 +" +RDEPEND="${DEPEND}" +BDEPEND=" + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}/OpenRGB-0.2-build-system.patch" +) + +src_prepare() { + default + rm -rf dependencies/{hidapi,libusb}* || die +} + +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 +} |