* [gentoo-commits] repo/proj/guru:master commit in: app-misc/opentrack/
@ 2025-07-07 8:57 David Roman
0 siblings, 0 replies; 3+ messages in thread
From: David Roman @ 2025-07-07 8:57 UTC (permalink / raw
To: gentoo-commits
commit: 7e3a19c012d745ed6c901b244ba96f177355cf81
Author: Kai Krakow <kai <AT> kaishome <DOT> de>
AuthorDate: Sun Jul 21 04:42:14 2024 +0000
Commit: David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon Jul 7 07:55:34 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7e3a19c0
app-misc/opentrack: add 2024.1.1_p20250620
Signed-off-by: Kai Krakow <kai <AT> kaishome.de>
Part-of: https://github.com/gentoo/gentoo/pull/37646
Closes: https://github.com/gentoo/gentoo/pull/37646
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>
app-misc/opentrack/Manifest | 1 +
.../opentrack/opentrack-2024.1.1_p20250620.ebuild | 89 ++++++++++++++++++++++
2 files changed, 90 insertions(+)
diff --git a/app-misc/opentrack/Manifest b/app-misc/opentrack/Manifest
new file mode 100644
index 0000000000..856ed33b0f
--- /dev/null
+++ b/app-misc/opentrack/Manifest
@@ -0,0 +1 @@
+DIST opentrack-2024.1.1_p20250620.tar.gz 85305012 BLAKE2B 757ac05d72ce783428c119ac4409f593889de3245c18c5a9b31808823004be548785748c1b838dcbfffa3d56b6562963fed5f66c32b9e608a5585d283db0525e SHA512 9f50142ee665c067ef7cff733809d8c0abad702af6345bcc9bfc8c298412eccae1c34426d4e22ec69043acbcb1df08843140cd0707124d56bb22805fda96a8c0
diff --git a/app-misc/opentrack/opentrack-2024.1.1_p20250620.ebuild b/app-misc/opentrack/opentrack-2024.1.1_p20250620.ebuild
new file mode 100644
index 0000000000..a1be4720e5
--- /dev/null
+++ b/app-misc/opentrack/opentrack-2024.1.1_p20250620.ebuild
@@ -0,0 +1,89 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake desktop flag-o-matic toolchain-funcs
+
+DESCRIPTION="Head tracking software for MS Windows, Linux, and Apple OSX"
+HOMEPAGE="https://github.com/opentrack/opentrack"
+
+if [[ ${PV} == 9999 ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/opentrack/opentrack.git"
+else
+ EGIT_COMMIT="a47cbd05214787640bbeffa289b4d932905d213f"
+ SRC_URI="https://github.com/opentrack/opentrack/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64"
+ S="${WORKDIR}/opentrack-${EGIT_COMMIT}"
+fi
+
+LICENSE="ISC"
+SLOT="0"
+
+IUSE="neuralnet opencv openmp wine"
+
+REQUIRED_USE="neuralnet? ( openmp opencv )"
+
+DEPEND="
+ dev-libs/libevdev
+ dev-libs/libusb:1
+ dev-qt/qtbase:6[gui,network,widgets]
+ sys-process/procps:=
+ x11-libs/libX11
+ neuralnet? ( sci-libs/onnxruntime-bin )
+ opencv? ( media-libs/opencv:= )
+ wine? ( virtual/wine )
+"
+RDEPEND="${DEPEND}"
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+src_prepare() {
+ # work around hard-coded docs path
+ sed -e 's#share/doc/opentrack#share/doc/'${PF}'#g' \
+ -i cmake/*.cmake || die
+
+ cmake_src_prepare
+}
+
+src_configure() {
+ use openmp && append-cxxflags -fopenmp && append-ldflags -fopenmp
+
+ local mycmakeargs=(
+ $(cmake_use_find_package neuralnet ONNXRuntime)
+ $(cmake_use_find_package opencv OpenCV)
+ $(cmake_use_find_package openmp OpenMP)
+ )
+
+ # opentrack overwrites emerge cflags unconditionally: we can prevent
+ # that by pretending they've already been set
+ mycmakeargs+=(
+ -D__otr_compile_flags_set=TRUE
+ )
+
+ # HACK: "/opt/opentrack" allows its wine components to be visible in
+ # Valve's pressure-vessel which replaces /usr with the container runtime
+ use wine && mycmakeargs+=(
+ -DCMAKE_INSTALL_PREFIX=/opt/opentrack
+ -DOPENTRACK_WINE_ARCH="-m64"
+ -DSDK_WINE=$(usex wine ON OFF)
+ )
+
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ use wine && dosym -r /opt/opentrack/bin/opentrack /usr/bin/opentrack
+
+ newicon gui/images/opentrack.png opentrack.png
+ make_desktop_entry /usr/bin/opentrack OpenTrack /usr/share/pixmaps/opentrack.png Utility
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: app-misc/opentrack/
@ 2025-07-07 8:57 David Roman
0 siblings, 0 replies; 3+ messages in thread
From: David Roman @ 2025-07-07 8:57 UTC (permalink / raw
To: gentoo-commits
commit: e89dd85459d3ad778e2702a3c327ee1d4a3fe57a
Author: Kai Krakow <kai <AT> kaishome <DOT> de>
AuthorDate: Sat Jul 27 11:03:13 2024 +0000
Commit: David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon Jul 7 07:55:34 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e89dd854
app-misc/opentrack: new package, add 9999
Closes: https://bugs.gentoo.org/912997
Signed-off-by: Kai Krakow <kai <AT> kaishome.de>
Part-of: https://github.com/gentoo/gentoo/pull/37646
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>
app-misc/opentrack/metadata.xml | 29 +++++++++++
app-misc/opentrack/opentrack-9999.ebuild | 88 ++++++++++++++++++++++++++++++++
2 files changed, 117 insertions(+)
diff --git a/app-misc/opentrack/metadata.xml b/app-misc/opentrack/metadata.xml
new file mode 100644
index 0000000000..8ad4ac5f8e
--- /dev/null
+++ b/app-misc/opentrack/metadata.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>hurikhan77+bgo@gmail.com</email>
+ <name>Kai Krakow</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <use>
+ <flag name="neuralnet">
+ Build NeuralNet face tracker using a webcam as input device
+ (requires opencv openmp)
+ </flag>
+ <flag name="opencv">
+ Enable webcam video driver via computer vision (required
+ for NeuralNet to work)
+ </flag>
+ <flag name="wine">
+ Support injecting a FreeTrack driver into a running wine prefix
+ </flag>
+ </use>
+ <upstream>
+ <bugs-to>https://github.com/opentrack/opentrack/issues</bugs-to>
+ <remote-id type="github">opentrack/opentrack</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/opentrack/opentrack-9999.ebuild b/app-misc/opentrack/opentrack-9999.ebuild
new file mode 100644
index 0000000000..1335dc6ed8
--- /dev/null
+++ b/app-misc/opentrack/opentrack-9999.ebuild
@@ -0,0 +1,88 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake desktop flag-o-matic toolchain-funcs
+
+DESCRIPTION="Head tracking software for MS Windows, Linux, and Apple OSX"
+HOMEPAGE="https://github.com/opentrack/opentrack"
+
+if [[ ${PV} == 9999 ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/opentrack/opentrack.git"
+else
+ SRC_URI="https://github.com/opentrack/opentrack/archive/refs/tags/${P}.tar.gz"
+ KEYWORDS="~amd64"
+ S="${WORKDIR}/opentrack-${P}"
+fi
+
+LICENSE="ISC"
+SLOT="0"
+
+IUSE="neuralnet opencv openmp wine"
+
+REQUIRED_USE="neuralnet? ( openmp opencv )"
+
+DEPEND="
+ dev-libs/libevdev
+ dev-libs/libusb:1
+ dev-qt/qtbase:6[gui,network,widgets]
+ sys-process/procps:=
+ x11-libs/libX11
+ neuralnet? ( sci-libs/onnxruntime-bin )
+ opencv? ( media-libs/opencv:= )
+ wine? ( virtual/wine )
+"
+RDEPEND="${DEPEND}"
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+src_prepare() {
+ # work around hard-coded docs path
+ sed -e 's#share/doc/opentrack#share/doc/'${PF}'#g' \
+ -i cmake/*.cmake || die
+
+ cmake_src_prepare
+}
+
+src_configure() {
+ use openmp && append-cxxflags -fopenmp && append-ldflags -fopenmp
+
+ local mycmakeargs=(
+ $(cmake_use_find_package neuralnet ONNXRuntime)
+ $(cmake_use_find_package opencv OpenCV)
+ $(cmake_use_find_package openmp OpenMP)
+ )
+
+ # opentrack overwrites emerge cflags unconditionally: we can prevent
+ # that by pretending they've already been set
+ mycmakeargs+=(
+ -D__otr_compile_flags_set=TRUE
+ )
+
+ # HACK: "/opt/opentrack" allows its wine components to be visible in
+ # Valve's pressure-vessel which replaces /usr with the container runtime
+ use wine && mycmakeargs+=(
+ -DCMAKE_INSTALL_PREFIX=/opt/opentrack
+ -DOPENTRACK_WINE_ARCH="-m64"
+ -DSDK_WINE=$(usex wine ON OFF)
+ )
+
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ use wine && dosym -r /opt/opentrack/bin/opentrack /usr/bin/opentrack
+
+ newicon gui/images/opentrack.png opentrack.png
+ make_desktop_entry /usr/bin/opentrack OpenTrack /usr/share/pixmaps/opentrack.png Utility
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: app-misc/opentrack/
@ 2025-07-07 8:57 David Roman
0 siblings, 0 replies; 3+ messages in thread
From: David Roman @ 2025-07-07 8:57 UTC (permalink / raw
To: gentoo-commits
commit: a517c4d3e12a5ee5d3b344856b5824c33f16c684
Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 5 12:42:15 2025 +0000
Commit: David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon Jul 7 07:55:34 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a517c4d3
app-misc/opentrack: add myself as a maintainer
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>
app-misc/opentrack/metadata.xml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/app-misc/opentrack/metadata.xml b/app-misc/opentrack/metadata.xml
index 8ad4ac5f8e..32b93d0310 100644
--- a/app-misc/opentrack/metadata.xml
+++ b/app-misc/opentrack/metadata.xml
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <maintainer type="person" proxied="yes">
+ <maintainer type="person">
<email>hurikhan77+bgo@gmail.com</email>
<name>Kai Krakow</name>
</maintainer>
- <maintainer type="project" proxied="proxy">
- <email>proxy-maint@gentoo.org</email>
- <name>Proxy Maintainers</name>
+ <maintainer type="person">
+ <email>ceamac@gentoo.org</email>
+ <description>Primary maintainer</description>
</maintainer>
<use>
<flag name="neuralnet">
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-07-07 8:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-07 8:57 [gentoo-commits] repo/proj/guru:master commit in: app-misc/opentrack/ David Roman
-- strict thread matches above, loose matches on Subject: below --
2025-07-07 8:57 David Roman
2025-07-07 8:57 David Roman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox