summaryrefslogtreecommitdiff
blob: b919b2fe32dbc8167851abf453993f78c169a3aa (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
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libguestfs-appliance/libguestfs-appliance-1.20.0.ebuild,v 1.1 2013/03/25 12:06:45 maksbotan Exp $

EAPI=5

CHECKREQS_DISK_USR=5G
CHECKREQS_DISK_BUILD=5G

inherit check-reqs

DESCRIPTION="VM applance disk image used in libguestfs package"
HOMEPAGE="http://libguestfs.org/"
SRC_URI="http://libguestfs.org/download/binaries/appliance/appliance-${PV}.tar.xz"

LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE=""

DEPEND=""
RDEPEND="${DEPEND}"

S="${WORKDIR}"

src_install() {
	insinto /usr/share/guestfs/
	doins -r appliance/

	newenvd "${FILESDIR}"/env.file 99"${PN}"
}

pkg_postinst() {
	elog "Please run:"
	elog " env-update && source /etc/profile"
}