--- squashfs-tools-4.2_p20121216.ebuild 2013-02-21 06:57:56.060630248 +0100 +++ squashfs-tools-4.2_p20130321.ebuild 2013-08-06 09:37:22.708777741 +0200 @@ -2,15 +2,13 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-fs/squashfs-tools/squashfs-tools-4.2_p20121216.ebuild,v 1.2 2013/02/20 20:26:54 zmedico Exp $ -EAPI=4 -inherit eutils toolchain-funcs +EAPI=5 + +inherit readme.gentoo toolchain-funcs vcs-snapshot DESCRIPTION="Tool for creating compressed filesystem type squashfs" -HOMEPAGE="http://squashfs.sourceforge.net" -SRC_URI=" - mirror://sourceforge/squashfs/squashfs/squashfs${PV/_p*/}.tar.gz - http://dev.gentoo.org/~jer/${P}.patch.bz2 -" +HOMEPAGE="http://squashfs.sourceforge.net https://github.com/plougher/squashfs-tools" +SRC_URI="https://github.com/plougher/${PN}/tarball/84d8ae5c6220e9 -> ${P}.tar.gz" LICENSE="GPL-2" SLOT="0" @@ -26,7 +24,7 @@ xattr? ( sys-apps/attr )" DEPEND="${RDEPEND}" -S="${WORKDIR}/squashfs${PV/_p*/}/squashfs-tools" +S="${WORKDIR}/${P}/${PN}" use_sed() { local u=$1 s="${2:-`echo $1 | tr '[:lower:]' '[:upper:]'`}_SUPPORT" @@ -34,10 +32,6 @@ "$( use $u && echo s:.*:${s} = 1: || echo d )" } -src_prepare() { - epatch "${WORKDIR}"/${P}.patch -} - src_configure() { tc-export CC sed -i -r \ @@ -50,12 +44,11 @@ src_install() { dobin mksquashfs unsquashfs - cd .. || die - dodoc README ACKNOWLEDGEMENTS CHANGES PERFORMANCE.README -} + dodoc ../README -pkg_postinst() { - ewarn "This version of mksquashfs requires a 2.6.29 kernel or better" - use xz && - ewarn "XZ support requires a 2.6.38 kernel or better" + DOC_CONTENTS="This version of mksquashfs requires a 2.6.29 kernel or better." + if use xz ; then + DOC_CONTENTS+=" XZ support requires a 2.6.38 kernel or better." + fi + readme.gentoo_create_doc }