blob: fe4bc862d234e4dc462c115ec19c6f37f3f1b264 (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/cssc/cssc-1.3.0.ebuild,v 1.5 2011/05/11 19:40:53 angelos Exp $
EAPI="2"
DESCRIPTION="CSSC is the GNU Project's replacement for SCCS"
SRC_URI="mirror://gnu/${PN}/CSSC-${PV}.tar.gz"
HOMEPAGE="http://www.gnu.org/software/cssc/"
SLOT="0"
LICENSE="GPL-3"
S=${WORKDIR}/CSSC-${PV}
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
IUSE=""
src_prepare() {
# The large test takes a long time
sed -i tests/Makefile.* \
-e 's|\([[:space:]]\)test-large |\1|g' || die "sed failed"
}
src_configure() {
econf --enable-binary --without-valgrind
}
src_compile() {
emake all || die "emake failed"
}
src_test() {
if [[ ${UID} = 0 ]]; then
einfo "Tests will not be run as root"
else
emake check || die
fi
}
src_install () {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc README NEWS ChangeLog AUTHORS || die "dodoc failed"
}
|