/[gentoo-x86]/sys-fs/udisks/udisks-1.96.0.ebuild
Gentoo

Contents of /sys-fs/udisks/udisks-1.96.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue May 15 11:22:36 2012 UTC (2 years, 1 month ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.0_alpha104/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-fs/udisks/udisks-1.96.0.ebuild,v 1.3 2012/05/13 09:49:18 ssuominen Exp $
4
5 EAPI=4
6 inherit eutils bash-completion-r1 linux-info systemd
7
8 DESCRIPTION="Daemon providing interfaces to work with storage devices"
9 HOMEPAGE="http://www.freedesktop.org/wiki/Software/udisks"
10 SRC_URI="http://udisks.freedesktop.org/releases/${P}.tar.bz2"
11
12 LICENSE="GPL-2"
13 SLOT="2"
14 KEYWORDS="~amd64 ~arm ~x86"
15 IUSE="debug doc crypt +gptfdisk +introspection systemd"
16
17 COMMON_DEPEND=">=dev-libs/glib-2.32
18 >=sys-auth/polkit-0.104-r1
19 >=dev-libs/libatasmart-0.18
20 || ( >=sys-fs/udev-171-r5[gudev] <sys-fs/udev-171[extras] )
21 virtual/acl
22 introspection? ( >=dev-libs/gobject-introspection-1.30 )
23 systemd? ( >=sys-apps/systemd-44 )"
24 # gptfdisk -> src/udiskslinuxpartition.c -> sgdisk (see also #412801#c1)
25 # util-linux -> mount, umount, swapon, swapoff
26 RDEPEND="${COMMON_DEPEND}
27 >=sys-apps/util-linux-2.20.1-r2
28 >=sys-block/parted-3
29 virtual/eject
30 crypt? ( sys-fs/cryptsetup )
31 gptfdisk? ( >=sys-apps/gptfdisk-0.8 )"
32 DEPEND="${COMMON_DEPEND}
33 app-text/docbook-xsl-stylesheets
34 dev-libs/libxslt
35 >=dev-util/gdbus-codegen-2.32
36 dev-util/intltool
37 >=sys-kernel/linux-headers-3.1
38 virtual/pkgconfig
39 doc? (
40 dev-util/gtk-doc
41 app-text/docbook-xml-dtd:4.1.2
42 )"
43
44 DOCS="AUTHORS HACKING NEWS README"
45
46 pkg_setup() {
47 # Listing only major arch's here to avoid tracking kernel's defconfig
48 if use amd64 || use arm || use ppc || use ppc64 || use x86; then
49 CONFIG_CHECK="~!IDE" #319829
50 CONFIG_CHECK+=" ~TMPFS_POSIX_ACL" #412377
51 CONFIG_CHECK+=" ~USB_SUSPEND" #331065
52 linux-info_pkg_setup
53 fi
54 }
55
56 src_prepare() {
57 epatch "${FILESDIR}"/${PN}-2.x-ntfs-3g.patch
58
59 if ! use systemd; then
60 sed -i -e 's:libsystemd-login:&sSuOmInEnWaShErE:' configure || die
61 fi
62 }
63
64 src_configure() {
65 econf \
66 --localstatedir="${EPREFIX}"/var \
67 --disable-static \
68 $(use_enable debug) \
69 $(use_enable doc gtk-doc) \
70 $(use_enable introspection) \
71 --with-html-dir="${EPREFIX}"/usr/share/doc/${PF}/html \
72 "$(systemd_with_unitdir)"
73 }
74
75 src_install() {
76 default
77
78 local htmldir=udisks2
79 if [[ -d ${ED}/usr/share/doc/${PF}/html/${htmldir} ]]; then
80 dosym /usr/share/doc/${PF}/html/${htmldir} /usr/share/gtk-doc/html/${htmldir}
81 fi
82
83 rm -rf "${ED}"/etc/bash_completion.d
84 dobashcomp tools/udisksctl-bash-completion.sh
85
86 find "${ED}" -type f -name '*.la' -exec rm -f {} +
87
88 keepdir /media
89 keepdir /var/lib/udisks2 #383091
90 }

  ViewVC Help
Powered by ViewVC 1.1.20