summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2024-06-17 23:36:45 +0200
committerConrad Kostecki <conikost@gentoo.org>2024-06-18 00:29:35 +0200
commitdf273a5c26ab7238aa1a057a59a2767dbd24217c (patch)
tree9f7d2777260aaec7dac0db72206ae089da3e2ceb /app-misc/logiops
parentgames-server/minecraft-server: add 1.21.0, drop 1.20.6 (diff)
downloadgentoo-df273a5c26ab7238aa1a057a59a2767dbd24217c.tar.gz
gentoo-df273a5c26ab7238aa1a057a59a2767dbd24217c.tar.bz2
gentoo-df273a5c26ab7238aa1a057a59a2767dbd24217c.zip
app-misc/logiops: add 0.3.4
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-misc/logiops')
-rw-r--r--app-misc/logiops/Manifest1
-rw-r--r--app-misc/logiops/logiops-0.3.4.ebuild73
2 files changed, 74 insertions, 0 deletions
diff --git a/app-misc/logiops/Manifest b/app-misc/logiops/Manifest
index 1ad31885753e..8939f8e085c2 100644
--- a/app-misc/logiops/Manifest
+++ b/app-misc/logiops/Manifest
@@ -1 +1,2 @@
DIST logiops-v0.3.3.tar.gz 117966 BLAKE2B b7bb2997b38c33d70d2c8a8ef5a931d6aa021e200a48141dc3aca106e081adde91f23aece0c5d5a9dc66376a7b98354b6e59a13360e55cb7db631322b2fe2ee3 SHA512 87d84c9778cd046761a639fc775e8ea4f01d9864c532c55768a35dbd8718a561c398b44f0f3147403d45eac121c74f9fe84f6ac75e4d1c26d3f4f0da2ee5b4fa
+DIST logiops-v0.3.4.tar.gz 117080 BLAKE2B b68d470abfde28cc12cd553889b0150c99e072f157b8c7ef1c8a1850b74de48fb987942e4bf36a1f75d612ff639f304d2cc128b94f1f2bcf1be4d4eb4867d142 SHA512 482a26e6669aa3e35202e2281a41d0f4976a1f989fd5457d337b291573461198006b8a8d639ccdf65ed18749d0d0bbab12f8d3514d75964d3616851973c08e05
diff --git a/app-misc/logiops/logiops-0.3.4.ebuild b/app-misc/logiops/logiops-0.3.4.ebuild
new file mode 100644
index 000000000000..56237913911b
--- /dev/null
+++ b/app-misc/logiops/logiops-0.3.4.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_P="${PN}-v${PV}"
+
+inherit cmake flag-o-matic linux-info
+
+DESCRIPTION="An unofficial userspace driver for HID++ Logitech devices"
+HOMEPAGE="https://github.com/PixlOne/logiops"
+SRC_URI="https://github.com/PixlOne/${PN}/releases/download/v${PV}/${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="systemd"
+
+DEPEND="
+ dev-libs/glib
+ dev-libs/libconfig:=[cxx]
+ dev-libs/libevdev
+ sys-apps/dbus
+ virtual/libudev
+ systemd? ( sys-apps/systemd )
+"
+
+RDEPEND="${DEPEND}"
+
+BDEPEND="virtual/pkgconfig"
+
+DOCS=( "README.md" "TESTED.md" )
+
+pkg_pretend() {
+ local CHECK_CONFIG="~HID_LOGITECH ~HID_LOGITECH_HIDPP"
+
+ check_extra_config
+}
+
+src_configure() {
+ # -Werror=odr
+ # https://bugs.gentoo.org/924426
+ # https://github.com/PixlOne/logiops/issues/445
+ filter-lto
+
+ local mycmakeargs=(
+ -DBUILD_SHARED="ON"
+ -DBUILD_STATIC="OFF"
+ -DLOGIOPS_VERSION="${PV}"
+ )
+
+ cmake_src_configure
+}
+
+src_install() {
+ default
+
+ cmake_src_install
+
+ # Install lib of submodule, as no install routine exist
+ dolib.so "${BUILD_DIR}/src/ipcgull/libipcgull.so"
+
+ insinto /etc
+ newins logid.example.cfg logid.cfg
+
+ newinitd "${FILESDIR}"/logid.initd logid
+}
+
+pkg_postinst() {
+ einfo "An example config file has been installed as /etc/logid.cfg."
+ einfo "See https://github.com/PixlOne/logiops/wiki/Configuration for more information."
+}