blob: 4254f2a2d681d3494ba1a1a2e179b97c517513e0 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="An optimizing interpreter for the Brainfuck programming language."
HOMEPAGE="http://brainwash.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="char"
S="${WORKDIR}/${P}/src"
src_compile() {
sed -i -e "s:CFLAGS =:CFLAGS = ${CFLAGS}:" Makefile || die "sed failed"
if use char ; then
emake char || die "emake failed"
else
emake || die "emake failed"
fi
}
src_install() {
dobin brainwash
cd ..
dodoc README ChangeLog
}
|