diff options
author | Mike Gilbert <floppym@gentoo.org> | 2016-01-14 04:17:46 -0500 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2016-01-14 04:33:29 -0500 |
commit | 9dea0ace3b15b31915295ce5a7ac974cb4519778 (patch) | |
tree | 886689af1854b07b633ff53fba29ab21a098ac9b /sys-fs | |
parent | sys-fs/btrfs-progs: Depend on sys-apps/util-linux (diff) | |
download | gentoo-9dea0ace3b15b31915295ce5a7ac974cb4519778.tar.gz gentoo-9dea0ace3b15b31915295ce5a7ac974cb4519778.tar.bz2 gentoo-9dea0ace3b15b31915295ce5a7ac974cb4519778.zip |
sys-fs/btrfs-progs: Add static-libs USE flag
Based on patch by Olliver Schinagl.
Package-Manager: portage-2.2.26_p103
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/btrfs-progs/btrfs-progs-4.3.1.ebuild | 9 | ||||
-rw-r--r-- | sys-fs/btrfs-progs/btrfs-progs-9999.ebuild | 9 |
2 files changed, 12 insertions, 6 deletions
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 } |