Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/zsnes/
Date: Thu, 30 Jul 2020 07:37:16
Message-Id: 1596094628.bd62945c7804e5ce1183128eb6c8d0ca2721875e.slyfox@gentoo
1 commit: bd62945c7804e5ce1183128eb6c8d0ca2721875e
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 30 07:36:54 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 30 07:37:08 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd62945c
7
8 games-emulation/zsnes: drop old
9
10 Package-Manager: Portage-3.0.1, Repoman-2.3.23
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 games-emulation/zsnes/Manifest | 1 -
14 games-emulation/zsnes/zsnes-1.51-r7.ebuild | 125 -----------------------------
15 2 files changed, 126 deletions(-)
16
17 diff --git a/games-emulation/zsnes/Manifest b/games-emulation/zsnes/Manifest
18 index 6846bebb8ae..23bb4c0f096 100644
19 --- a/games-emulation/zsnes/Manifest
20 +++ b/games-emulation/zsnes/Manifest
21 @@ -1,2 +1 @@
22 DIST zsnes-1.51-20071031.tar.bz2 1072340 BLAKE2B d67c92e382ca130d4138d21fbb2effc06539d1c7e3aabf0339c9b7e773521daf2d3cb0bcef75991e1a4453fcc86903d3dead48d90806489c8b4bf7677f8ebf3b SHA512 b10373cf81b201a33dc60c728431d4f69d36de31fcf6f137b623ea206a2998f722dcd6132daec1d0bf14a05ae52f3ee9ecee4334517039be554db85c9f7b8274
23 -DIST zsnes151src.tar.bz2 1071712 BLAKE2B e942c699bd227942563deb23b105339aa9ffd8a5623200ca142a777508b4ebaf47859170016490f53a3af2bfb15293c17a99a7658e1f3f0afd7df8cd63200b9a SHA512 2cec9ad7762fc7a257c6b1d3e190b0ed53565dbafe42e1dee9eb182644392b7dd2c57faa846f63cd30ac079e5c05354d26ce0612d20481a1f54d760d62d95353
24
25 diff --git a/games-emulation/zsnes/zsnes-1.51-r7.ebuild b/games-emulation/zsnes/zsnes-1.51-r7.ebuild
26 deleted file mode 100644
27 index f06068a089f..00000000000
28 --- a/games-emulation/zsnes/zsnes-1.51-r7.ebuild
29 +++ /dev/null
30 @@ -1,125 +0,0 @@
31 -# Copyright 1999-2020 Gentoo Authors
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=6
35 -inherit autotools desktop flag-o-matic toolchain-funcs pax-utils
36 -
37 -DESCRIPTION="SNES (Super Nintendo) emulator that uses x86 assembly"
38 -HOMEPAGE="https://www.zsnes.com/ http://ipherswipsite.com/zsnes/"
39 -SRC_URI="mirror://sourceforge/zsnes/${PN}${PV//./}src.tar.bz2"
40 -
41 -LICENSE="GPL-2"
42 -SLOT="0"
43 -KEYWORDS="-* ~amd64 ~x86 ~amd64-linux ~x86-linux"
44 -IUSE="ao custom-cflags +debug opengl png"
45 -
46 -RDEPEND="
47 - media-libs/libsdl[sound,video,abi_x86_32(-)]
48 - >=sys-libs/zlib-1.2.3-r1[abi_x86_32(-)]
49 - ao? ( media-libs/libao[abi_x86_32(-)] )
50 - debug? ( sys-libs/ncurses:0=[abi_x86_32(-)] )
51 - opengl? ( virtual/opengl[abi_x86_32(-)] )
52 - png? ( media-libs/libpng:0=[abi_x86_32(-)] )
53 -"
54 -DEPEND="${RDEPEND}
55 - dev-lang/nasm
56 - debug? ( virtual/pkgconfig )
57 -"
58 -
59 -S="${WORKDIR}/${PN}_${PV//./_}/src"
60 -
61 -PATCHES=(
62 - # Fixing compilation without libpng installed
63 - "${FILESDIR}"/${P}-libpng.patch
64 -
65 - # Fix bug #186111
66 - # Fix bug #214697
67 - # Fix bug #170108
68 - # Fix bug #260247
69 - "${FILESDIR}"/${P}-archopt-july-23-update.patch
70 - "${FILESDIR}"/${P}-gcc43.patch
71 - "${FILESDIR}"/${P}-libao-thread.patch
72 - "${FILESDIR}"/${P}-depbuild.patch
73 - "${FILESDIR}"/${P}-CC-quotes.patch
74 -
75 - # Fix compability with libpng15 wrt #378735
76 - "${FILESDIR}"/${P}-libpng15.patch
77 -
78 - # Fix buffer overwrite #257963
79 - "${FILESDIR}"/${P}-buffer.patch
80 - # Fix gcc47 compile #419635
81 - "${FILESDIR}"/${P}-gcc47.patch
82 - # Fix stack alignment issue #503138
83 - "${FILESDIR}"/${P}-stack-align-v2.patch
84 -
85 - "${FILESDIR}"/${P}-cross-compile.patch
86 - "${FILESDIR}"/${P}-arch.patch
87 -
88 - "${FILESDIR}"/${P}-gcc-10.patch
89 -)
90 -
91 -src_prepare() {
92 - default
93 -
94 - # The sdl detection logic uses AC_PROG_PATH instead of
95 - # AC_PROG_TOOL, so force the var to get set the way we
96 - # need for things to work correctly.
97 - tc-is-cross-compiler && export ac_cv_path_SDL_CONFIG=${CHOST}-sdl-config
98 -
99 - sed -i -e '67i#define OF(x) x' zip/zunzip.h || die
100 -
101 - # Remove hardcoded CFLAGS and LDFLAGS
102 - sed -i \
103 - -e '/^CFLAGS=.*local/s:-pipe.*:-Wall -I.":' \
104 - -e '/^LDFLAGS=.*local/d' \
105 - -e '/\w*CFLAGS=.*fomit/s:-O3.*$STRIP::' \
106 - -e '/lncurses/s:-lncurses:`pkg-config ncurses --libs`:' \
107 - -e '/lcurses/s:-lcurses:`pkg-config ncurses --libs`:' \
108 - configure.in || die
109 - sed -i \
110 - -e 's/configure.in/configure.ac/' \
111 - Makefile.in || die
112 - mv configure.in configure.ac || die
113 - eautoreconf
114 -}
115 -
116 -src_configure() {
117 - tc-export CC
118 - export BUILD_CXX=$(tc-getBUILD_CXX)
119 - export NFLAGS=-O1
120 - use amd64 && multilib_toolchain_setup x86
121 - use custom-cflags || strip-flags
122 -
123 - append-cppflags -U_FORTIFY_SOURCE #257963
124 -
125 - econf \
126 - $(use_enable ao libao) \
127 - $(use_enable debug debugger) \
128 - $(use_enable png libpng) \
129 - $(use_enable opengl) \
130 - --disable-debug \
131 - --disable-cpucheck
132 -}
133 -
134 -src_compile() {
135 - emake makefile.dep
136 - emake
137 -}
138 -
139 -src_install() {
140 - # Uses pic-unfriendly assembly code, bug #427104
141 - QA_TEXTRELS="usr/bin/zsnes"
142 -
143 - dobin zsnes
144 - pax-mark m "${ED}${GAMES_BINDIR}"/zsnes
145 -
146 - newman linux/zsnes.1 zsnes.6
147 -
148 - dodoc \
149 - ../docs/{readme.1st,authors.txt,srcinfo.txt,stdards.txt,support.txt,thanks.txt,todo.txt,README.LINUX} \
150 - ../docs/readme.txt/*
151 - HTML_DOCS="../docs/readme.htm/*" einstalldocs
152 -
153 - make_desktop_entry zsnes ZSNES
154 - newicon icons/48x48x32.png ${PN}.png
155 -}