|
Lines 12-18
Link Here
|
| 12 |
LICENSE="GPL-2" |
12 |
LICENSE="GPL-2" |
| 13 |
SLOT="0" |
13 |
SLOT="0" |
| 14 |
KEYWORDS="~alpha amd64 arm ia64 ~mips ppc ~ppc64 ~sparc x86 ~x86-fbsd" |
14 |
KEYWORDS="~alpha amd64 arm ia64 ~mips ppc ~ppc64 ~sparc x86 ~x86-fbsd" |
| 15 |
IUSE="doc +introspection ios kernel_FreeBSD kernel_linux systemd" |
15 |
IUSE="doc +introspection ios kernel_FreeBSD kernel_linux pm-utils systemd" |
| 16 |
|
16 |
|
| 17 |
COMMON_DEPEND=">=dev-libs/dbus-glib-0.100 |
17 |
COMMON_DEPEND=">=dev-libs/dbus-glib-0.100 |
| 18 |
>=dev-libs/glib-2.22 |
18 |
>=dev-libs/glib-2.22 |
|
Lines 29-38
Link Here
|
| 29 |
)" |
29 |
)" |
| 30 |
RDEPEND="${COMMON_DEPEND} |
30 |
RDEPEND="${COMMON_DEPEND} |
| 31 |
kernel_linux? ( |
31 |
kernel_linux? ( |
| 32 |
!systemd? ( >=sys-power/pm-utils-1.4.1 ) |
32 |
pm-utils? ( |
|
|
33 |
!sys-apps/systemd |
| 34 |
>=sys-power/pm-utils-1.4.1 |
| 35 |
) |
| 33 |
systemd? ( |
36 |
systemd? ( |
| 34 |
app-shells/bash |
37 |
app-shells/bash |
| 35 |
>=sys-apps/systemd-200 |
38 |
>=sys-apps/systemd-200 |
|
|
39 |
!sys-power/pm-utils |
| 36 |
) |
40 |
) |
| 37 |
)" |
41 |
)" |
| 38 |
DEPEND="${COMMON_DEPEND} |
42 |
DEPEND="${COMMON_DEPEND} |
|
Lines 49-64
Link Here
|
| 49 |
|
53 |
|
| 50 |
DOCS="AUTHORS HACKING NEWS README" |
54 |
DOCS="AUTHORS HACKING NEWS README" |
| 51 |
|
55 |
|
| 52 |
src_prepare() { |
|
|
| 53 |
sed -i -e '/DISABLE_DEPRECATED/d' configure || die |
| 54 |
} |
| 55 |
|
| 56 |
src_configure() { |
56 |
src_configure() { |
| 57 |
local backend myconf |
57 |
local backend |
| 58 |
|
58 |
|
| 59 |
if use kernel_linux; then |
59 |
if use kernel_linux; then |
| 60 |
backend=linux |
60 |
backend=linux |
| 61 |
myconf="$(use_enable !systemd deprecated)" |
|
|
| 62 |
elif use kernel_FreeBSD; then |
61 |
elif use kernel_FreeBSD; then |
| 63 |
backend=freebsd |
62 |
backend=freebsd |
| 64 |
else |
63 |
else |
|
Lines 66-81
Link Here
|
| 66 |
fi |
65 |
fi |
| 67 |
|
66 |
|
| 68 |
econf \ |
67 |
econf \ |
| 69 |
--libexecdir="${EPREFIX}"/usr/lib/${PN} \ |
68 |
--libexecdir="${EPREFIX}/usr/lib/${PN}" \ |
| 70 |
--localstatedir="${EPREFIX}"/var \ |
69 |
--localstatedir="${EPREFIX}/var" \ |
|
|
70 |
$(use_enable pm-utils deprecated) \ |
| 71 |
$(use_enable introspection) \ |
71 |
$(use_enable introspection) \ |
| 72 |
--disable-static \ |
72 |
--disable-static \ |
| 73 |
${myconf} \ |
|
|
| 74 |
--enable-man-pages \ |
73 |
--enable-man-pages \ |
| 75 |
$(use_enable doc gtk-doc) \ |
74 |
$(use_enable doc gtk-doc) \ |
| 76 |
--disable-tests \ |
75 |
--disable-tests \ |
| 77 |
--with-html-dir="${EPREFIX}"/usr/share/doc/${PF}/html \ |
76 |
--with-html-dir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
| 78 |
--with-backend=${backend} \ |
77 |
--with-backend="${backend}" \ |
| 79 |
$(use_with ios idevice) \ |
78 |
$(use_with ios idevice) \ |
| 80 |
"$(systemd_with_utildir)" \ |
79 |
"$(systemd_with_utildir)" \ |
| 81 |
"$(systemd_with_unitdir)" |
80 |
"$(systemd_with_unitdir)" |