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

inherit eutils versionator

MY_PV=$(replace_version_separator 2 '')

DESCRIPTION="A program that generates images from instructions written in context-free grammar"
HOMEPAGE="http://www.contextfreeart.org/"
SRC_URI="http://www.contextfreeart.org/download/ContextFreeSource${MY_PV}.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND="media-libs/libpng"
RDEPEND=${DEPEND}

S=${WORKDIR}/ContextFreeSource${MY_PV}

src_unpack() {
	unpack ${A}
	epatch "${FILESDIR}/${P}-fix-cpp-headers.patch"
}

src_install() {
	dobin cfdg || die
}

src_test() {
	make rtests OUTPUT_DIR="${T}" || die "tests failed"
}