summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2016-01-14 04:32:14 -0500
committerMike Gilbert <floppym@gentoo.org>2016-01-14 04:33:31 -0500
commit4d63b331ae89f6faf72026643e039a67df327146 (patch)
tree9faaca13b9dca56d90206040556685ea0588ad02 /sys-fs
parentsys-fs/btrfs-progs: Add static-libs USE flag (diff)
downloadgentoo-4d63b331ae89f6faf72026643e039a67df327146.tar.gz
gentoo-4d63b331ae89f6faf72026643e039a67df327146.tar.bz2
gentoo-4d63b331ae89f6faf72026643e039a67df327146.zip
sys-fs/btrfs-progs: Add static 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.ebuild14
-rw-r--r--sys-fs/btrfs-progs/btrfs-progs-9999.ebuild14
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 59db1d474bdf..d0c39655d4be 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 59db1d474bdf..d0c39655d4be 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