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

EAPI="3"

inherit autotools

DESCRIPTION="LTSP file system"
HOMEPAGE="http://www.ltsp.org/"
SRC_URI="https://launchpad.net/ltsp/${PN}-trunk/${PV}/+download/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
RESTRICT="mirror"
KEYWORDS="amd64 ~sparc x86"
IUSE="client examples"
DEPEND=">=dev-libs/glib-2.6
	>=sys-fs/fuse-2.7.2
	x11-libs/libX11"
RDEPEND="${DEPEND}"
S=${WORKDIR}/ltspfs


src_prepare() {
	eautoreconf
}

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

	if use client; then
		# install extra init-ltsp.d files
		insinto /usr/share/ltsp/init-ltsp.d
		doins -r init-ltsp.d/common/*
	fi

	dodoc AUTHORS

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