sys-fs/squashfs-tools-ng: Handle libsquashfs
authorMatt Turner <mattst88@gentoo.org>
Wed, 9 Oct 2019 00:36:55 +0000 (17:36 -0700)
committerMatt Turner <mattst88@gentoo.org>
Wed, 9 Oct 2019 00:38:20 +0000 (17:38 -0700)
* Add IUSE=tools
* Update LICENSE
* Disable static libs and delete *.la files

Signed-off-by: Matt Turner <mattst88@gentoo.org>
sys-fs/squashfs-tools-ng/metadata.xml
sys-fs/squashfs-tools-ng/squashfs-tools-ng-9999.ebuild

index a98fd7a51d69a59377db8e549de18fa1ca2753e2..9d25170151616a4bf5560cefcded162ae5827e5b 100644 (file)
@@ -6,6 +6,7 @@
                <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>
index b77878296fdf7cd75df327add38d40ebaf898d4c..22a2dbc93b6263a51f0c6c7f975b514c1e19f7d1 100644 (file)
@@ -13,9 +13,9 @@ else
        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:=
@@ -34,11 +34,18 @@ src_prepare() {
 
 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
+}