summaryrefslogtreecommitdiff
blob: 9465d1f18305d1167b361a9381569eb4490209cc (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/ivman/ivman-0.3-r1.ebuild,v 1.2 2004/12/15 14:05:44 genstef Exp $

inherit eutils

DESCRIPTION="Daemon to mount/unmount devices, based on info from HAL"
HOMEPAGE="http://ivman.sf.net"
SRC_URI="mirror://sourceforge/ivman/${P}.tar.gz
		usb? ( http://code.mizzenblog.com/ivman/ivman_20041211.usb.diff.gz )"

SLOT="0"
LICENSE="QPL"
KEYWORDS="~amd64 ~x86"

IUSE="debug usb"

RDEPEND=">=dev-libs/glib-2.2
	 dev-libs/libxml2
	 >=sys-apps/hal-0.2.98"

DEPEND="${RDEPEND}
	>=sys-devel/libtool-1.5
	dev-util/pkgconfig"

src_unpack() {
	unpack ${A}

	cd ${S}
	epatch ${FILESDIR}/${P}-cvs.update
	useq usb && epatch ../ivman_20041211.usb.diff
}

src_compile() {
	econf `use_enable debug` || die
	emake || die
}

src_install() {
	make DESTDIR="${D}" install || die

	exeinto /etc/init.d/
	newexe ${FILESDIR}/${P}.init ivman
}