commit:     7ee56cf50fddb74903c630ef24b570c43ed6149e
Author:     Huang Rui <vowstar <AT> gmail <DOT> com>
AuthorDate: Tue Feb 18 07:43:47 2025 +0000
Commit:     Rui Huang <vowstar <AT> gmail <DOT> com>
CommitDate: Tue Feb 18 07:44:57 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7ee56cf5

games-util/chiaki-ng: package migrate, add 1.9.5, 9999

- Migrate form games-util/chiaki
- The upstream recommends `chiaki-ng`.
See also: 
https://git.sr.ht/~thestr4ng3r/chiaki/commit/94fcdc3c6109cdcfbcf5524e5ab7838b230822b0

Signed-off-by: Huang Rui <vowstar <AT> gmail.com>

 games-util/chiaki-ng/Manifest               |   2 +
 games-util/chiaki-ng/chiaki-ng-1.9.5.ebuild | 100 ++++++++++++++++++++++++++++
 games-util/chiaki-ng/chiaki-ng-9999.ebuild  | 100 ++++++++++++++++++++++++++++
 games-util/chiaki-ng/metadata.xml           |  24 +++++++
 4 files changed, 226 insertions(+)

diff --git a/games-util/chiaki-ng/Manifest b/games-util/chiaki-ng/Manifest
new file mode 100644
index 000000000..b211cfb10
--- /dev/null
+++ b/games-util/chiaki-ng/Manifest
@@ -0,0 +1,2 @@
+DIST chiaki-ng-1.9.5.tar.gz 40761504 BLAKE2B 
7fc18e56e1cde187a42225df15ffb8c150b11db73189c2e3f2d1c263806a76210704e9b60e38ed89d3883b1dd7638f34609f9eb106f0c8ba0e19d0ad64368754
 SHA512 
d89a67143e60170188b146555efbcb1545fe5ee1b0a3c43b5d0a54b5947f261eb7fc9d9f4604c7e09647661c07f7c5468b0cbd8a22748646dc514ad7c4c4b321
+DIST munit-439de4a9b136bc3b5163e73d4caf37c590bef875.tar.gz 27747 BLAKE2B 
81cac50228c9e782ce2100edc42462d900c08c6dd43c8a6e10abb6a72db559e780fc57e2a26cf308081cc4d55815e1444d8704af4b0fad73076c015753ca8bb8
 SHA512 
28fbe29636fd3ecb675f2e823165ac88be10adfbb2d4155fee43a4b2747c8dd4f24808ed9ddedd9a2ec60d96367e60fce8ca82c54b0eb605ed9b4bb05392a872

diff --git a/games-util/chiaki-ng/chiaki-ng-1.9.5.ebuild 
b/games-util/chiaki-ng/chiaki-ng-1.9.5.ebuild
new file mode 100644
index 000000000..5dfb4ff33
--- /dev/null
+++ b/games-util/chiaki-ng/chiaki-ng-1.9.5.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+VER_MUNIT="439de4a9b136bc3b5163e73d4caf37c590bef875"
+
+PYTHON_COMPAT=( python3_{10..13} )
+inherit cmake python-single-r1 xdg
+
+DESCRIPTION="Client for PlayStation 4 and PlayStation 5 Remote Play"
+HOMEPAGE="https://github.com/streetpea/chiaki-ng";
+
+if [[ "${PV}" == "9999" ]] ; then
+       EGIT_REPO_URI="https://github.com/streetpea/${PN}.git";
+       inherit git-r3
+else
+       SRC_URI="
+               
https://github.com/streetpea/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz
+               test? ( 
https://github.com/nemequ/munit/archive/${VER_MUNIT}.tar.gz -> 
munit-${VER_MUNIT}.tar.gz )
+       "
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="+cli +gui +sdl +ffmpeg mbedtls test"
+REQUIRED_USE="
+       ${PYTHON_REQUIRED_USE}
+       gui? ( ffmpeg )
+"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       ${PYTHON_DEPS}
+       dev-libs/libevdev
+       dev-libs/jerasure
+       dev-libs/nanopb
+       media-libs/libplacebo
+       media-libs/opus
+       net-dns/libidn2
+       net-misc/curl
+       sdl? ( media-libs/libsdl2[joystick,haptic] )
+       gui? (
+               dev-qt/qtbase:6[concurrent,dbus,gui,network,opengl,widgets]
+               dev-qt/qtdeclarative:6[network,opengl,widgets,svg]
+               dev-qt/qtmultimedia:6
+               dev-qt/qtsvg:6
+               dev-qt/qtwebchannel:6[qml]
+               dev-qt/qtwebengine:6[qml,widgets]
+       )
+       !mbedtls? ( dev-libs/openssl:= )
+       mbedtls? ( net-libs/mbedtls )
+       ffmpeg? ( media-video/ffmpeg:= )
+"
+
+DEPEND="${RDEPEND}"
+
+BDEPEND="
+       ${PYTHON_DEPS}
+       $(python_gen_cond_dep 'dev-python/protobuf[${PYTHON_USEDEP}]')
+       dev-libs/protobuf
+       virtual/pkgconfig
+"
+
+src_prepare() {
+       cmake_src_prepare
+
+       if use test; then
+               rm -r "${S}"/test/munit
+               ln -s "${WORKDIR}"/munit-${VER_MUNIT} "${S}"/test/munit
+       fi
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DPYTHON_EXECUTABLE="${PYTHON}"
+               -DCHIAKI_USE_SYSTEM_JERASURE=ON
+               -DCHIAKI_USE_SYSTEM_NANOPB=ON
+               -DCHIAKI_USE_SYSTEM_CURL=ON
+               -DCHIAKI_ENABLE_STEAM_SHORTCUT=OFF # BUG: require 
cpp-steam-tools, used by steamdeck
+               -DCHIAKI_ENABLE_SWITCH_CURL=ON # BUG: Gentoo use CURL::libcurl 
instead of CURL::libcurl_shared
+               -DCHIAKI_ENABLE_STEAMDECK_NATIVE=OFF # Used by steamdeck
+               -DCHIAKI_ENABLE_TESTS=$(usex test)
+               -DCHIAKI_ENABLE_CLI=$(usex cli)
+               -DCHIAKI_ENABLE_GUI=$(usex gui)
+               -DCHIAKI_ENABLE_FFMPEG_DECODER=$(usex ffmpeg)
+               -DCHIAKI_LIB_ENABLE_MBEDTLS=$(usex mbedtls)
+               -DCHIAKI_GUI_ENABLE_SDL_GAMECONTROLLER=$(usex sdl)
+       )
+
+       cmake_src_configure
+}
+
+src_install() {
+       cmake_src_install
+
+       dolib.so "${BUILD_DIR}"/lib/*.so
+       use gui && dolib.so "${BUILD_DIR}"/gui/*.so
+}

diff --git a/games-util/chiaki-ng/chiaki-ng-9999.ebuild 
b/games-util/chiaki-ng/chiaki-ng-9999.ebuild
new file mode 100644
index 000000000..5dfb4ff33
--- /dev/null
+++ b/games-util/chiaki-ng/chiaki-ng-9999.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+VER_MUNIT="439de4a9b136bc3b5163e73d4caf37c590bef875"
+
+PYTHON_COMPAT=( python3_{10..13} )
+inherit cmake python-single-r1 xdg
+
+DESCRIPTION="Client for PlayStation 4 and PlayStation 5 Remote Play"
+HOMEPAGE="https://github.com/streetpea/chiaki-ng";
+
+if [[ "${PV}" == "9999" ]] ; then
+       EGIT_REPO_URI="https://github.com/streetpea/${PN}.git";
+       inherit git-r3
+else
+       SRC_URI="
+               
https://github.com/streetpea/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz
+               test? ( 
https://github.com/nemequ/munit/archive/${VER_MUNIT}.tar.gz -> 
munit-${VER_MUNIT}.tar.gz )
+       "
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="+cli +gui +sdl +ffmpeg mbedtls test"
+REQUIRED_USE="
+       ${PYTHON_REQUIRED_USE}
+       gui? ( ffmpeg )
+"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       ${PYTHON_DEPS}
+       dev-libs/libevdev
+       dev-libs/jerasure
+       dev-libs/nanopb
+       media-libs/libplacebo
+       media-libs/opus
+       net-dns/libidn2
+       net-misc/curl
+       sdl? ( media-libs/libsdl2[joystick,haptic] )
+       gui? (
+               dev-qt/qtbase:6[concurrent,dbus,gui,network,opengl,widgets]
+               dev-qt/qtdeclarative:6[network,opengl,widgets,svg]
+               dev-qt/qtmultimedia:6
+               dev-qt/qtsvg:6
+               dev-qt/qtwebchannel:6[qml]
+               dev-qt/qtwebengine:6[qml,widgets]
+       )
+       !mbedtls? ( dev-libs/openssl:= )
+       mbedtls? ( net-libs/mbedtls )
+       ffmpeg? ( media-video/ffmpeg:= )
+"
+
+DEPEND="${RDEPEND}"
+
+BDEPEND="
+       ${PYTHON_DEPS}
+       $(python_gen_cond_dep 'dev-python/protobuf[${PYTHON_USEDEP}]')
+       dev-libs/protobuf
+       virtual/pkgconfig
+"
+
+src_prepare() {
+       cmake_src_prepare
+
+       if use test; then
+               rm -r "${S}"/test/munit
+               ln -s "${WORKDIR}"/munit-${VER_MUNIT} "${S}"/test/munit
+       fi
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DPYTHON_EXECUTABLE="${PYTHON}"
+               -DCHIAKI_USE_SYSTEM_JERASURE=ON
+               -DCHIAKI_USE_SYSTEM_NANOPB=ON
+               -DCHIAKI_USE_SYSTEM_CURL=ON
+               -DCHIAKI_ENABLE_STEAM_SHORTCUT=OFF # BUG: require 
cpp-steam-tools, used by steamdeck
+               -DCHIAKI_ENABLE_SWITCH_CURL=ON # BUG: Gentoo use CURL::libcurl 
instead of CURL::libcurl_shared
+               -DCHIAKI_ENABLE_STEAMDECK_NATIVE=OFF # Used by steamdeck
+               -DCHIAKI_ENABLE_TESTS=$(usex test)
+               -DCHIAKI_ENABLE_CLI=$(usex cli)
+               -DCHIAKI_ENABLE_GUI=$(usex gui)
+               -DCHIAKI_ENABLE_FFMPEG_DECODER=$(usex ffmpeg)
+               -DCHIAKI_LIB_ENABLE_MBEDTLS=$(usex mbedtls)
+               -DCHIAKI_GUI_ENABLE_SDL_GAMECONTROLLER=$(usex sdl)
+       )
+
+       cmake_src_configure
+}
+
+src_install() {
+       cmake_src_install
+
+       dolib.so "${BUILD_DIR}"/lib/*.so
+       use gui && dolib.so "${BUILD_DIR}"/gui/*.so
+}

diff --git a/games-util/chiaki-ng/metadata.xml 
b/games-util/chiaki-ng/metadata.xml
new file mode 100644
index 000000000..4c1ffcaff
--- /dev/null
+++ b/games-util/chiaki-ng/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Huang Rui</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">streetpea/chiaki-ng</remote-id>
+               <bugs-to>https://github.com/streetpea/chiaki-ng/issues</bugs-to>
+       </upstream>
+       <use>
+               <flag name="cli">Build CLI interface</flag>
+               <flag name="gui">Build Qt GUI interface</flag>
+               <flag name="sdl">Add support for touchpad and sensor handling 
via SDL. Adds support for any controller supported by SDL</flag>
+               <flag name="mbedtls">Use mbedtls instead of OpenSSL as part of 
Chiaki lib</flag>
+       </use>
+       <longdescription lang="en">
+               Chiaki-NG (Next-Generation ) is a Free and Open Source Software 
Client
+               for PlayStation 4 and PlayStation 5 Remote Play for Linux, 
FreeBSD,
+               OpenBSD, Android, macOS, Windows, Nintendo Switch and 
potentially even
+               more platforms.
+       </longdescription>
+</pkgmetadata>

Reply via email to