blob: b966a89ea2a0da88ef17ac977f1279824f195efd (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/cogito/cogito-0.18.2.ebuild,v 1.4 2008/03/29 22:39:25 vapier Exp $
inherit eutils
MY_PV=${PV//_/}
DESCRIPTION="The GIT scripted toolkit"
HOMEPAGE="http://git.or.cz/cogito/"
SRC_URI="mirror://kernel/software/scm/${PN}/${PN}-${MY_PV}.tar.bz2
mirror://gentoo/${PN}-doc-${MY_PV}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
IUSE=""
DEPEND=">=dev-util/git-1.4.3"
RDEPEND="app-text/rcs
net-misc/curl"
S=${WORKDIR}/${PN}-${MY_PV}
SDOC=${WORKDIR}/${PN}-doc-${MY_PV}
src_unpack() {
unpack ${A} ; cd "${S}"
# t9300-seek won't work under the sandbox
rm t/t9300-seek.sh
}
src_install() {
emake install DESTDIR="${D}" prefix="/usr" || die "install failed"
dodoc README* VERSION COPYING
doman "${SDOC}"/man?/*
dodir /usr/share/doc/${PF}/{,html,contrib}
cp "${SDOC}"/html/* "${D}"/usr/share/doc/${PF}/html
cp "${S}"/contrib/* "${D}"/usr/share/doc/${PF}/contrib
}
src_test() {
# 'make test' from the root runs the tutorial-script which executes
# other commands such as 'gpg' and creates stuff in portage's $HOME.
cd "${S}"
make -C t || die
}
|