diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-emulation/yabause | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'games-emulation/yabause')
-rw-r--r-- | games-emulation/yabause/Manifest | 5 | ||||
-rw-r--r-- | games-emulation/yabause/files/yabause-0.9.14-RWX.patch | 24 | ||||
-rw-r--r-- | games-emulation/yabause/files/yabause-0.9.14-cmake.patch | 51 | ||||
-rw-r--r-- | games-emulation/yabause/metadata.xml | 14 | ||||
-rw-r--r-- | games-emulation/yabause/yabause-0.9.14.ebuild | 73 |
5 files changed, 167 insertions, 0 deletions
diff --git a/games-emulation/yabause/Manifest b/games-emulation/yabause/Manifest new file mode 100644 index 000000000000..25365c78d8f0 --- /dev/null +++ b/games-emulation/yabause/Manifest @@ -0,0 +1,5 @@ +AUX yabause-0.9.14-RWX.patch 688 BLAKE2B eb74169adfdee83d68458ebf4e6e274cb94f7e1866f0d7489b9d1ba067df1110213edb80c1cfd53a00c84723249bd7d0e0529afe0d48541bbe6310b055ade06a SHA512 9da2ca641bcd0df8c05d9d5727158952ff41a8d88f685b9263661bf0fe71eca8b338c37fbcdfce252131c5fe6e4a73fa27ae51d161495f8596feeebc3f2d6d63 +AUX yabause-0.9.14-cmake.patch 1905 BLAKE2B 59a479173d555262877626dedad50ea2cde8cecc5d2127cd8e36af4fdb4ec3d438917294d10378d7442086eaad8740a02f88086516cf7e7aed29a6dc65adbf1f SHA512 13e6c72113e06a0baee7051122c1d2cc56a13ecacd383e76aad0d6784b2bcb7593d8ff27184231e9356a2aa0bff98a74d0af2860dea62075d3d2992e8a56eec2 +DIST yabause-0.9.14.tar.gz 1662762 BLAKE2B 83f3bcdf8d513a87ed596171cfc1768cdb1cd2f3329766b92ef2e94f176fbafe16ac4970c5515e5d12537b20bd6473b209b1ec6090a07d6d1521b7d2094957ed SHA512 8b14d9146cf12d104fcf43369cd949f1f47e7891a54241914f6141facf871bcc158f4e80a8c5b61fdeefe6f1b8d425ff301ba653df134a030c323c9e3ccf3a58 +EBUILD yabause-0.9.14.ebuild 1515 BLAKE2B f439c4a4b1a72e9034b68238ef19855347ea8cf4441f704b907a3e440e1fb146f6adc77ee5a0a7fe2df1886a4b786b24fb2c86cca8a7836c1b3673a98a48284b SHA512 9ac2f7400a883c732edf2e0b5204a825ae32c468a621daacfc57eb9f329e768a83ab4ba412b7517b41391b6120c48a182222b3e3eae725f6f9445dc46cbe27cb +MISC metadata.xml 428 BLAKE2B 7707db2fbcc0dd98e8bc2721abef693d8c06625ce607beaf419e0a60c21f96bea529780f912764f90dae2a6ac66650893d3d2ea7751ac33242a5eb804ef174f0 SHA512 1695012927826ba97b0457e9d1051396a1da0b582cebf64269fe02431c019dbf4ca20a42368b825a28ba24b0a781126be82727428e3ab92adffc667bb6c575ef diff --git a/games-emulation/yabause/files/yabause-0.9.14-RWX.patch b/games-emulation/yabause/files/yabause-0.9.14-RWX.patch new file mode 100644 index 000000000000..8022be90f852 --- /dev/null +++ b/games-emulation/yabause/files/yabause-0.9.14-RWX.patch @@ -0,0 +1,24 @@ +--- yabause-0.9.13.orig/src/sh2_dynarec/linkage_x64.s ++++ yabause-0.9.13/src/sh2_dynarec/linkage_x64.s +@@ -747,3 +747,11 @@ + ret + /* Set breakpoint here for debugging */ + .size breakpoint, .-breakpoint ++ ++#if defined(__linux__) && defined(__ELF__) ++.section .note.GNU-stack,"",%progbits ++#endif ++ ++#if defined(__linux__) && defined(__ELF__) ++.section .note.GNU-stack,"",%progbits ++#endif +--- yabause-0.9.13.orig/src/sh2_dynarec/linkage_x86.s ++++ yabause-0.9.13/src/sh2_dynarec/linkage_x86.s +@@ -743,3 +743,7 @@ + ret + /* Set breakpoint here for debugging */ + .size breakpoint, .-breakpoint ++ ++#if defined(__linux__) && defined(__ELF__) ++.section .note.GNU-stack,"",%progbits ++#endif diff --git a/games-emulation/yabause/files/yabause-0.9.14-cmake.patch b/games-emulation/yabause/files/yabause-0.9.14-cmake.patch new file mode 100644 index 000000000000..a126c010bb7a --- /dev/null +++ b/games-emulation/yabause/files/yabause-0.9.14-cmake.patch @@ -0,0 +1,51 @@ +--- yabause-0.9.13.orig/l10n/CMakeLists.txt ++++ yabause-0.9.13/l10n/CMakeLists.txt +@@ -2,9 +2,12 @@ + + set(LANGS de es fr it lt nl pt pt_BR sv) + ++# paths ++set(TRANSDIR "share/yabause/yts" CACHE STRING "dir to translation files") ++ + if (UNIX AND NOT APPLE) + foreach(LANG ${LANGS}) +- install(FILES "yabause_${LANG}.yts" DESTINATION "share/yabause/yts" RENAME "${LANG}.yts") ++ install(FILES "yabause_${LANG}.yts" DESTINATION ${TRANSDIR} RENAME "${LANG}.yts") + endforeach() + elseif (WIN32) + foreach(LANG ${LANGS}) +--- yabause-0.9.13.orig/src/gtk/CMakeLists.txt ++++ yabause-0.9.13/src/gtk/CMakeLists.txt +@@ -59,7 +59,10 @@ + yab_port_success(yabause-gtk) + configure_file(yabause.desktop.in ${YAB_PORT_NAME}.desktop) + +-install(TARGETS yabause-gtk DESTINATION "bin") ++# paths ++set(BINDIR "bin" CACHE STRING "dir to binary") ++ ++install(TARGETS yabause-gtk DESTINATION ${BINDIR}) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${YAB_PORT_NAME}.desktop DESTINATION "share/applications") + install(FILES "doc/yabause.1" DESTINATION "${YAB_MAN_DIR}/man1" RENAME "${YAB_PORT_NAME}.1") + install(FILES "yabause.png" DESTINATION "share/pixmaps") +--- yabause-0.9.13.orig/src/qt/CMakeLists.txt ++++ yabause-0.9.13/src/qt/CMakeLists.txt +@@ -237,6 +237,9 @@ + yab_port_success(yabause-qt) + configure_file(yabause.desktop.in ${YAB_PORT_NAME}.desktop) + ++# paths ++set(BINDIR "bin" CACHE STRING "dir to binary") ++ + if (WIN32) + install(TARGETS yabause-qt DESTINATION ".") + if (GLUT_FOUND) +@@ -277,7 +280,7 @@ + endif() + endif () + else () +- install(TARGETS yabause-qt DESTINATION "bin") ++ install(TARGETS yabause-qt DESTINATION ${BINDIR}) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${YAB_PORT_NAME}.desktop DESTINATION "share/applications") + install(FILES "doc/yabause.1" DESTINATION "${YAB_MAN_DIR}/man1" RENAME "${YAB_PORT_NAME}.1") + install(FILES "resources/icons/yabause.png" DESTINATION "share/pixmaps") diff --git a/games-emulation/yabause/metadata.xml b/games-emulation/yabause/metadata.xml new file mode 100644 index 000000000000..518c975f9d26 --- /dev/null +++ b/games-emulation/yabause/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <use> + <flag name="pic">disable optimized assembly code that is not PIC friendly</flag> + </use> + <upstream> + <remote-id type="sourceforge">yabause</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-emulation/yabause/yabause-0.9.14.ebuild b/games-emulation/yabause/yabause-0.9.14.ebuild new file mode 100644 index 000000000000..b13959e8a4a0 --- /dev/null +++ b/games-emulation/yabause/yabause-0.9.14.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils cmake-utils games + +DESCRIPTION="A Sega Saturn emulator" +HOMEPAGE="http://yabause.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="openal opengl pic qt5 sdl" + +# x11-libs/libXrandr is an automagic dep +# qt5 over qt4 and libsdl2 over libsdl is +# also done automatically. Send patches +# upstream to make the choices explicit. +RDEPEND=" + x11-libs/libXrandr + openal? ( media-libs/openal ) + opengl? ( + media-libs/freeglut + virtual/glu + virtual/opengl + ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtwidgets:5 + opengl? ( dev-qt/qtopengl:5 ) + ) + !qt5? ( + dev-libs/glib:2 + x11-libs/gtk+:2 + x11-libs/gtkglext + ) + sdl? ( media-libs/libsdl2[opengl?,video] )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${P}-RWX.patch + "${FILESDIR}"/${P}-cmake.patch +) + +src_prepare() { + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DBINDIR="${GAMES_BINDIR}" + -DTRANSDIR="${GAMES_DATADIR}"/${PN}/yts + -DYAB_OPTIMIZATION="" + $(cmake-utils_use sdl YAB_WANT_SDL) + $(cmake-utils_use openal YAB_WANT_OPENAL) + $(cmake-utils_use opengl YAB_WANT_OPENGL) + $(cmake-utils_use !pic SH2_DYNAREC) + -DYAB_PORTS=$(usex qt5 "qt" "gtk") + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + dodoc AUTHORS ChangeLog GOALS README README.LIN + prepgamesdirs +} |