summaryrefslogtreecommitdiff
blob: 2158faa6ee842a4b171c1178b157fa0b2ce6c8b8 (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
51
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

EBZR_REVISION="158"
EBZR_REPO_URI="http://bazaar.launchpad.net/~ltsp-upstream/ltsp/ltspfs-trunk"

inherit bzr autotools

DESCRIPTION="LTSP file system"
HOMEPAGE="http://www.ltsp.org/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~sparc ~x86"
IUSE="examples"
DEPEND=">=dev-libs/glib-2.6
	>=sys-fs/fuse-2.7.2
	x11-libs/libX11"
RDEPEND="${DEPEND}"

src_unpack() {
	bzr_src_unpack
	# FIXME: do we want to use bzr to generate a ChangeLog?
	# Create empty ChangeLog to please autoreconf
	touch ChangeLog
}

src_prepare() {
	eautoreconf
}

src_install() {
	emake DESTDIR="${D}" install || die "einstall failed"

	# install extra init-ltsp.d files
	insinto /usr/share/ltsp/init-ltsp.d
	doins -r init-ltsp.d/*
	
	# temporary until it's present in upstream
	insinto /usr/share/ltsp/init-ltsp.d/Gentoo
	doins init-ltsp.d/common/*

	dodoc AUTHORS

	if use examples; then
		docinto examples
		dodoc doc/examples/*
	fi
}