diff options
Diffstat (limited to 'games-rpg/easyrpg-player')
| -rw-r--r-- | games-rpg/easyrpg-player/Manifest | 1 | ||||
| -rw-r--r-- | games-rpg/easyrpg-player/easyrpg-player-0.8.1.1.ebuild | 92 | ||||
| -rw-r--r-- | games-rpg/easyrpg-player/easyrpg-player-9999.ebuild | 92 | ||||
| -rw-r--r-- | games-rpg/easyrpg-player/metadata.xml | 21 |
4 files changed, 206 insertions, 0 deletions
diff --git a/games-rpg/easyrpg-player/Manifest b/games-rpg/easyrpg-player/Manifest new file mode 100644 index 0000000..d26ae73 --- /dev/null +++ b/games-rpg/easyrpg-player/Manifest @@ -0,0 +1 @@ +DIST easyrpg-player-0.8.1.1.tar.gz 6815813 BLAKE2B 47fb2e6279fb9ba7ba546f6e1319f85c240da85eae74d67d2343a910a28d864744ec25eaf53ab20e483608fb98fb0cb3b2b7db26aeaabf5f8392a9094e8710e8 SHA512 081ae4f6ccf995e963139f2a0911a95c3cd3da49cfa65d9960a44eb189d82fffff6ea8295b0c007c9c2abc184bbbb2831e504964f3d90baacb9860bc083c3fd3 diff --git a/games-rpg/easyrpg-player/easyrpg-player-0.8.1.1.ebuild b/games-rpg/easyrpg-player/easyrpg-player-0.8.1.1.ebuild new file mode 100644 index 0000000..9cf9718 --- /dev/null +++ b/games-rpg/easyrpg-player/easyrpg-player-0.8.1.1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake xdg-utils + +DESCRIPTION="RPG Maker 2000/2003 and EasyRPG games interpreter" +HOMEPAGE="https://easyrpg.org/" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/EasyRPG/Player.git" +else + SRC_URI="https://github.com/EasyRPG/Player/archive/refs/tags/${PV}.tar.gz -> easyrpg-player-${PV}.tar.gz" + S="${WORKDIR}/Player-${PV}" + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3" +SLOT="0" + +IUSE=" +fluidsynth ++freetype ++json +libsamplerate ++midi ++mp3 +opus +sdl3 ++sndfile ++speexdsp ++vorbis +wildmidi +xmp +" + +RDEPEND=" + >=dev-games/liblcf-$(ver_cut 1-3)[ini] + >=dev-libs/libfmt-6:= + media-libs/libpng + x11-libs/pixman + fluidsynth? ( media-sound/fluidsynth:= ) + freetype? ( + media-libs/freetype:2 + media-libs/harfbuzz:= + ) + json? ( dev-cpp/nlohmann_json ) + libsamplerate? ( media-libs/libsamplerate ) + midi? ( media-libs/alsa-lib ) + mp3? ( media-sound/mpg123-base ) + opus? ( media-libs/opusfile ) + !sdl3? ( >=media-libs/libsdl2-2.0.14[video] ) + sdl3? ( media-libs/libsdl3 ) + sndfile? ( media-libs/libsndfile ) + speexdsp? ( media-libs/speexdsp ) + vorbis? ( media-libs/libvorbis ) + wildmidi? ( media-sound/wildmidi ) + xmp? ( media-libs/libxmp ) +" +DEPEND="${RDEPEND}" + +src_configure() { + local mycmakeargs=( + -DPLAYER_ENABLE_DRWAV=OFF + -DPLAYER_ENABLE_TESTS=ON + -DPLAYER_TARGET_PLATFORM="$(usex sdl3 SDL3 SDL2)" + -DPLAYER_WITH_FLUIDSYNTH="$(usex fluidsynth)" + -DPLAYER_WITH_FREETYPE="$(usex freetype)" + -DPLAYER_WITH_HARFBUZZ="$(usex freetype)" + -DPLAYER_WITH_LIBSNDFILE="$(usex sndfile)" + -DPLAYER_WITH_MPG123="$(usex mp3)" + -DPLAYER_WITH_NATIVE_MIDI="$(usex midi)" + -DPLAYER_WITH_NLOHMANN_JSON="$(usex json)" + -DPLAYER_WITH_OGGVORBIS="$(usex vorbis)" + -DPLAYER_WITH_OPUS="$(usex opus)" + -DPLAYER_WITH_SAMPLERATE="$(usex libsamplerate)" + -DPLAYER_WITH_SPEEXDSP="$(usex speexdsp)" + -DPLAYER_WITH_WILDMIDI="$(usex wildmidi)" + -DPLAYER_WITH_XMP="$(usex xmp)" + ) + cmake_src_configure +} + +src_test() { + cmake_build check +} + +pkg_postinst() { + xdg_desktop_database_update +} diff --git a/games-rpg/easyrpg-player/easyrpg-player-9999.ebuild b/games-rpg/easyrpg-player/easyrpg-player-9999.ebuild new file mode 100644 index 0000000..9cf9718 --- /dev/null +++ b/games-rpg/easyrpg-player/easyrpg-player-9999.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake xdg-utils + +DESCRIPTION="RPG Maker 2000/2003 and EasyRPG games interpreter" +HOMEPAGE="https://easyrpg.org/" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/EasyRPG/Player.git" +else + SRC_URI="https://github.com/EasyRPG/Player/archive/refs/tags/${PV}.tar.gz -> easyrpg-player-${PV}.tar.gz" + S="${WORKDIR}/Player-${PV}" + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3" +SLOT="0" + +IUSE=" +fluidsynth ++freetype ++json +libsamplerate ++midi ++mp3 +opus +sdl3 ++sndfile ++speexdsp ++vorbis +wildmidi +xmp +" + +RDEPEND=" + >=dev-games/liblcf-$(ver_cut 1-3)[ini] + >=dev-libs/libfmt-6:= + media-libs/libpng + x11-libs/pixman + fluidsynth? ( media-sound/fluidsynth:= ) + freetype? ( + media-libs/freetype:2 + media-libs/harfbuzz:= + ) + json? ( dev-cpp/nlohmann_json ) + libsamplerate? ( media-libs/libsamplerate ) + midi? ( media-libs/alsa-lib ) + mp3? ( media-sound/mpg123-base ) + opus? ( media-libs/opusfile ) + !sdl3? ( >=media-libs/libsdl2-2.0.14[video] ) + sdl3? ( media-libs/libsdl3 ) + sndfile? ( media-libs/libsndfile ) + speexdsp? ( media-libs/speexdsp ) + vorbis? ( media-libs/libvorbis ) + wildmidi? ( media-sound/wildmidi ) + xmp? ( media-libs/libxmp ) +" +DEPEND="${RDEPEND}" + +src_configure() { + local mycmakeargs=( + -DPLAYER_ENABLE_DRWAV=OFF + -DPLAYER_ENABLE_TESTS=ON + -DPLAYER_TARGET_PLATFORM="$(usex sdl3 SDL3 SDL2)" + -DPLAYER_WITH_FLUIDSYNTH="$(usex fluidsynth)" + -DPLAYER_WITH_FREETYPE="$(usex freetype)" + -DPLAYER_WITH_HARFBUZZ="$(usex freetype)" + -DPLAYER_WITH_LIBSNDFILE="$(usex sndfile)" + -DPLAYER_WITH_MPG123="$(usex mp3)" + -DPLAYER_WITH_NATIVE_MIDI="$(usex midi)" + -DPLAYER_WITH_NLOHMANN_JSON="$(usex json)" + -DPLAYER_WITH_OGGVORBIS="$(usex vorbis)" + -DPLAYER_WITH_OPUS="$(usex opus)" + -DPLAYER_WITH_SAMPLERATE="$(usex libsamplerate)" + -DPLAYER_WITH_SPEEXDSP="$(usex speexdsp)" + -DPLAYER_WITH_WILDMIDI="$(usex wildmidi)" + -DPLAYER_WITH_XMP="$(usex xmp)" + ) + cmake_src_configure +} + +src_test() { + cmake_build check +} + +pkg_postinst() { + xdg_desktop_database_update +} diff --git a/games-rpg/easyrpg-player/metadata.xml b/games-rpg/easyrpg-player/metadata.xml new file mode 100644 index 0000000..9558882 --- /dev/null +++ b/games-rpg/easyrpg-player/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'> +<pkgmetadata> + <maintainer type="person"> + <email>2pow11@gmail.com</email> + <name>1024x2</name> + </maintainer> + <use> + <flag name="fluidsynth">Use <pkg>media-sound/fluidsynth</pkg> for MIDI playback</flag> + <flag name="freetype">Use <pkg>media-libs/freetype</pkg> for text rendering</flag> + <flag name="json">Support processing of JSON files</flag> + <flag name="libsamplerate">Use <pkg>media-libs/libsamplerate</pkg> as a resampler</flag> + <flag name="midi">Use ALSA for MIDI playback</flag> + <flag name="sdl3">Use SDL3 backend intead of SDL2</flag> + <flag name="speexdsp">Use <pkg>media-libs/speexdsp</pkg> as a resampler</flag> + <flag name="wildmidi">Use <pkg>media-sound/wildmidi</pkg> for MIDI playback</flag> + </use> + <upstream> + <remote-id type="github">EasyRPG/Player</remote-id> + </upstream> +</pkgmetadata> |
