1 |
commit: 901063aa932d2d1cb1ed9215b30d782b093f4478 |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 7 16:28:06 2021 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 7 16:28:06 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=901063aa |
7 |
|
8 |
app-emulation/vice: Version bump to 3.5 |
9 |
|
10 |
This fixes building against musl. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/761529 |
13 |
Closes: https://bugs.gentoo.org/764218 |
14 |
Package-Manager: Portage-3.0.12, Repoman-3.0.1 |
15 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
16 |
|
17 |
app-emulation/vice/Manifest | 1 + |
18 |
app-emulation/vice/vice-3.5.ebuild | 166 +++++++++++++++++++++++++++++++++++++ |
19 |
2 files changed, 167 insertions(+) |
20 |
|
21 |
diff --git a/app-emulation/vice/Manifest b/app-emulation/vice/Manifest |
22 |
index 793bfbd5c65..6d59125ff4d 100644 |
23 |
--- a/app-emulation/vice/Manifest |
24 |
+++ b/app-emulation/vice/Manifest |
25 |
@@ -1 +1,2 @@ |
26 |
+DIST vice-3.5.tar.gz 22557578 BLAKE2B 5573951052c2c7b2beb4dd194ad8612c53e484e47a4d935e0dbc880f2f06611252add3631f99c9656f2c941088d0147b0783020ffcc5a29505bab75ef8dc128e SHA512 02f364c1645138cacb461346d44de8f524fb2aba7d980181caf039c46ca9d30db98466e5b0e56e6a41417cd7bbd63d73bf6eb110af1271e23732e320dd1fab70 |
27 |
DIST vice-emu-code-r38553-trunk-vice.zip 27146846 BLAKE2B 5139e4b1e9269c3885313889dffc055298c52152da77e5a824270feb0af6ba61a1726160a6d259e9f8840fefe486cc184f5bfda3ba1797e0359159ccf1e9824f SHA512 c4d3f132bae2980163e74695126e979bd68dddecb17c2eea8227edbb675985d1f04ade665b946a5e3c707bc17e260efb61f57aa141b6ef712385d4d85a68ef86 |
28 |
|
29 |
diff --git a/app-emulation/vice/vice-3.5.ebuild b/app-emulation/vice/vice-3.5.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..8bbf1366c06 |
32 |
--- /dev/null |
33 |
+++ b/app-emulation/vice/vice-3.5.ebuild |
34 |
@@ -0,0 +1,166 @@ |
35 |
+# Copyright 1999-2021 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+inherit multibuild xdg |
41 |
+ |
42 |
+DESCRIPTION="The Versatile Commodore Emulator" |
43 |
+HOMEPAGE="https://vice-emu.sourceforge.io/" |
44 |
+SRC_URI="mirror://sourceforge/vice-emu/releases/${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="GPL-2+" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~x86" |
49 |
+IUSE="alsa debug doc ethernet ffmpeg flac gif +gtk headless ipv6 jpeg lame mpg123 ogg oss parport pci png portaudio pulseaudio sdl zlib" |
50 |
+REQUIRED_USE="|| ( gtk headless sdl ) gtk? ( zlib )" |
51 |
+ |
52 |
+RDEPEND=" |
53 |
+ sys-libs/readline:0= |
54 |
+ virtual/libintl |
55 |
+ alsa? ( media-libs/alsa-lib ) |
56 |
+ ethernet? ( |
57 |
+ >=net-libs/libpcap-0.9.8 |
58 |
+ >=net-libs/libnet-1.1.2.1:1.1 |
59 |
+ ) |
60 |
+ ffmpeg? ( media-video/ffmpeg:= ) |
61 |
+ flac? ( media-libs/flac ) |
62 |
+ gif? ( media-libs/giflib:= ) |
63 |
+ gtk? ( |
64 |
+ dev-libs/glib:2 |
65 |
+ media-libs/fontconfig:1.0 |
66 |
+ media-libs/glew:0= |
67 |
+ x11-libs/cairo |
68 |
+ x11-libs/gtk+:3 |
69 |
+ x11-libs/pango |
70 |
+ virtual/opengl |
71 |
+ ) |
72 |
+ jpeg? ( virtual/jpeg ) |
73 |
+ lame? ( media-sound/lame ) |
74 |
+ mpg123? ( media-sound/mpg123 ) |
75 |
+ ogg? ( |
76 |
+ media-libs/libogg |
77 |
+ media-libs/libvorbis |
78 |
+ ) |
79 |
+ parport? ( sys-libs/libieee1284 ) |
80 |
+ pci? ( sys-apps/pciutils ) |
81 |
+ png? ( media-libs/libpng:0= ) |
82 |
+ portaudio? ( media-libs/portaudio ) |
83 |
+ pulseaudio? ( media-sound/pulseaudio ) |
84 |
+ sdl? ( media-libs/libsdl2[video] ) |
85 |
+ zlib? ( sys-libs/zlib ) |
86 |
+" |
87 |
+ |
88 |
+DEPEND=" |
89 |
+ ${RDEPEND} |
90 |
+ x11-base/xorg-proto |
91 |
+" |
92 |
+ |
93 |
+BDEPEND=" |
94 |
+ app-arch/unzip |
95 |
+ app-text/dos2unix |
96 |
+ dev-embedded/xa |
97 |
+ dev-lang/perl |
98 |
+ sys-apps/texinfo |
99 |
+ sys-devel/flex |
100 |
+ sys-devel/gettext |
101 |
+ virtual/pkgconfig |
102 |
+ virtual/yacc |
103 |
+ doc? ( virtual/texi2dvi ) |
104 |
+ gtk? ( x11-misc/xdg-utils ) |
105 |
+" |
106 |
+ |
107 |
+ECONF_SOURCE="${S}" |
108 |
+ |
109 |
+src_prepare() { |
110 |
+ default |
111 |
+ |
112 |
+ # Delete some bundled libraries. |
113 |
+ rm -r src/lib/lib{ffmpeg,lame,x264} || die |
114 |
+ |
115 |
+ # Strip the predefined C(XX)FLAGS. |
116 |
+ sed -i -r 's:(VICE_C(XX)?FLAGS=)"[^$]+":\1:' configure || die |
117 |
+} |
118 |
+ |
119 |
+src_configure() { |
120 |
+ MULTIBUILD_VARIANTS=( |
121 |
+ $(usev gtk) |
122 |
+ $(usev headless) |
123 |
+ $(usev sdl) |
124 |
+ ) |
125 |
+ |
126 |
+ multibuild_foreach_variant run_in_build_dir multibuild_src_configure |
127 |
+} |
128 |
+ |
129 |
+multibuild_enable() { |
130 |
+ if [[ ${MULTIBUILD_VARIANT} == $1 ]]; then |
131 |
+ printf -- "--enable-%s\n" "$2" |
132 |
+ else |
133 |
+ printf -- "--disable-%s\n" "$2" |
134 |
+ fi |
135 |
+} |
136 |
+ |
137 |
+multibuild_src_configure() { |
138 |
+ # Some dependencies lack configure options so prevent them becoming |
139 |
+ # automagic by using configure cache variables. |
140 |
+ use pci || export ac_cv_header_pci_pci_h=no |
141 |
+ |
142 |
+ # Ensure we use giflib, not ungif. |
143 |
+ export ac_cv_lib_ungif_EGifPutLine=no |
144 |
+ |
145 |
+ # Append ".variant" to x* programs if building multiple variants. |
146 |
+ if [[ ${#MULTIBUILD_VARIANTS[@]} -gt 1 ]]; then |
147 |
+ xform="/^x/s/\$/.${MULTIBUILD_VARIANT}/" |
148 |
+ else |
149 |
+ unset xform |
150 |
+ fi |
151 |
+ |
152 |
+ econf \ |
153 |
+ --program-transform-name="${xform}" \ |
154 |
+ --disable-arch \ |
155 |
+ $(use_enable debug) \ |
156 |
+ $(use_enable debug debug-gtk3ui) \ |
157 |
+ $(use_enable ffmpeg external-ffmpeg) \ |
158 |
+ $(multibuild_enable headless headlessui) \ |
159 |
+ --enable-html-docs \ |
160 |
+ $(use_enable ethernet) \ |
161 |
+ $(use_enable ipv6) \ |
162 |
+ $(use_enable lame) \ |
163 |
+ $(use_enable parport libieee1284) \ |
164 |
+ $(multibuild_enable gtk native-gtk3ui) \ |
165 |
+ $(use_enable doc pdf-docs) \ |
166 |
+ $(use_enable portaudio) \ |
167 |
+ --disable-sdlui \ |
168 |
+ $(multibuild_enable sdl sdlui2) \ |
169 |
+ --disable-shared-ffmpeg \ |
170 |
+ --disable-static-ffmpeg \ |
171 |
+ $(multibuild_enable gtk desktop-files) \ |
172 |
+ $(use_with alsa) \ |
173 |
+ $(use_with gif) \ |
174 |
+ $(use_with jpeg) \ |
175 |
+ $(use_with oss) \ |
176 |
+ $(use_with png) \ |
177 |
+ $(use_with pulseaudio pulse) \ |
178 |
+ $(use_with zlib) \ |
179 |
+ $(use_with mpg123) \ |
180 |
+ $(use_with ogg vorbis) \ |
181 |
+ $(use_with flac) |
182 |
+} |
183 |
+ |
184 |
+src_compile() { |
185 |
+ multibuild_foreach_variant run_in_build_dir emake |
186 |
+} |
187 |
+ |
188 |
+src_install() { |
189 |
+ # Get xdg-desktop-menu to play nicely while doing the install. |
190 |
+ dodir /etc/xdg/menus /usr/share/{applications,desktop-directories} |
191 |
+ XDG_UTILS_INSTALL_MODE=system \ |
192 |
+ XDG_DATA_DIRS="${ED}"/usr/share \ |
193 |
+ XDG_CONFIG_DIRS="${ED}"/etc/xdg \ |
194 |
+ multibuild_foreach_variant run_in_build_dir default |
195 |
+ rm -f "${ED}"/usr/share/applications/*.cache || die |
196 |
+ |
197 |
+ # Delete the bundled fonts. These could be packaged separately but |
198 |
+ # they're only for the HTML documentation. |
199 |
+ rm -r "${ED}"/usr/share/doc/${PF}/html/fonts/ || die |
200 |
+} |