aboutsummaryrefslogtreecommitdiff
blob: 853b90a5c7797641386c8ec46e2c64e17d64208e (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
42
43
44
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

MY_P=${P/_alpha/alpha}

DESCRIPTION="Finite state toolkit compatible with Xerox tools"
HOMEPAGE="http://foma.sf.net/"
SRC_URI="http://dingo.sbs.arizona.edu/~mhulden/${MY_P}.tar.gz"

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

RDEPEND="
	sys-libs/libtermcap-compat
	sys-libs/readline"
DEPEND="${RDEPEND}
	>=sys-devel/bison-2.3
	>=sys-devel/flex-2.5.35"

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

src_prepare() {
	sed \
		-e "s/^CFLAGS =/CFLAGS = ${CFLAGS} -fPIC/" \
		-e 's/ltermcap/lcurses/' \
		-e 's/ldconfig/true/g' \
		-i Makefile || die
}

src_compile() {
	emake
	emake libfoma
}

src_install() {
	dobin foma
	dolib.so libfoma.so.0.9.14
	dodoc README README.symbols
}