summaryrefslogtreecommitdiff
blob: 1e64cf5ba35477c7caed5c80ada16e5fc506ad15 (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-2100 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2
inherit git eutils

DESCRIPTION="It backs things up based on the git packfile format"
HOMEPAGE="http://github.com/apenwarr/bup"
EGIT_REPO_URI="git://github.com/apenwarr/bup"

LICENSE="LGPL-2"
SLOT="0"
KEYWORDS=""
IUSE="+doc"

DEPEND="|| (
			dev-lang/python:2.4
			dev-lang/python:2.5
			dev-lang/python:2.6
			dev-lang/python:2.7
		)
		dev-vcs/git
		app-arch/par2cmdline
		dev-python/fuse-python
		doc? ( app-text/pandoc )"


src_prepare() {
	sed -i -e "/^DOCDIR/s/bup$/${P}/" Makefile || die "sed failed"
}

src_compile() {
	emake || die "emake failed"
}

src_install() {
	emake install DESTDIR="${D}" || die "emake install failed"
	dodoc README DESIGN
}

src_test() {
	emake test || die "emake test failed"
}