1 # Copyright 1999-2016 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"
14 KEYWORDS="~amd64 ~arm ~x86"
17 DEPEND="gmp? ( dev-libs/gmp:0= )"
21 sed -i "s/gcc/$(tc-getCC)/g" makefile || die
22 sed -i "s/-O3/${CFLAGS} ${LDFLAGS}/g" makefile || die
24 sed -i "s,/usr/local,/usr,g" makefile || die
40 emake DESTDIR="${D}" install-shared
42 # Install default set of binaries
43 emake DESTDIR="${D}" install-common