commit: d86b92b74e620f552be59af6a7e496817557ab97 Author: Takuya Wakazono <pastalian46 <AT> gmail <DOT> com> AuthorDate: Sun Oct 19 13:33:52 2025 +0000 Commit: David Roman <davidroman96 <AT> gmail <DOT> com> CommitDate: Sun Oct 19 13:33:52 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d86b92b7
x11-drivers/OpenTabletDriver: add 0.6.6.2 Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com> x11-drivers/OpenTabletDriver/Manifest | 1 + .../OpenTabletDriver-0.6.6.2.ebuild | 329 +++++++++++++++++++++ 2 files changed, 330 insertions(+) diff --git a/x11-drivers/OpenTabletDriver/Manifest b/x11-drivers/OpenTabletDriver/Manifest index a9078097e3..be5250aae0 100644 --- a/x11-drivers/OpenTabletDriver/Manifest +++ b/x11-drivers/OpenTabletDriver/Manifest @@ -1,4 +1,5 @@ DIST OpenTabletDriver-0.6.6.0.tar.gz 313524 BLAKE2B 80265eec59932768f592fc4f62e8312212629a948ef63a9f875a5bb4c26128492cb8d0a48771032a58a6db4166639fb387d7aaa5606df6566fa16ea839ca7165 SHA512 bfb60774c760e54fa8999c05507a118f1b4708d64f670870561d222c4b3978331443e083c91f2df2246f674f9f76749dacf8271dad1fba4cf5358ff05c538ee6 +DIST OpenTabletDriver-0.6.6.2.tar.gz 314712 BLAKE2B 40ad61c580d14c50ac6cb82c0673237c355aef32d0a1d4dc798b41529bca3c8ef574207b83329d9e493f076a3114a72c3b273edccea4ec2f49e6a4b5b4dde476 SHA512 78a54e6d61c714984d62e05b1c5ab64f6b59e721af3ec6b43eddeee27f7ae47a2dc62dfa3059c87959f40a234b7830a09291582b00d7be7f9e60e613c30ae26a DIST atksharp.3.24.24.34.nupkg 101718 BLAKE2B 14f6e22ea9c95413e47b08b2911f27505a9d3f126547dc420d3f8f32e9df18b81617c1fb48469a5071d7f34b24645704e8021735437bb2362af642a06608ff2f SHA512 9985de9ed5dfcc376c3880f156f9807d427161509332c1af0fb92897adef17e2e9d21b52b4fd09da5bba9055807356a11e76a5a3659130eb3878c781db493a74 DIST cairosharp.3.24.24.34.nupkg 49431 BLAKE2B f5bfd2d184b4a3c5a6d54e4b5d746b6d56346ed3dba83c6df17f2e91fed19c5774168ba687ab7ba2504ff8765a55ec62fcf0dc62b0827c2e27f36adf2bb1e38c SHA512 8589828a0f64cb377844bb2e7b329c4372c6f4de336c55d27cb74f0373f967df707756f3742a7f02ec145f71262c9114f35f5ebb853c3c57aff972931b2a013b DIST castle.core.4.4.0.nupkg 916004 BLAKE2B 7404f946c140bc4c22132282a4a12694328bac2f37f3cae06c595076068dbedc808465e352f083450cea3e3869698f91b7a5b2b55c08f29f4a9feba7f15abf74 SHA512 7626c347f82038bc29b0b2ae399937047aead260ed85ff8c107d36adbe901d729be59cd89a5f98ef45da2d1883c8374b6f286c81c044a5a2b69ab4b5dde9ce98 diff --git a/x11-drivers/OpenTabletDriver/OpenTabletDriver-0.6.6.2.ebuild b/x11-drivers/OpenTabletDriver/OpenTabletDriver-0.6.6.2.ebuild new file mode 100644 index 0000000000..5c7a6919bf --- /dev/null +++ b/x11-drivers/OpenTabletDriver/OpenTabletDriver-0.6.6.2.ebuild @@ -0,0 +1,329 @@ +# Copyright 2023-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DOTNET_PKG_COMPAT=8.0 +NUGETS=" [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] +microsoft.extensions.dependencyinjection.abstractions@6.0.0-rc.1.21451.13 [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] +runtime.debian.8-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.debian.8-x64.runtime.native.system.security.cryptography.openssl@4.3.2 +runtime.fedora.23-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.fedora.23-x64.runtime.native.system.security.cryptography.openssl@4.3.2 +runtime.fedora.24-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.fedora.24-x64.runtime.native.system.security.cryptography.openssl@4.3.2 [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] +runtime.opensuse.13.2-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.opensuse.13.2-x64.runtime.native.system.security.cryptography.openssl@4.3.2 +runtime.opensuse.42.1-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.opensuse.42.1-x64.runtime.native.system.security.cryptography.openssl@4.3.2 +runtime.osx.10.10-x64.runtime.native.system.security.cryptography.apple@4.3.0 +runtime.osx.10.10-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.osx.10.10-x64.runtime.native.system.security.cryptography.openssl@4.3.2 +runtime.rhel.7-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.rhel.7-x64.runtime.native.system.security.cryptography.openssl@4.3.2 +runtime.ubuntu.14.04-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.ubuntu.14.04-x64.runtime.native.system.security.cryptography.openssl@4.3.2 +runtime.ubuntu.16.04-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.ubuntu.16.04-x64.runtime.native.system.security.cryptography.openssl@4.3.2 +runtime.ubuntu.16.10-x64.runtime.native.system.security.cryptography.openssl@4.3.0 +runtime.ubuntu.16.10-x64.runtime.native.system.security.cryptography.openssl@4.3.2 [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] +" + +inherit desktop dotnet-pkg linux-info systemd udev xdg + +DESCRIPTION="A cross-platform open-source tablet driver" +HOMEPAGE="https://opentabletdriver.net/" +SRC_URI=" + https://github.com/OpenTabletDriver/OpenTabletDriver/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + ${NUGET_URIS} +" + +LICENSE="LGPL-3+" +# nuget licenses +LICENSE+=" Apache-2.0 ISC MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-libs/libevdev + virtual/udev + x11-libs/gtk+:3 + x11-libs/libX11 + x11-libs/libXrandr + x11-libs/libnotify + !x11-drivers/OpenTabletDriver-bin +" +BDEPEND="app-misc/jq" + +CONFIG_CHECK="~INPUT_UINPUT" +DOTNET_PKG_PROJECTS=( + "${S}/OpenTabletDriver.Console/OpenTabletDriver.Console.csproj" + "${S}/OpenTabletDriver.Daemon/OpenTabletDriver.Daemon.csproj" + "${S}/OpenTabletDriver.UX.Gtk/OpenTabletDriver.UX.Gtk.csproj" +) + +pkg_setup() { + linux-info_pkg_setup + dotnet-pkg_pkg_setup +} + +src_prepare() { + # Build doesn't need the solution file but eclass tries to use it. + rm -f OpenTabletDriver.sln || die + dotnet-pkg_src_prepare +} + +src_configure() { + dotnet-pkg_src_configure + + # These projects are only used at build time, should not be installed. + dotnet-pkg-base_restore OpenTabletDriver.Tests +} + +src_compile() { + dotnet-pkg_src_compile + ./generate-rules.sh > 70-opentabletdriver.rules || die +} + +src_install() { + dotnet-pkg_src_install + + dotnet-pkg-base_dolauncher "/usr/share/${P}/${PN}.Console" otd + dotnet-pkg-base_dolauncher "/usr/share/${P}/${PN}.Daemon" otd-daemon + dotnet-pkg-base_dolauncher "/usr/share/${P}/${PN}.UX.Gtk" otd-gui + + doicon OpenTabletDriver.UX/Assets/otd.png + doman docs/manpages/opentabletdriver.8 + make_desktop_entry otd-gui OpenTabletDriver otd Settings + udev_dorules 70-opentabletdriver.rules + + cd "${S}/eng/linux/Generic/usr" || die + insinto /lib/modprobe.d + doins lib/modprobe.d/99-opentabletdriver.conf + insinto /usr/lib/modules-load.d + doins lib/modules-load.d/opentabletdriver.conf + insinto /usr/share/libinput + doins share/libinput/30-vendor-opentabletdriver.quirks + systemd_douserunit lib/systemd/user/opentabletdriver.service +} + +src_test() { + dotnet-pkg-base_test OpenTabletDriver.Tests +} + +pkg_postinst() { + udev_reload + xdg_pkg_postinst + + if [[ -z ${REPLACING_VERSIONS} ]]; then + elog "Please replug your tablet before attempting to use the driver" + fi +} + +pkg_postrm() { + udev_reload + xdg_pkg_postrm +}
