diff options
author | 2021-06-22 22:06:28 +0100 | |
---|---|---|
committer | 2021-06-22 15:59:59 -0700 | |
commit | 216d3f17236a9ea06d9b3f6e8954629315717459 (patch) | |
tree | db78da8eae141e4441298fa5206672dff4abdb09 /app-misc/openrgb | |
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')
-rw-r--r-- | app-misc/openrgb/Manifest | 2 | ||||
-rw-r--r-- | app-misc/openrgb/files/OpenRGB-0.5-build-system.patch | 13 | ||||
-rw-r--r-- | app-misc/openrgb/files/OpenRGB-0.6-pkgconf.patch | 11 | ||||
-rw-r--r-- | app-misc/openrgb/metadata.xml | 15 | ||||
-rw-r--r-- | app-misc/openrgb/openrgb-0.5.ebuild | 53 | ||||
-rw-r--r-- | app-misc/openrgb/openrgb-0.6.ebuild | 57 | ||||
-rw-r--r-- | app-misc/openrgb/openrgb-9999.ebuild | 58 |
7 files changed, 209 insertions, 0 deletions
diff --git a/app-misc/openrgb/Manifest b/app-misc/openrgb/Manifest new file mode 100644 index 000000000000..dc65a0e68b1a --- /dev/null +++ b/app-misc/openrgb/Manifest @@ -0,0 +1,2 @@ +DIST OpenRGB-release_0.5.tar.bz2 24183948 BLAKE2B c3e6eaab2224f97287a454375486cdacc6814f35fe6752271293d30110d066998d95a901224929cdec7f57a3983fa9d8f5dc488a2ccb6d128df36fac6bc4582a SHA512 d0bd69de94e7e94b9972c07851602d8437b4485d02e83e2fe84f21292acbeef32624ec82d5cb79de85a4dfec35431c469b124b0cc41cf1f741e6e52803dd82eb +DIST OpenRGB-release_0.6.tar.bz2 24301305 BLAKE2B 20d8f8f7a3189fd5f94b008b11c869d2a8584dc038322e4ac8649c7b57172637133dd18c05ed8eaa6907ba7c097280727a9e7ce2e676250146044bbc2d66921e SHA512 9eb090e1cab121308f3adea8c50feb819a19cb52feff29e45ec24dfbb37013421f53d2ac614496781af1ef4e612dd41c1abafec509430df7d0715aba59ee5a32 diff --git a/app-misc/openrgb/files/OpenRGB-0.5-build-system.patch b/app-misc/openrgb/files/OpenRGB-0.5-build-system.patch new file mode 100644 index 000000000000..fe805988af5d --- /dev/null +++ b/app-misc/openrgb/files/OpenRGB-0.5-build-system.patch @@ -0,0 +1,13 @@ +diff --git a/OpenRGB.pro b/OpenRGB.pro +index 91e0079..7f279dd 100644 +--- a/OpenRGB.pro ++++ b/OpenRGB.pro +@@ -26,8 +26,5 @@ TEMPLATE = app + win32:BUILDDATE = $$system(date /t) + unix:BUILDDATE = $$system(date -R -d "@${SOURCE_DATE_EPOCH:-$(date +%s)}") +-GIT_COMMIT_ID = $$system(git --git-dir $$_PRO_FILE_PWD_/.git --work-tree $$_PRO_FILE_PWD_ rev-parse HEAD) +-GIT_COMMIT_DATE = $$system(git --git-dir $$_PRO_FILE_PWD_/.git --work-tree $$_PRO_FILE_PWD_ show -s --format=%ci HEAD) +-GIT_BRANCH = $$system(git --git-dir $$_PRO_FILE_PWD_/.git --work-tree $$_PRO_FILE_PWD_ rev-parse --abbrev-ref HEAD) + + DEFINES += \ + VERSION_STRING=\\"\"\"$$VERSION\\"\"\" \ diff --git a/app-misc/openrgb/files/OpenRGB-0.6-pkgconf.patch b/app-misc/openrgb/files/OpenRGB-0.6-pkgconf.patch new file mode 100644 index 000000000000..380b1091d225 --- /dev/null +++ b/app-misc/openrgb/files/OpenRGB-0.6-pkgconf.patch @@ -0,0 +1,11 @@ +--- a/OpenRGB.pro 2021-06-06 22:51:12.022561718 +0100 ++++ b/OpenRGB.pro 2021-06-06 22:51:24.466105358 +0100 +@@ -837,7 +837,7 @@ unix:!macx { + # hidapi-hidraw >= 0.10.1 supports USAGE/USAGE_PAGE # + # Define USE_HID_USAGE if hidapi-hidraw supports it # + #---------------------------------------------------------------------------------------# +- HIDAPI_HIDRAW_VERSION = $$system(pkgconf --modversion hidapi-hidraw) ++ HIDAPI_HIDRAW_VERSION = $$system(pkg-config --modversion hidapi-hidraw) + if(versionAtLeast(HIDAPI_HIDRAW_VERSION, "0.10.1")) { + DEFINES += USE_HID_USAGE + } diff --git a/app-misc/openrgb/metadata.xml b/app-misc/openrgb/metadata.xml new file mode 100644 index 000000000000..c308d68bd107 --- /dev/null +++ b/app-misc/openrgb/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>chutzpah@gentoo.org</email> + <name>Patrick McLean</name> + </maintainer> + <maintainer type="person" proxied="yes"> + <email>alexey+gentoo@asokolov.org</email> + <name>Alexey Sokolov</name> + </maintainer> + <upstream> + <remote-id type="gitlab">CalcProgrammer1/OpenRGB</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-misc/openrgb/openrgb-0.5.ebuild b/app-misc/openrgb/openrgb-0.5.ebuild new file mode 100644 index 000000000000..c96e46374ac8 --- /dev/null +++ b/app-misc/openrgb/openrgb-0.5.ebuild @@ -0,0 +1,53 @@ +# 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" +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 + virtual/libusb:1 +" +DEPEND=" + ${RDEPEND} + dev-cpp/nlohmann_json +" +BDEPEND=" + virtual/pkgconfig +" + +src_prepare() { + default + rm -r dependencies/{hidapi,libusb,json}* || die + if [[ ${PV} != *9999* ]]; then + eapply "${FILESDIR}/OpenRGB-0.5-build-system.patch" + fi +} + +src_configure() { + eqmake5 INCLUDEPATH+="${ESYSROOT}/usr/include/nlohmann" +} + +src_install() { + emake INSTALL_ROOT="${ED}" install + + dodoc README.md OpenRGB.patch +} diff --git a/app-misc/openrgb/openrgb-0.6.ebuild b/app-misc/openrgb/openrgb-0.6.ebuild new file mode 100644 index 000000000000..c356d7aff6fb --- /dev/null +++ b/app-misc/openrgb/openrgb-0.6.ebuild @@ -0,0 +1,57 @@ +# 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 + 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}* || die +} + +src_configure() { + eqmake5 INCLUDEPATH+="${ESYSROOT}/usr/include/nlohmann" +} + +src_install() { + emake INSTALL_ROOT="${ED}" install + + dodoc README.md OpenRGB.patch +} 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 +} |