x11-misc/qtfm: Add USE=shared
authorJeroen Roovers <jer@gentoo.org>
Fri, 7 Jun 2019 08:26:25 +0000 (10:26 +0200)
committerJeroen Roovers <jer@gentoo.org>
Fri, 7 Jun 2019 20:53:43 +0000 (22:53 +0200)
Package-Manager: Portage-2.3.67, Repoman-2.3.14
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
x11-misc/qtfm/metadata.xml
x11-misc/qtfm/qtfm-6.2.0.ebuild

index 3e91ecae7c1c0d0c3d682a4215069c9639913e4f..9c25f5fe1917a44a13c8cc10169d9d271023bdad 100644 (file)
@@ -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>
index e80647d017f5f5d1b240309560d99495386bde9d..866fd51c7eca1cc4e46839c32a35d67e4bdae345 100644 (file)
@@ -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() {