diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-12-18 11:06:49 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-12-18 11:06:49 +0000 |
commit | ab3da91fb6c91a9df52fff8f991570f456fd3c7a (patch) | |
tree | e8f3bfa2c6c3d20ec3b9c352c839e23949068b6b /sys-apps/roccat-tools | |
parent | 6abbf81ef2f298e3221ff5e67a1f3c5f23958212 (diff) |
gentoo resync : 18.12.2020
Diffstat (limited to 'sys-apps/roccat-tools')
-rw-r--r-- | sys-apps/roccat-tools/Manifest | 2 | ||||
-rw-r--r-- | sys-apps/roccat-tools/files/roccat-tools-5.9.0-cmake_lua_impl.patch | 11 | ||||
-rw-r--r-- | sys-apps/roccat-tools/roccat-tools-5.9.0-r100.ebuild | 147 |
3 files changed, 160 insertions, 0 deletions
diff --git a/sys-apps/roccat-tools/Manifest b/sys-apps/roccat-tools/Manifest index 00d0b060c1a6..f925a7ef753e 100644 --- a/sys-apps/roccat-tools/Manifest +++ b/sys-apps/roccat-tools/Manifest @@ -1,6 +1,8 @@ AUX README.gentoo 858 BLAKE2B d3cdc925b286481491fdad08de6c2a61c811fecb1eb36fa1e0b2cedf98577f9f3c2deff4bb881c906bab3a799616b43601d2dae494674ae439f6bf561bd82417 SHA512 3f88197dc83d4bf7e3cb8fd71079754ffa355ddf5fcf151304ae439090da44b3bdef3ed9deab44b36ffffb4b28ded2a71b1abffe5d3e1aa87f56bfa264920a7b +AUX roccat-tools-5.9.0-cmake_lua_impl.patch 236 BLAKE2B 833cb7662bdd1fc5942cfd3fd75fe3a7ce56616c8fb616403a056bbea6d0e5ecb8bd91b7ef39ecd12c30235172631eff839bc803910d1a8808c1d152db080bda SHA512 5bb4d236a053cbfed99f046d8cac4dcc1fb94535497e49f4be5338fc8c287623f4afeffa5164597d84aa16bca98b135d275f75e85df3e03bed95099caeb00d6c DIST roccat-tools-5.7.0.tar.bz2 3737735 BLAKE2B fdd86cef425f1f33309165673be52c8297380a1f0a722e827c2b3697c59dd787f4b473186ab5b8ff8fadcfc851f3bb5e76c8407d831b31f82cd360679d3c1a09 SHA512 209f9fa5302806a2d2681077e990a39a4913d47b82e73f9acd86f734affd8b3a7c0087e815e5cc1dfec1787d868d09b87211d9c2a90f2ced67c150eec1b2d290 DIST roccat-tools-5.9.0.tar.bz2 3736671 BLAKE2B 4cdd0c6b50021cfae127a692d5a2a7fff5e7e1281da7add0cf9cd8f5fbfd8882186142d56982bf929867bde2950440f26ced167b52707c9d810ab53a62a4bded SHA512 d825fc372654257f330abbc7e611e87c4888924288ad56c8e57c9db5c8c25426d454ae1ab4dd591ef3b930bed410497c0aa88095d5319e2708f4b263d16eca00 EBUILD roccat-tools-5.7.0.ebuild 2442 BLAKE2B ab3f4152fd8ff6f0575a5aa9a109e79044a2abc93315d6e93f07daa789a5bc15739218eafcaadc46258274951e688aa0252ca94c182868323f1822ebad5e9dba SHA512 b8cb3fdf8e5a28012155c324a9110a0ed8558be43795335da1ef57001119c104d26c12ff68e562502d481e46eccbba8b4000eeca35dc43ea7de634077c6fa28c +EBUILD roccat-tools-5.9.0-r100.ebuild 3365 BLAKE2B bba0eafc756a93e220e3d75006c0e3b34f23c5b736a93f95b809a710fa53170d0206abd22282473d74668dee066176beff592e55f1d9eb6c08e90100bb22e11e SHA512 81a7861b19199516542923dec906d7d1dcb1244fa26f1368c00b2ce6a527122e1a506321bb44fda4a7d85d98d08d96f5a4d76917ab03df5846cec12c88f813ea EBUILD roccat-tools-5.9.0.ebuild 2900 BLAKE2B f39932a29c8565de43dc20c6317c1b279d27425d0d0bea521e68b90eb94b4f42a1a2779c07939f95f9d2dede21fe0d2952a78dba2dfec393064679c13da1ccec SHA512 25a2cdc3ffe014c3db690a1de4ca33796fa67108747b84d55bd0488725e1097ab811c772912cec4751b7319d7a9363dde862d238189e023a2a18b44c899a22dc MISC metadata.xml 327 BLAKE2B b3a42ce918857aaa3ebe1705560661d80d9dc1cce60b5d79bddc1ead356cced572fe18d8b8d18f6c8f2ebb80393cc02efc4df3ad711aca08a67a15a1abd93e60 SHA512 99ed72c1a2a183157d0aded6f95c41c81c9c3d97f81c7267743ad3431676e2af1d7e08e4904761583af17806f5befd7254ca9f2ad170266d038053c7076a630e diff --git a/sys-apps/roccat-tools/files/roccat-tools-5.9.0-cmake_lua_impl.patch b/sys-apps/roccat-tools/files/roccat-tools-5.9.0-cmake_lua_impl.patch new file mode 100644 index 000000000000..3009572a8114 --- /dev/null +++ b/sys-apps/roccat-tools/files/roccat-tools-5.9.0-cmake_lua_impl.patch @@ -0,0 +1,11 @@ +--- a/cmake_modules/FindLUA.cmake ++++ b/cmake_modules/FindLUA.cmake +@@ -36,7 +36,7 @@ + ${_LUA_FIND_VERSION_SHORT} + -${_LUA_FIND_VERSION_SHORT} + ) +-SET(_LUA_NAMES luajit lua) ++SET(_LUA_NAMES ${LUA_IMPL}) + + FIND_PACKAGE(PkgConfig) + diff --git a/sys-apps/roccat-tools/roccat-tools-5.9.0-r100.ebuild b/sys-apps/roccat-tools/roccat-tools-5.9.0-r100.ebuild new file mode 100644 index 000000000000..1a5d2b88c0ab --- /dev/null +++ b/sys-apps/roccat-tools/roccat-tools-5.9.0-r100.ebuild @@ -0,0 +1,147 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( lua5-1 luajit ) + +inherit readme.gentoo-r1 cmake flag-o-matic lua-single toolchain-funcs udev user xdg + +DESCRIPTION="Utility for advanced configuration of Roccat devices" + +HOMEPAGE="http://roccat.sourceforge.net/" +SRC_URI="mirror://sourceforge/roccat/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE_INPUT_DEVICES=( + input_devices_roccat_arvo + input_devices_roccat_isku + input_devices_roccat_iskufx + input_devices_roccat_kiro + input_devices_roccat_kone + input_devices_roccat_koneplus + input_devices_roccat_konepure + input_devices_roccat_konepuremilitary + input_devices_roccat_konepureoptical + input_devices_roccat_konextd + input_devices_roccat_konextdoptical + input_devices_roccat_kovaplus + input_devices_roccat_kova2016 + input_devices_roccat_lua + input_devices_roccat_nyth + input_devices_roccat_pyra + input_devices_roccat_ryosmk + input_devices_roccat_ryosmkfx + input_devices_roccat_ryostkl + input_devices_roccat_savu + input_devices_roccat_skeltr + input_devices_roccat_sova + input_devices_roccat_suora + input_devices_roccat_tyon +) + +IUSE="${IUSE_INPUT_DEVICES[@]}" + +REQUIRED_USE=" + input_devices_roccat_ryosmk? ( ${LUA_REQUIRED_USE} ) + input_devices_roccat_ryosmkfx? ( ${LUA_REQUIRED_USE} ) + input_devices_roccat_ryostkl? ( ${LUA_REQUIRED_USE} ) +" + +RDEPEND=" + dev-libs/dbus-glib + dev-libs/glib:2 + >=dev-libs/libgaminggear-0.15.1 + dev-libs/libgudev:= + sys-apps/dbus + x11-libs/cairo + x11-libs/gtk+:2 + x11-libs/libX11 + virtual/libusb:1 + input_devices_roccat_ryosmk? ( ${LUA_DEPS} ) + input_devices_roccat_ryosmkfx? ( ${LUA_DEPS} ) + input_devices_roccat_ryostkl? ( ${LUA_DEPS} ) +" + +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${PN}-5.9.0-cmake_lua_impl.patch +) + +DOCS=( Changelog KNOWN_LIMITATIONS README ) + +pkg_setup() { + # Don't bother checking all the relevant USE flags, this is harmless + # to call even when no Lua implementations have been pulled in + # by dependencies. + lua-single_pkg_setup + + enewgroup roccat + + local model + for model in ${IUSE_INPUT_DEVICES[@]} ; do + use ${model} && USED_MODELS+="${model/input_devices_roccat_/;}" + done +} + +# Required because xdg.eclass overrides src_prepare() from cmake.eclass +src_prepare() { + cmake_src_prepare +} + +src_configure() { + if has_version \>=x11-libs/pango-1.44.0 ; then + # Fix build with pango-1.44 which depends on harfbuzz + local PKGCONF="$(tc-getPKG_CONFIG)" + append-cflags "$(${PKGCONF} --cflags harfbuzz)" + fi + + mycmakeargs=( + -DDEVICES="${USED_MODELS/;/}" + -DUDEVDIR="${EPREFIX}$(get_udevdir)/rules.d" + ) + + local lua_use=( + input_devices_roccat_ryosmk + input_devices_roccat_ryosmkfx + input_devices_roccat_ryostkl + ) + local luse + for luse in ${lua_use[@]} ; do + if use ${luse} ; then + mycmakeargs+=( + -DLUA_IMPL="${ELUA}" + -DWITH_LUA="$(ver_cut 1-2 $(lua_get_version))" + ) + break + fi + done + + cmake_src_configure +} + +src_install() { + cmake_src_install + local stat_dir=/var/lib/roccat + keepdir ${stat_dir} + fowners root:roccat ${stat_dir} + fperms 2770 ${stat_dir} + readme.gentoo_create_doc +} + +pkg_postinst() { + xdg_pkg_postinst + readme.gentoo_print_elog + ewarn + ewarn "This version breaks stored data for some devices. Before reporting bugs please delete" + ewarn "affected folder(s) in /var/lib/roccat" + ewarn +} |