logo

overlay

My (experimental) gentoo overlay
commit: 37ded7ab9f24142da57f7c272a8b03ffe53df7c1
parent: b070c3fa70f7c7c30524d6b597f4923cd1230ede
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 18 Feb 2018 22:40:58 +0100

games-arcade/stepmania: Import from ::jm-overlay

Diffstat:

Agames-arcade/stepmania/Manifest5+++++
Agames-arcade/stepmania/files/stepmania-select-audio-backends.patch83+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Agames-arcade/stepmania/metadata.xml13+++++++++++++
Agames-arcade/stepmania/stepmania-5.0.12.ebuild119+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 220 insertions(+), 0 deletions(-)

diff --git a/games-arcade/stepmania/Manifest b/games-arcade/stepmania/Manifest @@ -0,0 +1,5 @@ +AUX stepmania-select-audio-backends.patch 2451 SHA256 8fe002390bf9f561f1e0c2d8513de711bbd05dca218c61ff992dfc03ca097d69 SHA512 965907d8fb27b522b33171b22a1bdb3dbdd52994445612471b5cd2b2522393b12a2c447f7069c6647d9320defe92ed417a1611c067d1bbeff3ea2bfa79e0e6cc WHIRLPOOL ddd21895198aeed717e43bf55b9738d51028acf9679a165f886c2907814edb6525f4ff04c7b8c58ce7d6864225eff6f89bd3e335b90edfe6aedb5145f5928914 +DIST ffmpeg-2.1.3.tar.bz2 6638987 SHA256 1d332e7fd35f87e1ffb6c9b0405cbfda085ef712ede0133a213793a4e66d13a3 SHA512 fcaf04089c6081e476c23220c33d67252f8eecacc67a79a23a658865cab896cf5f29f8825626c09151539aa35dcae64726bcb6f96fadf51bc8b9c4e5fa3c47a0 WHIRLPOOL 9c289ac74285c7394de8fb34ab65c25835ab1a56bec51dd888e3e6899a9680d0e4bba68d92f685a0b5439be5ca51b0799b15c0bdeab5105720c5fe558319dc38 +DIST stepmania-5.0.12.tar.gz 176965188 SHA256 df79bcadd69d4ed60cf560d45386ec275181343495ffd744c3ff8f73c83d4755 SHA512 0fc66b604a7ab0236ff57befa835aaf073ed21052c176546d966667faaf9d544bcbc6df45c690a834c12313597b72afe62ed65ccd6829b16ed5476a6d992776c WHIRLPOOL 20942b4579cc1cde135a9b77e0e5ae5984605822cd249314896bbc4338fa7c89817f068bd00fc0343cf3d8ba455f5c3b31bafc4aa2282fb80fafa3dc5550ca3f +EBUILD stepmania-5.0.12.ebuild 3399 SHA256 ae006322a31d96c72ca88604656e794803a4866a03f0d56e53e10d4badd97f4a SHA512 eb892c0f3dc57821d2533df8324b44d37520d09b42acc14db5de03987d28f619056ce2567817276e2fcf13a99837d04a5728889f91fdc6c762cc29e95b11d149 WHIRLPOOL bfe243271b0bb992c00c89ec5fea806eaad04b63da62384267ec50b81b2d40eba27be2feebe69eaa5bd4e2325bf5aa73dd5dcbee49829df47d64e7902ade69ff +MISC metadata.xml 688 SHA256 f72bd92c3c2fdf62655d365a41de7002ce05f1f55a1dc4f624e16303d68709f3 SHA512 2274e1b5a8aeecf43cc6a646871a36778a23fb6bcef7c8efd0601495d57dd20f1bc32a5c894d386de83cca2cf2f5a54b17bb12f9d1cd687d1313411acbf63ee2 WHIRLPOOL 29225d6ec85a9ac4f5e3027f7e17874b20adcf40b0881f6f0201c798cbc0e6f63a58f23d0bbc4dd17503985400336537f60fac9cdcbbb74bf9805928cb98e190 diff --git a/games-arcade/stepmania/files/stepmania-select-audio-backends.patch b/games-arcade/stepmania/files/stepmania-select-audio-backends.patch @@ -0,0 +1,83 @@ +diff -ru stepmania-5.0.12_orig/CMake/DefineOptions.cmake stepmania-5.0.12/CMake/DefineOptions.cmake +--- stepmania-5.0.12_orig/CMake/DefineOptions.cmake 2016-09-22 15:30:46.585653678 +0200 ++++ stepmania-5.0.12/CMake/DefineOptions.cmake 2016-09-22 15:32:15.409856429 +0200 +@@ -41,6 +41,11 @@ + # Turn this option on to log every segment added or removed. + option(WITH_LOGGING_TIMING_DATA "Build with logging all Add and Erase Segment calls." OFF) + ++option(WITH_ALSA "Enable ALSA sound" OFF) ++option(WITH_PULSEAUDIO "Enable PulseAudio sound" OFF) ++option(WITH_OSS "Enable OSS sound" OFF) ++option(WITH_JACK "Enable JACK sound" OFF) ++ + if(NOT MSVC) + # Turn this option off to disable using FFMEPG. + option(WITH_FFMPEG "Build with FFMPEG." ON) +diff -ru stepmania-5.0.12_orig/StepmaniaCore.cmake stepmania-5.0.12/StepmaniaCore.cmake +--- stepmania-5.0.12_orig/StepmaniaCore.cmake 2016-09-22 15:30:46.939646512 +0200 ++++ stepmania-5.0.12/StepmaniaCore.cmake 2016-09-22 15:35:03.872452142 +0200 +@@ -353,35 +353,51 @@ + set(HAX_XRANDR FALSE) + endif() + +- find_package(PulseAudio) +- if (PULSEAUDIO_FOUND) +- set(HAS_PULSE TRUE) ++ if (WITH_PULSEAUDIO) ++ find_package(PulseAudio) ++ if (PULSEAUDIO_FOUND) ++ set(HAS_PULSE TRUE) ++ else() ++ set(HAS_PULSE FALSE) ++ endif() + else() + set(HAS_PULSE FALSE) + endif() + +- find_package(ALSA) +- if (ALSA_FOUND) +- set(HAS_ALSA TRUE) ++ if (WITH_ALSA) ++ find_package(ALSA) ++ if (ALSA_FOUND) ++ set(HAS_ALSA TRUE) ++ else() ++ set(HAS_ALSA FALSE) ++ endif() + else() + set(HAS_ALSA FALSE) + endif() + +- find_package(JACK) +- if (JACK_FOUND) +- set(HAS_JACK TRUE) ++ if (WITH_JACK) ++ find_package(JACK) ++ if (JACK_FOUND) ++ set(HAS_JACK TRUE) ++ else() ++ set(HAS_JACK FALSE) ++ endif() + else() + set(HAS_JACK FALSE) + endif() + +- find_package(OSS) +- if (OSS_FOUND) +- set(HAS_OSS TRUE) ++ if (WITH_OSS) ++ find_package(OSS) ++ if (OSS_FOUND) ++ set(HAS_OSS TRUE) ++ else() ++ set(HAS_OSS FALSE) ++ endif() + else() + set(HAS_OSS FALSE) + endif() + +- if(NOT OSS_FOUND AND NOT JACK_FOUND AND NOT ALSA_FOUND AND NOT PULSE_FOUND) ++ if(NOT HAS_OSS AND NOT HAS_JACK AND NOT HAS_ALSA AND NOT HAS_PULSE) + message(FATAL_ERROR "No sound libraries found. You will require at least one.") + else() + message(STATUS "-- At least one sound library was found. Do not worry if any were not found at this stage.") diff --git a/games-arcade/stepmania/metadata.xml b/games-arcade/stepmania/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <use> + <flag name="parport">Enable support for lights connected to the parallel port</flag> + <flag name="crash-handler">Enable the custom crash handler</flag> + <flag name="gles2">Enable support for OpenGL ES 2</flag> + <flag name="networking">Enable network-related functionality</flag> + <flag name="wav">Enable support for WAV audio files</flag> + <flag name="default-songs">Install the songs that are distributed with the game by default</flag> + <flag name="system-ffmpeg">Do not use the bundled version of media-video/ffmpeg</flag> + </use> +</pkgmetadata> diff --git a/games-arcade/stepmania/stepmania-5.0.12.ebuild b/games-arcade/stepmania/stepmania-5.0.12.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils versionator eutils + +FFMPEG_VER="2.1.3" # From CMake/SetupFfmpeg.cmake + +DESCRIPTION="Advanced rhythm game, designed for both home and arcade use" +HOMEPAGE="http://www.stepmania.com/" +SRC_URI="https://github.com/stepmania/stepmania/archive/v${PV}.tar.gz -> ${P}.tar.gz + ffmpeg? ( !system-ffmpeg? ( https://ffmpeg.org/releases/ffmpeg-${FFMPEG_VER}.tar.bz2 ) )" + +LICENSE="MIT default-songs? ( CC-BY-NC-4.0 )" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc +default-songs alsa oss pulseaudio jack +ffmpeg gles2 +gtk +mp3 +ogg +jpeg networking wav parport crash-handler -system-ffmpeg cpu_flags_x86_sse2" + +REQUIRED_USE="|| ( alsa oss pulseaudio jack )" +RDEPEND="virtual/opengl + app-arch/bzip2 + sys-libs/zlib + x11-libs/libSM + x11-libs/libICE + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXrandr + dev-libs/libpcre + x11-libs/libva + alsa? ( media-libs/alsa-lib ) + pulseaudio? ( media-sound/pulseaudio ) + jack? ( media-sound/jack-audio-connection-kit ) + ffmpeg? ( system-ffmpeg? ( <media-video/ffmpeg-3 ) ) + gtk? ( + x11-libs/gtk+:2 + dev-libs/glib:2 + x11-libs/gdk-pixbuf:2 + x11-libs/cairo + x11-libs/pango + ) + mp3? ( media-libs/libmad ) + ogg? ( + media-libs/libvorbis + media-libs/libogg + )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen )" + +src_unpack() { + default + if use ffmpeg && ! use system-ffmpeg; then + mv "${WORKDIR}/ffmpeg-${FFMPEG_VER}" "${S}/extern/ffmpeg-linux-${FFMPEG_VER}" || die + fi +} + +src_prepare() { + eapply "${FILESDIR}/stepmania-select-audio-backends.patch" + eapply_user +} + +src_configure() { + # Minimaid tries to use pre-built static libraries (x86 only, often fails to link) + # TTY input fails to compile + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX=/opt + -DWITH_CRASH_HANDLER="$(usex crash-handler)" + -DWITH_ALSA="$(usex alsa)" + -DWITH_PULSEAUDIO="$(usex pulseaudio)" + -DWITH_JACK="$(usex jack)" + -DWITH_OSS="$(usex oss)" + -DWITH_FFMPEG="$(usex ffmpeg)" + -DWITH_SYSTEM_FFMPEG="$(usex ffmpeg $(usex system-ffmpeg) OFF)" + -DWITH_GLES2="$(usex gles2)" + -DWITH_GTK2="$(usex gtk)" + -DWITH_MP3="$(usex mp3)" + -DWITH_OGG="$(usex ogg)" + -DWITH_WAV="$(usex wav)" + -DWITH_JPEG="$(usex jpeg)" + -DWITH_PARALLEL_PORT="$(usex parport)" + -DWITH_NETWORKING="$(usex networking)" + -DWITH_SSE2="$(usex cpu_flags_x86_sse2)" + -DWITH_TTY="NO" + -DWITH_LTO="NO" + -DWITH_FULL_RELEASE="NO" + -DWITH_MINIMAID="NO" + -DWITH_GPL_LIBS="YES" + -DWITH_PROFILING="NO" + -DWITH_PORTABLE_TOMCRYPT="YES" + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + if use doc; then + cd Docs || die + doxygen || die + fi +} + +src_install() { + cmake-utils_src_install + + mv "${ED}/opt/${PN}-$(get_version_component_range 1-2)" "${ED}/opt/${PN}" || die + rm -r "${ED}/opt/${PN}/Docs" || die + if ! use default-songs; then + rm -r "${ED}/opt/${PN}/Songs/StepMania 5" || die + fi + + make_wrapper "${PN}" "${EROOT}opt/${PN}/${PN}" + newicon "Themes/default/Graphics/ScreenTitleMenu logo/_arrow (dither).png" "${PN}.png" + make_desktop_entry "${PN}" "Stepmania" "${PN}" + + cd Docs || die + dodoc Changelog_* CommandLineArgs.txt credits.txt KnownIssues.txt Mapping_keys_for_edit_mode.txt old_changelog.txt versioning.txt Userdocs/* + use doc && dodoc -r CourseFormat.txt CustomMissionReference.txt Devdocs Luadoc SimfileFormats Themerdocs + use doc && dodoc -r doxygen/html +}