commit: 4d63b331ae89f6faf72026643e039a67df327146 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> AuthorDate: Thu Jan 14 09:32:14 2016 +0000 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> CommitDate: Thu Jan 14 09:33:31 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d63b331
sys-fs/btrfs-progs: Add static 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 | 14 ++++++++++++-- sys-fs/btrfs-progs/btrfs-progs-9999.ebuild | 14 ++++++++++++-- 2 files changed, 24 insertions(+), 4 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 59db1d4..d0c3965 100644 --- a/sys-fs/btrfs-progs/btrfs-progs-4.3.1.ebuild +++ b/sys-fs/btrfs-progs/btrfs-progs-4.3.1.ebuild @@ -25,7 +25,7 @@ HOMEPAGE="https://btrfs.wiki.kernel.org" LICENSE="GPL-2" SLOT="0/${libbtrfs_soname}" -IUSE="+convert static-libs" +IUSE="+convert static static-libs" RESTRICT=test # tries to mount repared filesystems @@ -43,6 +43,15 @@ DEPEND="${RDEPEND} app-text/asciidoc app-text/docbook-xml-dtd:4.5 app-text/xmlto + static? ( + dev-libs/lzo:2[static-libs(+)] + sys-apps/util-linux:0[static-libs(+)] + sys-libs/zlib:0[static-libs(+)] + convert? ( + sys-fs/e2fsprogs:0[static-libs(+)] + sys-libs/e2fsprogs-libs:0[static-libs(+)] + ) + ) " if [[ ${PV} == 9999 ]]; then @@ -72,12 +81,13 @@ src_configure() { } src_compile() { - emake V=1 + emake V=1 all $(usev static) } src_install() { local makeargs=( $(usex static-libs '' 'libs_static=') + $(usex static install-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 59db1d4..d0c3965 100644 --- a/sys-fs/btrfs-progs/btrfs-progs-9999.ebuild +++ b/sys-fs/btrfs-progs/btrfs-progs-9999.ebuild @@ -25,7 +25,7 @@ HOMEPAGE="https://btrfs.wiki.kernel.org" LICENSE="GPL-2" SLOT="0/${libbtrfs_soname}" -IUSE="+convert static-libs" +IUSE="+convert static static-libs" RESTRICT=test # tries to mount repared filesystems @@ -43,6 +43,15 @@ DEPEND="${RDEPEND} app-text/asciidoc app-text/docbook-xml-dtd:4.5 app-text/xmlto + static? ( + dev-libs/lzo:2[static-libs(+)] + sys-apps/util-linux:0[static-libs(+)] + sys-libs/zlib:0[static-libs(+)] + convert? ( + sys-fs/e2fsprogs:0[static-libs(+)] + sys-libs/e2fsprogs-libs:0[static-libs(+)] + ) + ) " if [[ ${PV} == 9999 ]]; then @@ -72,12 +81,13 @@ src_configure() { } src_compile() { - emake V=1 + emake V=1 all $(usev static) } src_install() { local makeargs=( $(usex static-libs '' 'libs_static=') + $(usex static install-static '') ) emake V=1 DESTDIR="${D}" install "${makeargs[@]}" newbashcomp btrfs-completion btrfs