squashfuse-0.1.100.ebuild 932 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Copyright 2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit flag-o-matic
  5. DESCRIPTION="FUSE filesystem to mount squashfs archives"
  6. HOMEPAGE="https://github.com/vasi/squashfuse"
  7. SRC_URI="https://github.com/vasi/squashfuse/releases/download/${PV}/${P}.tar.gz"
  8. LICENSE="BSD-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~x86 ~amd64-linux ~arm-linux ~x86-linux"
  11. IUSE="lz4 lzma lzo +zlib"
  12. REQUIRED_USE="|| ( lz4 lzma lzo zlib )"
  13. COMMON_DEPEND="
  14. >=sys-fs/fuse-2.8.6:=
  15. lzma? ( >=app-arch/xz-utils-5.0.4:= )
  16. zlib? ( >=sys-libs/zlib-1.2.5-r2:= )
  17. lzo? ( >=dev-libs/lzo-2.06:= )
  18. lz4? ( >=app-arch/lz4-0_p106:= )
  19. "
  20. DEPEND="${COMMON_DEPEND}"
  21. RDEPEND="${COMMON_DEPEND}"
  22. src_configure() {
  23. filter-flags -flto* -fwhole-program -fno-common
  24. econf \
  25. $(use lz4 || echo --without-lz4) \
  26. $(use lzma || echo --without-xz) \
  27. $(use lzo || echo --without-lzo) \
  28. $(use zlib || echo --without-zlib)
  29. }