--- suspend-1.0.ebuild 2014-03-02 02:15:50.000000000 +0400 +++ suspend-1.0_p20150622.ebuild 2015-06-25 22:48:59.000000000 +0300 @@ -1,57 +1,54 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-power/suspend/suspend-1.0.ebuild,v 1.9 2014/03/01 22:15:50 mgorny Exp $ -EAPI=4 +EAPI=5 inherit autotools eutils +BASE_PV="1.0_p20120915" + DESCRIPTION="Userspace Software Suspend and S2Ram" HOMEPAGE="http://suspend.sourceforge.net/" -SRC_URI="mirror://sourceforge/${PN}/${P/-/-utils-}.tar.bz2" +SRC_URI="http://dev.gentoo.org/~bircoph/distfiles/${PN}-${BASE_PV}.tar.xz + http://dev.gentoo.org/~bircoph/patches/${P}.patch.xz" +KEYWORDS="~amd64 ~x86" +S="${WORKDIR}/${PN}" LICENSE="GPL-2" SLOT="0" -KEYWORDS="amd64 x86" -IUSE="fbsplash crypt threads" +IUSE="crypt fbsplash +lzo threads" -X86_RDEPEND="dev-libs/libx86" -X86_DEPEND=" - ${X86_RDEPEND} - >=sys-apps/pciutils-2.2.4" -RDEPEND=">=dev-libs/lzo-2[static-libs] - fbsplash? ( >=media-gfx/splashutils-1.5.2 ) - crypt? ( =media-gfx/splashutils-1.5.2 ) + lzo? ( >=dev-libs/lzo-2[static-libs] ) " DEPEND="${RDEPEND} - x86? ( ${X86_DEPEND} ) - amd64? ( ${X86_DEPEND} ) + >=dev-lang/perl-5.10 + >=sys-apps/pciutils-2.2.4 virtual/pkgconfig" -S="${WORKDIR}/${P/-/-utils-}" - src_prepare() { - epatch \ - "${FILESDIR}"/${P}-errno.patch \ - "${FILESDIR}"/${P}-bzip2.patch \ - "${FILESDIR}"/${P}-automake-1.13.patch + epatch "${WORKDIR}/${P}.patch" eautoreconf } src_configure() { econf \ --docdir="/usr/share/doc/${PF}" \ - --enable-compress \ $(use_enable crypt encrypt) \ $(use_enable fbsplash) \ + $(use_enable lzo compress) \ $(use_enable threads) } src_install() { dodir etc emake DESTDIR="${D}" install + rm "${D}/usr/share/doc/${PF}"/COPYING* || die } pkg_postinst() {