aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna (navi) Figueiredo Gomes <anna@navirc.com>2022-11-23 18:40:22 -0300
committerAnna (navi) Figueiredo Gomes <anna@navirc.com>2022-11-23 18:41:14 -0300
commitf1016b8697a3564f89adea3f76a5fcd36b929c6f (patch)
treed64c6083947259334a3a296796183adfafce9039 /media-gfx
parentapp-backup/grub-btrfs: add version 4.12 (diff)
downloadguru-f1016b8697a3564f89adea3f76a5fcd36b929c6f.tar.gz
guru-f1016b8697a3564f89adea3f76a5fcd36b929c6f.tar.bz2
guru-f1016b8697a3564f89adea3f76a5fcd36b929c6f.zip
media-gfx/vpuppr: new package, add 9999
Signed-off-by: Anna (navi) Figueiredo Gomes <anna@navirc.com>
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/vpuppr/Manifest3
-rw-r--r--media-gfx/vpuppr/metadata.xml17
-rw-r--r--media-gfx/vpuppr/vpuppr-9999.ebuild86
3 files changed, 106 insertions, 0 deletions
diff --git a/media-gfx/vpuppr/Manifest b/media-gfx/vpuppr/Manifest
new file mode 100644
index 000000000..ff942eeef
--- /dev/null
+++ b/media-gfx/vpuppr/Manifest
@@ -0,0 +1,3 @@
+DIST OpenSeeFace_latest.tar.gz 163501644 BLAKE2B b06ed2fb413a7543ad06fe4887e43c46687e91479e6385de37205653eed9c64407c84675cfd7832f57442bb02f6bcedf7241f570c1118fe0bc0fc13463c179d1 SHA512 b4ad37fa276dd3b5652cc906b04b8a2e540452419239882ac11a83bcab37366d10e45702cb34fac8c607d94248a5d1e18af16bc07ac5f8fa38be273e50407bca
+DIST godot-vpuppr-headless.tar.gz 44288060 BLAKE2B 433f50f2bf53e34ef11aea4ef347e7cf91a678f1c75e27e0746abcf7ace009069260775d416b5ea5e2571cfdff5a5ee6ecacd48a3d10e89a5b01d037f0e9dee0 SHA512 1108b9d5f642f3d06eb8c59f69b217e3f79bfba46456858c8b19012c5aa696465f27290274cc82118cbe15de0a8a0c6caad98c653d07c1d3c43953869ee138a5
+DIST godot-vpuppr-release-profile.tar.gz 17108352 BLAKE2B e2e424feadcf51c15a21247804e1b75ec39c8e0c5947e9820d36fe9b73f2b69dd358858fe03dd2c52eb2d33b926c756cefa91194493e5ffbcd160af8c37ebb95 SHA512 f34c2992fa86beaaa47d6d6e851e2a446cf6d5b39349ebcabb62564ac1445ced7999ea7f6f7261559f96fe2dbc40bd29d25a27d36d7caff1d35b4102def82fa7
diff --git a/media-gfx/vpuppr/metadata.xml b/media-gfx/vpuppr/metadata.xml
new file mode 100644
index 000000000..51889f24f
--- /dev/null
+++ b/media-gfx/vpuppr/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>anna@navirc.com</email>
+ <name>Anna Figueiredo Gomes</name>
+ </maintainer>
+ <use>
+ <flag name="ifm-tracker">Enable the iFacialMocap tracker.</flag>
+ <flag name="meowface-tracker">Enable the MeowFace tracker.</flag>
+ <flag name="mouse-tracker">Enable the mouse tracker.</flag>
+ <flag name="osf-tracker">Enable the OpenSeeFace tracker.</flag>
+ <flag name="vts-tracker">Enable the VTubeStudio tracker.</flag>
+ <flag name="remote-control">Enable remote controlling the program.</flag>
+ </use>
+</pkgmetadata>
+
diff --git a/media-gfx/vpuppr/vpuppr-9999.ebuild b/media-gfx/vpuppr/vpuppr-9999.ebuild
new file mode 100644
index 000000000..880e33836
--- /dev/null
+++ b/media-gfx/vpuppr/vpuppr-9999.ebuild
@@ -0,0 +1,86 @@
+EAPI=7
+
+DESCRIPTION="VTuber application made with Godot 3.4"
+HOMEPAGE="https://github.com/virtual-puppet-project/vpuppr"
+
+RESTRICT="strip"
+
+PYTHON_COMPAT=( python3_{8..11} )
+inherit desktop python-single-r1
+
+IUSE="+osf-tracker ifm-tracker mouse-tracker vts-tracker meowface-tracker remote-control"
+REQUIRED_USE="osf-tracker? ( ${PYTHON_REQUIRED_USE} )"
+
+inherit git-r3
+EGIT_REPO_URI="https://github.com/virtual-puppet-project/vpuppr.git"
+EGIT_COMMIT="a55ff50cf0084c2600e61b377245f59406553220"
+EGIT_SUBMODULES=()
+SRC_URI="
+ https://github.com/virtual-puppet-project/godot-builds/releases/download/latest/Godot_v3.x-stable_linux_headless.64.tar.gz -> godot-vpuppr-headless.tar.gz
+ https://github.com/virtual-puppet-project/godot-builds/releases/download/latest/Godot_v3.x-stable_linux_release.64.tar.gz -> godot-vpuppr-release-profile.tar.gz
+ osf-tracker? ( https://github.com/you-win/OpenSeeFace/releases/download/latest/OpenSeeFace_latest_linux.tar.gz -> OpenSeeFace_latest.tar.gz )
+"
+
+LICENSE="MIT"
+SLOT="0"
+RDEPEND="
+ osf-tracker? ( ${PYTHON_DEPS} )
+"
+BDEPEND="
+ mouse-tracker? ( virtual/rust )
+"
+
+export EDITOR="${WORKDIR}/Godot_v3.x-stable_linux_headless.64"
+
+src_unpack() {
+ EGIT_SUBMODULES+=(
+ $(usex remote-control '*remote-control-server'"")
+ $(usex osf-tracker '*openseeface-tracker'"")
+ $(usex ifm-tracker '*ifacialmocap-tracker'"")
+ $(usex meowface-tracker '*meowface-tracker'"")
+ $(usex vts-tracker '*vtube-studio-tracker'"")
+ )
+ default
+ git-r3_src_unpack
+}
+
+src_prepare() {
+ use osf-tracker && {
+ mv "${WORKDIR}"/OpenSeeFace resources/extensions/openseeface-tracker/ || die
+ touch resources/extensions/openseeface-tracker/OpenSeeFace/.gdignore || die
+ }
+
+ mkdir -p release_templates/ || die
+
+ cp "${WORKDIR}"/Godot_v3.x-stable_linux_release.64 release_templates/ || die
+
+ echo "resource_path = '/usr/share/vpuppr'" >> release_config.toml
+ echo "version = '$(date '+%Y-%m-%d_%H-%M-%S')'" >> release_config.toml
+
+ default
+}
+
+src_compile() {
+ "${WORKDIR}"/Godot_v3.x-stable_linux_headless.64 --verbose --export linux "export/${PN}"
+}
+
+src_install() {
+ local size
+ dobin export/${PN}
+ insinto usr/share/vpuppr
+ doins -r resources/*
+ make_desktop_entry vpuppr "Virtual Puppet Project" "vpuppr" "Application" "Comment=Live VTuber model renderer, written in Godot"
+ for size in 16 24 48 64 128 256; do
+ newicon -s ${size} assets/icons/com.github.youwin.VPupPr-${size}.png vpuppr.png
+ done
+}
+
+pkg_postinst() {
+ xdg_icon_cache_update
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ xdg_icon_cache_update
+ xdg_desktop_database_update
+}