diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-10-20 10:22:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-10-20 10:22:14 +0100 |
commit | 46eedbedafdb0040c37884982d4c775ce277fb7b (patch) | |
tree | db33a91259730be84999e13a8d8168c799f50ac0 /sys-fs/squashfs-tools/squashfs-tools-4.5_p20210914.ebuild | |
parent | e23a08d0c97a0cc415aaa165da840b056f93c997 (diff) |
gentoo resync : 20.10.2021
Diffstat (limited to 'sys-fs/squashfs-tools/squashfs-tools-4.5_p20210914.ebuild')
-rw-r--r-- | sys-fs/squashfs-tools/squashfs-tools-4.5_p20210914.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/sys-fs/squashfs-tools/squashfs-tools-4.5_p20210914.ebuild b/sys-fs/squashfs-tools/squashfs-tools-4.5_p20210914.ebuild new file mode 100644 index 000000000000..66c6618def05 --- /dev/null +++ b/sys-fs/squashfs-tools/squashfs-tools-4.5_p20210914.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit flag-o-matic toolchain-funcs + +MY_COMMIT="19fcc9365dcdb2c22d232d42d11012940df64b7c" +MY_P=${P/_p/-git.} +DESCRIPTION="tools to create and extract Squashfs filesystems" +HOMEPAGE="https://github.com/plougher/squashfs-tools/" +SRC_URI="https://github.com/plougher/squashfs-tools/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz" +S=${WORKDIR}/${PN}-${MY_COMMIT} + +#SRC_URI=" +# https://github.com/plougher/squashfs-tools/archive/${PV/_p/-git.}.tar.gz +# -> ${MY_P}.tar.gz" +#S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="debug lz4 lzma lzo xattr zstd" + +RDEPEND=" + sys-libs/zlib + lz4? ( app-arch/lz4 ) + lzma? ( app-arch/xz-utils ) + lzo? ( dev-libs/lzo ) + xattr? ( sys-apps/attr ) + zstd? ( app-arch/zstd ) +" +DEPEND=${RDEPEND} + +use10() { usex "${1}" 1 0; } + +src_configure() { + # set up make command line variables in EMAKE_SQUASHFS_CONF + EMAKE_SQUASHFS_CONF=( + LZMA_XZ_SUPPORT=$(use10 lzma) + LZO_SUPPORT=$(use10 lzo) + LZ4_SUPPORT=$(use10 lz4) + XATTR_SUPPORT=$(use10 xattr) + XZ_SUPPORT=$(use10 lzma) + ZSTD_SUPPORT=$(use10 zstd) + ) + + tc-export CC + use debug && append-cppflags -DSQUASHFS_TRACE +} + +src_compile() { + emake "${EMAKE_SQUASHFS_CONF[@]}" -C squashfs-tools +} + +src_install() { + dobin squashfs-tools/{mksquashfs,unsquashfs} + dodoc ACKNOWLEDGEMENTS CHANGES README* + dodoc -r RELEASE-READMEs +} |