* Add IUSE=tools
* Update LICENSE
* Disable static libs and delete *.la files
Signed-off-by: Matt Turner <mattst88@gentoo.org>
<name>Matt Turner</name>
</maintainer>
<use>
+ <flag name="tools">Build the gensquashfs, rdsquashfs, sqfs2tar, sqfsdiff, and tar2sqfs tools</flag>
<flag name="xz">Enable support for XZ ("LZMA2") compression using <pkg>app-arch/xz-utils</pkg></flag>
</use>
<upstream>
SRC_URI="https://infraroot.at/pub/squashfs/${P}.tar.xz"
fi
-LICENSE="GPL-3+"
+LICENSE="LGPL-3+ tools? ( GPL-3+ )"
SLOT="0"
-IUSE="lz4 lzo selinux +xz zstd"
+IUSE="lz4 lzo selinux +tools +xz zstd"
DEPEND="
sys-libs/zlib:=
src_configure() {
local myconf=(
+ --disable-static
$(use_with lz4)
$(use_with lzo)
$(use_with selinux)
+ $(use_with tools)
$(use_with xz)
$(use_with zstd)
)
econf "${myconf[@]}"
}
+
+src_install() {
+ default
+ find "${D}" -name "*.la" -delete || die
+}