summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2019-06-07 10:26:25 +0200
committerJeroen Roovers <jer@gentoo.org>2019-06-07 22:53:43 +0200
commit5f03d1c37d6cd2ac6dfa0e2b5ea33e0e90e0de3b (patch)
tree5d2746a2f7aa5757b97e0724f565424f0f1b6215 /x11-misc
parentapp-text/poppler: amd64 stable wrt bug #681152 (diff)
downloadgentoo-5f03d1c37d6cd2ac6dfa0e2b5ea33e0e90e0de3b.tar.gz
gentoo-5f03d1c37d6cd2ac6dfa0e2b5ea33e0e90e0de3b.tar.bz2
gentoo-5f03d1c37d6cd2ac6dfa0e2b5ea33e0e90e0de3b.zip
x11-misc/qtfm: Add USE=shared
Package-Manager: Portage-2.3.67, Repoman-2.3.14 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/qtfm/metadata.xml3
-rw-r--r--x11-misc/qtfm/qtfm-6.2.0.ebuild10
2 files changed, 11 insertions, 2 deletions
diff --git a/x11-misc/qtfm/metadata.xml b/x11-misc/qtfm/metadata.xml
index 3e91ecae7c1c..9c25f5fe1917 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 e80647d017f5..866fd51c7eca 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() {