1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs
8 DESCRIPTION="self-contained ANSI C implementation of the reverse search algorithm"
9 HOMEPAGE="http://cgm.cs.mcgill.ca/~avis/C/lrs.html"
10 SRC_URI="http://cgm.cs.mcgill.ca/~avis/C/lrslib/${P}.tar.gz"
17 DEPEND="gmp? ( dev-libs/gmp )"
21 sed -i "s/gcc/$(tc-getCC)/g" makefile || die
22 sed -i "s/-O3/${CFLAGS} ${LDFLAGS}/g" makefile || die
27 emake all64 || die "make failed"
29 emake || die "make failed"
32 emake gmp || die "make failed"
37 dobin lrs redund redund1 || die
38 # Collides with sys-block/buffer
39 newbin buffer lrsbuffer || die
41 dobin nash setupnash setupnash2 2nash || die
42 # Prevent clash with cddlib:
43 newbin fourier lrsfourier || die
46 dobin glrs gredund gfourier || die
47 # Clash with www-plugins/gnash
48 newbin gnash lrsgnash || die
51 dohtml lrslib.html || die