blob: b929ed5342a42304a8562ad40d69877521fe0a8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit autotools git-r3
DESCRIPTION="Userspace Software Suspend and S2Ram"
HOMEPAGE="http://suspend.sourceforge.net/"
EGIT_REPO_URI="git://github.com/bircoph/${PN}.git"
LICENSE="GPL-2"
SLOT="0"
IUSE="crypt fbsplash +lzo threads"
RDEPEND="
dev-libs/libx86
crypt? (
>=dev-libs/libgcrypt-1.6.3:0[static-libs]
dev-libs/libgpg-error[static-libs] )
fbsplash? ( >=media-gfx/splashutils-1.5.4.4-r6 )
lzo? ( >=dev-libs/lzo-2[static-libs] ) "
DEPEND="${RDEPEND}
>=dev-lang/perl-5.10
>=sys-apps/pciutils-2.2.4
virtual/pkgconfig"
src_prepare() {
eautoreconf
}
src_configure() {
econf \
--docdir="/usr/share/doc/${PF}" \
$(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() {
elog "In order to make this package work with genkernel see:"
elog "https://bugs.gentoo.org/show_bug.cgi?id=156445"
}
|