You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.1 KiB
56 lines
1.1 KiB
4 years ago
|
# Copyright 2020 Gentoo Authors
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
4 years ago
|
inherit qmake-utils udev
|
||
4 years ago
|
|
||
4 years ago
|
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
|
||
4 years ago
|
|
||
|
DESCRIPTION="Open source RGB lighting control that doesn't depend on manufacturer software"
|
||
|
HOMEPAGE="https://gitlab.com/CalcProgrammer1/OpenRGB/"
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
4 years ago
|
IUSE="udev"
|
||
4 years ago
|
|
||
|
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
|
||
4 years ago
|
if [[ ${PV} != *9999* ]]; then
|
||
|
eapply "${FILESDIR}/OpenRGB-0.2-build-system.patch"
|
||
|
fi
|
||
4 years ago
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
eqmake5
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
4 years ago
|
emake INSTALL_ROOT="${ED}" install
|
||
4 years ago
|
|
||
4 years ago
|
dodoc README.md OpenRGB.patch
|
||
4 years ago
|
|
||
4 years ago
|
if use udev; then
|
||
4 years ago
|
udev_dorules 60-openrgb.rules
|
||
4 years ago
|
fi
|
||
4 years ago
|
}
|