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

EAPI="1"

inherit git-2

EGIT_REPO_URI="git://github.com/r1k0/kicktoo.git"
DESCRIPTION="A Portage based installer/profiler for Gentoo/Funtoo (/Exherbo RIP)"
HOMEPAGE="https://github.com/r1k0/kicktoo"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
# making the profiles optional, included by default
# they are not required for the tool
IUSE="doc +examples tftp"
RDEPEND="sys-block/parted
	tftp? ( net-misc/curl )"

src_install() {
	ktdir=/usr/share/kicktoo

	insinto ${ktdir}/modules
	doins modules/*
	
	dobin kicktoo
	newbin daemon/kicktood.pl kicktood
	
	if use doc; then
		dodoc README
		dodoc TODO
		newdoc profiles/config.txt profile-config.txt
	fi
	
	if use examples; then
		insinto ${ktdir}/kbin
		doins kbin/*
		insinto ${ktdir}/kconfig
		doins kconfig/*
		insinto ${ktdir}/profiles
		rm profiles/config.txt
		doins -r profiles/*
	fi
}