diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /games-emulation/stella | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'games-emulation/stella')
-rw-r--r-- | games-emulation/stella/Manifest | 2 | ||||
-rw-r--r-- | games-emulation/stella/stella-6.7.ebuild | 74 |
2 files changed, 76 insertions, 0 deletions
diff --git a/games-emulation/stella/Manifest b/games-emulation/stella/Manifest index a3fb56b3ccba..115a4cea3477 100644 --- a/games-emulation/stella/Manifest +++ b/games-emulation/stella/Manifest @@ -1,3 +1,5 @@ DIST stella-6.6-src.tar.xz 10035924 BLAKE2B bb1b6a5d7ea9ada8aac24084f508692472f78a6e04528f57a88ca7ac76d23f0dfe1050a1f013103463b2ee2d7b842a9b30e1b36b2aefc183ce1a39682eb867fa SHA512 89aea0cec9c2f22f276c1c4b36b76deb1ef9fb913c959f93f8cbcac300acdb23d2e3e66981d3263ea1ccfd72aaab1aa47218136b82b5e12aa8fbf352959743ab +DIST stella-6.7-src.tar.xz 10280224 BLAKE2B da2920384b6b254edd8f615c665ea1eef79030afffdf1b442f490f026c6f577ba4f7329531159767ba720207aeeb14388b5970bdd3e250b0db54e12d5f791396 SHA512 c20a2e9d98e1330f151e5f7d0e7cf15b2279b0d5f1175269f4084bf4964337b998118800615ae62eabf9d0f8abe0bb9cd02bddd1ee827121a49131888b4946ff EBUILD stella-6.6.ebuild 1191 BLAKE2B 25857f5c7510d9015088b56454995d09f96b88ea3e811ba0941717fceed635cee4aa00a57fdf79ef20c315fa6d94e8e160537020b1070df0832e5fbb8ae7cec3 SHA512 4910fd86b9559b1fb78a7ed2b2d7b103a737206a550f0de94d53521c6311bcf1fef91bb7dcdd50dc8da4b7819f8bf4e7f7f2e054e9cd3682ef886c3d78b0226d +EBUILD stella-6.7.ebuild 1716 BLAKE2B eb3a1367b952b21d18647e19748b5c365c3d55ee5a7497a3688d9a3f1e80442277694511d2cafe70583b7f49ff279bbf2d7fbb8916352d611ac974cc47158ccd SHA512 ad7934501414e426ba8e979341e3636675ac93504c1aeb08d25270e564e52d91d0f1da04d3841906e235209cb1915e3da818b88ac21cf3d554a1717a86bc66b7 MISC metadata.xml 387 BLAKE2B b0a5ff1a423343613aa6a17767261d65d644401f6945fb7f806363e3cfc291aa68927cc3640db016ca2d4ca1c8d830e9911f115759dd6613b53f2b30f1e6ba4b SHA512 3cdd0d8c089ef1f2635a88204abc739940ab1676699d579e0b2395cd02586d9cb7a4a70bd717724bf9e8a0fea68bccf3dc1060caab180ae6407b013138d6f269 diff --git a/games-emulation/stella/stella-6.7.ebuild b/games-emulation/stella/stella-6.7.ebuild new file mode 100644 index 000000000000..db68632d57ca --- /dev/null +++ b/games-emulation/stella/stella-6.7.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs xdg + +DESCRIPTION="Multi-platform Atari 2600 VCS Emulator" +HOMEPAGE="https://stella-emu.github.io/" +SRC_URI="https://github.com/stella-emu/stella/releases/download/${PV}/${P}-src.tar.xz" + +LICENSE="GPL-2+ BSD MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+joystick png zlib" +REQUIRED_USE="png? ( zlib )" + +RDEPEND=" + dev-db/sqlite:3 + media-libs/libsdl2[joystick?,opengl,sound,video] + png? ( media-libs/libpng:= ) + zlib? ( sys-libs/zlib:= )" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +src_prepare() { + default + + sed -i 's/pkg-config/${PKG_CONFIG}/' configure || die + sed -i '/CXXFLAGS+=/s/-fomit-frame-pointer//' Makefile || die +} + +src_configure() { + tc-export CC CXX PKG_CONFIG + + # not autotools-based + local configure=( + ./configure + --host=${CHOST} + --prefix="${EPREFIX}"/usr + --docdir="${EPREFIX}"/usr/share/doc/${PF}/html + --use-system-sqlite + $(use_enable joystick) + $(use_enable png) + $(use_enable zlib zip) + ${EXTRA_ECONF} + ) + + echo ${configure[*]} + "${configure[@]}" || die +} + +src_install() { + local DOCS=( + Announce.txt Changes.txt README-SDL.txt + Readme.txt docs/R77_readme.txt Todo.txt + ) + + default + + rm "${ED}"/usr/share/doc/${PF}/html/*.txt || die +} + +pkg_postinst() { + xdg_pkg_postinst + + if [[ ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 6.7; then + elog "With version >=6.7, because of fixes to JSON handling, all remappings" + elog "will be reset to defaults. If you had custom mappings, they will need" + elog "to be re-entered again." + elog + elog "Furthermore, because of internal changes, all old state files are invalid." + fi +} |