summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Väth <martin@mvath.de>2017-03-20 09:12:14 +0100
committerMartin Väth <martin@mvath.de>2017-03-20 09:12:14 +0100
commitdcc26d65487104141e4af08e749d267fee1afd1d (patch)
tree33671b2c0162110e76698465da7eca2e2cd2a7ed /sys-fs/squashfs-tools/squashfs-tools-4.3-r2.ebuild
parentapp-misc/knapsack: Version bump (diff)
downloadmv-dcc26d65487104141e4af08e749d267fee1afd1d.tar.gz
mv-dcc26d65487104141e4af08e749d267fee1afd1d.tar.bz2
mv-dcc26d65487104141e4af08e749d267fee1afd1d.zip
sys-fs/squashfs-tools: Version bump
Diffstat (limited to 'sys-fs/squashfs-tools/squashfs-tools-4.3-r2.ebuild')
-rw-r--r--sys-fs/squashfs-tools/squashfs-tools-4.3-r2.ebuild102
1 files changed, 0 insertions, 102 deletions
diff --git a/sys-fs/squashfs-tools/squashfs-tools-4.3-r2.ebuild b/sys-fs/squashfs-tools/squashfs-tools-4.3-r2.ebuild
deleted file mode 100644
index 2b6af3dd..00000000
--- a/sys-fs/squashfs-tools/squashfs-tools-4.3-r2.ebuild
+++ /dev/null
@@ -1,102 +0,0 @@
-# Copyright 2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-inherit flag-o-matic toolchain-funcs
-
-LIVE=false
-PVm=${PV}
-case ${PV} in
-*9999)
- LIVE=:
- PVm=4.3;;
-esac
-Pm=${PN}-${PVm}
-DEB_VER="3"
-
-DESCRIPTION="Tool for creating compressed filesystem type squashfs. Patched to support -quiet"
-HOMEPAGE="http://squashfs.sourceforge.net"
-EXTRA_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PVm}-${DEB_VER}.debian.tar.xz"
-SRC_URI="mirror://sourceforge/squashfs/squashfs${PV}.tar.gz
- ${EXTRA_URI}"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-IUSE="debug lz4 lzma lzo static xattr +xz"
-
-LIB_DEPEND="sys-libs/zlib[static-libs(+)]
- !xz? ( !lzo? ( sys-libs/zlib[static-libs(+)] ) )
- lz4? ( app-arch/lz4[static-libs(+)] )
- lzma? ( app-arch/xz-utils[static-libs(+)] )
- lzo? ( dev-libs/lzo[static-libs(+)] )
- xattr? ( sys-apps/attr[static-libs(+)] )
- xz? ( app-arch/xz-utils[static-libs(+)] )"
-RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
-DEPEND="${RDEPEND}
- static? ( ${LIB_DEPEND} )"
-
-S="${WORKDIR}/squashfs${PV}/${PN}"
-
-if ${LIVE}
-then PROPERTIES="live"
- EGIT_REPO_URI="git://github.com/plougher/${PN}"
- inherit git-r3
- SRC_URI=${EXTRA_URI}
- KEYWORDS=""
- S="${WORKDIR}/${P}/${PN}"
-src_unpack() {
- default
- git-r3_src_unpack
-}
-fi
-
-src_prepare() {
- local i j
- for i in "${WORKDIR}"/debian/patches/*.patch
- do ${LIVE} && j=${i##*/} && case ${j%.*} in
- 0002-fix_phys_mem_calculation)
- continue;;
- esac
- eapply -p2 "${i}"
- done
- eapply -p2 "${FILESDIR}"/${Pm}-sysmacros.patch
- eapply -p2 "${FILESDIR}"/${Pm}-aligned-data.patch
- ${LIVE} || eapply -p2 "${FILESDIR}"/${Pm}-2gb.patch
- eapply "${FILESDIR}"/${Pm}-local-cve-fix.patch
- ${LIVE} || eapply -p2 "${FILESDIR}"/${Pm}-mem-overflow.patch
- eapply -p2 "${FILESDIR}"/${Pm}-xattrs.patch
- eapply "${FILESDIR}"/${Pm}-static-inline.patch
- eapply "${FILESDIR}"/${Pm}-quiet.patch
- eapply_user
-}
-
-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 xz)
- )
- filter-flags -fno-common
-
- tc-export CC
- use debug && append-cppflags -DSQUASHFS_TRACE
- use static && append-ldflags -static
-}
-
-src_compile() {
- emake "${EMAKE_SQUASHFS_CONF[@]}"
-}
-
-src_install() {
- dobin mksquashfs unsquashfs
- cd ..
- dodoc CHANGES README*
- ${LIVE} || dodoc PERFORMANCE.README pseudo-file.example OLD-READMEs/*
- doman "${WORKDIR}"/debian/manpages/*.[0-9]
-}