Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/squashfs-tools/
Date: Mon, 01 Aug 2016 09:31:32
Message-Id: 1470043884.080be0027b64e86b6cb1b234014313b1507334b5.jer@gentoo
1 commit: 080be0027b64e86b6cb1b234014313b1507334b5
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 1 09:30:23 2016 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 1 09:31:24 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=080be002
7
8 sys-fs/squashfs-tools: Add live ebuild.
9
10 Package-Manager: portage-2.3.0
11
12 sys-fs/squashfs-tools/squashfs-tools-9999.ebuild | 64 ++++++++++++++++++++++++
13 1 file changed, 64 insertions(+)
14
15 diff --git a/sys-fs/squashfs-tools/squashfs-tools-9999.ebuild b/sys-fs/squashfs-tools/squashfs-tools-9999.ebuild
16 new file mode 100644
17 index 0000000..85558e8
18 --- /dev/null
19 +++ b/sys-fs/squashfs-tools/squashfs-tools-9999.ebuild
20 @@ -0,0 +1,64 @@
21 +# Copyright 1999-2016 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +inherit eutils git-r3 toolchain-funcs
26 +
27 +DEB_VER="3"
28 +
29 +DESCRIPTION="Tool for creating compressed filesystem type squashfs"
30 +HOMEPAGE="http://squashfs.sourceforge.net"
31 +EGIT_REPO_URI="
32 + https://git.kernel.org/pub/scm/fs/squashfs/squashfs-tools.git
33 +"
34 +
35 +LICENSE="GPL-2"
36 +SLOT="0"
37 +KEYWORDS=""
38 +IUSE="lz4 lzma lzo xattr +xz"
39 +
40 +RDEPEND="
41 + sys-libs/zlib
42 + !xz? ( !lzo? ( sys-libs/zlib ) )
43 + lz4? ( app-arch/lz4 )
44 + lzma? ( app-arch/xz-utils )
45 + lzo? ( dev-libs/lzo )
46 + xattr? ( sys-apps/attr )
47 + xz? ( app-arch/xz-utils )
48 +"
49 +DEPEND="${RDEPEND}"
50 +
51 +PATCHES=(
52 + "${FILESDIR}"/${PN}-4.3-sysmacros.patch
53 + "${FILESDIR}"/${PN}-4.3-aligned-data.patch
54 + "${FILESDIR}"/${PN}-4.3-xattrs.patch
55 +)
56 +
57 +use10() { usex $1 1 0 ; }
58 +
59 +src_configure() {
60 + cd "${WORKDIR}"/${P}/${PN} || die
61 +
62 + # set up make command line variables in EMAKE_SQUASHFS_CONF
63 + EMAKE_SQUASHFS_CONF=(
64 + LZMA_XZ_SUPPORT=$(use10 lzma)
65 + LZO_SUPPORT=$(use10 lzo)
66 + LZ4_SUPPORT=$(use10 lz4)
67 + XATTR_SUPPORT=$(use10 xattr)
68 + XZ_SUPPORT=$(use10 xz)
69 + )
70 +
71 + tc-export CC
72 +}
73 +
74 +src_compile() {
75 + cd "${WORKDIR}"/${P}/${PN} || die
76 + emake "${EMAKE_SQUASHFS_CONF[@]}"
77 +}
78 +
79 +src_install() {
80 + cd "${WORKDIR}"/${P}/${PN} || die
81 + dobin mksquashfs unsquashfs
82 + cd .. || die
83 + dodoc CHANGES README RELEASE-README RELEASE-READMEs/*
84 +}