summaryrefslogtreecommitdiff
blob: 737d521ff89a46b7015e74f27ef2f295a73a710f (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
# Copyright 2008-2012 Funtoo Technologies
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

DESCRIPTION="AS31 is a free 8051 assembler."
HOMEPAGE="http://www.pjrc.com/tech/8051/"
SRC_URI="http://www.pjrc.com/tech/8051/tools/as31_beta3.tar.gz"

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

DEPEND="x11-libs/gtk+:1"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${PN}"

src_test() {
	cd "${S}/tests"
	../as31 paulmon1.asm
	../as31 paulmon2.asm
	../as31 extra.asm
	diff -q paulmon1.hex paulmon1.ref || die "test failed"
	diff -q paulmon2.hex paulmon2.ref || die "test failed"
	diff -q extra.hex extra.ref || die "test failed"
}

src_install() {
	exeinto /usr/bin
	doexe as31 as31_gtk || die "doexe failed"
	dodoc README
}