Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/vice/
Date: Fri, 01 Jul 2016 18:41:18
Message-Id: 1467398439.8a2b74dc34d1a7e2447cf79a9d6f3866553b878f.wizardedit@gentoo
1 commit: 8a2b74dc34d1a7e2447cf79a9d6f3866553b878f
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 1 18:40:20 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 1 18:40:39 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a2b74dc
7
8 app-emulation/vice: remove deprecated games eclass
9
10 Also update to EAPI 6
11
12 Gentoo-Bug: https://bugs.gentoo.org/574082
13
14 Package-Manager: portage-2.2.28
15
16 app-emulation/vice/vice-2.4.27-r1.ebuild | 174 +++++++++++++++++++++++++++++++
17 1 file changed, 174 insertions(+)
18
19 diff --git a/app-emulation/vice/vice-2.4.27-r1.ebuild b/app-emulation/vice/vice-2.4.27-r1.ebuild
20 new file mode 100644
21 index 0000000..ee4aa0b
22 --- /dev/null
23 +++ b/app-emulation/vice/vice-2.4.27-r1.ebuild
24 @@ -0,0 +1,174 @@
25 +# Copyright 1999-2016 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +# $Id$
28 +
29 +EAPI=6
30 +inherit autotools eutils toolchain-funcs flag-o-matic
31 +
32 +DESCRIPTION="The Versatile Commodore 8-bit Emulator"
33 +HOMEPAGE="http://vice-emu.sourceforge.net/"
34 +SRC_URI="mirror://sourceforge/vice-emu/releases/${P}.tar.gz"
35 +
36 +LICENSE="GPL-2+"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~ppc ~sparc ~x86"
39 +IUSE="Xaw3d alsa ethernet ffmpeg fullscreen +gtk ipv6 lame nls oss png pulseaudio sdl +sdlsound threads vte zlib"
40 +
41 +# upstream says gtk3 and sdl2 shouldn't be exposed yet.
42 +#REQUIRED_USE="?? ( gtk2 gtk3 sdl )"
43 +REQUIRED_USE="?? ( gtk sdl )"
44 +
45 +GTK_COMMON="
46 + x11-libs/pango
47 + x11-libs/cairo"
48 +# gtk3? (
49 +# x11-libs/gtk+:3
50 +# vte? ( x11-libs/vte:2.90 )
51 +# ${GTK_COMMON}
52 +# )
53 +RDEPEND="
54 + virtual/jpeg:0
55 + virtual/opengl
56 + media-libs/giflib
57 + alsa? ( media-libs/alsa-lib )
58 + pulseaudio? ( media-sound/pulseaudio )
59 + sdlsound? ( media-libs/libsdl[sound] )
60 + ethernet? (
61 + >=net-libs/libpcap-0.9.8
62 + >=net-libs/libnet-1.1.2.1:1.1
63 + )
64 + ffmpeg? ( virtual/ffmpeg )
65 + lame? ( media-sound/lame )
66 + nls? ( virtual/libintl )
67 + png? ( media-libs/libpng:0 )
68 + zlib? ( sys-libs/zlib )
69 + sdl? (
70 + media-libs/libsdl[joystick,video]
71 + )
72 + !sdl? (
73 + fullscreen? (
74 + x11-libs/libXrandr
75 + x11-libs/libXxf86vm )
76 + x11-libs/libX11
77 + x11-libs/libXext
78 + sys-libs/readline:0
79 + )
80 + gtk? (
81 + x11-libs/gtk+:2
82 + vte? ( x11-libs/vte:0 )
83 + x11-libs/gtkglext
84 + ${GTK_COMMON}
85 + )
86 + !sdl? ( !gtk? (
87 + x11-libs/libXmu
88 + x11-libs/libXpm
89 + x11-libs/libXt
90 + x11-libs/libXv
91 + Xaw3d? ( x11-libs/libXaw3d )
92 + !Xaw3d? ( x11-libs/libXaw )
93 + ) )
94 + "
95 +DEPEND="${RDEPEND}
96 + virtual/pkgconfig
97 + !sdl? (
98 + fullscreen? ( x11-proto/xf86vidmodeproto )
99 + !gtk? (
100 + x11-libs/libICE
101 + x11-libs/libSM
102 + )
103 + )
104 + x11-apps/bdftopcf
105 + x11-apps/mkfontdir
106 + x11-proto/xproto
107 + x11-proto/xextproto
108 + media-libs/fontconfig
109 + x11-proto/videoproto
110 + nls? ( sys-devel/gettext )"
111 +
112 +PATCH=(
113 + "${FILESDIR}"/${P}-autotools.patch
114 +)
115 + #"${FILESDIR}"/vice_rath.txt
116 +
117 +src_prepare() {
118 + default
119 + sed -i \
120 + -e 's/building//' \
121 + doc/Makefile.am || die
122 + sed -i \
123 + -e "/^docdir =/s:=.*:=/usr/share/doc/${PF}:" \
124 + doc/Makefile.am \
125 + doc/readmes/Makefile.am || die
126 + sed -i \
127 + -e "/^docdir =/s:=.*:=/usr/share/doc/${PF}/html:" \
128 + doc/html/Makefile.am || die
129 + sed -i \
130 + -e "s:/usr/local/lib/VICE:/$(get_libdir)/${PN}:" \
131 + man/vice.1 \
132 + $(grep -rl --exclude="*texi" /usr/local/lib doc) || die
133 + sed -i \
134 + -e "/VICEDIR=/s:=.*:=\"/$(get_libdir)/${PN}\";:" \
135 + configure.ac || die
136 + sed -i \
137 + -e "s:\(#define LIBDIR \).*:\1\"$(get_libdir)/${PN}\":" \
138 + -e "s:\(#define DOCDIR \).*:\1\"/usr/share/doc/${PF}\":" \
139 + src/arch/unix/archdep.h \
140 + src/arch/sdl/archdep_unix.h || die
141 + rm -rf src/lib/{libffmpeg,liblame} || die
142 + sed -i \
143 + -e '/SUBDIRS/s/libffmpeg//;' \
144 + -e '/SUBDIRS/s/liblame//;' \
145 + src/lib/Makefile.am || die
146 + AT_NO_RECURSIVE=1 eautoreconf
147 +}
148 +
149 +src_configure() {
150 + local gui_arg snd_arg
151 +
152 + snd_arg+=" $(use_with alsa)"
153 + snd_arg+=" $(use_with oss)"
154 + snd_arg+=" $(use_with pulseaudio pulse)"
155 + snd_arg+=" $(use_with sdlsound)"
156 +
157 + gui_arg+=" $(use_enable sdl sdlui)"
158 + # The gtk UI code has raw calls to XOpenDisplay and
159 + # is missing -lX11 if vte doesn't pull it in.
160 + #if use gtk2 || use gtk3 ; then
161 + if use gtk ; then
162 + use vte || append-libs -lX11
163 + fi
164 + gui_arg+=" $(use_enable gtk gnomeui)"
165 + #gui_arg+=" $(use_enable gtk3 gnomeui3)"
166 + gui_arg+=" $(use_enable Xaw3d xaw3d)"
167 +
168 + # --with-readline is forced to avoid using the embedded copy
169 + # don't try to actually run fc-cache (bug #280976)
170 + FCCACHE=/bin/true \
171 + PKG_CONFIG=$(tc-getPKG_CONFIG) \
172 + econf \
173 + --enable-parsid \
174 + --with-resid \
175 + --with-readline \
176 + --without-arts \
177 + --without-midas \
178 + $(use_enable ethernet) \
179 + $(use_enable ffmpeg) \
180 + $(use_enable ffmpeg external-ffmpeg) \
181 + $(use_enable fullscreen) \
182 + $(use_enable ipv6) \
183 + $(use_enable lame) \
184 + $(use_enable nls) \
185 + $(use_enable vte) \
186 + $(use_with png) \
187 + $(use_with threads uithreads) \
188 + $(use_with zlib) \
189 + ${gui_arg} \
190 + ${snd_arg} \
191 + --disable-option-checking
192 + # --disable-option-checking has to be last
193 +}
194 +
195 +src_install() {
196 + DOCS="FEEDBACK"
197 + default
198 +}