summaryrefslogtreecommitdiff
blob: 21a1d347c2e6c832a03774676cc9cbb1bc0104c1 (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-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lisp/hedgehog/hedgehog-2.1.0.ebuild,v 1.1 2006/05/11 22:06:22 mkennedy Exp $

inherit eutils

DESCRIPTION="Hedgehog is a very concise implementation of a Lisp-like language for low-end and embedded devices."
SRC_URI="http://hedgehog.oliotalo.fi/download/${P}.tar.gz"
HOMEPAGE="http://hedgehog.oliotalo.fi/"
SLOT="0"
LICENSE="LGPL-2.1 BSD"
KEYWORDS="~x86"
IUSE=""

DEPEND="virtual/libc"

S=${WORKDIR}/${PN}-${PV:0:3}

# Documentation can't be built until weblint-perl and html2ps are added to
# portage.

src_unpack() {
	unpack ${A}
	pushd ${S}
	cp configure configure.template \
		&& sed "s,CFLAGS=',CFLAGS='$CFLAGS ,g" \
		< configure.template \
		> configure || die
}

src_compile() {
	mkdir build
	cd build
	../configure linux /usr || die
	make || die
}

src_install () {
	make -C build install prefix=${D}/usr
	dodoc LICENSE* README TODO
}