squashfuse-0.1_p20130530.ebuild 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Copyright 1999-2013 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit autotools
  5. DESCRIPTION="FUSE filesystem to mount squashfs archives"
  6. HOMEPAGE="https://github.com/vasi/squashfuse"
  7. EGIT_COMMIT="f03158f49cb4adbb6459cb2a1898e586b488cb10"
  8. SRC_URI="https://github.com/vasi/squashfuse/archive/${EGIT_COMMIT}.zip -> ${P}.zip"
  9. LICENSE="BSD-2"
  10. SLOT="0"
  11. KEYWORDS="~amd64 ~x86 ~amd64-linux ~arm-linux ~x86-linux"
  12. IUSE="lzma lzo +zlib"
  13. REQUIRED_USE="|| ( lzma zlib lzo )"
  14. COMMON_DEPEND="
  15. >=sys-fs/fuse-2.8.6:=
  16. lzma? ( >=app-arch/xz-utils-5.0.4:= )
  17. zlib? ( >=sys-libs/zlib-1.2.5-r2:= )
  18. lzo? ( >=dev-libs/lzo-2.06:= )
  19. "
  20. DEPEND="app-arch/unzip
  21. ${COMMON_DEPEND}"
  22. RDEPEND="${COMMON_DEPEND}"
  23. S=${WORKDIR}
  24. src_unpack() {
  25. default
  26. mv ${PN}-${EGIT_COMMIT}/* ./ || die
  27. }
  28. src_prepare() {
  29. sed -i -e "1s:\\[0\\.1\\]:[${PV}]:" configure.ac || die
  30. AT_M4DIR=${S}/m4 eautoreconf
  31. }
  32. src_configure() {
  33. econf \
  34. $(use lzma || echo --without-xz) \
  35. $(use lzo || echo --without-lzo) \
  36. $(use zlib || echo --without-zlib)
  37. }