public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Lars Wendler" <polynomial-c@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/simplescreenrecorder/
Date: Wed, 12 Jun 2019 09:18:35 +0000 (UTC)	[thread overview]
Message-ID: <1560331107.5e546bf3c945c6ca8617bd2f48ceae041c931570.polynomial-c@gentoo> (raw)

commit:     5e546bf3c945c6ca8617bd2f48ceae041c931570
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 12 08:58:42 2019 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Wed Jun 12 09:18:27 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e546bf3

media-video/simplescreenrecorder: Do not install into /usr/lib32

with 17.1 profiles or newer.

Thanks-to: Mike Hiretsky <mh <AT> calculate.ru>
Closes: https://bugs.gentoo.org/660438
Package-Manager: Portage-2.3.67, Repoman-2.3.14
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 ...build => simplescreenrecorder-0.3.11-r2.ebuild} | 40 +++++++++++++++-------
 1 file changed, 28 insertions(+), 12 deletions(-)

diff --git a/media-video/simplescreenrecorder/simplescreenrecorder-0.3.11-r1.ebuild b/media-video/simplescreenrecorder/simplescreenrecorder-0.3.11-r2.ebuild
similarity index 81%
rename from media-video/simplescreenrecorder/simplescreenrecorder-0.3.11-r1.ebuild
rename to media-video/simplescreenrecorder/simplescreenrecorder-0.3.11-r2.ebuild
index 1cf430a123e..852caf0a6ba 100644
--- a/media-video/simplescreenrecorder/simplescreenrecorder-0.3.11-r1.ebuild
+++ b/media-video/simplescreenrecorder/simplescreenrecorder-0.3.11-r2.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
-inherit cmake-multilib flag-o-matic gnome2-utils xdg-utils
+inherit cmake-multilib flag-o-matic xdg
 
 if [[ ${PV} = 9999 ]]; then
 	inherit git-r3
@@ -47,8 +47,8 @@ DEPEND="${RDEPEND}
 	dev-qt/linguist-tools:5
 "
 
-pkg_setup() {
-	if [[ ${ABI} == amd64 ]]; then
+pkg_pretend() {
+	if [[ "${ABI}" == amd64 ]]; then
 		elog "You may want to add USE flag 'abi_x86_32' when running a 64bit system"
 		elog "When added 32bit GLInject libraries are also included. This is"
 		elog "required if you want to use OpenGL recording on 32bit applications."
@@ -63,16 +63,22 @@ pkg_setup() {
 		ewarn "record videos with x264."
 		ewarn
 	fi
+}
 
+pkg_setup() {
 	# QT requires -fPIC. Compile fails otherwise.
 	# Recently removed from the default compile options upstream
 	# https://github.com/MaartenBaert/ssr/commit/25fe1743058f0d1f95f6fbb39014b6ac146b5180
 	append-flags -fPIC
 }
 
+src_prepare() {
+	# required because xdg.eclass overrides default cmake-utils_src_prepare
+	cmake-utils_src_prepare
+}
+
 multilib_src_configure() {
 	local mycmakeargs=(
-		-DENABLE_32BIT_GLINJECT="$(usex abi_x86_32)"
 		-DENABLE_X86_ASM="$(usex asm)"
 		-DWITH_PULSEAUDIO="$(multilib_native_usex pulseaudio)"
 		-DWITH_JACK="$(multilib_native_usex jack)"
@@ -86,20 +92,30 @@ multilib_src_configure() {
 	fi
 
 	if multilib_is_native_abi ; then
-		mycmakeargs+=( -DWITH_QT5="true" )
+		mycmakeargs+=(
+			-DENABLE_32BIT_GLINJECT="false"
+			-DWITH_QT5="true"
+		)
 	else
-		mycmakeargs+=( -DWITH_SIMPLESCREENRECORDER="false" )
+		mycmakeargs+=(
+			# https://bugs.gentoo.org/660438
+			-DCMAKE_INSTALL_LIB32DIR="$(get_libdir)"
+			-DENABLE_32BIT_GLINJECT="true"
+			-DWITH_SIMPLESCREENRECORDER="false"
+		)
 	fi
 
 	cmake-utils_src_configure
 }
 
+pkg_preinst() {
+	xdg_pkg_preinst
+}
+
 pkg_postinst() {
-	gnome2_icon_cache_update
-	xdg_desktop_database_update
+	xdg_pkg_postinst
 }
 
 pkg_postrm() {
-	gnome2_icon_cache_update
-	xdg_desktop_database_update
+	xdg_pkg_postrm
 }


             reply	other threads:[~2019-06-12  9:18 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-12  9:18 Lars Wendler [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-30 16:17 [gentoo-commits] repo/gentoo:master commit in: media-video/simplescreenrecorder/ Ionen Wolkens
2025-03-12 15:25 Ulrich Müller
2025-03-12 10:14 Ionen Wolkens
2025-03-11  9:04 Ionen Wolkens
2025-01-28 20:28 Andreas Sturmlechner
2023-07-07 17:41 Ulrich Müller
2023-05-29 12:23 Andreas Sturmlechner
2023-05-29 12:23 Andreas Sturmlechner
2023-05-29 12:23 Andreas Sturmlechner
2022-12-01 22:28 Jakov Smolić
2022-12-01 22:24 Jakov Smolić
2022-08-15 11:22 Andreas Sturmlechner
2022-07-26  7:44 Sam James
2022-06-06 23:32 Sam James
2022-05-26 23:19 Jakov Smolić
2022-03-29 11:55 Lars Wendler
2022-03-29 11:55 Lars Wendler
2022-03-29 11:55 Lars Wendler
2021-03-08 23:02 Sam James
2021-03-08 23:01 Sam James
2020-12-27 12:38 Lars Wendler
2020-12-27 12:32 Lars Wendler
2020-12-27 12:32 Lars Wendler
2020-12-27 12:32 Lars Wendler
2020-11-29 20:05 Andreas Sturmlechner
2020-07-23 10:49 Lars Wendler
2020-07-23 10:47 Lars Wendler
2020-05-20 19:14 Lars Wendler
2020-05-05 15:04 Lars Wendler
2020-05-05 15:04 Lars Wendler
2020-04-26 12:26 David Seifert
2020-04-25 18:55 Mikle Kolyada
2020-04-09 11:22 Lars Wendler
2019-06-12  9:18 Lars Wendler
2018-11-24  9:41 Lars Wendler
2018-05-22 14:32 Lars Wendler
2018-03-17 21:16 Lars Wendler
2018-01-08 12:41 Andreas Sturmlechner
2017-12-20 21:38 Lars Wendler
2017-12-19  3:09 Lars Wendler
2017-12-19  3:09 Lars Wendler
2017-07-30  9:44 Michał Górny
2017-05-19 14:08 Lars Wendler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1560331107.5e546bf3c945c6ca8617bd2f48ceae041c931570.polynomial-c@gentoo \
    --to=polynomial-c@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox