1 |
commit: 5e546bf3c945c6ca8617bd2f48ceae041c931570 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 12 08:58:42 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 12 09:18:27 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e546bf3 |
7 |
|
8 |
media-video/simplescreenrecorder: Do not install into /usr/lib32 |
9 |
|
10 |
with 17.1 profiles or newer. |
11 |
|
12 |
Thanks-to: Mike Hiretsky <mh <AT> calculate.ru> |
13 |
Closes: https://bugs.gentoo.org/660438 |
14 |
Package-Manager: Portage-2.3.67, Repoman-2.3.14 |
15 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
16 |
|
17 |
...build => simplescreenrecorder-0.3.11-r2.ebuild} | 40 +++++++++++++++------- |
18 |
1 file changed, 28 insertions(+), 12 deletions(-) |
19 |
|
20 |
diff --git a/media-video/simplescreenrecorder/simplescreenrecorder-0.3.11-r1.ebuild b/media-video/simplescreenrecorder/simplescreenrecorder-0.3.11-r2.ebuild |
21 |
similarity index 81% |
22 |
rename from media-video/simplescreenrecorder/simplescreenrecorder-0.3.11-r1.ebuild |
23 |
rename to media-video/simplescreenrecorder/simplescreenrecorder-0.3.11-r2.ebuild |
24 |
index 1cf430a123e..852caf0a6ba 100644 |
25 |
--- a/media-video/simplescreenrecorder/simplescreenrecorder-0.3.11-r1.ebuild |
26 |
+++ b/media-video/simplescreenrecorder/simplescreenrecorder-0.3.11-r2.ebuild |
27 |
@@ -1,9 +1,9 @@ |
28 |
-# Copyright 1999-2018 Gentoo Authors |
29 |
+# Copyright 1999-2019 Gentoo Authors |
30 |
# Distributed under the terms of the GNU General Public License v2 |
31 |
|
32 |
-EAPI=6 |
33 |
+EAPI=7 |
34 |
|
35 |
-inherit cmake-multilib flag-o-matic gnome2-utils xdg-utils |
36 |
+inherit cmake-multilib flag-o-matic xdg |
37 |
|
38 |
if [[ ${PV} = 9999 ]]; then |
39 |
inherit git-r3 |
40 |
@@ -47,8 +47,8 @@ DEPEND="${RDEPEND} |
41 |
dev-qt/linguist-tools:5 |
42 |
" |
43 |
|
44 |
-pkg_setup() { |
45 |
- if [[ ${ABI} == amd64 ]]; then |
46 |
+pkg_pretend() { |
47 |
+ if [[ "${ABI}" == amd64 ]]; then |
48 |
elog "You may want to add USE flag 'abi_x86_32' when running a 64bit system" |
49 |
elog "When added 32bit GLInject libraries are also included. This is" |
50 |
elog "required if you want to use OpenGL recording on 32bit applications." |
51 |
@@ -63,16 +63,22 @@ pkg_setup() { |
52 |
ewarn "record videos with x264." |
53 |
ewarn |
54 |
fi |
55 |
+} |
56 |
|
57 |
+pkg_setup() { |
58 |
# QT requires -fPIC. Compile fails otherwise. |
59 |
# Recently removed from the default compile options upstream |
60 |
# https://github.com/MaartenBaert/ssr/commit/25fe1743058f0d1f95f6fbb39014b6ac146b5180 |
61 |
append-flags -fPIC |
62 |
} |
63 |
|
64 |
+src_prepare() { |
65 |
+ # required because xdg.eclass overrides default cmake-utils_src_prepare |
66 |
+ cmake-utils_src_prepare |
67 |
+} |
68 |
+ |
69 |
multilib_src_configure() { |
70 |
local mycmakeargs=( |
71 |
- -DENABLE_32BIT_GLINJECT="$(usex abi_x86_32)" |
72 |
-DENABLE_X86_ASM="$(usex asm)" |
73 |
-DWITH_PULSEAUDIO="$(multilib_native_usex pulseaudio)" |
74 |
-DWITH_JACK="$(multilib_native_usex jack)" |
75 |
@@ -86,20 +92,30 @@ multilib_src_configure() { |
76 |
fi |
77 |
|
78 |
if multilib_is_native_abi ; then |
79 |
- mycmakeargs+=( -DWITH_QT5="true" ) |
80 |
+ mycmakeargs+=( |
81 |
+ -DENABLE_32BIT_GLINJECT="false" |
82 |
+ -DWITH_QT5="true" |
83 |
+ ) |
84 |
else |
85 |
- mycmakeargs+=( -DWITH_SIMPLESCREENRECORDER="false" ) |
86 |
+ mycmakeargs+=( |
87 |
+ # https://bugs.gentoo.org/660438 |
88 |
+ -DCMAKE_INSTALL_LIB32DIR="$(get_libdir)" |
89 |
+ -DENABLE_32BIT_GLINJECT="true" |
90 |
+ -DWITH_SIMPLESCREENRECORDER="false" |
91 |
+ ) |
92 |
fi |
93 |
|
94 |
cmake-utils_src_configure |
95 |
} |
96 |
|
97 |
+pkg_preinst() { |
98 |
+ xdg_pkg_preinst |
99 |
+} |
100 |
+ |
101 |
pkg_postinst() { |
102 |
- gnome2_icon_cache_update |
103 |
- xdg_desktop_database_update |
104 |
+ xdg_pkg_postinst |
105 |
} |
106 |
|
107 |
pkg_postrm() { |
108 |
- gnome2_icon_cache_update |
109 |
- xdg_desktop_database_update |
110 |
+ xdg_pkg_postrm |
111 |
} |