/[gentoo-x86]/sys-apps/hal/hal-0.5.9.ebuild
Gentoo

Diff of /sys-apps/hal/hal-0.5.9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 Revision 1.4
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 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-apps/hal/Attic/hal-0.5.9.ebuild,v 1.3 2007/04/05 02:18:28 cardoe Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/Attic/hal-0.5.9.ebuild,v 1.4 2007/04/05 17:29:55 cardoe Exp $
4 4
5inherit eutils linux-info autotools flag-o-matic 5inherit eutils linux-info autotools flag-o-matic
6 6
7DESCRIPTION="Hardware Abstraction Layer" 7DESCRIPTION="Hardware Abstraction Layer"
8HOMEPAGE="http://www.freedesktop.org/Software/hal" 8HOMEPAGE="http://www.freedesktop.org/Software/hal"
9SRC_URI="http://people.freedesktop.org/~david/dist/${P}.tar.gz" 9SRC_URI="http://people.freedesktop.org/~david/dist/${P}.tar.gz"
10 10
11LICENSE="|| ( GPL-2 AFL-2.0 )" 11LICENSE="|| ( GPL-2 AFL-2.0 )"
12SLOT="0" 12SLOT="0"
13KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 -mips ~ppc ~ppc64 ~sh ~sparc ~x86" 13KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 -mips ~ppc ~ppc64 ~sh ~sparc ~x86"
14IUSE="acpi crypt debug dell disk-partition doc mactel pcmcia selinux" 14IUSE="acpi crypt debug dell disk-partition doc pam pcmcia selinux"
15 15
16RDEPEND=">=dev-libs/glib-2.6 16RDEPEND=">=dev-libs/glib-2.6
17 >=dev-libs/dbus-glib-0.61 17 >=dev-libs/dbus-glib-0.61
18 >=sys-fs/udev-104 18 >=sys-fs/udev-104
19 >=sys-apps/util-linux-2.12r-r1 19 >=sys-apps/util-linux-2.12r-r1
20 >=sys-kernel/linux-headers-2.6.17 20 kernel_linux? ( >=sys-kernel/linux-headers-2.6.17 )
21 >=dev-libs/expat-1.95.8 21 >=dev-libs/expat-1.95.8
22 >=sys-apps/pciutils-2.2.3 22 >=sys-apps/pciutils-2.2.3
23 >=dev-libs/libusb-0.1.10a 23 >=dev-libs/libusb-0.1.10a
24 virtual/eject 24 virtual/eject
25 amd64? ( >=sys-apps/dmidecode-2.7 ) 25 amd64? ( >=sys-apps/dmidecode-2.7 )
26 x86? ( >=sys-apps/dmidecode-2.7 ) 26 x86? ( >=sys-apps/dmidecode-2.7 )
27 ia64? ( >=sys-apps/dmidecode-2.7 ) 27 ia64? ( >=sys-apps/dmidecode-2.7 )
28 dell? ( >=sys-libs/libsmbios-0.13.4 ) 28 dell? ( >=sys-libs/libsmbios-0.13.4 )
29 disk-partition? ( >=sys-apps/parted-1.7.1 ) 29 disk-partition? ( >=sys-apps/parted-1.7.1 )
30 crypt? ( >=sys-fs/cryptsetup-luks-1.0.1 ) 30 crypt? ( >=sys-fs/cryptsetup-luks-1.0.1 )
31 selinux? ( sys-libs/libselinux )" 31 selinux? ( sys-libs/libselinux )
32 pam? ( sys-auth/consolekit )"
32 33
33DEPEND="${RDEPEND} 34DEPEND="${RDEPEND}
34 dev-util/pkgconfig 35 dev-util/pkgconfig
35 >=dev-util/intltool-0.35 36 >=dev-util/intltool-0.35
36 doc? ( app-doc/doxygen app-text/docbook-sgml-utils )" 37 doc? ( app-doc/doxygen app-text/docbook-sgml-utils )"
90 91
91 epatch ${FILESDIR}/${PN}-0.5.7-plugdev-allow-send.patch 92 epatch ${FILESDIR}/${PN}-0.5.7-plugdev-allow-send.patch
92} 93}
93 94
94src_compile() { 95src_compile() {
96 local backend=""
97 local acpi=""
98
95 # TODO :: policykit should have a pam useflag 99 # TODO :: policykit should have a pam useflag
96 append-flags -rdynamic 100 append-flags -rdynamic
101
102 if use kernel_linux ; then
103 backend="linux"
104 elif use kernel_FreeBSD ; then
105 backend="freebsd"
106 else
107 eerror "Invalid backend"
108 fi
109
110 if use acpi ; then
111 acpi="--enable-acpi-toshiba --enable-acpi-ibm"
112 else
113 acpi="--disable-acpi-proc --disable-acpi-acpid"
114 fi
97 115
98 econf --disable-policy-kit \ 116 econf --disable-policy-kit \
99 --with-doc-dir=/usr/share/doc/${PF} \ 117 --with-doc-dir=/usr/share/doc/${PF} \
100 --with-os-type=gentoo \ 118 --with-os-type=gentoo \
101 --with-pid-file=/var/run/hald.pid \ 119 --with-pid-file=/var/run/hald.pid \
102 --with-hwdata=/usr/share/misc \ 120 --with-hwdata=/usr/share/misc \
103 --enable-hotplug-map \ 121 --enable-hotplug-map \
122 --enable-man-pages \
123 --with-backend=${backend} \
104 $(use_enable debug verbose-mode) \ 124 $(use_enable debug verbose-mode) \
125 $(use_with dell dell-backlight) \
105 $(use_enable disk-partition parted) \ 126 $(use_enable disk-partition parted) \
106 $(use_enable pcmcia pcmcia-support) \ 127 $(use_enable pcmcia pcmcia-support) \
107 $(use_enable acpi acpi-proc) \
108 $(use_enable doc docbook-docs) \ 128 $(use_enable doc docbook-docs) \
109 $(use_enable doc doxygen-docs) \ 129 $(use_enable doc doxygen-docs) \
110 $(use_with mactel macbookpro) \
111 $(use_enable selinux) \ 130 $(use_enable selinux) \
131 $(use_enable pam console-kit) \
132 ${acpi} \
112 || die "configure failed" 133 || die "configure failed"
113 134
114 emake || die "make failed" 135 emake || die "make failed"
115} 136}
116 137

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20