Lines 1-57
Link Here
|
1 |
# Copyright 1999-2014 Gentoo Foundation |
1 |
# Copyright 1999-2015 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-power/suspend/suspend-1.0.ebuild,v 1.9 2014/03/01 22:15:50 mgorny Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-power/suspend/suspend-1.0.ebuild,v 1.9 2014/03/01 22:15:50 mgorny Exp $ |
4 |
|
4 |
|
5 |
EAPI=4 |
5 |
EAPI=5 |
6 |
|
6 |
|
7 |
inherit autotools eutils |
7 |
inherit autotools eutils |
8 |
|
8 |
|
|
|
9 |
BASE_PV="1.0_p20120915" |
10 |
|
9 |
DESCRIPTION="Userspace Software Suspend and S2Ram" |
11 |
DESCRIPTION="Userspace Software Suspend and S2Ram" |
10 |
HOMEPAGE="http://suspend.sourceforge.net/" |
12 |
HOMEPAGE="http://suspend.sourceforge.net/" |
11 |
SRC_URI="mirror://sourceforge/${PN}/${P/-/-utils-}.tar.bz2" |
13 |
SRC_URI="http://dev.gentoo.org/~bircoph/distfiles/${PN}-${BASE_PV}.tar.xz |
|
|
14 |
http://dev.gentoo.org/~bircoph/patches/${P}.patch.xz" |
15 |
KEYWORDS="~amd64 ~x86" |
16 |
S="${WORKDIR}/${PN}" |
12 |
|
17 |
|
13 |
LICENSE="GPL-2" |
18 |
LICENSE="GPL-2" |
14 |
SLOT="0" |
19 |
SLOT="0" |
15 |
KEYWORDS="amd64 x86" |
20 |
IUSE="crypt fbsplash +lzo threads" |
16 |
IUSE="fbsplash crypt threads" |
|
|
17 |
|
21 |
|
18 |
X86_RDEPEND="dev-libs/libx86" |
22 |
RDEPEND=" |
19 |
X86_DEPEND=" |
23 |
dev-libs/libx86 |
20 |
${X86_RDEPEND} |
24 |
crypt? ( |
21 |
>=sys-apps/pciutils-2.2.4" |
25 |
>=dev-libs/libgcrypt-1.6.3:0[static-libs] |
22 |
RDEPEND=">=dev-libs/lzo-2[static-libs] |
|
|
23 |
fbsplash? ( >=media-gfx/splashutils-1.5.2 ) |
24 |
crypt? ( <dev-libs/libgcrypt-1.6.0:0[static-libs] |
25 |
dev-libs/libgpg-error[static-libs] ) |
26 |
dev-libs/libgpg-error[static-libs] ) |
26 |
x86? ( ${X86_RDEPEND} ) |
27 |
fbsplash? ( >=media-gfx/splashutils-1.5.2 ) |
27 |
amd64? ( ${X86_RDEPEND} )" |
28 |
lzo? ( >=dev-libs/lzo-2[static-libs] ) " |
28 |
DEPEND="${RDEPEND} |
29 |
DEPEND="${RDEPEND} |
29 |
x86? ( ${X86_DEPEND} ) |
30 |
>=dev-lang/perl-5.10 |
30 |
amd64? ( ${X86_DEPEND} ) |
31 |
>=sys-apps/pciutils-2.2.4 |
31 |
virtual/pkgconfig" |
32 |
virtual/pkgconfig" |
32 |
|
33 |
|
33 |
S="${WORKDIR}/${P/-/-utils-}" |
|
|
34 |
|
35 |
src_prepare() { |
34 |
src_prepare() { |
36 |
epatch \ |
35 |
epatch "${WORKDIR}/${P}.patch" |
37 |
"${FILESDIR}"/${P}-errno.patch \ |
|
|
38 |
"${FILESDIR}"/${P}-bzip2.patch \ |
39 |
"${FILESDIR}"/${P}-automake-1.13.patch |
40 |
eautoreconf |
36 |
eautoreconf |
41 |
} |
37 |
} |
42 |
|
38 |
|
43 |
src_configure() { |
39 |
src_configure() { |
44 |
econf \ |
40 |
econf \ |
45 |
--docdir="/usr/share/doc/${PF}" \ |
41 |
--docdir="/usr/share/doc/${PF}" \ |
46 |
--enable-compress \ |
|
|
47 |
$(use_enable crypt encrypt) \ |
42 |
$(use_enable crypt encrypt) \ |
48 |
$(use_enable fbsplash) \ |
43 |
$(use_enable fbsplash) \ |
|
|
44 |
$(use_enable lzo compress) \ |
49 |
$(use_enable threads) |
45 |
$(use_enable threads) |
50 |
} |
46 |
} |
51 |
|
47 |
|
52 |
src_install() { |
48 |
src_install() { |
53 |
dodir etc |
49 |
dodir etc |
54 |
emake DESTDIR="${D}" install |
50 |
emake DESTDIR="${D}" install |
|
|
51 |
rm "${D}/usr/share/doc/${PF}"/COPYING* || die |
55 |
} |
52 |
} |
56 |
|
53 |
|
57 |
pkg_postinst() { |
54 |
pkg_postinst() { |