1 |
commit: 071f8234761f37e2dfb14e03d3842b9cf6ee2570 |
2 |
Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de> |
3 |
AuthorDate: Sat May 15 18:20:56 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Sat May 15 20:41:20 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=071f8234 |
7 |
|
8 |
games-util/itch-bin: Add system-ffmpeg use-flag. |
9 |
|
10 |
Add a symlink to system libffmpeg.so if the use-flag is |
11 |
active. Workaround for bug 710944. |
12 |
|
13 |
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de> |
14 |
|
15 |
games-util/itch-bin/itch-bin-25.5.1-r1.ebuild | 65 +++++++++++++++++++++++++++ |
16 |
games-util/itch-bin/metadata.xml | 3 ++ |
17 |
2 files changed, 68 insertions(+) |
18 |
|
19 |
diff --git a/games-util/itch-bin/itch-bin-25.5.1-r1.ebuild b/games-util/itch-bin/itch-bin-25.5.1-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 000000000..048859c6e |
22 |
--- /dev/null |
23 |
+++ b/games-util/itch-bin/itch-bin-25.5.1-r1.ebuild |
24 |
@@ -0,0 +1,65 @@ |
25 |
+# Copyright 2020-2021 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+ |
30 |
+inherit desktop xdg |
31 |
+ |
32 |
+DESCRIPTION="itch.io game browser, installer and launcher" |
33 |
+HOMEPAGE="https://itch.io/" |
34 |
+SRC_URI="https://broth.itch.ovh/itch/linux-amd64/${PV}/archive/default -> ${P}.zip" |
35 |
+ |
36 |
+KEYWORDS="~amd64" |
37 |
+LICENSE="MIT" |
38 |
+SLOT="0" |
39 |
+IUSE="system-ffmpeg" |
40 |
+ |
41 |
+BDEPEND="app-arch/unzip" |
42 |
+RDEPEND=" |
43 |
+ x11-libs/gtk+:3[X,cups] |
44 |
+ x11-libs/libXtst |
45 |
+ gnome-base/gconf |
46 |
+ dev-libs/nss |
47 |
+ media-libs/alsa-lib |
48 |
+ media-libs/freetype |
49 |
+ x11-libs/pixman |
50 |
+ media-libs/libpng:* |
51 |
+ dev-libs/libpcre |
52 |
+ net-dns/libidn2 |
53 |
+ net-libs/gnutls |
54 |
+ dev-libs/libbsd |
55 |
+ sys-apps/util-linux |
56 |
+ media-gfx/graphite2 |
57 |
+ media-libs/vulkan-loader |
58 |
+ system-ffmpeg? ( media-video/ffmpeg[chromium] ) |
59 |
+" |
60 |
+ |
61 |
+QA_PREBUILT=" |
62 |
+ /opt/itch-bin/itch |
63 |
+ /opt/itch-bin/libvk_swiftshader.so |
64 |
+ !system-ffmpeg? ( /opt/itch-bin/libffmpeg.so ) |
65 |
+" |
66 |
+ |
67 |
+S="${WORKDIR}" |
68 |
+ |
69 |
+src_install() { |
70 |
+ local destdir="${EPREFIX}/opt/${PN}" |
71 |
+ insinto "${destdir}" |
72 |
+ doins -r locales resources |
73 |
+ doins *.pak *.dat *.bin *.json version libvk_swiftshader.so |
74 |
+ |
75 |
+ if use system-ffmpeg; then # bug 710944 |
76 |
+ rm libffmpeg.so || die |
77 |
+ ln -s "${EPREFIX}/usr/$(get_libdir)/chromium/libffmpeg.so" || die |
78 |
+ fi |
79 |
+ doins libffmpeg.so |
80 |
+ |
81 |
+ exeinto "${destdir}" |
82 |
+ doexe itch |
83 |
+ dosym "${destdir}/itch" /usr/bin/itch-bin |
84 |
+ |
85 |
+ newicon -s 256 "resources/app/src/static/images/tray/itch.png" "${PN}.png" |
86 |
+ newicon -s 128 "resources/app/src/static/images/window/itch/icon.png" "${PN}.png" |
87 |
+ |
88 |
+ make_desktop_entry itch-bin Itch itch-bin "Network;Game" |
89 |
+} |
90 |
|
91 |
diff --git a/games-util/itch-bin/metadata.xml b/games-util/itch-bin/metadata.xml |
92 |
index 3f5d07f96..ec180787c 100644 |
93 |
--- a/games-util/itch-bin/metadata.xml |
94 |
+++ b/games-util/itch-bin/metadata.xml |
95 |
@@ -8,4 +8,7 @@ |
96 |
<upstream> |
97 |
<remote-id type="github">itchio/itch</remote-id> |
98 |
</upstream> |
99 |
+ <use> |
100 |
+ <flag name="system-ffmpeg">Use the system-wide <pkg>media-video/ffmpeg</pkg> instead of bundled.</flag> |
101 |
+ </use> |
102 |
</pkgmetadata> |