diff options
author | 2018-03-21 15:54:38 +0100 | |
---|---|---|
committer | 2018-04-05 01:03:00 +0200 | |
commit | e5755fa7c4b72fbcbc5a93f1c02919ef7c5dc2e9 (patch) | |
tree | 94c7cac4f2e9b667c19c268b3ce014160a529664 /games-arcade | |
parent | net-dns/dnscrypt-proxy: drop 2.0.7 (diff) | |
download | gentoo-e5755fa7c4b72fbcbc5a93f1c02919ef7c5dc2e9.tar.gz gentoo-e5755fa7c4b72fbcbc5a93f1c02919ef7c5dc2e9.tar.bz2 gentoo-e5755fa7c4b72fbcbc5a93f1c02919ef7c5dc2e9.zip |
games-arcade/oshu: version bump (2.0.0)
Closes: https://github.com/gentoo/gentoo/pull/7533
Diffstat (limited to 'games-arcade')
-rw-r--r-- | games-arcade/oshu/Manifest | 2 | ||||
-rw-r--r-- | games-arcade/oshu/files/oshu-2.0.0-use_unpacked_osu-skin.patch | 34 | ||||
-rw-r--r-- | games-arcade/oshu/metadata.xml | 3 | ||||
-rw-r--r-- | games-arcade/oshu/oshu-2.0.0.ebuild | 62 |
4 files changed, 101 insertions, 0 deletions
diff --git a/games-arcade/oshu/Manifest b/games-arcade/oshu/Manifest index a3d22b93c178..d0c5c6312fbe 100644 --- a/games-arcade/oshu/Manifest +++ b/games-arcade/oshu/Manifest @@ -1 +1,3 @@ DIST oshu-1.6.0.tar.gz 2459889 BLAKE2B 568b5bf00da50ce215b6156b36d0d1d894259abebeeba725103601f7f5d3a82705d308a7986f5e705b0d24469e6866207836eec9e1b9bdd89df291a4e9c372cd SHA512 e1f76a05d7ba40265dd58f6fe8106ed6293385870c7e77ff6bbd3dd0e9b5f7bc45f8f0b9c3729a6781c04289d54c76f9698bb659ba50fd35e609de23ecb02aa8 +DIST oshu-2.0.0.tar.gz 144088 BLAKE2B c4383746624f4de62e158a2f94d4e5c1a3e2f037fd05d80607932414f20a031103bd73f108644a93faadf61c21f3d2505da3afd2ea7ea43bd59e32966724928b SHA512 ed2b8294b06d239948c563135d997b422191be681ff86714a244ca64079251508a5a62e23cf3ae1e0ac2b3128b6401901233714eab7787989296ca1700192643 +DIST oshu-skin-v1.tar.gz 2224947 BLAKE2B 0b463133dd7ab54421551627d12932f5257848b1130d57af8c2ff6b6836a49c9322b8f2f7e95de540909390d0139e547650a6bb321614cf92fac464b09075674 SHA512 d562294ac5e122a9d9971e3ab92f6168d848177cc5e22a94bbc450fde2b3b14007796a24d33722da9b6675467b109ce128ba94dca5dcc7c61c91c1e373032618 diff --git a/games-arcade/oshu/files/oshu-2.0.0-use_unpacked_osu-skin.patch b/games-arcade/oshu/files/oshu-2.0.0-use_unpacked_osu-skin.patch new file mode 100644 index 000000000000..3786c2ed8adf --- /dev/null +++ b/games-arcade/oshu/files/oshu-2.0.0-use_unpacked_osu-skin.patch @@ -0,0 +1,34 @@ +commit 1dffc1a763f33af12715f4abcf8fd2043055a9a2 +Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me> +Date: Sun Apr 1 23:21:55 2018 +0200 + + share/skins/CMakeLists.txt: Use already unpacked osu-skin + +diff --git a/share/skins/CMakeLists.txt b/share/skins/CMakeLists.txt +index 54e20e5..2501757 100644 +--- a/share/skins/CMakeLists.txt ++++ b/share/skins/CMakeLists.txt +@@ -24,22 +24,10 @@ if ("minimal" IN_LIST OSHU_ENABLED_SKINS) + endif ("minimal" IN_LIST OSHU_ENABLED_SKINS) + + if ("osu" IN_LIST OSHU_ENABLED_SKINS) +- file( +- DOWNLOAD "https://www.mg0.fr/oshu/skins/osu-v1.tar.gz" "${CMAKE_CURRENT_BINARY_DIR}/osu.tar.gz" +- EXPECTED_HASH SHA256=bc645534371bf5ccba66d4a6729dc1deffb6f148b6ce115efd305f9ffab1d183 +- ) +- add_custom_command( +- OUTPUT osu/README.md +- COMMAND "${CMAKE_COMMAND}" -E tar xf osu.tar.gz +- COMMAND "${CMAKE_COMMAND}" -E touch osu/README.md +- DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/osu.tar.gz" +- COMMENT "Unpacking the osu skin" +- VERBATIM +- ) + add_custom_target(osu-skin DEPENDS osu/README.md) + add_dependencies(skins osu-skin) + install( +- DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/osu" ++ DIRECTORY osu + DESTINATION "${OSHU_SKINS_INSTALL_DIRECTORY}" + ) + endif ("osu" IN_LIST OSHU_ENABLED_SKINS) diff --git a/games-arcade/oshu/metadata.xml b/games-arcade/oshu/metadata.xml index 764e78624bc3..3e59d136eb7a 100644 --- a/games-arcade/oshu/metadata.xml +++ b/games-arcade/oshu/metadata.xml @@ -8,4 +8,7 @@ <email>proxy-maint@gentoo.org</email> <name>Proxy Maintainers</name> </maintainer> +<use> + <flag name="osu-skin">Include more complete osu-skin (other is minimal)</flag> +</use> </pkgmetadata> diff --git a/games-arcade/oshu/oshu-2.0.0.ebuild b/games-arcade/oshu/oshu-2.0.0.ebuild new file mode 100644 index 000000000000..24f021264b5a --- /dev/null +++ b/games-arcade/oshu/oshu-2.0.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +CMAKE_MIN_VERSION="3.9.0" + +inherit cmake-utils eutils + +DESCRIPTION="Lightweight osu! port" +HOMEPAGE="https://github.com/fmang/oshu" +SRC_URI="https://www.mg0.fr/oshu/releases/${P}.tar.gz + osu-skin? ( https://www.mg0.fr/oshu/skins/osu-v1.tar.gz -> ${PN}-skin-v1.tar.gz )" + +KEYWORDS="~amd64 ~x86" +LICENSE="GPL-3 CC-BY-NC-4.0" +SLOT="0" +IUSE="libav osu-skin" + +RDEPEND=" + >=media-libs/libsdl2-2.0.5:= + media-libs/sdl2-image:= + x11-libs/cairo:= + x11-libs/pango:= + !libav? ( media-video/ffmpeg:= ) + libav? ( media-video/libav:= ) +" + +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +RESTRICT="test" + +src_prepare() { + if use osu-skin; then + epatch "${FILESDIR}/oshu-2.0.0-use_unpacked_osu-skin.patch" + mv "${WORKDIR}/osu" share/skins/ + fi + + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + '-DOSHU_DEFAULT_SKIN='$(usex osu-skin 'osu' 'minimal') + '-DOSHU_SKINS=minimal'$(usex osu-skin ';osu' '') + ) + + cmake-utils_src_configure +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_mimeinfo_database_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_mimeinfo_database_update +} |