1 # Copyright 1999-2012 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
23 # We don't like static linking to gmp or anywhere.
25 # This macro may only change messages that the
26 # binary outputs, but just in case... (Bug 384195)
27 sed -i "s/-static/-DB64/g" makefile || die
29 sed -i "s/-static//g" makefile || die
45 dobin lrs redund redund1
46 # Collides with sys-block/buffer
47 newbin buffer lrsbuffer
49 dobin nash setupnash setupnash2 2nash
50 # Prevent clash with cddlib:
51 newbin fourier lrsfourier
54 dobin glrs gredund gfourier
55 # Clash with www-plugins/gnash