1 |
commit: 2cdbb76393f878af29230df16d20b1ba91286531 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 26 19:34:23 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 26 23:39:36 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cdbb763 |
7 |
|
8 |
app-emulation/vice: add 3.6 |
9 |
|
10 |
Upstream removed ffmpeg/lame bundled libs, they were already |
11 |
unused here but options to disable them are now unnecessary. |
12 |
|
13 |
Adds new IUSE=openmp, and new dep on libcap for IUSE=ethernet. |
14 |
|
15 |
html docs' Makefile.am no longer sets html files to be installed, |
16 |
but, while don't need the full website, the user manual is |
17 |
worthwhile so install it anyway alongside the new vim syntax files. |
18 |
|
19 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
20 |
|
21 |
app-emulation/vice/Manifest | 1 + |
22 |
app-emulation/vice/vice-3.6.ebuild | 193 +++++++++++++++++++++++++++++++++++++ |
23 |
2 files changed, 194 insertions(+) |
24 |
|
25 |
diff --git a/app-emulation/vice/Manifest b/app-emulation/vice/Manifest |
26 |
index a40919df8c44..2a9c3ab60ae6 100644 |
27 |
--- a/app-emulation/vice/Manifest |
28 |
+++ b/app-emulation/vice/Manifest |
29 |
@@ -1 +1,2 @@ |
30 |
DIST vice-3.5.tar.gz 22557578 BLAKE2B 5573951052c2c7b2beb4dd194ad8612c53e484e47a4d935e0dbc880f2f06611252add3631f99c9656f2c941088d0147b0783020ffcc5a29505bab75ef8dc128e SHA512 02f364c1645138cacb461346d44de8f524fb2aba7d980181caf039c46ca9d30db98466e5b0e56e6a41417cd7bbd63d73bf6eb110af1271e23732e320dd1fab70 |
31 |
+DIST vice-3.6.tar.gz 11389599 BLAKE2B 6ebf0a235f059cd4b4a6408e32657babfb1d8bd15c101764ea05224830caf1f53807434b7556ea2aa494e7fcc8f8f19b44e9202572679e76f0a147f52941575a SHA512 4e17ccf6b57a26cb439549fe0e9097045aaf78b3a291df8b47e16bf54c585194d38961a7d17d0c1c9e76e6e2aea7aa6e513cfcdbe9802363f2d885e9fb50bee9 |
32 |
|
33 |
diff --git a/app-emulation/vice/vice-3.6.ebuild b/app-emulation/vice/vice-3.6.ebuild |
34 |
new file mode 100644 |
35 |
index 000000000000..d438d6439750 |
36 |
--- /dev/null |
37 |
+++ b/app-emulation/vice/vice-3.6.ebuild |
38 |
@@ -0,0 +1,193 @@ |
39 |
+# Copyright 1999-2021 Gentoo Authors |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+ |
42 |
+# --enable-static-lame triggers bug #814380 with EAPI-8, could work |
43 |
+# around but staying EAPI-7 for now unless there's some urgency |
44 |
+EAPI=7 |
45 |
+ |
46 |
+inherit multibuild toolchain-funcs xdg |
47 |
+ |
48 |
+DESCRIPTION="The Versatile Commodore Emulator" |
49 |
+HOMEPAGE="https://vice-emu.sourceforge.io/" |
50 |
+SRC_URI="mirror://sourceforge/vice-emu/releases/${P}.tar.gz" |
51 |
+S="${WORKDIR}/${P}.0" |
52 |
+ |
53 |
+LICENSE="GPL-2+" |
54 |
+SLOT="0" |
55 |
+KEYWORDS="~amd64 ~x86" |
56 |
+IUSE=" |
57 |
+ alsa cpuhistory debug doc ethernet ffmpeg flac gif +gtk headless jpeg |
58 |
+ lame mpg123 ogg openmp oss parport pci png portaudio pulseaudio sdl zlib" |
59 |
+REQUIRED_USE=" |
60 |
+ || ( gtk headless sdl ) |
61 |
+ gtk? ( zlib )" |
62 |
+ |
63 |
+# ffmpeg/lame are loaded by dlopen(), keeping := to rebuild with same headers |
64 |
+RDEPEND=" |
65 |
+ virtual/libintl |
66 |
+ alsa? ( media-libs/alsa-lib ) |
67 |
+ ethernet? ( |
68 |
+ net-libs/libpcap |
69 |
+ sys-libs/libcap |
70 |
+ ) |
71 |
+ ffmpeg? ( media-video/ffmpeg:= ) |
72 |
+ flac? ( media-libs/flac ) |
73 |
+ gif? ( media-libs/giflib:= ) |
74 |
+ gtk? ( |
75 |
+ dev-libs/atk |
76 |
+ dev-libs/glib:2 |
77 |
+ media-libs/fontconfig:1.0 |
78 |
+ media-libs/glew:0= |
79 |
+ sys-libs/readline:= |
80 |
+ virtual/opengl |
81 |
+ x11-libs/cairo |
82 |
+ x11-libs/gdk-pixbuf:2 |
83 |
+ x11-libs/gtk+:3[X] |
84 |
+ x11-libs/libX11 |
85 |
+ x11-libs/pango |
86 |
+ ) |
87 |
+ jpeg? ( virtual/jpeg ) |
88 |
+ lame? ( media-sound/lame ) |
89 |
+ mpg123? ( media-sound/mpg123 ) |
90 |
+ ogg? ( |
91 |
+ media-libs/libogg |
92 |
+ media-libs/libvorbis |
93 |
+ ) |
94 |
+ parport? ( sys-libs/libieee1284 ) |
95 |
+ pci? ( sys-apps/pciutils ) |
96 |
+ png? ( media-libs/libpng:= ) |
97 |
+ portaudio? ( media-libs/portaudio ) |
98 |
+ pulseaudio? ( media-sound/pulseaudio ) |
99 |
+ sdl? ( |
100 |
+ media-libs/libsdl2[video] |
101 |
+ media-libs/sdl2-image |
102 |
+ sys-libs/readline:= |
103 |
+ ) |
104 |
+ zlib? ( sys-libs/zlib:= )" |
105 |
+DEPEND=" |
106 |
+ ${RDEPEND} |
107 |
+ x11-base/xorg-proto" |
108 |
+BDEPEND=" |
109 |
+ app-arch/unzip |
110 |
+ app-text/dos2unix |
111 |
+ dev-embedded/xa |
112 |
+ dev-lang/perl |
113 |
+ sys-apps/texinfo |
114 |
+ sys-devel/flex |
115 |
+ sys-devel/gettext |
116 |
+ virtual/pkgconfig |
117 |
+ virtual/yacc |
118 |
+ doc? ( virtual/texi2dvi ) |
119 |
+ gtk? ( x11-misc/xdg-utils )" |
120 |
+ |
121 |
+pkg_pretend() { |
122 |
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
123 |
+} |
124 |
+ |
125 |
+pkg_setup() { |
126 |
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
127 |
+} |
128 |
+ |
129 |
+src_prepare() { |
130 |
+ default |
131 |
+ |
132 |
+ # Strip the predefined C(XX)FLAGS. |
133 |
+ sed -i -r 's:(VICE_C(XX)?FLAGS=)"[^$]+":\1:' configure || die |
134 |
+ |
135 |
+ MULTIBUILD_VARIANTS=( |
136 |
+ $(usev gtk) |
137 |
+ $(usev headless) |
138 |
+ $(usev sdl) |
139 |
+ ) |
140 |
+ |
141 |
+ # Debug build currently broken without copy sources. |
142 |
+ multibuild_copy_sources |
143 |
+} |
144 |
+ |
145 |
+src_configure() { |
146 |
+ tc-export AR |
147 |
+ |
148 |
+ multibuild_foreach_variant run_in_build_dir multibuild_src_configure |
149 |
+} |
150 |
+ |
151 |
+multibuild_src_configure() { |
152 |
+ # Append ".variant" to x* programs if building multiple variants. |
153 |
+ local xform |
154 |
+ (( ${#MULTIBUILD_VARIANTS[@]} > 1 )) && |
155 |
+ xform="/^x/s/\$/.${MULTIBUILD_VARIANT}/" |
156 |
+ |
157 |
+ vice-multi_enable() { |
158 |
+ if [[ ${MULTIBUILD_VARIANT} == ${1} ]]; then |
159 |
+ echo --enable-${2} |
160 |
+ else |
161 |
+ echo --disable-${2} |
162 |
+ fi |
163 |
+ } |
164 |
+ |
165 |
+ local econfargs=( |
166 |
+ --program-transform-name="${xform}" |
167 |
+ $(vice-multi_enable gtk desktop-files) |
168 |
+ $(vice-multi_enable gtk native-gtk3ui) |
169 |
+ $(vice-multi_enable headless headlessui) |
170 |
+ $(vice-multi_enable sdl sdlui2) |
171 |
+ $(usex debug $(vice-multi_enable gtk debug-gtk3ui) --disable-debug-gtk3ui) |
172 |
+ $(use_enable cpuhistory) |
173 |
+ $(use_enable debug) |
174 |
+ $(use_enable doc pdf-docs) |
175 |
+ $(use_enable ethernet) |
176 |
+ $(use_enable ffmpeg external-ffmpeg) |
177 |
+ $(use_enable lame) |
178 |
+ $(use_enable openmp) |
179 |
+ $(use_enable parport libieee1284) |
180 |
+ $(use_enable portaudio) |
181 |
+ $(use_with alsa) |
182 |
+ $(use_with flac) |
183 |
+ $(use_with gif) |
184 |
+ $(use_with jpeg) |
185 |
+ $(use_with mpg123) |
186 |
+ $(use_with ogg vorbis) |
187 |
+ $(use_with oss) |
188 |
+ $(use_with png) |
189 |
+ $(use_with pulseaudio pulse) |
190 |
+ $(use_with zlib) |
191 |
+ $(usex alsa --enable-midi $(use_enable oss midi)) |
192 |
+ $(usex pci '' ac_cv_header_pci_pci_h=no) |
193 |
+ --disable-arch |
194 |
+ --disable-sdlui |
195 |
+ ac_cv_lib_ungif_EGifPutLine=no # ensure use giflib, not ungif |
196 |
+ |
197 |
+ # $(use_with curl libcurl) # new in 3.6 but is a unused placeholder |
198 |
+ # --enable-io-simulation # likewise |
199 |
+ ) |
200 |
+ |
201 |
+ econf "${econfargs[@]}" |
202 |
+} |
203 |
+ |
204 |
+src_compile() { |
205 |
+ multibuild_foreach_variant run_in_build_dir emake |
206 |
+} |
207 |
+ |
208 |
+src_install() { |
209 |
+ # Get xdg-desktop-menu to play nicely while doing the install. |
210 |
+ dodir /etc/xdg/menus /usr/share/{applications,desktop-directories} |
211 |
+ |
212 |
+ XDG_UTILS_INSTALL_MODE=system \ |
213 |
+ XDG_DATA_DIRS="${ED}"/usr/share \ |
214 |
+ XDG_CONFIG_DIRS="${ED}"/etc/xdg \ |
215 |
+ multibuild_foreach_variant run_in_build_dir default |
216 |
+ |
217 |
+ rm -f "${ED}"/usr/share/applications/*.cache || die |
218 |
+ |
219 |
+ vice-install_extras() { |
220 |
+ docinto html |
221 |
+ dodoc doc/html/*.{html,css} |
222 |
+ dodoc -r doc/html/images |
223 |
+ |
224 |
+ insinto /usr/share/vim/vimfiles/ftdetect |
225 |
+ doins doc/vim/ftdetect/*.vim |
226 |
+ |
227 |
+ insinto /usr/share/vim/vimfiles/syntax |
228 |
+ doins doc/vim/syntax/*.vim |
229 |
+ } |
230 |
+ multibuild_for_best_variant run_in_build_dir vice-install_extras |
231 |
+} |