logo

overlay

My (experimental) gentoo overlay
commit: 97f38da752126166de100caf22037d0282b0f151
parent: 26f848a8b939c366e0af25908d10e2fe98c55bab
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 19 Jan 2019 21:55:40 +0100

games-arcade/stepmania: Bump to 5.1.0_beta2

Diffstat:

Mgames-arcade/stepmania/Manifest1+
Mgames-arcade/stepmania/stepmania-5.0.12.ebuild104+++++++++++++++++++++++++++++++-------------------------------------------------
Agames-arcade/stepmania/stepmania-5.1.0_beta2.ebuild89+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 130 insertions(+), 64 deletions(-)

diff --git a/games-arcade/stepmania/Manifest b/games-arcade/stepmania/Manifest @@ -1 +1,2 @@ +DIST stepmania-5.1.0_beta2.tar.gz 185985270 BLAKE2B 2389e1b8a2f72a2ed59aac1e4840f821abce943e8311819c83c03de6f4281bfdfe12728f6b665770cc7047ca549a6390107109705259fed45d517f2909922e2e SHA512 a781b2954db067f88f81ed284978a829338186584f7ce3b1b556d8a1a747439a74a80e2eaa1362c6f72cf7e06ae8341e5cba0ece54b84e05fa87ddb8b8610e0a DIST stepmania-5.0.12.tar.gz 176965188 SHA256 df79bcadd69d4ed60cf560d45386ec275181343495ffd744c3ff8f73c83d4755 SHA512 0fc66b604a7ab0236ff57befa835aaf073ed21052c176546d966667faaf9d544bcbc6df45c690a834c12313597b72afe62ed65ccd6829b16ed5476a6d992776c WHIRLPOOL 20942b4579cc1cde135a9b77e0e5ae5984605822cd249314896bbc4338fa7c89817f068bd00fc0343cf3d8ba455f5c3b31bafc4aa2282fb80fafa3dc5550ca3f diff --git a/games-arcade/stepmania/stepmania-5.0.12.ebuild b/games-arcade/stepmania/stepmania-5.0.12.ebuild @@ -1,111 +1,87 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -inherit cmake-utils versionator eutils - -FFMPEG_VER="2.1.3" # From CMake/SetupFfmpeg.cmake +inherit cmake-utils 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" +SRC_URI="https://github.com/stepmania/stepmania/archive/v${PV/_beta/-b}.tar.gz -> ${P}.tar.gz" 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" +IUSE="doc +default-songs alsa oss pulseaudio jack ffmpeg gles2 +gtk +mp3 +ogg +jpeg networking wav parport crash-handler cpu_flags_x86_sse2" REQUIRED_USE="|| ( alsa oss pulseaudio jack )" -RDEPEND="virtual/opengl +RDEPEND=" app-arch/bzip2 + dev-libs/libpcre sys-libs/zlib - x11-libs/libSM + virtual/opengl x11-libs/libICE + x11-libs/libSM + x11-libs/libva 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 ) ) + ffmpeg? ( >=virtual/ffmpeg-9-r1 ) gtk? ( - x11-libs/gtk+:2 dev-libs/glib:2 - x11-libs/gdk-pixbuf:2 x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:2 x11-libs/pango ) + jack? ( media-sound/jack-audio-connection-kit ) mp3? ( media-libs/libmad ) ogg? ( - media-libs/libvorbis media-libs/libogg - )" -DEPEND="${RDEPEND} - doc? ( app-doc/doxygen )" + media-libs/libvorbis + ) + pulseaudio? ( media-sound/pulseaudio ) +" +DEPEND=" + ${RDEPEND} + doc? ( app-doc/doxygen ) +" + +S="${WORKDIR}/${P/_beta/-b}" src_prepare() { - eapply "${FILESDIR}/stepmania-select-audio-backends.patch" - eapply_user + # Remove third-party librairies + sed 's;add_subdirectory(extern);;' CMakeLists.txt || die } 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_CRASH_HANDLER="$(usex crash-handler)" -DWITH_FFMPEG="$(usex ffmpeg)" - -DWITH_SYSTEM_FFMPEG="$(usex ffmpeg $(usex system-ffmpeg) OFF)" + -DWITH_FULL_RELEASE="NO" -DWITH_GLES2="$(usex gles2)" + -DWITH_GPL_LIBS="YES" -DWITH_GTK2="$(usex gtk)" + -DWITH_JACK="$(usex jack)" + -DWITH_JPEG="$(usex jpeg)" + -DWITH_LTO="NO" + -DWITH_MINIMAID="NO" -DWITH_MP3="$(usex mp3)" + -DWITH_NETWORKING="$(usex networking)" -DWITH_OGG="$(usex ogg)" - -DWITH_WAV="$(usex wav)" - -DWITH_JPEG="$(usex jpeg)" + -DWITH_OSS="$(usex oss)" -DWITH_PARALLEL_PORT="$(usex parport)" - -DWITH_NETWORKING="$(usex networking)" + -DWITH_PORTABLE_TOMCRYPT="YES" + -DWITH_PROFILING="NO" + -DWITH_PULSEAUDIO="$(usex pulseaudio)" -DWITH_SSE2="$(usex cpu_flags_x86_sse2)" + -DWITH_SYSTEM_FFMPEG="$(usex ffmpeg)" -DWITH_TTY="NO" - -DWITH_LTO="NO" - -DWITH_FULL_RELEASE="NO" - -DWITH_MINIMAID="NO" - -DWITH_GPL_LIBS="YES" - -DWITH_PROFILING="NO" - -DWITH_PORTABLE_TOMCRYPT="YES" + -DWITH_WAV="$(usex wav)" ) 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 -} diff --git a/games-arcade/stepmania/stepmania-5.1.0_beta2.ebuild b/games-arcade/stepmania/stepmania-5.1.0_beta2.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils + +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/_beta/-b}.tar.gz -> ${P}.tar.gz" + +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 cpu_flags_x86_sse2" + +REQUIRED_USE="|| ( alsa oss pulseaudio jack )" +RDEPEND=" + app-arch/bzip2 + dev-libs/libpcre + sys-libs/zlib + virtual/opengl + x11-libs/libICE + x11-libs/libSM + x11-libs/libva + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXrandr + alsa? ( media-libs/alsa-lib ) + ffmpeg? ( >=virtual/ffmpeg-9-r1 ) + gtk? ( + dev-libs/glib:2 + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:2 + x11-libs/pango + ) + jack? ( media-sound/jack-audio-connection-kit ) + mp3? ( media-libs/libmad ) + ogg? ( + media-libs/libogg + media-libs/libvorbis + ) + pulseaudio? ( media-sound/pulseaudio ) +" +DEPEND=" + ${RDEPEND} + doc? ( app-doc/doxygen ) +" + +S="${WORKDIR}/${P/_beta/-b}" + +src_prepare() { + # Remove third-party librairies + sed -i 's;add_subdirectory(extern);;' CMakeLists.txt || die + + cmake-utils_src_prepare +} + +src_configure() { + # Minimaid tries to use pre-built static libraries (x86 only, often fails to link) + # TTY input fails to compile + local mycmakeargs=( + -DWITH_ALSA="$(usex alsa)" + -DWITH_CRASH_HANDLER="$(usex crash-handler)" + -DWITH_FFMPEG="$(usex ffmpeg)" + -DWITH_FULL_RELEASE="NO" + -DWITH_GLES2="$(usex gles2)" + -DWITH_GPL_LIBS="YES" + -DWITH_GTK2="$(usex gtk)" + -DWITH_JACK="$(usex jack)" + -DWITH_JPEG="$(usex jpeg)" + -DWITH_LTO="NO" + -DWITH_MINIMAID="NO" + -DWITH_MP3="$(usex mp3)" + -DWITH_NETWORKING="$(usex networking)" + -DWITH_OGG="$(usex ogg)" + -DWITH_OSS="$(usex oss)" + -DWITH_PARALLEL_PORT="$(usex parport)" + -DWITH_PORTABLE_TOMCRYPT="YES" + -DWITH_PROFILING="NO" + -DWITH_PULSEAUDIO="$(usex pulseaudio)" + -DWITH_SSE2="$(usex cpu_flags_x86_sse2)" + -DWITH_SYSTEM_FFMPEG="$(usex ffmpeg)" + -DWITH_TTY="NO" + -DWITH_WAV="$(usex wav)" + ) + cmake-utils_src_configure +}