blob: 19d14dcc9097fbb65841ce68afe3e36d45b31dbd (
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-2009 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
}
|