Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/zsnes/
Date: Sun, 29 Apr 2018 13:07:07
Message-Id: 1525007202.a544b55f1fcc7b1c46659c4d54a54ddbb3a212c3.pacho@gentoo
1 commit: a544b55f1fcc7b1c46659c4d54a54ddbb3a212c3
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 29 12:37:27 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 29 13:06:42 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a544b55f
7
8 games-emulation/zsnes: Drop old
9
10 Package-Manager: Portage-2.3.31, Repoman-2.3.9
11
12 games-emulation/zsnes/zsnes-1.51-r5.ebuild | 111 -----------------------------
13 1 file changed, 111 deletions(-)
14
15 diff --git a/games-emulation/zsnes/zsnes-1.51-r5.ebuild b/games-emulation/zsnes/zsnes-1.51-r5.ebuild
16 deleted file mode 100644
17 index 5787c4659bc..00000000000
18 --- a/games-emulation/zsnes/zsnes-1.51-r5.ebuild
19 +++ /dev/null
20 @@ -1,111 +0,0 @@
21 -# Copyright 1999-2018 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=5
25 -inherit eutils autotools flag-o-matic toolchain-funcs multilib pax-utils games
26 -
27 -DESCRIPTION="SNES (Super Nintendo) emulator that uses x86 assembly"
28 -HOMEPAGE="http://www.zsnes.com/ http://ipherswipsite.com/zsnes/"
29 -SRC_URI="mirror://sourceforge/zsnes/${PN}${PV//./}src.tar.bz2"
30 -
31 -LICENSE="GPL-2"
32 -SLOT="0"
33 -KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
34 -IUSE="ao custom-cflags +debug opengl pax_kernel png"
35 -
36 -RDEPEND="
37 - media-libs/libsdl[sound,video,abi_x86_32(-)]
38 - >=sys-libs/zlib-1.2.3-r1[abi_x86_32(-)]
39 - ao? ( media-libs/libao[abi_x86_32(-)] )
40 - debug? ( sys-libs/ncurses:0[abi_x86_32(-)] )
41 - opengl? ( virtual/opengl[abi_x86_32(-)] )
42 - png? ( media-libs/libpng:0[abi_x86_32(-)] )"
43 -DEPEND="${RDEPEND}
44 - dev-lang/nasm
45 - debug? ( virtual/pkgconfig )"
46 -
47 -S=${WORKDIR}/${PN}_${PV//./_}/src
48 -
49 -src_prepare() {
50 - # Fixing compilation without libpng installed
51 - # Fix bug #186111
52 - # Fix bug #214697
53 - # Fix bug #170108
54 - # Fix bug #260247
55 - # Fix compability with libpng15 wrt #378735
56 - # Fix buffer overwrite #257963
57 - # Fix gcc47 compile #419635
58 - # Fix stack alignment issue #503138
59 - epatch \
60 - "${FILESDIR}"/${P}-libpng.patch \
61 - "${FILESDIR}"/${P}-archopt-july-23-update.patch \
62 - "${FILESDIR}"/${P}-gcc43.patch \
63 - "${FILESDIR}"/${P}-libao-thread.patch \
64 - "${FILESDIR}"/${P}-depbuild.patch \
65 - "${FILESDIR}"/${P}-CC-quotes.patch \
66 - "${FILESDIR}"/${P}-libpng15.patch \
67 - "${FILESDIR}"/${P}-buffer.patch \
68 - "${FILESDIR}"/${P}-gcc47.patch \
69 - "${FILESDIR}"/${P}-stack-align.patch \
70 - "${FILESDIR}"/${P}-cross-compile.patch \
71 - "${FILESDIR}"/${P}-arch.patch
72 -
73 - # The sdl detection logic uses AC_PROG_PATH instead of
74 - # AC_PROG_TOOL, so force the var to get set the way we
75 - # need for things to work correctly.
76 - tc-is-cross-compiler && export ac_cv_path_SDL_CONFIG=${CHOST}-sdl-config
77 -
78 - sed -i -e '67i#define OF(x) x' zip/zunzip.h || die
79 -
80 - # Remove hardcoded CFLAGS and LDFLAGS
81 - sed -i \
82 - -e '/^CFLAGS=.*local/s:-pipe.*:-Wall -I.":' \
83 - -e '/^LDFLAGS=.*local/d' \
84 - -e '/\w*CFLAGS=.*fomit/s:-O3.*$STRIP::' \
85 - -e '/lncurses/s:-lncurses:`pkg-config ncurses --libs`:' \
86 - -e '/lcurses/s:-lcurses:`pkg-config ncurses --libs`:' \
87 - configure.in || die
88 - sed -i \
89 - -e 's/configure.in/configure.ac/' \
90 - Makefile.in || die
91 - mv configure.in configure.ac || die
92 - eautoreconf
93 -}
94 -
95 -src_configure() {
96 - tc-export CC
97 - export BUILD_CXX=$(tc-getBUILD_CXX)
98 - export NFLAGS=-O1
99 - use amd64 && multilib_toolchain_setup x86
100 - use custom-cflags || strip-flags
101 -
102 - append-flags -U_FORTIFY_SOURCE #257963
103 -
104 - egamesconf \
105 - $(use_enable ao libao) \
106 - $(use_enable debug debugger) \
107 - $(use_enable png libpng) \
108 - $(use_enable opengl) \
109 - --disable-debug \
110 - --disable-cpucheck
111 -}
112 -
113 -src_compile() {
114 - emake makefile.dep
115 - emake
116 -}
117 -
118 -src_install() {
119 - dogamesbin zsnes
120 - if use pax_kernel; then
121 - pax-mark m "${D}""${GAMES_BINDIR}"/zsnes || die
122 - fi
123 - newman linux/zsnes.1 zsnes.6
124 - dodoc \
125 - ../docs/{readme.1st,authors.txt,srcinfo.txt,stdards.txt,support.txt,thanks.txt,todo.txt,README.LINUX} \
126 - ../docs/readme.txt/*
127 - dohtml -r ../docs/readme.htm/*
128 - make_desktop_entry zsnes ZSNES
129 - newicon icons/48x48x32.png ${PN}.png
130 - prepgamesdirs
131 -}