diff options
author | Alexey Sokolov <sokolov@google.com> | 2021-06-22 22:06:28 +0100 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2021-06-22 15:59:59 -0700 |
commit | 216d3f17236a9ea06d9b3f6e8954629315717459 (patch) | |
tree | db78da8eae141e4441298fa5206672dff4abdb09 /app-misc/openrgb/openrgb-9999.ebuild | |
parent | kde-plasma/plasma-desktop: add virtual/libcrypt dependency (diff) | |
download | gentoo-216d3f17236a9ea06d9b3f6e8954629315717459.tar.gz gentoo-216d3f17236a9ea06d9b3f6e8954629315717459.tar.bz2 gentoo-216d3f17236a9ea06d9b3f6e8954629315717459.zip |
app-misc/openrgb: rename from OpenRGB
For consistency with multiple other packages. Even the binary itself is
named with small letters now.
Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'app-misc/openrgb/openrgb-9999.ebuild')
-rw-r--r-- | app-misc/openrgb/openrgb-9999.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/app-misc/openrgb/openrgb-9999.ebuild b/app-misc/openrgb/openrgb-9999.ebuild new file mode 100644 index 000000000000..c1f1eb4bbcb3 --- /dev/null +++ b/app-misc/openrgb/openrgb-9999.ebuild @@ -0,0 +1,58 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit qmake-utils + +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" + PATCHES=( + "${FILESDIR}"/OpenRGB-0.5-build-system.patch + ) +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" + +RDEPEND=" + dev-libs/hidapi:= + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + net-libs/mbedtls:= + virtual/libusb:1 +" +DEPEND=" + ${RDEPEND} + dev-cpp/nlohmann_json +" +BDEPEND=" + virtual/pkgconfig +" + +PATCHES+=( + "${FILESDIR}"/OpenRGB-0.6-pkgconf.patch +) + +src_prepare() { + default + rm -r dependencies/{hidapi,libusb,json,mbedtls}* || die +} + +src_configure() { + eqmake5 INCLUDEPATH+="${ESYSROOT}/usr/include/nlohmann" +} + +src_install() { + emake INSTALL_ROOT="${ED}" install + + dodoc README.md OpenRGB.patch +} |