summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-04-13 14:28:18 -0400
committerMike Frysinger <vapier@gentoo.org>2016-04-13 14:40:40 -0400
commitab7c08d07012cc807a506a10625b44e9fcb1cc97 (patch)
tree8d843ac4c24580334644fb8f22eccae0c6d4190f /sys-fs/squashfs-tools
parentsys-libs/glibc: mark 2.22-r4 arm/arm64/ia64/m68k/ppc/ppc64/s390/sh/sparc stab... (diff)
downloadgentoo-ab7c08d07012cc807a506a10625b44e9fcb1cc97.tar.gz
gentoo-ab7c08d07012cc807a506a10625b44e9fcb1cc97.tar.bz2
gentoo-ab7c08d07012cc807a506a10625b44e9fcb1cc97.zip
sys-fs/squashfs-tools: cleanup/fix configure options
Diffstat (limited to 'sys-fs/squashfs-tools')
-rw-r--r--sys-fs/squashfs-tools/squashfs-tools-4.3.ebuild14
1 files changed, 8 insertions, 6 deletions
diff --git a/sys-fs/squashfs-tools/squashfs-tools-4.3.ebuild b/sys-fs/squashfs-tools/squashfs-tools-4.3.ebuild
index dc96dda9a04..ae89fac4a29 100644
--- a/sys-fs/squashfs-tools/squashfs-tools-4.3.ebuild
+++ b/sys-fs/squashfs-tools/squashfs-tools-4.3.ebuild
@@ -27,21 +27,23 @@ DEPEND="${RDEPEND}"
S="${WORKDIR}/squashfs${PV}/${PN}"
+use10() { usex $1 1 2 ; }
+
src_configure() {
# set up make command line variables in EMAKE_SQUASHFS_CONF
EMAKE_SQUASHFS_CONF=(
- $(usex lzma LZMA_XZ_SUPPORT=1 LZMA_XS_SUPPORT=0)
- $(usex lzo LZO_SUPPORT=1 LZO_SUPPORT=0)
- $(usex lz4 LZ4_SUPPORT=1 LZ4_SUPPORT=0)
- $(usex xattr XATTR_SUPPORT=1 XATTR_SUPPORT=0)
- $(usex xz XZ_SUPPORT=1 XZ_SUPPORT=0)
+ LZMA_XZ_SUPPORT=$(use10 lzma)
+ LZO_SUPPORT=$(use10 lzo)
+ LZ4_SUPPORT=$(use10 lz4)
+ XATTR_SUPPORT=$(use10 xattr)
+ XZ_SUPPORT=$(use10 xz)
)
tc-export CC
}
src_compile() {
- emake ${EMAKE_SQUASHFS_CONF[@]}
+ emake "${EMAKE_SQUASHFS_CONF[@]}"
}
src_install() {