From 9dea0ace3b15b31915295ce5a7ac974cb4519778 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Thu, 14 Jan 2016 04:17:46 -0500 Subject: sys-fs/btrfs-progs: Add static-libs USE flag Based on patch by Olliver Schinagl. Package-Manager: portage-2.2.26_p103 --- sys-fs/btrfs-progs/btrfs-progs-4.3.1.ebuild | 9 ++++++--- sys-fs/btrfs-progs/btrfs-progs-9999.ebuild | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) (limited to 'sys-fs') diff --git a/sys-fs/btrfs-progs/btrfs-progs-4.3.1.ebuild b/sys-fs/btrfs-progs/btrfs-progs-4.3.1.ebuild index 8548498b8d99..59db1d474bdf 100644 --- a/sys-fs/btrfs-progs/btrfs-progs-4.3.1.ebuild +++ b/sys-fs/btrfs-progs/btrfs-progs-4.3.1.ebuild @@ -25,13 +25,13 @@ HOMEPAGE="https://btrfs.wiki.kernel.org" LICENSE="GPL-2" SLOT="0/${libbtrfs_soname}" -IUSE="+convert" +IUSE="+convert static-libs" RESTRICT=test # tries to mount repared filesystems RDEPEND=" dev-libs/lzo:2= - sys-apps/util-linux:0= + sys-apps/util-linux:0=[static-libs(+)?] sys-libs/zlib:0= convert? ( sys-fs/e2fsprogs:0= @@ -76,6 +76,9 @@ src_compile() { } src_install() { - default + local makeargs=( + $(usex static-libs '' 'libs_static=') + ) + emake V=1 DESTDIR="${D}" install "${makeargs[@]}" newbashcomp btrfs-completion btrfs } diff --git a/sys-fs/btrfs-progs/btrfs-progs-9999.ebuild b/sys-fs/btrfs-progs/btrfs-progs-9999.ebuild index 8548498b8d99..59db1d474bdf 100644 --- a/sys-fs/btrfs-progs/btrfs-progs-9999.ebuild +++ b/sys-fs/btrfs-progs/btrfs-progs-9999.ebuild @@ -25,13 +25,13 @@ HOMEPAGE="https://btrfs.wiki.kernel.org" LICENSE="GPL-2" SLOT="0/${libbtrfs_soname}" -IUSE="+convert" +IUSE="+convert static-libs" RESTRICT=test # tries to mount repared filesystems RDEPEND=" dev-libs/lzo:2= - sys-apps/util-linux:0= + sys-apps/util-linux:0=[static-libs(+)?] sys-libs/zlib:0= convert? ( sys-fs/e2fsprogs:0= @@ -76,6 +76,9 @@ src_compile() { } src_install() { - default + local makeargs=( + $(usex static-libs '' 'libs_static=') + ) + emake V=1 DESTDIR="${D}" install "${makeargs[@]}" newbashcomp btrfs-completion btrfs } -- cgit v1.2.3-65-gdbad