pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
wip/input-leap: import input-leap-3.0.2 as net/input-leap
Module Name: pkgsrc-wip
Committed By: Yorick Hardy <yorickhardy%gmail.com@localhost>
Pushed By: yhardy
Date: Sun Jun 8 13:40:09 2025 +0200
Changeset: 2dedc29c0369a549465a29db06ec335b49f7dd6a
Modified Files:
Makefile
Added Files:
input-leap/COMMIT_MSG
input-leap/DESCR
input-leap/Makefile
input-leap/PLIST
input-leap/distinfo
input-leap/patches/patch-CMakeLists.txt
input-leap/patches/patch-src_client_CMakeLists.txt
input-leap/patches/patch-src_server_CMakeLists.txt
Log Message:
wip/input-leap: import input-leap-3.0.2 as net/input-leap
Input Leap is software that mimics the functionality of a KVM
switch, which historically would allow you to use a single keyboard
and mouse to control multiple computers by physically turning a
dial on the box to switch the machine you're controlling at any
given moment. Input Leap does this in software, allowing you to
tell it which machine to control by moving your mouse to the edge
of the screen, or by using a keypress to switch focus to a different
system.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=2dedc29c0369a549465a29db06ec335b49f7dd6a
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
input-leap/COMMIT_MSG | 10 ++++++
input-leap/DESCR | 8 +++++
input-leap/Makefile | 40 ++++++++++++++++++++++
input-leap/PLIST | 12 +++++++
input-leap/distinfo | 8 +++++
input-leap/patches/patch-CMakeLists.txt | 15 ++++++++
input-leap/patches/patch-src_client_CMakeLists.txt | 16 +++++++++
input-leap/patches/patch-src_server_CMakeLists.txt | 16 +++++++++
9 files changed, 126 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 1552acf9c6..a344b59654 100644
--- a/Makefile
+++ b/Makefile
@@ -1741,6 +1741,7 @@ SUBDIR+= infraarcana
SUBDIR+= inicpp
SUBDIR+= initware-git
SUBDIR+= innernet
+SUBDIR+= input-leap
SUBDIR+= input-ttf
SUBDIR+= intel-gpu-tools
SUBDIR+= interactsh
diff --git a/input-leap/COMMIT_MSG b/input-leap/COMMIT_MSG
new file mode 100644
index 0000000000..2342ca6fd4
--- /dev/null
+++ b/input-leap/COMMIT_MSG
@@ -0,0 +1,10 @@
+net/input-leap: import input-leap-3.0.2 as net/input-leap
+
+Input Leap is software that mimics the functionality of a KVM
+switch, which historically would allow you to use a single keyboard
+and mouse to control multiple computers by physically turning a
+dial on the box to switch the machine you're controlling at any
+given moment. Input Leap does this in software, allowing you to
+tell it which machine to control by moving your mouse to the edge
+of the screen, or by using a keypress to switch focus to a different
+system.
diff --git a/input-leap/DESCR b/input-leap/DESCR
new file mode 100644
index 0000000000..0025ba37e3
--- /dev/null
+++ b/input-leap/DESCR
@@ -0,0 +1,8 @@
+Input Leap is software that mimics the functionality of a KVM
+switch, which historically would allow you to use a single keyboard
+and mouse to control multiple computers by physically turning a
+dial on the box to switch the machine you're controlling at any
+given moment. Input Leap does this in software, allowing you to
+tell it which machine to control by moving your mouse to the edge
+of the screen, or by using a keypress to switch focus to a different
+system.
diff --git a/input-leap/Makefile b/input-leap/Makefile
new file mode 100644
index 0000000000..12cb324a69
--- /dev/null
+++ b/input-leap/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD$
+
+GITHUB_TAG= v${PKGVERSION_NOREV}
+DISTNAME= input-leap-3.0.2
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_GITHUB:=input-leap/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/input-leap/input-leap/
+COMMENT= Open-source KVM software
+LICENSE= gnu-gpl-v2
+
+USE_LANGUAGES= c c++
+USE_TOOLS+= pkg-config
+
+# Should this be an option?
+# * net/deskflow provides compatibility and a GUI
+# * building without Qt makes this package feasible for
+# constrained hardware
+CMAKE_CONFIGURE_ARGS+= -DINPUTLEAP_BUILD_GUI=OFF
+CMAKE_CONFIGURE_ARGS+= -DINPUTLEAP_USE_EXTERNAL_GTEST=ON
+
+INSTALLATION_DIRS+= share/examples/input-leap
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/doc/input-leap.conf.example* ${DESTDIR}${PREFIX}/share/examples/input-leap/
+
+.include "../../devel/cmake/build.mk"
+.include "../../devel/googletest/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../x11/libICE/buildlink3.mk"
+.include "../../x11/libSM/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/libXi/buildlink3.mk"
+.include "../../x11/libXinerama/buildlink3.mk"
+.include "../../x11/libXrandr/buildlink3.mk"
+.include "../../x11/libXtst/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/input-leap/PLIST b/input-leap/PLIST
new file mode 100644
index 0000000000..99d05a775c
--- /dev/null
+++ b/input-leap/PLIST
@@ -0,0 +1,12 @@
+@comment $NetBSD$
+bin/input-leapc
+bin/input-leaps
+man/man1/input-leapc.1
+man/man1/input-leaps.1
+share/applications/io.github.input_leap.InputLeap.desktop
+share/examples/input-leap/input-leap.conf.example
+share/examples/input-leap/input-leap.conf.example-advanced
+share/examples/input-leap/input-leap.conf.example-barebones
+share/examples/input-leap/input-leap.conf.example-basic
+share/icons/hicolor/scalable/apps/io.github.input_leap.InputLeap.svg
+share/metainfo/io.github.input_leap.InputLeap.appdata.xml
diff --git a/input-leap/distinfo b/input-leap/distinfo
new file mode 100644
index 0000000000..43d502986a
--- /dev/null
+++ b/input-leap/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+BLAKE2s (input-leap-3.0.2.tar.gz) = 4ecea14f89cb5e0301967b168ed94a6befb6af0cb3dd3f18d3de62068cd7d6c8
+SHA512 (input-leap-3.0.2.tar.gz) = caadf17b64765c0732e94e6a38e17e560d050a2fa0252f26ec382f3f80af936aa9d0aa8172e29724b04223fd3b378b68b7afe7db41c336431b839331815774d9
+Size (input-leap-3.0.2.tar.gz) = 1764599 bytes
+SHA1 (patch-CMakeLists.txt) = 338bac4f282657cb50ff4ad8234e8799457d3d5d
+SHA1 (patch-src_client_CMakeLists.txt) = ee0542c354bda5f419476ac18a3f2c00af917124
+SHA1 (patch-src_server_CMakeLists.txt) = 9189acdbd3ac3482da909d94fc5900b9fae4bb97
diff --git a/input-leap/patches/patch-CMakeLists.txt b/input-leap/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000000..4851b363b0
--- /dev/null
+++ b/input-leap/patches/patch-CMakeLists.txt
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Install man files in ${PKGMANDIR}.
+
+--- CMakeLists.txt.orig 2025-06-07 16:43:15.941862591 +0000
++++ CMakeLists.txt
+@@ -285,7 +285,7 @@ if (APPLE)
+ DEPENDS input-leap input-leaps input-leapc
+ WORKING_DIRECTORY ${INPUTLEAP_BUNDLE_DIR})
+ elseif (UNIX AND NOT APPLE)
+- install(FILES doc/input-leapc.1 doc/input-leaps.1 DESTINATION share/man/man1)
++ install(FILES doc/input-leapc.1 doc/input-leaps.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
+
+ install(FILES res/io.github.input_leap.InputLeap.appdata.xml DESTINATION share/metainfo)
+
diff --git a/input-leap/patches/patch-src_client_CMakeLists.txt b/input-leap/patches/patch-src_client_CMakeLists.txt
new file mode 100644
index 0000000000..0863234d63
--- /dev/null
+++ b/input-leap/patches/patch-src_client_CMakeLists.txt
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Install executables files in /bin.
+
+--- src/client/CMakeLists.txt.orig 2024-10-12 23:18:55.000000000 +0000
++++ src/client/CMakeLists.txt
+@@ -53,8 +53,6 @@ target_link_libraries(input-leapc
+
+ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+ install(TARGETS input-leapc DESTINATION ${INPUTLEAP_BUNDLE_BINARY_DIR})
+-elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+- install (TARGETS input-leapc DESTINATION bin)
+ else()
+- install (TARGETS input-leapc DESTINATION .)
++ install (TARGETS input-leapc DESTINATION ${CMAKE_INSTALL_BINDIR})
+ endif()
diff --git a/input-leap/patches/patch-src_server_CMakeLists.txt b/input-leap/patches/patch-src_server_CMakeLists.txt
new file mode 100644
index 0000000000..bfe006c207
--- /dev/null
+++ b/input-leap/patches/patch-src_server_CMakeLists.txt
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Install executables files in /bin.
+
+--- src/server/CMakeLists.txt.orig 2024-10-12 23:18:55.000000000 +0000
++++ src/server/CMakeLists.txt
+@@ -53,8 +53,6 @@ target_link_libraries(input-leaps
+
+ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+ install(TARGETS input-leaps DESTINATION ${INPUTLEAP_BUNDLE_BINARY_DIR})
+-elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+- install (TARGETS input-leaps DESTINATION bin)
+ else()
+- install (TARGETS input-leaps DESTINATION .)
++ install (TARGETS input-leaps DESTINATION ${CMAKE_INSTALL_BINDIR})
+ endif()
Home |
Main Index |
Thread Index |
Old Index