From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1095000-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 8EEE5138334
	for <garchives@archives.gentoo.org>; Fri,  7 Jun 2019 20:53:49 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 7DEC0E08BF;
	Fri,  7 Jun 2019 20:53:48 +0000 (UTC)
Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 64BAAE08BF
	for <gentoo-commits@lists.gentoo.org>; Fri,  7 Jun 2019 20:53:48 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 4B367345930
	for <gentoo-commits@lists.gentoo.org>; Fri,  7 Jun 2019 20:53:47 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 55B8C603
	for <gentoo-commits@lists.gentoo.org>; Fri,  7 Jun 2019 20:53:45 +0000 (UTC)
From: "Jeroen Roovers" <jer@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" <jer@gentoo.org>
Message-ID: <1559940823.5f03d1c37d6cd2ac6dfa0e2b5ea33e0e90e0de3b.jer@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/qtfm/
X-VCS-Repository: repo/gentoo
X-VCS-Files: x11-misc/qtfm/metadata.xml x11-misc/qtfm/qtfm-6.2.0.ebuild
X-VCS-Directories: x11-misc/qtfm/
X-VCS-Committer: jer
X-VCS-Committer-Name: Jeroen Roovers
X-VCS-Revision: 5f03d1c37d6cd2ac6dfa0e2b5ea33e0e90e0de3b
X-VCS-Branch: master
Date: Fri,  7 Jun 2019 20:53:45 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: f6194306-d1a8-445b-862a-9c2563c230aa
X-Archives-Hash: 2df62a8de4ff6d1c584557c0ef3cfe25

commit:     5f03d1c37d6cd2ac6dfa0e2b5ea33e0e90e0de3b
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Fri Jun  7 08:26:25 2019 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Fri Jun  7 20:53:43 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f03d1c3

x11-misc/qtfm: Add USE=shared

Package-Manager: Portage-2.3.67, Repoman-2.3.14
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 x11-misc/qtfm/metadata.xml      |  3 +++
 x11-misc/qtfm/qtfm-6.2.0.ebuild | 10 ++++++++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/x11-misc/qtfm/metadata.xml b/x11-misc/qtfm/metadata.xml
index 3e91ecae7c1..9c25f5fe191 100644
--- a/x11-misc/qtfm/metadata.xml
+++ b/x11-misc/qtfm/metadata.xml
@@ -9,4 +9,7 @@
 	<email>desktop-misc@gentoo.org</email>
 	<name>Gentoo Desktop Miscellaneous Project</name>
 </maintainer>
+<use>
+<flag name='shared'>Install the libQtFM shared library and headers</flag>
+</use>
 </pkgmetadata>

diff --git a/x11-misc/qtfm/qtfm-6.2.0.ebuild b/x11-misc/qtfm/qtfm-6.2.0.ebuild
index e80647d017f..866fd51c7ec 100644
--- a/x11-misc/qtfm/qtfm-6.2.0.ebuild
+++ b/x11-misc/qtfm/qtfm-6.2.0.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit xdg-utils qmake-utils
+inherit multilib xdg-utils qmake-utils
 
 DESCRIPTION="A small, lightweight file manager for desktops based on pure Qt"
 HOMEPAGE="https://qtfm.eu/"
@@ -11,6 +11,7 @@ SRC_URI="https://github.com/rodlie/qtfm/archive/${PV}.tar.gz -> ${P}.tar.gz"
 LICENSE="GPL-2+"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
+IUSE="shared"
 
 RDEPEND="
 	dev-qt/qtconcurrent:5
@@ -28,7 +29,12 @@ DEPEND="
 "
 
 src_configure() {
-	eqmake5 PREFIX=/usr XDGDIR=/etc/xdg
+	eqmake5 \
+		$(usex shared 'CONFIG+=sharedlib' '') \
+		$(usex shared 'CONFIG+=with_includes' '') \
+		LIBDIR="/usr/$(get_libdir)" \
+		PREFIX="/usr" \
+		XDGDIR="/etc/xdg"
 }
 
 src_install() {