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